Skip to content

Instantly share code, notes, and snippets.

Suyash Garg ferbncode

Block or report user

Report or block ferbncode

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View musicbrainz_test_database
➜ ~ docker run --expose 5432 -p 5432:5432 metabrainz/musicbrainz-test-database:production
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.
The database cluster will be initialized with locale "en_US.utf8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".
Data page checksums are disabled.
View checkstyle > 6.19
Downloaded: https://repo.maven.apache.org/maven2/net/sf/saxon/Saxon-HE/9.9.1-1/Saxon-HE-9.9.1-1.jar (5350 KB at 19242.8 KB/sec)
Jun 19, 2019 7:34:51 AM org.sonatype.guice.bean.reflect.Logs$JULSink warn
WARNING: Error injecting: org.apache.maven.plugin.checkstyle.CheckstyleViolationCheckMojo
java.lang.UnsupportedClassVersionError: com/puppycrawl/tools/checkstyle/api/AuditListener : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:808)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:443)
at java.net.URLClassLoader.access$100(URLClassLoader.java:65)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
View build
Building db
Step 1/2 : FROM postgres:9.5.4
---> 2417ea518abc
Step 2/2 : ADD create_extensions.sql /docker-entrypoint-initdb.d/
---> Using cache
---> 8d41a43b5b71
Successfully built 8d41a43b5b71
Successfully tagged docker_db:latest
Building db_test
Step 1/2 : FROM postgres:9.5.4
View onevsall.m
function [all_theta] = oneVsAll(X, y, k, lambda)
m = size(X, 1);
n = size(X, 2);
alpha = 0.01;
% this is storing all the theta for all the individual problems
all_theta = zeros(k, n + 1); % 6 x (n+1)
X = [ones(m, 1) X];
View pylint error
************* Module critiquebrainz.frontend.views.mapping
mapping.py:145: [R1705(no-else-return), spotify_report] Unnecessary "else" after "return"
-----------------------------------
Your code has been rated at 9.91/10
@ferbncode
ferbncode / Cache needs to be initialized
Created Aug 3, 2017
Cache needs to be initialized.
View Cache needs to be initialized
================================================================================= FAILURES ==================================================================================
_______________________________________________________________________ PlaceTestCase.test_get_by_id ________________________________________________________________________
self = <critiquebrainz.frontend.external.musicbrainz_db.tests.place_test.PlaceTestCase testMethod=test_get_by_id>
def test_get_by_id(self):
self.place_query.return_value = [place_suisto]
> place = mb_place.get_place_by_id('d71ffe38-5eaf-426b-9a2e-e1f21bc84609')
place_test.py:15:
View rg.sql
-- Automatically generated, do not edit.
-- release_group 8ef859e3-feb2-4dd1-93da-22b91280d768
SET client_min_messages TO 'warning';
-- Temporarily drop triggers.
DROP TRIGGER deny_deprecated ON link;
ALTER TABLE medium DISABLE TRIGGER ALL;INSERT INTO area (begin_date_day, begin_date_month, begin_date_year, comment, edits_pending, end_date_day, end_date_month, end_date_year, ended, gid, id, last_updated, name, type) VALUES
(NULL, NULL, NULL, '', 0, NULL, NULL, NULL, '0', '489ce91b-6658-3307-9877-795b68554c98', 222, '2013-06-15 18:06:39.59323+00', 'United States', 1),
@ferbncode
ferbncode / a.sql
Created Jul 19, 2017
Generated SQL
View a.sql
-- Automatically generated, do not edit.
-- place d71ffe38-5eaf-426b-9a2e-e1f21bc84609
SET client_min_messages TO 'warning';
-- Temporarily drop triggers.
DROP TRIGGER deny_deprecated ON link;
INSERT INTO place (address, area, begin_date_day, begin_date_month, begin_date_year, comment, coordinates, edits_pending, end_date_day, end_date_month, end_date_year, ended, gid, id, last_updated, name, type) VALUES
('Verkatehtaankuja 7, FI-13200 Hämeenlinna, Finland', 9598, NULL, NULL, 2009, '', '(60.997758,24.477142)', 0, NULL, NULL, NULL, '0', 'd71ffe38-5eaf-426b-9a2e-e1f21bc84609', 955, '2013-11-08 19:31:00.585275+00', 'Suisto', 2);
View test db error
Error at statement:
INSERT INTO place (address, area, begin_date_day, begin_date_month, begin_date_year, comment, coordinates, edits_pending, end_date_day, end_date_month, end_date_year, ended, gid, id, last_updated, name, type) VALUES
('Verkatehtaankuja 7, FI-13200 Hämeenlinna, Finland', 9598, NULL, NULL, 2009, '', '(60.997758,24.477142)', 0, NULL, NULL, NULL, '0', 'd71ffe38-5eaf-426b-9a2e-e1f21bc84609', 955, '2013-11-08 19:31:00.585275+00', 'Suisto', 2)
(IntegrityError) insert or update on table "place" violates foreign key constraint "place_fk_type"
DETAIL: Key (type)=(2) is not present in table "place_type".
"\n\nINSERT INTO place (address, area, begin_date_day, begin_date_month, begin_date_year, comment, coordinates, edits_pending, end_date_day, end_date_month, end_date_year, ended, gid, id, last_updated, name, type) VALUES\n\t('Verkatehtaankuja 7, FI-13200 Hämeenlinna, Finland', 9598, NULL, NULL, 2009, '', '(60.997758,24.477142)', 0, NULL, NULL, NULL, '0', 'd71ffe38-5eaf-426b-9a2e-e1f21bc84609', 95
View gist:1d004ae4ff4674d5381a2e5889d03d22
Freso: I might not be able to make it to the meeting tonight.
(travelling back to college, so not sure about the network in train.)
Here is my review for this week:
https://gist.github.com/ferbncode/66c6ac9c3f9e7f5377ba0c297e77b1f4
Thanks :)
You can’t perform that action at this time.