hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
40a67136f82d364baf7c724c7f9a11325add874b
934
py
Python
utils.py
PervasiveWellbeingTech/Popbots-Emailing
76a36ee0f92d9852718615c3fc6967e95e1648b4
[ "MIT" ]
null
null
null
utils.py
PervasiveWellbeingTech/Popbots-Emailing
76a36ee0f92d9852718615c3fc6967e95e1648b4
[ "MIT" ]
null
null
null
utils.py
PervasiveWellbeingTech/Popbots-Emailing
76a36ee0f92d9852718615c3fc6967e95e1648b4
[ "MIT" ]
null
null
null
import logging import pickle
26.685714
79
0.736617
import logging import pickle def return_logger(): logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) formatter = logging.Formatter('%(asctime)s %(levelname)-4s %(message)s') file_handler = logging.FileHandler('logs/global.log') file_handler.setLevel(logging.ERROR) file_handl...
834
0
69
121b7486c1fc81dfdf747a1fac6907fdbb9a85f0
715
py
Python
tests_appengine/test_client.py
LeadPages/firechannel
19b5822005f7ef6bb842a183c807a8a9919433e6
[ "MIT" ]
4
2017-10-10T10:49:14.000Z
2022-01-31T18:33:29.000Z
tests_appengine/test_client.py
LeadPages/firechannel
19b5822005f7ef6bb842a183c807a8a9919433e6
[ "MIT" ]
4
2017-11-23T16:35:41.000Z
2021-02-02T21:13:59.000Z
tests_appengine/test_client.py
LeadPages/firechannel
19b5822005f7ef6bb842a183c807a8a9919433e6
[ "MIT" ]
null
null
null
from firechannel import get_client
25.535714
58
0.725874
from firechannel import get_client def test_can_get_default_client(): # Given that I've got a testbed # If I try to get a client # I expect an instance to get created automatically assert get_client() def test_can_build_access_tokens(): # Given that I've got a testbed and a client client = g...
608
0
69
303abc13f11516937c5e97b58908cee03171eb99
220
py
Python
apps/files/apps.py
deniskrumko/deniskrumko
613c0c3eac953d2e8482a2e66fce7d3570770b2c
[ "MIT" ]
2
2019-07-09T01:42:04.000Z
2020-04-09T16:44:59.000Z
apps/files/apps.py
deniskrumko/deniskrumko
613c0c3eac953d2e8482a2e66fce7d3570770b2c
[ "MIT" ]
5
2019-12-30T22:16:38.000Z
2020-09-11T18:13:14.000Z
apps/files/apps.py
deniskrumko/deniskrumko
613c0c3eac953d2e8482a2e66fce7d3570770b2c
[ "MIT" ]
1
2019-07-09T01:42:07.000Z
2019-07-09T01:42:07.000Z
from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _ class FilesConfig(AppConfig): """Configuration for ``Files`` app.""" name = 'apps.files' verbose_name = _('Files')
22
55
0.713636
from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _ class FilesConfig(AppConfig): """Configuration for ``Files`` app.""" name = 'apps.files' verbose_name = _('Files')
0
0
0
1573d502e1f5d26892f590673950419a11805db3
10,388
py
Python
live.py
fabiobhl/project-triton
3ac3c1bad26014ebdc0141fd3a7afe60aa9c70f9
[ "MIT" ]
null
null
null
live.py
fabiobhl/project-triton
3ac3c1bad26014ebdc0141fd3a7afe60aa9c70f9
[ "MIT" ]
null
null
null
live.py
fabiobhl/project-triton
3ac3c1bad26014ebdc0141fd3a7afe60aa9c70f9
[ "MIT" ]
null
null
null
#standard libraries import time from datetime import datetime import csv import os import json from concurrent import futures import threading import multiprocessing import math #external libraries import numpy as np import pandas as pd from discord import Webhook, RequestsWebhookAdapter from binance.client import Cli...
31.865031
161
0.602137
#standard libraries import time from datetime import datetime import csv import os import json from concurrent import futures import threading import multiprocessing import math #external libraries import numpy as np import pandas as pd from discord import Webhook, RequestsWebhookAdapter from binance.client import Cli...
8,919
-27
501
bbabccfb5306ecb8d981c84146bd40727b4c9c11
52,514
py
Python
summary/summaryanalyze_old.py
PranavSudersan/Buggee
5767d1c259d3570086d7c389440605fa0f681336
[ "MIT" ]
1
2020-12-18T13:05:41.000Z
2020-12-18T13:05:41.000Z
summary/summaryanalyze_old.py
PranavSudersan/Buggee
5767d1c259d3570086d7c389440605fa0f681336
[ "MIT" ]
null
null
null
summary/summaryanalyze_old.py
PranavSudersan/Buggee
5767d1c259d3570086d7c389440605fa0f681336
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import time from datetime import datetime import os import os.path from tkinter import filedialog import tkinter as tk import ast import openpyxl import pandas as pd from pandas.io.json import json_normalize import numpy as np # import random ## #create combined...
55.336143
144
0.47296
import matplotlib.pyplot as plt import time from datetime import datetime import os import os.path from tkinter import filedialog import tkinter as tk import ast import openpyxl import pandas as pd from pandas.io.json import json_normalize import numpy as np # import random class SummaryAnal: def ...
47,862
-3
390
ac09199a3bcecf7860ff8739a1e4c5bd8c92d9f0
881
py
Python
src/onegov/activity/collections/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/activity/collections/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/activity/collections/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.activity.collections.activity import ActivityFilter from onegov.activity.collections.activity import ActivityCollection from onegov.activity.collections.attendee import AttendeeCollection from onegov.activity.collections.booking import BookingCollection from onegov.activity.collections.invoice import Invoic...
38.304348
69
0.830874
from onegov.activity.collections.activity import ActivityFilter from onegov.activity.collections.activity import ActivityCollection from onegov.activity.collections.attendee import AttendeeCollection from onegov.activity.collections.booking import BookingCollection from onegov.activity.collections.invoice import Invoic...
0
0
0
7911c5cf157ef0156fb354e4487de90ddf5950f1
11,396
py
Python
src/ase2sprkkr/sprkkr/sprkkr_atoms.py
ase2sprkkr/ase2sprkkr
5e04f54365e4ab65d97bd11d573b078674548a59
[ "MIT" ]
1
2022-03-14T22:56:11.000Z
2022-03-14T22:56:11.000Z
src/ase2sprkkr/sprkkr/sprkkr_atoms.py
ase2sprkkr/ase2sprkkr
5e04f54365e4ab65d97bd11d573b078674548a59
[ "MIT" ]
1
2022-03-10T09:08:50.000Z
2022-03-10T09:08:50.000Z
src/ase2sprkkr/sprkkr/sprkkr_atoms.py
ase2sprkkr/ase2sprkkr
5e04f54365e4ab65d97bd11d573b078674548a59
[ "MIT" ]
null
null
null
""" This file contains SPRKKRAtoms - an enhanced version of Atoms to be used with SPRKKR """ from ase import Atoms from ..common.unique_values import UniqueValuesMapping import spglib from ase.spacegroup import Spacegroup import numpy as np from ..sprkkr.sites import Site from ..common.misc import numpy_index class ...
39.161512
117
0.612496
""" This file contains SPRKKRAtoms - an enhanced version of Atoms to be used with SPRKKR """ from ase import Atoms from ..common.unique_values import UniqueValuesMapping import spglib from ase.spacegroup import Spacegroup import numpy as np from ..sprkkr.sites import Site from ..common.misc import numpy_index class ...
607
51
146
6efc4514b8bf5309e10d1c14a895324a8a7222a8
2,369
py
Python
keywords.py
nickdrozd/ecio-lisp
690637f28f81c2e708075c5247d1598756aaadb2
[ "MIT" ]
null
null
null
keywords.py
nickdrozd/ecio-lisp
690637f28f81c2e708075c5247d1598756aaadb2
[ "MIT" ]
null
null
null
keywords.py
nickdrozd/ecio-lisp
690637f28f81c2e708075c5247d1598756aaadb2
[ "MIT" ]
null
null
null
''' It would be nice if this module didn't need to import anything, since it defines (part of) the syntax of the language, and that and that seems like something that should be completely abstract. But macros make it possible to alter the syntax at run-time, meaning that keyword dispatch has to be c...
23
73
0.662727
''' It would be nice if this module didn't need to import anything, since it defines (part of) the syntax of the language, and that and that seems like something that should be completely abstract. But macros make it possible to alter the syntax at run-time, meaning that keyword dispatch has to be c...
1,005
0
160
a4a01c70d5133fce209a28aa9ecb4130b579eb5e
3,601
py
Python
tests/test_pipelines.py
jtotoole/city-scrapers-core
0c091d91bf8883c6f361a19fbb055abc3b306835
[ "MIT" ]
null
null
null
tests/test_pipelines.py
jtotoole/city-scrapers-core
0c091d91bf8883c6f361a19fbb055abc3b306835
[ "MIT" ]
null
null
null
tests/test_pipelines.py
jtotoole/city-scrapers-core
0c091d91bf8883c6f361a19fbb055abc3b306835
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta from unittest.mock import MagicMock import pytest from scrapy.exceptions import DropItem from city_scrapers_core.constants import CANCELLED from city_scrapers_core.decorators import ignore_jscalendar from city_scrapers_core.items import Meeting from city_scrapers_core.pipeline...
33.654206
86
0.663982
from datetime import datetime, timedelta from unittest.mock import MagicMock import pytest from scrapy.exceptions import DropItem from city_scrapers_core.constants import CANCELLED from city_scrapers_core.decorators import ignore_jscalendar from city_scrapers_core.items import Meeting from city_scrapers_core.pipeline...
2,979
0
161
b694cb291fbb8443812a8b09cce12006b98ee15d
1,746
py
Python
locations/spiders/completecash.py
davidchiles/alltheplaces
6f35f6cd652e7462107ead0a77f322caff198653
[ "MIT" ]
297
2017-12-07T01:29:14.000Z
2022-03-29T06:58:01.000Z
locations/spiders/completecash.py
davidchiles/alltheplaces
6f35f6cd652e7462107ead0a77f322caff198653
[ "MIT" ]
2,770
2017-11-28T04:20:21.000Z
2022-03-31T11:29:16.000Z
locations/spiders/completecash.py
davidchiles/alltheplaces
6f35f6cd652e7462107ead0a77f322caff198653
[ "MIT" ]
111
2017-11-27T21:40:02.000Z
2022-01-22T01:21:52.000Z
# -*- coding: utf-8 -*- import scrapy import json from locations.items import GeojsonPointItem from locations.hours import OpeningHours
34.92
96
0.61512
# -*- coding: utf-8 -*- import scrapy import json from locations.items import GeojsonPointItem from locations.hours import OpeningHours class CompleteCashSpider(scrapy.Spider): name = "completecash" item_attributes = { 'brand': "Complete Cash" } allowed_domains = ["locations.completecash.net"] cc_url...
1,172
413
23
6602886e8a75448ee673f2761014a87e1f48330d
3,831
py
Python
morse-stf/unittest/test_module_transform.py
alipay/Antchain-MPC
f6916465e1da5722ca7efadc4eeaca13ec229707
[ "Apache-2.0" ]
33
2021-11-23T09:04:03.000Z
2022-03-14T07:56:31.000Z
morse-stf/unittest/test_module_transform.py
qizhi-zhang/Antchain-MPC
f551170f68b0baff328e6594484e9832230fe719
[ "Apache-2.0" ]
null
null
null
morse-stf/unittest/test_module_transform.py
qizhi-zhang/Antchain-MPC
f551170f68b0baff328e6594484e9832230fe719
[ "Apache-2.0" ]
6
2021-11-25T12:38:41.000Z
2022-02-23T03:29:51.000Z
import unittest from stensorflow.basic.protocol.module_transform import module_transform,\ module_transform_withPRF import numpy as np from stensorflow.basic.basic_class.base import SharedTensorBase, SharedPairBase from stensorflow.global_var import StfConfig import tensorflow as tf from stensorflow.engine.start_se...
34.513514
94
0.656487
import unittest from stensorflow.basic.protocol.module_transform import module_transform,\ module_transform_withPRF import numpy as np from stensorflow.basic.basic_class.base import SharedTensorBase, SharedPairBase from stensorflow.global_var import StfConfig import tensorflow as tf from stensorflow.engine.start_se...
3,117
15
184
6f1949c5cd4540ba7606c03aa6bf62c2b044d07c
9,006
py
Python
examples/tensorflow/nlp/transformer_lt/quantization/ptq/main.py
huggingface/neural-compressor
aaad4c357a86914ffa583753c9a26d949838a2a5
[ "Apache-2.0" ]
172
2021-09-14T18:34:17.000Z
2022-03-30T06:49:53.000Z
examples/tensorflow/nlp/transformer_lt/quantization/ptq/main.py
intel/lp-opt-tool
130eefa3586b38df6c0ff78cc8807ae273f6a63f
[ "Apache-2.0" ]
40
2021-09-14T02:26:12.000Z
2022-03-29T08:34:04.000Z
examples/tensorflow/nlp/transformer_lt/quantization/ptq/main.py
intel/neural-compressor
16a4a12045fcb468da4d33769aff2c1a5e2ba6ba
[ "Apache-2.0" ]
33
2021-09-15T07:27:25.000Z
2022-03-25T08:30:57.000Z
# # -*- coding: utf-8 -*- # # Copyright (c) 2021 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
36.314516
89
0.622252
# # -*- coding: utf-8 -*- # # Copyright (c) 2021 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
6,212
5
402
8e706fef2a79b9726e6db3ebb5cc1413501da498
185
py
Python
sghymnal/rosters/apps.py
shortnd/sghymnal
c10d9a7e2fda803dcb5046b9f7bc099f32b6c603
[ "MIT" ]
null
null
null
sghymnal/rosters/apps.py
shortnd/sghymnal
c10d9a7e2fda803dcb5046b9f7bc099f32b6c603
[ "MIT" ]
null
null
null
sghymnal/rosters/apps.py
shortnd/sghymnal
c10d9a7e2fda803dcb5046b9f7bc099f32b6c603
[ "MIT" ]
null
null
null
from django.apps import AppConfig from django.utils.translation import gettext_lazy as _
23.125
54
0.767568
from django.apps import AppConfig from django.utils.translation import gettext_lazy as _ class RostersConfig(AppConfig): name = "sghymnal.rosters" verbose_name = _("Rosters")
0
72
23
3c5e955fa472b2a174f33607d809afecce7166fb
15,418
py
Python
warmup4ie/warmup4ie.py
8osman/warmup4IE
4f36101c3273bac1d083104d4220902697b7cdf3
[ "Apache-2.0" ]
8
2019-02-23T09:52:00.000Z
2020-04-24T10:51:55.000Z
warmup4ie/warmup4ie.py
8osman/warmup4IE
4f36101c3273bac1d083104d4220902697b7cdf3
[ "Apache-2.0" ]
7
2019-02-23T16:40:24.000Z
2020-02-04T22:14:48.000Z
warmup4ie/warmup4ie.py
8osman/warmup4IE
4f36101c3273bac1d083104d4220902697b7cdf3
[ "Apache-2.0" ]
3
2019-11-08T12:06:13.000Z
2020-02-19T04:32:56.000Z
""" platform that offers a connection to a warmup4ie device. this platform is inspired by the following code: https://github.com/alyc100/SmartThingsPublic/tree/master/devicetypes/alyc100/\ warmup-4ie.src to setup this component, you need to register to warmup first. see https://my.warmup.com/login Then add to your c...
38.545
176
0.55526
""" platform that offers a connection to a warmup4ie device. this platform is inspired by the following code: https://github.com/alyc100/SmartThingsPublic/tree/master/devicetypes/alyc100/\ warmup-4ie.src to setup this component, you need to register to warmup first. see https://my.warmup.com/login Then add to your c...
0
0
0
3e3a6bd99c980ea91a4f3725fdd7bbf184965475
322
py
Python
exercises/exercise71.py
djangojeng-e/TIL
bdbe1dfb6ebc48b89067fddda195227cca64b8dc
[ "MIT" ]
null
null
null
exercises/exercise71.py
djangojeng-e/TIL
bdbe1dfb6ebc48b89067fddda195227cca64b8dc
[ "MIT" ]
null
null
null
exercises/exercise71.py
djangojeng-e/TIL
bdbe1dfb6ebc48b89067fddda195227cca64b8dc
[ "MIT" ]
null
null
null
number_list = [x for x in range(1, 21)] print(number_list) filtered_list = filter(lambda x: x%2==0, number_list) filtered_list = list(filtered_list) print(filtered_list) square_list = map(lambda x: x**2, filtered_list) square_list = list(square_list) print(square_list) # filter(func, iterable) # map(func, iterable...
21.466667
53
0.748447
number_list = [x for x in range(1, 21)] print(number_list) filtered_list = filter(lambda x: x%2==0, number_list) filtered_list = list(filtered_list) print(filtered_list) square_list = map(lambda x: x**2, filtered_list) square_list = list(square_list) print(square_list) # filter(func, iterable) # map(func, iterable...
0
0
0
653927e36e6c722e124ad7cab7a4b86aab936ffd
3,822
py
Python
songmass/evaluate/utils.py
hongwen-sun/muzic
50fb349e8ffe37212d9a3bfe6066f4c1e6657f3a
[ "MIT" ]
1,903
2021-09-22T18:43:49.000Z
2022-03-31T08:22:13.000Z
songmass/evaluate/utils.py
hongwen-sun/muzic
50fb349e8ffe37212d9a3bfe6066f4c1e6657f3a
[ "MIT" ]
33
2021-09-24T16:22:18.000Z
2022-03-30T09:35:20.000Z
songmass/evaluate/utils.py
hongwen-sun/muzic
50fb349e8ffe37212d9a3bfe6066f4c1e6657f3a
[ "MIT" ]
124
2021-09-24T08:56:56.000Z
2022-03-29T05:48:03.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. #
30.094488
113
0.570644
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. # def get_pitch_duration_sequence(notes): seq = [] i = 0 while i < len(notes): if notes[i] > 128: i += 1 else: if i + 1 >= len(notes): break ...
3,602
0
115
0a726b63ad1860c147fe1887b629d9e01b8f5aa7
35,420
py
Python
kivymd/uix/textfield.py
surbhicis/KivyMD-1
23378fea5427d8616ed96397d148cb34fbbda73f
[ "MIT" ]
18
2020-03-14T18:26:45.000Z
2022-02-26T13:36:26.000Z
kivymd/uix/textfield.py
surbhicis/KivyMD-1
23378fea5427d8616ed96397d148cb34fbbda73f
[ "MIT" ]
null
null
null
kivymd/uix/textfield.py
surbhicis/KivyMD-1
23378fea5427d8616ed96397d148cb34fbbda73f
[ "MIT" ]
2
2020-03-15T13:09:58.000Z
2020-03-16T20:13:49.000Z
""" Components/Text Field ===================== .. seealso:: `Material Design spec, Text fields <https://material.io/components/text-fields>`_ .. rubric:: Text fields let users enter and edit text. .. image:: https://github.com/HeaTTheatR/KivyMD-data/raw/master/gallery/kivymddoc/text-fields.png :align: cent...
32.3766
119
0.577414
""" Components/Text Field ===================== .. seealso:: `Material Design spec, Text fields <https://material.io/components/text-fields>`_ .. rubric:: Text fields let users enter and edit text. .. image:: https://github.com/HeaTTheatR/KivyMD-data/raw/master/gallery/kivymddoc/text-fields.png :align: cent...
15,620
5,255
115
3e771a0b0c87d5dd39d6a6b61f4ccf622bf37c16
1,586
py
Python
src/accounts/models.py
NamHDT/Django-HDT
1d7803e522fe1962b55a5e68c6208e6ec8562a74
[ "MIT" ]
null
null
null
src/accounts/models.py
NamHDT/Django-HDT
1d7803e522fe1962b55a5e68c6208e6ec8562a74
[ "MIT" ]
null
null
null
src/accounts/models.py
NamHDT/Django-HDT
1d7803e522fe1962b55a5e68c6208e6ec8562a74
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractUser, Group, User # Create your models here.
44.055556
95
0.748424
from django.db import models from django.contrib.auth.models import AbstractUser, Group, User # Create your models here. class Team(models.Model): title_team = models.CharField(max_length=255) status = models.BooleanField(default=True) def __str__(self): return self.title_team class Group(models....
92
1,304
69
0971afebbd42210eae9ea7c8dd40303586365e72
1,588
py
Python
stko/calculators/extractors/orca_extractor.py
stevenbennett96/stko
ee340af4fc549d5a2c3e9cba8360661335efe0fd
[ "MIT" ]
8
2020-06-09T16:59:20.000Z
2022-03-18T23:05:38.000Z
stko/calculators/extractors/orca_extractor.py
stevenbennett96/stko
ee340af4fc549d5a2c3e9cba8360661335efe0fd
[ "MIT" ]
60
2020-05-22T13:38:54.000Z
2022-03-25T09:34:22.000Z
stko/calculators/extractors/orca_extractor.py
stevenbennett96/stko
ee340af4fc549d5a2c3e9cba8360661335efe0fd
[ "MIT" ]
4
2020-12-02T10:39:54.000Z
2021-03-01T18:34:07.000Z
""" Orca Extractor ============= #. :class:`.OrcaExtractor` Class to extract properties from Orca output. """ import re from .extractor import Extractor class OrcaExtractor(Extractor): """ Extracts properties from Orca 4.2 output files. Limited to final single point energy for now. Attributes ...
22.055556
67
0.563602
""" Orca Extractor ============= #. :class:`.OrcaExtractor` Class to extract properties from Orca output. """ import re from .extractor import Extractor class OrcaExtractor(Extractor): """ Extracts properties from Orca 4.2 output files. Limited to final single point energy for now. Attributes ...
68
0
27
f7d79c7d9ee2293a7ffb1d260d3e444f2d2708b4
4,017
py
Python
test/test_npu/test_onnx/torch.onnx/export/export_onnx.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_onnx/torch.onnx/export/export_onnx.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_onnx/torch.onnx/export/export_onnx.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020 Huawei Technologies Co., Ltd # Copyright (c) 2019, Facebook CORPORATION. # All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/lice...
44.142857
160
0.692806
# Copyright (c) 2020 Huawei Technologies Co., Ltd # Copyright (c) 2019, Facebook CORPORATION. # All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/lice...
3,224
0
69
8b225a0424899dc60a87321c510aba958c66778c
1,744
py
Python
fabdeploy/uwsgi.py
vmihailenco/fabdeploy
de46f06a45a201b254c5fd745ff00c1b51320456
[ "BSD-3-Clause" ]
2
2016-04-28T17:10:01.000Z
2016-05-05T04:31:19.000Z
fabdeploy/uwsgi.py
vmihailenco/fabdeploy
de46f06a45a201b254c5fd745ff00c1b51320456
[ "BSD-3-Clause" ]
null
null
null
fabdeploy/uwsgi.py
vmihailenco/fabdeploy
de46f06a45a201b254c5fd745ff00c1b51320456
[ "BSD-3-Clause" ]
null
null
null
from fabric.api import sudo, settings from .task import Task from .containers import conf from .utils import upload_config_template from . import system from . import pip __all__ = [ 'install_deps', 'install', 'push_config', 'disable_config', 'emperor', ] install_deps = InstallDeps() install ...
22.075949
79
0.644495
from fabric.api import sudo, settings from .task import Task from .containers import conf from .utils import upload_config_template from . import system from . import pip __all__ = [ 'install_deps', 'install', 'push_config', 'disable_config', 'emperor', ] class InstallDeps(Task): def do(sel...
888
169
268
d8a4f0b7118eaacf0f9c5e2fe17dc78a9381ba01
7,017
py
Python
qa/rpc-tests/blockdelay.py
stashpayio/stash
963144989f74c39e7287021d917da0405e237ae7
[ "MIT" ]
1
2019-10-23T06:01:29.000Z
2019-10-23T06:01:29.000Z
qa/rpc-tests/blockdelay.py
stashpayio/stash
963144989f74c39e7287021d917da0405e237ae7
[ "MIT" ]
2
2019-04-29T19:26:56.000Z
2020-02-02T17:41:57.000Z
qa/rpc-tests/blockdelay.py
stashpayio/stash
963144989f74c39e7287021d917da0405e237ae7
[ "MIT" ]
24
2019-05-14T22:31:53.000Z
2020-07-07T21:22:56.000Z
#!/usr/bin/env python2 # Copyright (c) 2014 The Bitcoin Core developers # Copyright (c) 2018 The Zencash developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.test_framework import BitcoinTestFramework from...
38.767956
112
0.64529
#!/usr/bin/env python2 # Copyright (c) 2014 The Bitcoin Core developers # Copyright (c) 2018 The Zencash developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.test_framework import BitcoinTestFramework from...
5,998
209
22
57e33efd6f7be223beeb7a6465536e61f6a9a3c4
145
py
Python
Python/code case/code case 258.py
amazing-2020/pdf
8cd3f5f510a1c1ed89b51b1354f4f8c000c5b24d
[ "Apache-2.0" ]
3
2021-01-01T13:08:24.000Z
2021-02-03T09:27:56.000Z
Python/code case/code case 258.py
amazing-2020/pdf
8cd3f5f510a1c1ed89b51b1354f4f8c000c5b24d
[ "Apache-2.0" ]
null
null
null
Python/code case/code case 258.py
amazing-2020/pdf
8cd3f5f510a1c1ed89b51b1354f4f8c000c5b24d
[ "Apache-2.0" ]
null
null
null
if __name__ == '__main__': a = int(input("input a number: \n")) b = a >> 4 c = ~(~0 << 4) d = b & c print("%o\t%o" % (a, d))
20.714286
40
0.406897
if __name__ == '__main__': a = int(input("input a number: \n")) b = a >> 4 c = ~(~0 << 4) d = b & c print("%o\t%o" % (a, d))
0
0
0
76a9211d33d48baca8d3522bece6b4577e432edc
2,004
py
Python
temp.py
dtuit/twitter_scraper
0b7527bb97ee5b30b6f634d9534223f949aea63f
[ "MIT" ]
6
2016-09-20T13:47:57.000Z
2019-03-31T15:02:31.000Z
temp.py
sahwar/twitter_scraper
0b7527bb97ee5b30b6f634d9534223f949aea63f
[ "MIT" ]
null
null
null
temp.py
sahwar/twitter_scraper
0b7527bb97ee5b30b6f634d9534223f949aea63f
[ "MIT" ]
1
2019-03-07T01:46:19.000Z
2019-03-07T01:46:19.000Z
from celery import Celery, signals, Task from datetime import datetime, timezone, timedelta, date from math import floor import requests import pymssql import json import twitterWebsiteSearch.TwitterWebsiteSearch as twitSearch app = Celery('tasks') app.config_from_object('celeryconfig') ''' ''' @signals.worker_pro...
22.266667
122
0.676148
from celery import Celery, signals, Task from datetime import datetime, timezone, timedelta, date from math import floor import requests import pymssql import json import twitterWebsiteSearch.TwitterWebsiteSearch as twitSearch app = Celery('tasks') app.config_from_object('celeryconfig') ''' ''' @signals.worker_pro...
1,021
156
180
2173ac94612d7da3c2b3f618e4a1acf5842e7d92
25,022
py
Python
brewtils/pika.py
scott-taubman/brewtils
3478e5ebd6383d7724286c9d0c7afac9ef5d7b45
[ "MIT" ]
null
null
null
brewtils/pika.py
scott-taubman/brewtils
3478e5ebd6383d7724286c9d0c7afac9ef5d7b45
[ "MIT" ]
null
null
null
brewtils/pika.py
scott-taubman/brewtils
3478e5ebd6383d7724286c9d0c7afac9ef5d7b45
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import import logging import ssl as pyssl from functools import partial from pika import ( BasicProperties, BlockingConnection, ConnectionParameters, PlainCredentials, SelectConnection, SSLOptions, URLParameters, ) from pika.exception...
37.235119
88
0.618496
# -*- coding: utf-8 -*- from __future__ import absolute_import import logging import ssl as pyssl from functools import partial from pika import ( BasicProperties, BlockingConnection, ConnectionParameters, PlainCredentials, SelectConnection, SSLOptions, URLParameters, ) from pika.exception...
3,220
0
135
90981bee8a0d229ba74215f51d1463d24174a322
2,790
py
Python
norm/executable/schema/type.py
reasoned-ai/norm
5e45d5917ce8745c9a757a0c6b5e689ea0cac19f
[ "Apache-2.0" ]
8
2019-07-22T08:57:20.000Z
2021-03-26T13:51:02.000Z
norm/executable/schema/type.py
xumiao/norm
5e45d5917ce8745c9a757a0c6b5e689ea0cac19f
[ "Apache-2.0" ]
null
null
null
norm/executable/schema/type.py
xumiao/norm
5e45d5917ce8745c9a757a0c6b5e689ea0cac19f
[ "Apache-2.0" ]
1
2019-11-16T13:37:35.000Z
2019-11-16T13:37:35.000Z
from norm.executable import NormError, NormExecutable from norm.models import ListLambda, Lambda, Variable, Status import logging logger = logging.getLogger(__name__)
31
116
0.574194
from norm.executable import NormError, NormExecutable from norm.models import ListLambda, Lambda, Variable, Status import logging logger = logging.getLogger(__name__) class TypeName(NormExecutable): def __init__(self, name, version=None): """ The type qualified name :param name: name of ...
165
2,408
46
743583c448133c940588bb31d74e31b932be2609
2,498
py
Python
nutricionistas/users/forms.py
karinamg17/nutricionistas
d7cac627fd25692f9db88525d1b8da326f1dde5f
[ "MIT" ]
null
null
null
nutricionistas/users/forms.py
karinamg17/nutricionistas
d7cac627fd25692f9db88525d1b8da326f1dde5f
[ "MIT" ]
null
null
null
nutricionistas/users/forms.py
karinamg17/nutricionistas
d7cac627fd25692f9db88525d1b8da326f1dde5f
[ "MIT" ]
null
null
null
import re from allauth.account.forms import SignupForm from django import forms as form2 from django.contrib.auth import forms as admin_forms from django.contrib.auth import get_user_model from django.utils.translation import gettext_lazy as _ User = get_user_model()
35.685714
126
0.702162
import re from allauth.account.forms import SignupForm from django import forms as form2 from django.contrib.auth import forms as admin_forms from django.contrib.auth import get_user_model from django.utils.translation import gettext_lazy as _ User = get_user_model() class UserChangeForm(admin_forms.UserChangeForm)...
860
1,255
115
3039299991f63413c05107a6c6337f3773775775
420
py
Python
extensions/cencalvm/__init__.py
baagaard-usgs/cencalvm
c6cca356c722f150178416e5f98a1506dd733db6
[ "CC0-1.0" ]
null
null
null
extensions/cencalvm/__init__.py
baagaard-usgs/cencalvm
c6cca356c722f150178416e5f98a1506dd733db6
[ "CC0-1.0" ]
null
null
null
extensions/cencalvm/__init__.py
baagaard-usgs/cencalvm
c6cca356c722f150178416e5f98a1506dd733db6
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python # # ---------------------------------------------------------------------- # # Brad T. Aagaard # U.S. Geological Survey # # <LicenseText> # # ---------------------------------------------------------------------- # ## @file cencalvm/__init__.py ## ...
20
72
0.359524
#!/usr/bin/env python # # ---------------------------------------------------------------------- # # Brad T. Aagaard # U.S. Geological Survey # # <LicenseText> # # ---------------------------------------------------------------------- # ## @file cencalvm/__init__.py ## ...
0
0
0
496a4b7bd3a7d0cde01a6dc3362ce52cf77f9222
560
py
Python
config.py
bnguyen2/covid-hackathon
016ce5f0239c8f182840420d4a946da3603775ee
[ "Apache-2.0" ]
1
2020-04-16T05:41:07.000Z
2020-04-16T05:41:07.000Z
config.py
bnguyen2/covid-hackathon
016ce5f0239c8f182840420d4a946da3603775ee
[ "Apache-2.0" ]
27
2020-03-31T02:21:33.000Z
2020-04-12T23:13:43.000Z
config.py
bnguyen2/covid-hackathon
016ce5f0239c8f182840420d4a946da3603775ee
[ "Apache-2.0" ]
1
2020-04-12T16:37:31.000Z
2020-04-12T16:37:31.000Z
""" A bunch of variables that are intended to be shared across the Flask codebase """ from flask import Flask import db import logging MAIN_APP = Flask(__name__) LOGGER = MAIN_APP.logger LOGGER.setLevel(logging.INFO) MAIN_DB = db.Database(MAIN_APP).getDb() POSSIBLE_NEEDS = [ 'N95', 'N95s', 'Gloves', ...
18.064516
39
0.669643
""" A bunch of variables that are intended to be shared across the Flask codebase """ from flask import Flask import db import logging MAIN_APP = Flask(__name__) LOGGER = MAIN_APP.logger LOGGER.setLevel(logging.INFO) MAIN_DB = db.Database(MAIN_APP).getDb() POSSIBLE_NEEDS = [ 'N95', 'N95s', 'Gloves', ...
0
0
0
222fdbd75646eb56729f9caa7ba7cb3b9995f45c
26,582
py
Python
events/api_views.py
renzyndrome/lits-crm
32daea8c76f91780b8cc8c3f107d04df606c0ec8
[ "MIT" ]
1
2021-03-01T12:07:10.000Z
2021-03-01T12:07:10.000Z
events/api_views.py
renzyndrome/lits-crm
32daea8c76f91780b8cc8c3f107d04df606c0ec8
[ "MIT" ]
null
null
null
events/api_views.py
renzyndrome/lits-crm
32daea8c76f91780b8cc8c3f107d04df606c0ec8
[ "MIT" ]
null
null
null
from django.db.models import Q from contacts.models import Contact from contacts.serializer import ContactSerializer from common.models import User, Attachments, Comment from common.custom_auth import JSONWebTokenAuthentication from common.serializer import ( UserSerializer, CommentSerializer, AttachmentsS...
41.212403
88
0.520615
from django.db.models import Q from contacts.models import Contact from contacts.serializer import ContactSerializer from common.models import User, Attachments, Comment from common.custom_auth import JSONWebTokenAuthentication from common.serializer import ( UserSerializer, CommentSerializer, AttachmentsS...
23,411
1,922
92
eaeeb28af3bda10f0466a2aa6dc8fbf50e68d9c8
264
py
Python
ecogvis/signal_processing/tests/test_linenoise_notch.py
jgmakin/ecogVIS
a3aeba07c5f967ad51455506820083548ecfa5d9
[ "BSD-3-Clause" ]
4
2019-10-12T00:17:03.000Z
2020-05-08T03:05:05.000Z
ecogvis/signal_processing/tests/test_linenoise_notch.py
jgmakin/ecogVIS
a3aeba07c5f967ad51455506820083548ecfa5d9
[ "BSD-3-Clause" ]
7
2019-10-12T00:20:48.000Z
2019-12-07T01:39:45.000Z
ecogvis/signal_processing/tests/test_linenoise_notch.py
jgmakin/ecogVIS
a3aeba07c5f967ad51455506820083548ecfa5d9
[ "BSD-3-Clause" ]
1
2020-08-10T19:37:06.000Z
2020-08-10T19:37:06.000Z
import numpy as np from ecog.signal_processing import linenoise_notch def test_linenoise_notch_return(): """ Test the return shape. """ X = np.random.randn(32, 1000) rate = 200 Xh = linenoise_notch(X, rate) assert Xh.shape == X.shape
20.307692
50
0.670455
import numpy as np from ecog.signal_processing import linenoise_notch def test_linenoise_notch_return(): """ Test the return shape. """ X = np.random.randn(32, 1000) rate = 200 Xh = linenoise_notch(X, rate) assert Xh.shape == X.shape
0
0
0
480b5a5b150b0bf552bd882a4d4d83c6361fe676
3,049
py
Python
data/getdataset.py
NikolaySokolov152/Unet_multiclass
d07f6809b422519097560b07f67d0f139e718381
[ "MIT" ]
null
null
null
data/getdataset.py
NikolaySokolov152/Unet_multiclass
d07f6809b422519097560b07f67d0f139e718381
[ "MIT" ]
null
null
null
data/getdataset.py
NikolaySokolov152/Unet_multiclass
d07f6809b422519097560b07f67d0f139e718381
[ "MIT" ]
null
null
null
#Splitter import cv2 import numpy.random as random import numpy as np import os import time import skimage.io as io from AGCWD import* #borders #mitochondria #mitochondria borders #PSD #vesicles file_dir_arr = ["axon", "mitochondria", "PSD", "vesicles", "boundaries","mitochondrial boundaries"] name_list = [] ma...
25.408333
151
0.656281
#Splitter import cv2 import numpy.random as random import numpy as np import os import time import skimage.io as io from AGCWD import* #borders #mitochondria #mitochondria borders #PSD #vesicles def is_Img(name): img_type = ('.png', '.jpg', '.jpeg') if name.endswith((img_type)): return True else: return Fa...
101
0
23
fbaa739b2ca7579baf049b4c78522a9593d65f92
2,944
py
Python
src/backend/common/models/tests/api_auth_access_test.py
guineawheek/ftc-data-take-2
337bff2077eadb3bd6bbebd153cbb6181c99516f
[ "MIT" ]
266
2015-01-04T00:10:48.000Z
2022-03-28T18:42:05.000Z
src/backend/common/models/tests/api_auth_access_test.py
guineawheek/ftc-data-take-2
337bff2077eadb3bd6bbebd153cbb6181c99516f
[ "MIT" ]
2,673
2015-01-01T20:14:33.000Z
2022-03-31T18:17:16.000Z
src/backend/common/models/tests/api_auth_access_test.py
guineawheek/ftc-data-take-2
337bff2077eadb3bd6bbebd153cbb6181c99516f
[ "MIT" ]
230
2015-01-04T00:10:48.000Z
2022-03-26T18:12:04.000Z
import pytest from backend.common.consts.auth_type import AuthType from backend.common.models.api_auth_access import ApiAuthAccess
30.350515
87
0.753736
import pytest from backend.common.consts.auth_type import AuthType from backend.common.models.api_auth_access import ApiAuthAccess def test_read_type_put() -> None: auth = ApiAuthAccess(auth_types_enum=[AuthType.EVENT_INFO, AuthType.READ_API]) with pytest.raises( Exception, match="Cannot combine Aut...
2,548
0
253
c2b85d2194f2b1222991d379355fd5d790589d5d
9,211
py
Python
Module.py
mVento3/SteelEngineBuildSystem
b750822edf61bbb7898134e4692ea318ec278ede
[ "MIT" ]
null
null
null
Module.py
mVento3/SteelEngineBuildSystem
b750822edf61bbb7898134e4692ea318ec278ede
[ "MIT" ]
null
null
null
Module.py
mVento3/SteelEngineBuildSystem
b750822edf61bbb7898134e4692ea318ec278ede
[ "MIT" ]
null
null
null
import os import hashlib
36.551587
166
0.447617
import os import hashlib def sha512(fname): hash = hashlib.sha512() with open(fname, "rb") as f: for chunk in iter(lambda: f.read(4096), b""): hash.update(chunk) return hash.hexdigest() class Module: def __init__(self, name, type, cwd, compile_config, working_directory, modules, ...
9,069
-8
126
603acea854d10a36c84d3110d4f9949345cb622c
3,089
py
Python
zappa_manage/manage.py
edx/zappa-manage
eb26f039a74a8cf9ade4a0905ac983a1c8e8cecc
[ "MIT" ]
null
null
null
zappa_manage/manage.py
edx/zappa-manage
eb26f039a74a8cf9ade4a0905ac983a1c8e8cecc
[ "MIT" ]
1
2019-10-25T18:32:03.000Z
2019-10-25T21:56:54.000Z
zappa_manage/manage.py
edx/zappa-manage
eb26f039a74a8cf9ade4a0905ac983a1c8e8cecc
[ "MIT" ]
null
null
null
#!/usr/bin/python import boto3 import click from pybase64 import b64encode from asym_crypto_yaml import ( load, Encrypted, decrypt_value, load_private_key_from_file, load_private_key_from_string ) def perform_deploy_lambda_envs(config_file_path, private_key_content, private_key_path, kms_key_arn, lambda...
36.341176
114
0.679832
#!/usr/bin/python import boto3 import click from pybase64 import b64encode from asym_crypto_yaml import ( load, Encrypted, decrypt_value, load_private_key_from_file, load_private_key_from_string ) def perform_deploy_lambda_envs(config_file_path, private_key_content, private_key_path, kms_key_arn, lambda...
0
0
0
0faa476f54f9622d9910da74917eee9d1f62c54d
9,842
py
Python
python/util/data_processing_ipynb.py
debajyotidatta/multiNLI_mod
d94e30ddd628a2df65859424ebec7d212d3227b5
[ "Apache-2.0" ]
null
null
null
python/util/data_processing_ipynb.py
debajyotidatta/multiNLI_mod
d94e30ddd628a2df65859424ebec7d212d3227b5
[ "Apache-2.0" ]
null
null
null
python/util/data_processing_ipynb.py
debajyotidatta/multiNLI_mod
d94e30ddd628a2df65859424ebec7d212d3227b5
[ "Apache-2.0" ]
null
null
null
import numpy as np import re import random import json import collections import parameters as params import pickle import nltk # args = params.argparser("lstm petModel-0 --keep_rate 0.9 --seq_length 25 --emb_train") # FIXED_PARAMETERS = params.load_parameters(args) FIXED_PARAMETERS = params.load_parameters() LABEL...
39.055556
164
0.602621
import numpy as np import re import random import json import collections import parameters as params import pickle import nltk # args = params.argparser("lstm petModel-0 --keep_rate 0.9 --seq_length 25 --emb_train") # FIXED_PARAMETERS = params.load_parameters(args) FIXED_PARAMETERS = params.load_parameters() LABEL...
68
0
23
b8806e8e829267f46ee86a005b85487da3499661
5,697
py
Python
conllu/parser.py
orenbaldinger/conllu
2f650cb0403b6a73fcf89dbd222400fec57388d1
[ "MIT" ]
null
null
null
conllu/parser.py
orenbaldinger/conllu
2f650cb0403b6a73fcf89dbd222400fec57388d1
[ "MIT" ]
null
null
null
conllu/parser.py
orenbaldinger/conllu
2f650cb0403b6a73fcf89dbd222400fec57388d1
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import re from collections import OrderedDict, defaultdict from conllu.compat import text DEFAULT_FIELDS = ('id', 'form', 'lemma', 'upostag', 'xpostag', 'feats', 'head', 'deprel', 'deps', 'misc') INTEGER = re.compile(r"^0|(\-?[1-9][0-9]*)$") ID_SINGLE = re.compile(r"^[1-9]...
27
105
0.585747
from __future__ import unicode_literals import re from collections import OrderedDict, defaultdict from conllu.compat import text DEFAULT_FIELDS = ('id', 'form', 'lemma', 'upostag', 'xpostag', 'feats', 'head', 'deprel', 'deps', 'misc') def parse_token_and_metadata(data, fields=None): if not data: raise ...
4,826
20
276
6197f9be27fe01b42dff481e3499f1e16aae24d1
689
py
Python
lib/medialaxis_utils.py
guilyx/FlyingCarUdacity
2e56e3dc99bce7e5e65d884cbfc8e9b49cd9287a
[ "MIT" ]
10
2020-09-21T11:36:12.000Z
2022-03-26T01:45:04.000Z
lib/medialaxis_utils.py
guilyx/FlyingCarUdacity
2e56e3dc99bce7e5e65d884cbfc8e9b49cd9287a
[ "MIT" ]
4
2020-03-28T15:43:03.000Z
2020-04-03T15:19:53.000Z
lib/medialaxis_utils.py
Guilyx/autonomous-uav
2e56e3dc99bce7e5e65d884cbfc8e9b49cd9287a
[ "MIT" ]
2
2020-12-12T20:34:49.000Z
2021-04-13T08:23:50.000Z
import numpy as np from skimage.morphology import medial_axis from skimage.util import invert
28.708333
92
0.743106
import numpy as np from skimage.morphology import medial_axis from skimage.util import invert def create_medial_axis(grid): return medial_axis(invert(grid)) def find_start_goal(skel, start, goal): # return position of start and goal on the nearest medial axis skel_cells = np.transpose(skel.nonzero()) ...
523
0
69
20750d8c47027ee70e5de3454f252404ff25ec3b
2,309
py
Python
app/controllers/GithubController.py
DiegoSilva776/linkehub_insigth_api
1909a9c1b28901ab6dc0be6815741aed848b4363
[ "MIT" ]
2
2018-06-25T03:07:28.000Z
2018-06-26T13:52:23.000Z
app/controllers/GithubController.py
DiegoSilva776/linkehub_insigth_api
1909a9c1b28901ab6dc0be6815741aed848b4363
[ "MIT" ]
null
null
null
app/controllers/GithubController.py
DiegoSilva776/linkehub_insigth_api
1909a9c1b28901ab6dc0be6815741aed848b4363
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys import os import json import http.client import urllib sys.path.append('../') from utils.NetworkingUtils import NetworkingUtils from utils.ConstantUtils import ConstantUtils ''' The methods of this class manage requests that are related to the Github information stored in ...
34.984848
138
0.647033
# -*- coding: utf-8 -*- import sys import os import json import http.client import urllib sys.path.append('../') from utils.NetworkingUtils import NetworkingUtils from utils.ConstantUtils import ConstantUtils ''' The methods of this class manage requests that are related to the Github information stored in ...
1,600
0
53
102754bc5e03a7cc4d110bd6ab78d7bcf766a6c7
2,034
py
Python
PyTorchCML/models/CollaborativeMetricLearning.py
hand10ryo/PyTorchCML
f653b9f7da39061a320e0ab1810ccfe4f909f3f8
[ "MIT" ]
15
2021-12-11T10:57:49.000Z
2022-03-11T05:24:24.000Z
PyTorchCML/models/CollaborativeMetricLearning.py
hand10ryo/PytorchCML
f653b9f7da39061a320e0ab1810ccfe4f909f3f8
[ "MIT" ]
5
2021-09-11T07:25:49.000Z
2021-09-14T14:33:59.000Z
PyTorchCML/models/CollaborativeMetricLearning.py
hand10ryo/PytorchCML
f653b9f7da39061a320e0ab1810ccfe4f909f3f8
[ "MIT" ]
1
2022-02-24T10:31:59.000Z
2022-02-24T10:31:59.000Z
import torch from .BaseEmbeddingModel import BaseEmbeddingModel
30.818182
83
0.606195
import torch from .BaseEmbeddingModel import BaseEmbeddingModel class CollaborativeMetricLearning(BaseEmbeddingModel): def forward( self, users: torch.Tensor, pos_items: torch.Tensor, neg_items: torch.Tensor ) -> dict: """ Args: users : tensor of user indices size (n_batch...
0
1,950
23
1300a4bd098ab78414e9bcd1aec4356e26a1fd28
2,953
py
Python
Exscript/interpreter/regex.py
ShurikMen/exscript
29180fdf447b265ab17ab3c6cac827b19864b7be
[ "MIT" ]
226
2015-01-20T19:59:06.000Z
2022-01-02T11:13:01.000Z
Exscript/interpreter/regex.py
ShurikMen/exscript
29180fdf447b265ab17ab3c6cac827b19864b7be
[ "MIT" ]
155
2015-01-02T07:56:27.000Z
2022-01-09T20:56:19.000Z
Exscript/interpreter/regex.py
ShurikMen/exscript
29180fdf447b265ab17ab3c6cac827b19864b7be
[ "MIT" ]
114
2015-01-03T11:48:17.000Z
2022-01-26T02:50:43.000Z
# # Copyright (C) 2010-2017 Samuel Abels # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files # (the "Software"), to deal in the Software without restriction, # including without limitation the rights to use, copy,...
36.45679
77
0.663732
# # Copyright (C) 2010-2017 Samuel Abels # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files # (the "Software"), to deal in the Software without restriction, # including without limitation the rights to use, copy,...
1,222
-1
131
4ecde91c5e3066c0d64c7dcc93e20872e036d52f
2,144
py
Python
src/python/pants/backend/jvm/tasks/javadoc_gen.py
areitz/pants
9bfb3feb0272c05f36e190c9147091b97ee1950d
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/jvm/tasks/javadoc_gen.py
areitz/pants
9bfb3feb0272c05f36e190c9147091b97ee1950d
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/jvm/tasks/javadoc_gen.py
areitz/pants
9bfb3feb0272c05f36e190c9147091b97ee1950d
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) from pants.backend.j...
31.529412
97
0.661381
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) from pants.backend.j...
1,497
108
23
e15d08411554ef78bde9fcd517ba0faf62230bb5
131
py
Python
ihela_client/__init__.py
UbuhingaVizion/ihela-pyhton-client
a5f808a0c138ef407416f0d8548e1ddf8957a12a
[ "MIT" ]
2
2020-12-10T13:20:37.000Z
2021-11-15T02:44:16.000Z
ihela_client/__init__.py
UbuhingaVizion/ihela-pyhton-client
a5f808a0c138ef407416f0d8548e1ddf8957a12a
[ "MIT" ]
3
2020-09-19T20:05:23.000Z
2021-06-02T00:46:53.000Z
ihela_client/__init__.py
UbuhingaVizion/ihela-pyhton-client
a5f808a0c138ef407416f0d8548e1ddf8957a12a
[ "MIT" ]
4
2020-09-09T16:40:10.000Z
2021-08-03T09:48:34.000Z
from .merchant_authorization import MerchantAuthorizationClient from .merchant_client import MerchantClient __version__ = "0.0.5"
26.2
63
0.854962
from .merchant_authorization import MerchantAuthorizationClient from .merchant_client import MerchantClient __version__ = "0.0.5"
0
0
0
0ff642dfb890af95565c70ceb8c3c62a42535e1d
8,958
py
Python
airflow_spell/hooks/spell_client.py
healx/airflow-spell
ce1b028af24b7bf26ec973db01e885c4de62ec85
[ "Apache-2.0" ]
1
2020-07-17T15:57:17.000Z
2020-07-17T15:57:17.000Z
airflow_spell/hooks/spell_client.py
healx/airflow-spell
ce1b028af24b7bf26ec973db01e885c4de62ec85
[ "Apache-2.0" ]
39
2020-07-03T12:39:54.000Z
2022-03-29T08:55:56.000Z
airflow_spell/hooks/spell_client.py
healx/airflow-spell
ce1b028af24b7bf26ec973db01e885c4de62ec85
[ "Apache-2.0" ]
null
null
null
from random import uniform from time import sleep from typing import List, Optional, Union from airflow.exceptions import AirflowException from airflow.hooks.base import BaseHook from airflow.utils.log.logging_mixin import LoggingMixin from spell.client import SpellClient as ExternalSpellClient from spell.client.runs ...
32.107527
88
0.638647
from random import uniform from time import sleep from typing import List, Optional, Union from airflow.exceptions import AirflowException from airflow.hooks.base import BaseHook from airflow.utils.log.logging_mixin import LoggingMixin from spell.client import SpellClient as ExternalSpellClient from spell.client.runs ...
1,524
4,910
176
eca15d20b2987a3974b33182450d7fd48bd19f5f
767
py
Python
liveproxy/shared.py
frebib/liveproxy
49483579eded7ee4e23cc4b9a9e75ed20a4d62e8
[ "BSD-2-Clause" ]
1
2019-09-08T05:56:14.000Z
2019-09-08T05:56:14.000Z
liveproxy/shared.py
frebib/liveproxy
49483579eded7ee4e23cc4b9a9e75ed20a4d62e8
[ "BSD-2-Clause" ]
null
null
null
liveproxy/shared.py
frebib/liveproxy
49483579eded7ee4e23cc4b9a9e75ed20a4d62e8
[ "BSD-2-Clause" ]
1
2021-03-28T11:50:34.000Z
2021-03-28T11:50:34.000Z
# -*- coding: utf-8 -*- ''' Python classes that are shared between LiveProxy main.py and Kodi service.liveproxy ''' import logging import os import sys import streamlink.logger as logger log = logging.getLogger('streamlink.liveproxy-shared') __all__ = [ 'check_root', 'logger', 'setup_logging...
23.242424
102
0.601043
# -*- coding: utf-8 -*- ''' Python classes that are shared between LiveProxy main.py and Kodi service.liveproxy ''' import logging import os import sys import streamlink.logger as logger log = logging.getLogger('streamlink.liveproxy-shared') def check_root(): if hasattr(os, 'getuid'): if os.ge...
396
0
46
d2b20976e78d5276aa017a04e295b70ecf2c45a1
3,469
py
Python
fbpcs/input_data_validation/validation_runner.py
musebc/fbpcs
e502b708f24ad6403043df59a7517084c0bb5e22
[ "MIT" ]
null
null
null
fbpcs/input_data_validation/validation_runner.py
musebc/fbpcs
e502b708f24ad6403043df59a7517084c0bb5e22
[ "MIT" ]
null
null
null
fbpcs/input_data_validation/validation_runner.py
musebc/fbpcs
e502b708f24ad6403043df59a7517084c0bb5e22
[ "MIT" ]
null
null
null
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # pyre-strict """ This is the main class that runs all of the validations. This class handles the overall logic to: * Copy the file to lo...
35.762887
88
0.671375
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # pyre-strict """ This is the main class that runs all of the validations. This class handles the overall logic to: * Copy the file to lo...
2,384
2
130
c82848c9cdb6634cd95c6d18fcb749abc104d87e
1,226
py
Python
mitm-websocket.py
ykmattur2005/Websocket_MITM
4117a85da624a5df14738dea36df859ed5a197c2
[ "MIT" ]
null
null
null
mitm-websocket.py
ykmattur2005/Websocket_MITM
4117a85da624a5df14738dea36df859ed5a197c2
[ "MIT" ]
null
null
null
mitm-websocket.py
ykmattur2005/Websocket_MITM
4117a85da624a5df14738dea36df859ed5a197c2
[ "MIT" ]
null
null
null
import argparse from Secure_Server import secure_server_start from Secure_Client import secure_client_start from Server import unsecure_server_start from Client import unsecure_client_start from MITM import mitm_start parser = argparse.ArgumentParser(description='Choose whether to run a client or a server, and whether...
35.028571
130
0.731648
import argparse from Secure_Server import secure_server_start from Secure_Client import secure_client_start from Server import unsecure_server_start from Client import unsecure_client_start from MITM import mitm_start parser = argparse.ArgumentParser(description='Choose whether to run a client or a server, and whether...
0
0
0
3ab65e568a203f7ada9c5adecba5e5f909adc336
1,057
py
Python
deployment.py
viniciusao/awscdk-demo
483ea234dc2d8a1bc24b938776f176323bc22060
[ "MIT" ]
1
2022-01-07T21:54:38.000Z
2022-01-07T21:54:38.000Z
deployment.py
viniciusao/awscdk-demo
483ea234dc2d8a1bc24b938776f176323bc22060
[ "MIT" ]
null
null
null
deployment.py
viniciusao/awscdk-demo
483ea234dc2d8a1bc24b938776f176323bc22060
[ "MIT" ]
null
null
null
from typing import cast from aws_cdk import aws_iam as iam from aws_cdk import core as cdk from api.infra import API from db.infra import Database
27.102564
66
0.600757
from typing import cast from aws_cdk import aws_iam as iam from aws_cdk import core as cdk from api.infra import API from db.infra import Database class TibiaCharsManagement(cdk.Stage): def __init__( self, scope: cdk.Construct, id_: str, chalice_app: bool = False ): s...
841
17
49
7d3d92fb69fb42d41aed0da3b166bafa75b36a85
625
py
Python
run_rasa_test_with_ide.py
randywreed/financial-demo
2667b0cb2082719b7cd47cf60396df7f036dea51
[ "Apache-2.0" ]
230
2020-02-28T05:53:25.000Z
2022-03-21T07:49:20.000Z
run_rasa_test_with_ide.py
randywreed/financial-demo
2667b0cb2082719b7cd47cf60396df7f036dea51
[ "Apache-2.0" ]
107
2020-03-09T14:44:22.000Z
2022-02-14T07:44:02.000Z
run_rasa_test_with_ide.py
randywreed/financial-demo
2667b0cb2082719b7cd47cf60396df7f036dea51
[ "Apache-2.0" ]
410
2020-02-28T05:53:29.000Z
2022-03-20T23:49:32.000Z
"""This script allows use of an IDE (Wing, Pycharm, ...) to run the rasa shell: (-) Place this script in root of Rasa bot project (-) Open & run it from within your IDE (-) In Wing, use External Console for better experience. """ import os import sys # insert path of this script in syspath so custom modules will be...
21.551724
79
0.6976
"""This script allows use of an IDE (Wing, Pycharm, ...) to run the rasa shell: (-) Place this script in root of Rasa bot project (-) Open & run it from within your IDE (-) In Wing, use External Console for better experience. """ import os import sys # insert path of this script in syspath so custom modules will be...
0
0
0
27f35a97ee4f2a972b844159654ae5cb4b930adc
1,078
py
Python
app/__init__.py
samzhangjy/Future-Blog
1bc6f9d80a591a1cc8e14bc778a0ede99ea13689
[ "MIT" ]
1
2020-02-09T03:37:42.000Z
2020-02-09T03:37:42.000Z
app/__init__.py
PythonSamZhang/Future-Blog
1bc6f9d80a591a1cc8e14bc778a0ede99ea13689
[ "MIT" ]
2
2020-03-24T18:11:43.000Z
2020-03-31T11:00:18.000Z
app/__init__.py
samzhangjy/Future-Blog
1bc6f9d80a591a1cc8e14bc778a0ede99ea13689
[ "MIT" ]
null
null
null
#-*-coding:utf-8-*- from flask import Flask, render_template from flask_bootstrap import Bootstrap from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate from flask_moment import Moment from flask_login import LoginManager from flask_pagedown import PageDown from config import config import os from f...
29.944444
83
0.769944
#-*-coding:utf-8-*- from flask import Flask, render_template from flask_bootstrap import Bootstrap from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate from flask_moment import Moment from flask_login import LoginManager from flask_pagedown import PageDown from config import config import os from f...
471
0
23
80361f4bdc161bde187260e75772df7c070dff75
977
py
Python
vim/util/__init__.py
GoNZooo/dragonfly-grammars
22d639d8f86f4f5a7c44caa73e75c4938c0ce199
[ "MIT" ]
3
2020-09-06T10:40:19.000Z
2020-09-29T20:39:52.000Z
vim/util/__init__.py
GoNZooo/dragonfly-grammars
22d639d8f86f4f5a7c44caa73e75c4938c0ce199
[ "MIT" ]
null
null
null
vim/util/__init__.py
GoNZooo/dragonfly-grammars
22d639d8f86f4f5a7c44caa73e75c4938c0ce199
[ "MIT" ]
null
null
null
from dragonfly import Grammar, CompoundRule pythonBootstrap = Grammar("python bootstrap") pythonBootstrap.add_rule(PythonEnabler()) pythonBootstrap.load() pythonGrammar = Grammar("python grammar") pythonGrammar.load() pythonGrammar.disable()
27.138889
85
0.726714
from dragonfly import Grammar, CompoundRule class PythonEnabler(CompoundRule): spec = "Enable Python" # Spoken command to enable the Python grammar. def _process_recognition(self, node, extras): # Callback when command is spoken. pythonBootstrap.disable() pythonGrammar.enable() prin...
426
234
69
cb0683f307b349e0c87f71c2ac334901c13f88c5
1,351
py
Python
Projeto Base (Estudo)/Material/Projeto.py
lucashbdutra/ETL
5455fe3164daa76b03afb33a86b7ec6e66643bf9
[ "MIT" ]
null
null
null
Projeto Base (Estudo)/Material/Projeto.py
lucashbdutra/ETL
5455fe3164daa76b03afb33a86b7ec6e66643bf9
[ "MIT" ]
null
null
null
Projeto Base (Estudo)/Material/Projeto.py
lucashbdutra/ETL
5455fe3164daa76b03afb33a86b7ec6e66643bf9
[ "MIT" ]
null
null
null
import pandas as pd import pandera as pa df = pd.read_csv('ocorrencia.csv', parse_dates=['ocorrencia_dia'], dayfirst=True) #fazer a leitura da tablea, parse_data: faz a conversão para data e dayfirst: faz com que o dia seja o primeiro número df.head(10) schema = pa.DataFrameSchema( #cria um esquema para o data frame ...
61.409091
200
0.72909
import pandas as pd import pandera as pa df = pd.read_csv('ocorrencia.csv', parse_dates=['ocorrencia_dia'], dayfirst=True) #fazer a leitura da tablea, parse_data: faz a conversão para data e dayfirst: faz com que o dia seja o primeiro número df.head(10) schema = pa.DataFrameSchema( #cria um esquema para o data frame ...
0
0
0
f9988e778b5c1c5798f5d46e5b5e0c7dccee459a
4,932
py
Python
python/desc/sims/GCRCatSimInterface/SQLSubCatalog.py
jchiang87/sims_GCRCatSimInterface
320ddc07432bcaa05723944738a6e02b6841b69e
[ "BSD-3-Clause" ]
1
2020-11-02T21:08:39.000Z
2020-11-02T21:08:39.000Z
python/desc/sims/GCRCatSimInterface/SQLSubCatalog.py
jchiang87/sims_GCRCatSimInterface
320ddc07432bcaa05723944738a6e02b6841b69e
[ "BSD-3-Clause" ]
71
2018-01-12T17:12:50.000Z
2021-02-26T23:54:37.000Z
python/desc/sims/GCRCatSimInterface/SQLSubCatalog.py
jchiang87/sims_GCRCatSimInterface
320ddc07432bcaa05723944738a6e02b6841b69e
[ "BSD-3-Clause" ]
5
2018-01-11T18:42:42.000Z
2019-11-15T17:41:22.000Z
import numpy as np import os import sqlite3 from . import SubCatalogMixin __all__ = ["SQLSubCatalogMixin"] class SQLSubCatalogMixin(SubCatalogMixin): """ This is a SubCatalog mixin class that writes its output to a sqlite database, rather than a text file. Note: subcatalogs in the same CompoundIn...
34.978723
80
0.580089
import numpy as np import os import sqlite3 from . import SubCatalogMixin __all__ = ["SQLSubCatalogMixin"] class SQLSubCatalogMixin(SubCatalogMixin): """ This is a SubCatalog mixin class that writes its output to a sqlite database, rather than a text file. Note: subcatalogs in the same CompoundIn...
0
0
0
ae39961414a92e04a0aee535a8093bc7fce5d2f8
3,163
py
Python
sphinx_scality/directives/command.py
scality/sphinx_scality
278b45aedc7ebbd0689cc792f0531cc6d1038ad3
[ "Apache-2.0" ]
1
2020-06-18T06:38:14.000Z
2020-06-18T06:38:14.000Z
sphinx_scality/directives/command.py
scality/sphinx_scality
278b45aedc7ebbd0689cc792f0531cc6d1038ad3
[ "Apache-2.0" ]
23
2019-07-26T15:59:07.000Z
2021-12-10T14:59:47.000Z
sphinx_scality/directives/command.py
scality/sphinx_scality
278b45aedc7ebbd0689cc792f0531cc6d1038ad3
[ "Apache-2.0" ]
null
null
null
"""Directives for building command blocks.""" from docutils import nodes from docutils.parsers.rst import directives from sphinx.util.docutils import SphinxDirective class CommandBlockDirective(SphinxDirective): """Generate a container node with a command, its prompt and optional output.""" has_content = Tr...
34.380435
88
0.60607
"""Directives for building command blocks.""" from docutils import nodes from docutils.parsers.rst import directives from sphinx.util.docutils import SphinxDirective class CommandBlockDirective(SphinxDirective): """Generate a container node with a command, its prompt and optional output.""" has_content = Tr...
2,611
0
50
cff5557da721d77a6ce84cdbaea837fe06f00b51
2,727
py
Python
src/backup_email.py
rajveer10092/kushs-utils-tool
4aa8fa5535f90d6bbb2bf6ecbbb1b708d490c99c
[ "MIT" ]
1
2021-10-01T04:09:57.000Z
2021-10-01T04:09:57.000Z
src/backup_email.py
rajveer10092/kushs-utils-tool
4aa8fa5535f90d6bbb2bf6ecbbb1b708d490c99c
[ "MIT" ]
null
null
null
src/backup_email.py
rajveer10092/kushs-utils-tool
4aa8fa5535f90d6bbb2bf6ecbbb1b708d490c99c
[ "MIT" ]
null
null
null
''' Config example: { "subject" : "Daily backup", "body" : "This is a daily database backup", "sender_email" : "sender@gmail.com", "receiver_email" : "receiver@gmail.com", "password" : "supersecretpassword", "smtp_server" : "smtp.gmail.com", "smtp_host" : 465, "dbname" : "d...
28.40625
94
0.694169
''' Config example: { "subject" : "Daily backup", "body" : "This is a daily database backup", "sender_email" : "sender@gmail.com", "receiver_email" : "receiver@gmail.com", "password" : "supersecretpassword", "smtp_server" : "smtp.gmail.com", "smtp_host" : 465, "dbname" : "d...
0
0
0
94c757d0d32e122e74892e29195ffbc36204cd83
2,146
py
Python
solutions/linked_list.py
edab/DSA_Quick_Reference
827a7d3331d9224e8bb21feb9151a89fc637a649
[ "MIT" ]
3
2021-02-15T15:59:51.000Z
2021-05-02T16:52:17.000Z
solutions/linked_list.py
edab/DSA_Quick_Reference
827a7d3331d9224e8bb21feb9151a89fc637a649
[ "MIT" ]
null
null
null
solutions/linked_list.py
edab/DSA_Quick_Reference
827a7d3331d9224e8bb21feb9151a89fc637a649
[ "MIT" ]
1
2021-06-28T08:50:42.000Z
2021-06-28T08:50:42.000Z
# Test Case linked_list = LinkedList([5, 7, -1, 0.9, 71]) print("Linked List tests:") print (" Initialization: " + "Pass" if (linked_list.to_list() == [5, 7, -1, 0.9, 71]) else "Fail") linked_list.delete(-1) print (" Delete: " + "Pass" if (linked_list.to_list() == [5, 7, 0.9, 71]) else "Fail") print (" ...
25.547619
99
0.501864
class Node: def __init__(self, value): self.value = value self.next = None class LinkedList: def __init__(self, values = []): self.head = None for value in values: self.append(value) def append(self, value): if self.head is None: ...
1,258
-14
234
a2dbadb5c4a33ec0249abadd5a724abedcbc2115
2,973
py
Python
core/tests/test_utils/test_memoize.py
erexer/polyaxon
be14dae1ed56d568983388736bcdaf27a7baa4a4
[ "Apache-2.0" ]
null
null
null
core/tests/test_utils/test_memoize.py
erexer/polyaxon
be14dae1ed56d568983388736bcdaf27a7baa4a4
[ "Apache-2.0" ]
null
null
null
core/tests/test_utils/test_memoize.py
erexer/polyaxon
be14dae1ed56d568983388736bcdaf27a7baa4a4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2018-2020 Polyaxon, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
33.033333
74
0.644467
#!/usr/bin/python # # Copyright 2018-2020 Polyaxon, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
2,039
0
135
0792080b49482a1ae7df25e8bab51bd1a5b856d0
3,284
py
Python
tests/hazmat/primitives/test_hmac_vectors.py
glyph/cryptography
43cf688e885668198bc966b1cf3a4a425a60f1a6
[ "Apache-2.0" ]
null
null
null
tests/hazmat/primitives/test_hmac_vectors.py
glyph/cryptography
43cf688e885668198bc966b1cf3a4a425a60f1a6
[ "Apache-2.0" ]
4
2021-03-22T02:00:19.000Z
2021-04-07T07:40:19.000Z
tests/hazmat/primitives/test_hmac_vectors.py
majacQ/cryptography
add8bec357f09aba6609af16577111addec07ef7
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the...
24.507463
71
0.661084
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the...
0
1,266
154
5d3764986b1ff63d323b5ce58971f1b5003bfe7d
265
py
Python
ShowFolder.py
loamhoof/sublime-plugins-dump
57518b19a96e090670e2592438688c600a5b875a
[ "MIT" ]
null
null
null
ShowFolder.py
loamhoof/sublime-plugins-dump
57518b19a96e090670e2592438688c600a5b875a
[ "MIT" ]
null
null
null
ShowFolder.py
loamhoof/sublime-plugins-dump
57518b19a96e090670e2592438688c600a5b875a
[ "MIT" ]
null
null
null
import os.path import sublime_plugin
26.5
98
0.716981
import os.path import sublime_plugin class ShowFolder(sublime_plugin.TextCommand): def run(self, _): self.view.window().show_input_panel("Folder path", os.path.dirname(self.view.file_name()), on_done=None, on_change=None, on_cancel=None)
153
24
49
91a5b67f7631d2696b6c734e1c1dee852f1f85c2
338
py
Python
src/apps/about/models/post_kateg.py
rko619619/Skidon
fe09d0d87edb973c0cb1f20478e398bc69899d1b
[ "Apache-2.0" ]
null
null
null
src/apps/about/models/post_kateg.py
rko619619/Skidon
fe09d0d87edb973c0cb1f20478e398bc69899d1b
[ "Apache-2.0" ]
1
2020-04-11T18:55:09.000Z
2020-04-11T18:55:21.000Z
src/apps/about/models/post_kateg.py
rko619619/Skidon
fe09d0d87edb973c0cb1f20478e398bc69899d1b
[ "Apache-2.0" ]
null
null
null
from django.db import models as m
21.125
69
0.60355
from django.db import models as m class Post_kateg(m.Model): name = m.TextField() class Meta: verbose_name_plural = "Post_kateg" ordering = ["name"] def __repr__(self): return f"{self.__class__.__name__} # '{self.pk}:{self.name}'" def __str__(self): return f"{self.na...
108
172
23
bf04c9460b8d03db1ed049ee58129c4bd712daa5
1,723
py
Python
Best_time_to_sale_stocks.py
minami2k/Leetcode-Hard-Problems_Hacktoberfest2021
a2e07bb2c8ab665e74186085eeff95fe845ae102
[ "MIT" ]
null
null
null
Best_time_to_sale_stocks.py
minami2k/Leetcode-Hard-Problems_Hacktoberfest2021
a2e07bb2c8ab665e74186085eeff95fe845ae102
[ "MIT" ]
9
2021-10-01T14:53:32.000Z
2021-10-19T16:24:58.000Z
Best_time_to_sale_stocks.py
minami2k/Leetcode-Hard-Problems_Hacktoberfest2021
a2e07bb2c8ab665e74186085eeff95fe845ae102
[ "MIT" ]
3
2021-10-01T14:41:21.000Z
2021-10-21T04:32:11.000Z
# https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/ # 123. Best Time to Buy and Sell Stock III(Hard) Solution # Say you have an array for which the ith element is the price of a given stock on day i. # Design an algorithm to find the maximum profit. You may complete at most two transactions. # Note: ...
42.02439
156
0.59083
# https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/ # 123. Best Time to Buy and Sell Stock III(Hard) Solution # Say you have an array for which the ith element is the price of a given stock on day i. # Design an algorithm to find the maximum profit. You may complete at most two transactions. # Note: ...
332
822
23
a7a936b4a95c632e4145978a6ba86b5ca3ef790e
2,372
py
Python
unittests/pep8_tester.py
RoyVorster/pygccxml
f487b1e26e88d521d623e6a587510b322f7d3dc7
[ "BSL-1.0" ]
null
null
null
unittests/pep8_tester.py
RoyVorster/pygccxml
f487b1e26e88d521d623e6a587510b322f7d3dc7
[ "BSL-1.0" ]
null
null
null
unittests/pep8_tester.py
RoyVorster/pygccxml
f487b1e26e88d521d623e6a587510b322f7d3dc7
[ "BSL-1.0" ]
null
null
null
# Copyright 2014-2017 Insight Software Consortium. # Copyright 2004-2009 Roman Yakovenko. # Distributed under the Boost Software License, Version 1.0. # See http://www.boost.org/LICENSE_1_0.txt import os import pycodestyle import unittest import fnmatch if __name__ == "__main__": run_suite()
24.968421
67
0.618887
# Copyright 2014-2017 Insight Software Consortium. # Copyright 2004-2009 Roman Yakovenko. # Distributed under the Boost Software License, Version 1.0. # See http://www.boost.org/LICENSE_1_0.txt import os import pycodestyle import unittest import fnmatch class Test(unittest.TestCase): def test_pep8_conformance_u...
148
1,852
69
9f5bd35d209281a93fb7f14a5c6f9d3ca1e40ff6
8,650
py
Python
pybind/dnszone.py
RhubarbSin/PyBIND
f7a79891c867296b988fa48f10eeab853bf76ea5
[ "MIT" ]
1
2017-10-19T21:14:47.000Z
2017-10-19T21:14:47.000Z
pybind/dnszone.py
RhubarbSin/PyBIND
f7a79891c867296b988fa48f10eeab853bf76ea5
[ "MIT" ]
null
null
null
pybind/dnszone.py
RhubarbSin/PyBIND
f7a79891c867296b988fa48f10eeab853bf76ea5
[ "MIT" ]
null
null
null
"""Classes for creating DNS zones and writing corresponding zone files. No validation is done here (e.g. requiring a SOA record) because this module may be used to create fragments of zone files to be used via an $INCLUDE directive. Users of this module are encouraged to employ an external validation process like name...
32.156134
78
0.591908
"""Classes for creating DNS zones and writing corresponding zone files. No validation is done here (e.g. requiring a SOA record) because this module may be used to create fragments of zone files to be used via an $INCLUDE directive. Users of this module are encouraged to employ an external validation process like name...
0
0
0
cecf44fdd12e84203872fbc2f54875dcae0381cb
4,237
py
Python
neutron/tests/post_mortem_debug.py
gampel/neutron
51a6260266dc59c066072ca890ad9c40b1aad6cf
[ "Apache-2.0" ]
1,080
2015-01-04T08:35:00.000Z
2022-03-27T09:15:52.000Z
neutron/tests/post_mortem_debug.py
gampel/neutron
51a6260266dc59c066072ca890ad9c40b1aad6cf
[ "Apache-2.0" ]
24
2015-02-21T01:48:28.000Z
2021-11-26T02:38:56.000Z
neutron/tests/post_mortem_debug.py
gampel/neutron
51a6260266dc59c066072ca890ad9c40b1aad6cf
[ "Apache-2.0" ]
1,241
2015-01-02T10:47:10.000Z
2022-03-27T09:42:23.000Z
# Copyright 2013 Red Hat, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
34.447154
77
0.700024
# Copyright 2013 Red Hat, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
680
0
72
b4ba41b6af9e6568e2480af0e806191cf77a6ce4
8,931
py
Python
Gan/model_train.py
caiyueliang/CarClassification
a8d8051085c4e66ed3ed67e56360a515c9762cd5
[ "Apache-2.0" ]
null
null
null
Gan/model_train.py
caiyueliang/CarClassification
a8d8051085c4e66ed3ed67e56360a515c9762cd5
[ "Apache-2.0" ]
null
null
null
Gan/model_train.py
caiyueliang/CarClassification
a8d8051085c4e66ed3ed67e56360a515c9762cd5
[ "Apache-2.0" ]
null
null
null
# encoding:utf-8 import os import torch import torch.nn.functional as F import torch.optim as optim import torchvision from torchvision import transforms as T from torchvision.datasets import ImageFolder from torch.autograd import Variable from torch.utils.data import DataLoader from models.discriminator import Discrim...
39.517699
118
0.543836
# encoding:utf-8 import os import torch import torch.nn.functional as F import torch.optim as optim import torchvision from torchvision import transforms as T from torchvision.datasets import ImageFolder from torch.autograd import Variable from torch.utils.data import DataLoader from models.discriminator import Discrim...
8,544
-3
238
d57c78c5712e626d8da772be2f1481071b3a0059
1,572
py
Python
Demo-PyQt5/LoginPage.py
siddarth-patil/Demo-PyQt5
dafebb4ce7f58cf0d2d22452f829d633b4256649
[ "Apache-2.0" ]
null
null
null
Demo-PyQt5/LoginPage.py
siddarth-patil/Demo-PyQt5
dafebb4ce7f58cf0d2d22452f829d633b4256649
[ "Apache-2.0" ]
null
null
null
Demo-PyQt5/LoginPage.py
siddarth-patil/Demo-PyQt5
dafebb4ce7f58cf0d2d22452f829d633b4256649
[ "Apache-2.0" ]
null
null
null
import sys from PyQt5.QtWidgets import (QApplication, QWidget, QPushButton, QLabel, QLineEdit, QGridLayout, QMessageBox) if __name__ == '__main__': app = QApplication(sys.argv) form = LoginForm() form.show() sys.exit(app.exec_())
30.823529
109
0.638041
import sys from PyQt5.QtWidgets import (QApplication, QWidget, QPushButton, QLabel, QLineEdit, QGridLayout, QMessageBox) class LoginForm(QWidget): def __init__(self): super().__init__() self.setWindowTitle('LoginForm') self.resize(800, 600) layout = QGridLayout() label_na...
1,241
4
76
f9692728e6609a0c475bcb9dbdfe6023b5335b83
1,077
py
Python
src/tests/tests_util.py
KernelA/nsga3
fc8c862fb41657108d5499f4343beb408e526c19
[ "MIT" ]
7
2020-06-12T21:52:18.000Z
2022-03-24T14:28:01.000Z
src/tests/tests_util.py
KernelA/nsga3
fc8c862fb41657108d5499f4343beb408e526c19
[ "MIT" ]
null
null
null
src/tests/tests_util.py
KernelA/nsga3
fc8c862fb41657108d5499f4343beb408e526c19
[ "MIT" ]
3
2018-01-01T09:46:18.000Z
2021-06-16T07:09:26.000Z
import unittest import random import math from pynsga3 import utils if __name__ == '__main__': unittest.main()
24.477273
84
0.553389
import unittest import random import math from pynsga3 import utils def _binomial(n, k): if k > n: return 0 prod = 1 for i in range(k + 1, n + 1): prod *= i return prod // math.factorial(n - k) class TestStools(unittest.TestCase): def test_random_clip(self): value = 0.5...
833
15
100
e9c4fb58a56f125b55d2485c0870f6d4d812e1ba
331
py
Python
IQDMPDF/_version.py
IQDM/IQDM-PDF
8f4f04bfa93a76bca8d54706db24f2ab5c516f3e
[ "MIT" ]
5
2020-11-23T18:53:01.000Z
2022-03-29T11:09:25.000Z
IQDMPDF/_version.py
IQDM/IQDM-PDF
8f4f04bfa93a76bca8d54706db24f2ab5c516f3e
[ "MIT" ]
22
2020-11-23T18:47:57.000Z
2021-03-15T02:51:32.000Z
IQDMPDF/_version.py
IQDM/IQDM-PDF
8f4f04bfa93a76bca8d54706db24f2ab5c516f3e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # _version.py """Package initialization for IQDM-PDF.""" # Copyright (c) 2021 Dan Cutright # This file is part of IQDM-PDF, released under a MIT license. # See the file LICENSE included with this distribution __author__ = "Dan Cutright" __version__ = "0.3.0" __release__...
27.583333
62
0.700906
#!/usr/bin/env python # -*- coding: utf-8 -*- # _version.py """Package initialization for IQDM-PDF.""" # Copyright (c) 2021 Dan Cutright # This file is part of IQDM-PDF, released under a MIT license. # See the file LICENSE included with this distribution __author__ = "Dan Cutright" __version__ = "0.3.0" __release__...
0
0
0
e248c9ff1113bd0055fa732947d0d07c8f4c8fbe
1,297
py
Python
test_grad/test2_01_FullyConnectedLayer_grad.py
miemie2013/ppgan
48008d85ec6c5fa2e1469acf8507b2614fa550cc
[ "Apache-2.0" ]
null
null
null
test_grad/test2_01_FullyConnectedLayer_grad.py
miemie2013/ppgan
48008d85ec6c5fa2e1469acf8507b2614fa550cc
[ "Apache-2.0" ]
null
null
null
test_grad/test2_01_FullyConnectedLayer_grad.py
miemie2013/ppgan
48008d85ec6c5fa2e1469acf8507b2614fa550cc
[ "Apache-2.0" ]
1
2022-01-19T03:01:13.000Z
2022-01-19T03:01:13.000Z
import torch import numpy as np from training.networks import FullyConnectedLayer batch_size = 2 in_channels = 512 w_dim = 512 lr = 0.1 # activation = 'linear' # activation = 'lrelu' # activation = 'relu' # activation = 'tanh' activation = 'sigmoid' # activation = 'elu' # activation = 'selu' # activation = 'softplus...
27.020833
116
0.701619
import torch import numpy as np from training.networks import FullyConnectedLayer batch_size = 2 in_channels = 512 w_dim = 512 lr = 0.1 # activation = 'linear' # activation = 'lrelu' # activation = 'relu' # activation = 'tanh' activation = 'sigmoid' # activation = 'elu' # activation = 'selu' # activation = 'softplus...
0
0
0
52b29f44b7e7da2fd2487ff5347c8cb6b6b83c43
1,668
py
Python
ui/home.py
Slavkata/Edge-Computing-Interpretation
aeb8d19c7a2337b92973dd4097c30d07606a3f4f
[ "MIT" ]
1
2019-04-11T12:48:43.000Z
2019-04-11T12:48:43.000Z
ui/home.py
Slavkata/Edge-Computing-Interpretation
aeb8d19c7a2337b92973dd4097c30d07606a3f4f
[ "MIT" ]
null
null
null
ui/home.py
Slavkata/Edge-Computing-Interpretation
aeb8d19c7a2337b92973dd4097c30d07606a3f4f
[ "MIT" ]
null
null
null
from appJar import gui import paho.mqtt.client as mqtt import sys # sys.path.insert(0, '/home/nikolatz/Edge-Computing-Interpretation/mainNode') # from main_node import runMain app = gui() app.setBg("DarkKhaki") app.startPagedWindow("Welcome to projecto") app.startPage() app.addLabel("w1", "You have to choose two fil...
25.661538
77
0.688249
from appJar import gui import paho.mqtt.client as mqtt import sys # sys.path.insert(0, '/home/nikolatz/Edge-Computing-Interpretation/mainNode') # from main_node import runMain def press(button) : if button=="Send the work": # result = 1 runMain(app.getEntry("f1"), app.getEntry("f2")) client.publish(...
526
0
68
e55669a6e325a0accc5ed6899f58c0c901c3f7f1
439
py
Python
open/core/migrations/0017_supplement_is_taken_with_food.py
lawrendran/open
d136f694bafab647722c78be6f39ec79d589f774
[ "MIT" ]
105
2019-06-01T08:34:47.000Z
2022-03-15T11:48:36.000Z
open/core/migrations/0017_supplement_is_taken_with_food.py
lawrendran/open
d136f694bafab647722c78be6f39ec79d589f774
[ "MIT" ]
111
2019-06-04T15:34:14.000Z
2022-03-12T21:03:20.000Z
open/core/migrations/0017_supplement_is_taken_with_food.py
lawrendran/open
d136f694bafab647722c78be6f39ec79d589f774
[ "MIT" ]
26
2019-09-04T06:06:12.000Z
2022-01-03T03:40:11.000Z
# Generated by Django 2.2.13 on 2020-08-02 01:23 from django.db import migrations, models
23.105263
75
0.633257
# Generated by Django 2.2.13 on 2020-08-02 01:23 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("core", "0016_null_duration_minutes_activity_log"), ] operations = [ migrations.AddField( model_name="supplement", n...
0
324
23
ae39fac9b810ad342923a39a7caff32041209efb
1,004
py
Python
classifier.py
riccardocadei/GraphML-Contest-2019-Oracle-PoliMI
d7d4ce1d91298e7e7f71138bc82836687c80c5b4
[ "MIT" ]
1
2019-04-06T00:27:55.000Z
2019-04-06T00:27:55.000Z
classifier.py
RiccardoCadei/oracle-ml-contest
d7d4ce1d91298e7e7f71138bc82836687c80c5b4
[ "MIT" ]
null
null
null
classifier.py
RiccardoCadei/oracle-ml-contest
d7d4ce1d91298e7e7f71138bc82836687c80c5b4
[ "MIT" ]
2
2021-04-30T06:08:06.000Z
2022-01-13T07:29:22.000Z
import utils import numpy as np from sklearn.multiclass import OneVsRestClassifier from sklearn.model_selection import KFold, cross_val_score from sklearn.linear_model import SGDClassifier,LogisticRegression # CROSS-VALIDATION ACCURACY # TRAINING ACCURACY AND PREDICTION
33.466667
99
0.747012
import utils import numpy as np from sklearn.multiclass import OneVsRestClassifier from sklearn.model_selection import KFold, cross_val_score from sklearn.linear_model import SGDClassifier,LogisticRegression # CROSS-VALIDATION ACCURACY def validation_accuracy(X, labels): kfolds = KFold(n_splits=10) sgd = SGD...
682
0
46
3bcb8659237db7aeeaf1370f6822ee2753e63421
19
py
Python
Local/__init__.py
FurmanCenter/ACSDownloader
918afc0c7baa8814da98c2e3ee11352af68c027e
[ "Apache-2.0" ]
1
2020-04-15T15:40:18.000Z
2020-04-15T15:40:18.000Z
Local/__init__.py
FurmanCenter/ACSDownloader
918afc0c7baa8814da98c2e3ee11352af68c027e
[ "Apache-2.0" ]
null
null
null
Local/__init__.py
FurmanCenter/ACSDownloader
918afc0c7baa8814da98c2e3ee11352af68c027e
[ "Apache-2.0" ]
null
null
null
from Local import *
19
19
0.789474
from Local import *
0
0
0
4b2bce22af7f8c8d0e4fd9fbfb24415f1ed6d8d0
3,304
py
Python
qtui.py
Daan4/vision-well-position-controller
3926b7a684aee80d159046d7683257f8c23229e8
[ "MIT" ]
null
null
null
qtui.py
Daan4/vision-well-position-controller
3926b7a684aee80d159046d7683257f8c23229e8
[ "MIT" ]
2
2021-09-08T00:43:55.000Z
2022-03-11T23:38:43.000Z
qtui.py
Daan4/vision-well-position-controller
3926b7a684aee80d159046d7683257f8c23229e8
[ "MIT" ]
null
null
null
from PyQt5.QtWidgets import QWidget, QLabel, QGridLayout from PyQt5.QtCore import Qt, pyqtSlot import numpy as np from PyQt5.QtGui import QPixmap, QImage import os
35.526882
83
0.66586
from PyQt5.QtWidgets import QWidget, QLabel, QGridLayout from PyQt5.QtCore import Qt, pyqtSlot import numpy as np from PyQt5.QtGui import QPixmap, QImage import os class MainWindow(QWidget): def __init__(self): super().__init__() self.setWindowTitle(os.path.basename(__file__)) self.move(1...
2,819
296
23
a18d3b5237f1f6ef7fa2d45a57a8c89674ebd272
525
py
Python
Bit_Manipulation/83.Single Number II/Solution.py
Zhenye-Na/LxxxCode
afd79d790d0a7495d75e6650f80adaa99bd0ff07
[ "MIT" ]
12
2019-05-04T04:21:27.000Z
2022-03-02T07:06:57.000Z
Bit_Manipulation/83.Single Number II/Solution.py
Zhenye-Na/LxxxCode
afd79d790d0a7495d75e6650f80adaa99bd0ff07
[ "MIT" ]
1
2019-07-24T18:43:53.000Z
2019-07-24T18:43:53.000Z
Bit_Manipulation/83.Single Number II/Solution.py
Zhenye-Na/LxxxCode
afd79d790d0a7495d75e6650f80adaa99bd0ff07
[ "MIT" ]
10
2019-07-01T04:03:04.000Z
2022-03-09T03:57:37.000Z
class Solution: """ @param A: An integer array @return: An integer """
22.826087
38
0.386667
class Solution: """ @param A: An integer array @return: An integer """ def singleNumberII(self, A): # write your code here if not A or len(A) % 3 != 1: return -1 bits = [0 for _ in range(32)] for a in A: for j in range(32): if ...
413
0
26
e1d1bd72a4aeaa39f3e1afbd64fac6a335a37791
4,108
py
Python
NVIDIAFastPhotoStyle/photo_smooth.py
sleebapaul/AuriaKathi
d1705fc7e0919fd0a9e9f87a2593a9f7319886cf
[ "MIT" ]
9
2019-12-31T15:53:33.000Z
2021-05-06T06:36:22.000Z
NVIDIAFastPhotoStyle/photo_smooth.py
sleebapaul/AuriaKathi
d1705fc7e0919fd0a9e9f87a2593a9f7319886cf
[ "MIT" ]
null
null
null
NVIDIAFastPhotoStyle/photo_smooth.py
sleebapaul/AuriaKathi
d1705fc7e0919fd0a9e9f87a2593a9f7319886cf
[ "MIT" ]
2
2020-01-01T05:03:24.000Z
2020-01-03T13:07:26.000Z
""" Copyright (C) 2018 NVIDIA Corporation. All rights reserved. Licensed under the CC BY-NC-SA 4.0 license (https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode). """ from __future__ import division import torch.nn as nn import scipy.misc import numpy as np import scipy.sparse import scipy.sparse.linalg from ...
41.494949
126
0.564752
""" Copyright (C) 2018 NVIDIA Corporation. All rights reserved. Licensed under the CC BY-NC-SA 4.0 license (https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode). """ from __future__ import division import torch.nn as nn import scipy.misc import numpy as np import scipy.sparse import scipy.sparse.linalg from ...
3,315
7
156
b237ed64150fda9b67619d608e0a1309dd379ff8
347
py
Python
tests/unit/testHelpers.py
jacksonal/mafia-slack
6426db25c584861395e5d056a013825ba02f836d
[ "MIT" ]
null
null
null
tests/unit/testHelpers.py
jacksonal/mafia-slack
6426db25c584861395e5d056a013825ba02f836d
[ "MIT" ]
4
2020-09-25T13:45:14.000Z
2020-11-18T01:58:14.000Z
tests/unit/testHelpers.py
jacksonal/mafia-slack
6426db25c584861395e5d056a013825ba02f836d
[ "MIT" ]
2
2020-10-19T16:52:13.000Z
2020-11-11T15:49:09.000Z
from models.player import Player, Roles, States as PlayerStates
20.411765
63
0.711816
from models.player import Player, Roles, States as PlayerStates def createVillager(id=None): player = Player(id) player.state = PlayerStates.ALIVE player.role = Roles.VILLAGER return player def createMafia(id=None): player = Player(id) player.state = PlayerStates.ALIVE player.role = Rol...
234
0
46
1d58ad51679c5a42cb413e0300ea892304b4c1c0
7,912
py
Python
drforest/dimension_reduction/save.py
joshloyal/drforest
ab1e3f01cab36f15f1c37b82f71421cd025c901e
[ "MIT" ]
2
2021-09-22T12:15:43.000Z
2022-01-04T12:59:50.000Z
drforest/dimension_reduction/save.py
joshloyal/drforest
ab1e3f01cab36f15f1c37b82f71421cd025c901e
[ "MIT" ]
null
null
null
drforest/dimension_reduction/save.py
joshloyal/drforest
ab1e3f01cab36f15f1c37b82f71421cd025c901e
[ "MIT" ]
null
null
null
import warnings import numpy as np import scipy.linalg as linalg from scipy import sparse from sklearn.base import BaseEstimator, TransformerMixin from sklearn.preprocessing import normalize from sklearn.utils import check_array, check_X_y from sklearn.utils.validation import check_is_fitted from .slices import slic...
36.62963
79
0.630056
import warnings import numpy as np import scipy.linalg as linalg from scipy import sparse from sklearn.base import BaseEstimator, TransformerMixin from sklearn.preprocessing import normalize from sklearn.utils import check_array, check_X_y from sklearn.utils.validation import check_is_fitted from .slices import slic...
142
0
26
61fd127eb16632bfe4be2372eb543f29cdbd30ec
1,811
py
Python
main.py
nullpos/nicolive-reserve-calendar
266bc9d4c05b9b6a140cdca84bf4418944736341
[ "MIT" ]
null
null
null
main.py
nullpos/nicolive-reserve-calendar
266bc9d4c05b9b6a140cdca84bf4418944736341
[ "MIT" ]
1
2016-02-28T11:48:48.000Z
2016-02-28T11:48:48.000Z
main.py
nullpos/nicolive-reserve-calendar
266bc9d4c05b9b6a140cdca84bf4418944736341
[ "MIT" ]
null
null
null
# coding: utf-8 import os import re import sys import ConfigParser from util.live import Live from util.google import Google CONFIG_PATH = os.path.dirname(os.path.abspath(__file__)) + '/config' CONFIG_SAMPLE_FILE = CONFIG_PATH + '.sample' LIVE_BASE_URL = 'http://live.nicovideo.jp/watch/' if __name__ == '__main__':...
25.871429
68
0.579238
# coding: utf-8 import os import re import sys import ConfigParser from util.live import Live from util.google import Google CONFIG_PATH = os.path.dirname(os.path.abspath(__file__)) + '/config' CONFIG_SAMPLE_FILE = CONFIG_PATH + '.sample' LIVE_BASE_URL = 'http://live.nicovideo.jp/watch/' class Main(object): def ...
1,144
-2
103
f41df9a00e5a99665adcdba0bfca5c34c704048d
2,004
py
Python
app/input/file.py
pedrolp85/pycli
469d22442de2a854aebc3354cdbf9b8fe342ee16
[ "Apache-2.0" ]
null
null
null
app/input/file.py
pedrolp85/pycli
469d22442de2a854aebc3354cdbf9b8fe342ee16
[ "Apache-2.0" ]
null
null
null
app/input/file.py
pedrolp85/pycli
469d22442de2a854aebc3354cdbf9b8fe342ee16
[ "Apache-2.0" ]
null
null
null
from io import StringIO, SEEK_END from pathlib import Path from typing import Iterator, TextIO from .input import Input
34.551724
70
0.518463
from io import StringIO, SEEK_END from pathlib import Path from typing import Iterator, TextIO from .input import Input class FileInput(Input): def __init__(self, file_path: str) -> None: self._file_path = file_path def get_lines(self) -> Iterator[str]: with open(self._file_path, "r") as fil...
1,716
11
154
3ad7e3174f8fb75f0e120b935beca591ccc8a40b
114
py
Python
etc/mayan/settings.py
KingJ/mayan-edms
cd7f530c8d17e3f11da51692b28b68f585d082b1
[ "MIT" ]
null
null
null
etc/mayan/settings.py
KingJ/mayan-edms
cd7f530c8d17e3f11da51692b28b68f585d082b1
[ "MIT" ]
null
null
null
etc/mayan/settings.py
KingJ/mayan-edms
cd7f530c8d17e3f11da51692b28b68f585d082b1
[ "MIT" ]
null
null
null
ALLOWED_HOSTS = ['*'] BROKER_URL = 'redis://127.0.0.1:6379/0' CELERY_RESULT_BACKEND = 'redis://127.0.0.1:6379/0'
22.8
50
0.666667
ALLOWED_HOSTS = ['*'] BROKER_URL = 'redis://127.0.0.1:6379/0' CELERY_RESULT_BACKEND = 'redis://127.0.0.1:6379/0'
0
0
0
47ee50419bc9c62aca74391e6a9a17a4c69b33dc
407
py
Python
outros/speed_test.py
caiocampos/Python-Random-Stuff
5e9005e7dec776e9af0c407d063624d041d3c84c
[ "MIT" ]
null
null
null
outros/speed_test.py
caiocampos/Python-Random-Stuff
5e9005e7dec776e9af0c407d063624d041d3c84c
[ "MIT" ]
null
null
null
outros/speed_test.py
caiocampos/Python-Random-Stuff
5e9005e7dec776e9af0c407d063624d041d3c84c
[ "MIT" ]
null
null
null
from time import time from functools import reduce from operator import add
23.941176
45
0.515971
from time import time from functools import reduce from operator import add def speed_test(): tt = time() res, v , n = [], 0, 100 for i in range(n): t = time() for j in range(n ** 2): v += n * i * j res += [time() - t] print('menor:', min(res)) print('maior:', ma...
309
0
23
9178a63c7969278a4d756bab503a3bcb18c7f766
10,924
py
Python
imgurtofolder/imgur_downloader.py
santosderek/Imgur-To-Folder
5716cc81a9b003d1c0499388fc7561053f717aef
[ "Apache-2.0" ]
77
2017-04-24T08:08:53.000Z
2021-10-07T04:04:26.000Z
imgurtofolder/imgur_downloader.py
santosderek/Imgur-To-Folder
5716cc81a9b003d1c0499388fc7561053f717aef
[ "Apache-2.0" ]
12
2017-11-09T17:16:03.000Z
2021-04-23T04:50:52.000Z
imgurtofolder/imgur_downloader.py
santosderek/Imgur-To-Folder
5716cc81a9b003d1c0499388fc7561053f717aef
[ "Apache-2.0" ]
12
2017-09-03T10:41:27.000Z
2021-04-21T11:28:02.000Z
# Derek Santos from imgur import Imgur from pprint import pformat from time import sleep import json import logs import os import re import requests import shutil log = logs.Log('downloader')
41.067669
112
0.569114
# Derek Santos from imgur import Imgur from pprint import pformat from time import sleep import json import logs import os import re import requests import shutil log = logs.Log('downloader') class Imgur_Downloader(Imgur): def __init__(self, configuration, max_favorites): super().__init__(configuration) ...
10,319
9
400
e27b17ff88d64bd474bb9a68dcd187a5f5e4661b
383
py
Python
essentials/pandas/pandas_5.py
iomegak12/intel-training-usecase-1
0d1ab6f6076f46f7fbb290ceb41d6b851da1af3a
[ "MIT" ]
null
null
null
essentials/pandas/pandas_5.py
iomegak12/intel-training-usecase-1
0d1ab6f6076f46f7fbb290ceb41d6b851da1af3a
[ "MIT" ]
null
null
null
essentials/pandas/pandas_5.py
iomegak12/intel-training-usecase-1
0d1ab6f6076f46f7fbb290ceb41d6b851da1af3a
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np data = { 'Id': [1, 2, 3, 4, 5], 'Name': ['Syed', 'Shah', 'Sunil', 'Sherif', 'Sugata'], 'Score': [100, 200, 250, 350, 275] } df = pd.DataFrame( data, index=['Rank 1', 'Rank 2', 'Rank 3', 'Rank 4', 'Rank 5']) df["Locations"] = np.array( ['Bangalore', 'New York'...
22.529412
67
0.545692
import pandas as pd import numpy as np data = { 'Id': [1, 2, 3, 4, 5], 'Name': ['Syed', 'Shah', 'Sunil', 'Sherif', 'Sugata'], 'Score': [100, 200, 250, 350, 275] } df = pd.DataFrame( data, index=['Rank 1', 'Rank 2', 'Rank 3', 'Rank 4', 'Rank 5']) df["Locations"] = np.array( ['Bangalore', 'New York'...
0
0
0
9e9e9506c5db455cd9dc6e5c949669444b62df7b
6,949
py
Python
tests/testing_values.py
Gsvend20/P4-Grise_Projekt
28e558139dd0368db2e29de3c8aa3842bad9edef
[ "MIT" ]
2
2022-03-23T08:55:42.000Z
2022-03-23T09:06:04.000Z
tests/testing_values.py
Gsvend20/P4-Grise_Projekt
28e558139dd0368db2e29de3c8aa3842bad9edef
[ "MIT" ]
null
null
null
tests/testing_values.py
Gsvend20/P4-Grise_Projekt
28e558139dd0368db2e29de3c8aa3842bad9edef
[ "MIT" ]
1
2022-03-23T08:55:19.000Z
2022-03-23T08:55:19.000Z
import cv2 import numpy as np from Functions.Featurespace import find_annodir from Functions import imgproc_func as imf import glob # TODO: FIX FS thresholding, GR detection """ SÆT DIN PATH TIL DIT ONE DRIVE HER -> DOWNLOAD ANNOTATIONS MAPPEN FØRST """ # Path to folder containing the different classes path = r'C:\Us...
46.019868
154
0.603972
import cv2 import numpy as np from Functions.Featurespace import find_annodir from Functions import imgproc_func as imf import glob # TODO: FIX FS thresholding, GR detection """ SÆT DIN PATH TIL DIT ONE DRIVE HER -> DOWNLOAD ANNOTATIONS MAPPEN FØRST """ # Path to folder containing the different classes path = r'C:\Us...
0
0
0
3feb4ca7030fb3e2f124726a01e7b2e2e0dc3064
5,568
py
Python
survos2/frontend/plugins/plugins_components.py
DiamondLightSource/SuRVoS2
42bacfb6a5cc267f38ca1337e51a443eae1a9d2b
[ "MIT" ]
4
2017-10-10T14:47:16.000Z
2022-01-14T05:57:50.000Z
survos2/frontend/plugins/plugins_components.py
DiamondLightSource/SuRVoS2
42bacfb6a5cc267f38ca1337e51a443eae1a9d2b
[ "MIT" ]
1
2022-01-11T21:11:12.000Z
2022-01-12T08:22:34.000Z
survos2/frontend/plugins/plugins_components.py
DiamondLightSource/SuRVoS2
42bacfb6a5cc267f38ca1337e51a443eae1a9d2b
[ "MIT" ]
2
2018-03-06T06:31:29.000Z
2019-03-04T03:33:18.000Z
import numpy as np from loguru import logger from scipy import ndimage from skimage import img_as_ubyte, img_as_float from skimage import io from qtpy.QtWidgets import QRadioButton, QPushButton from qtpy import QtWidgets, QtCore, QtGui from survos2.frontend.components.base import * from survos2.frontend.control impo...
28.121212
86
0.616559
import numpy as np from loguru import logger from scipy import ndimage from skimage import img_as_ubyte, img_as_float from skimage import io from qtpy.QtWidgets import QRadioButton, QPushButton from qtpy import QtWidgets, QtCore, QtGui from survos2.frontend.components.base import * from survos2.frontend.control impo...
4,317
309
566
2308ebf34faedaeeb14af9f1f59d6581114c19a0
10,756
py
Python
CryoMEM/run.py
SNU-HPCS/CryoModel
07a3fbe3f3d44c7960b5aed562a90e204014eea0
[ "MIT" ]
2
2021-05-26T12:32:46.000Z
2021-12-15T13:10:37.000Z
CryoMEM/run.py
SNU-HPCS/CryoModel
07a3fbe3f3d44c7960b5aed562a90e204014eea0
[ "MIT" ]
1
2022-03-02T01:49:20.000Z
2022-03-18T10:37:59.000Z
CryoMEM/run.py
SNU-HPCS/CryoModel
07a3fbe3f3d44c7960b5aed562a90e204014eea0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.8 from argparse import ArgumentParser import os, pgen from cacti import cacti from cacti.cacti_interface_pb2 import CactiInput if __name__ == '__main__': main()
72.187919
239
0.783098
#!/usr/bin/env python3.8 from argparse import ArgumentParser import os, pgen from cacti import cacti from cacti.cacti_interface_pb2 import CactiInput def model_cache(cacti_config_file, capacity, pgen_output): cacti_input = CactiInput () cacti_input.config_file = os.path.abspath(cacti_config_file) cacti_in...
10,474
0
92
ef0e72237c1885c96dcd7cbcfb8813e6f24399d7
219
py
Python
algo/fizzbuzz.py
gsathya/dsalgo
61c89ec597ced3e69bfbb438fd856c8fc5f20aba
[ "MIT" ]
2
2017-02-25T04:05:29.000Z
2018-05-10T16:54:31.000Z
algo/fizzbuzz.py
gsathya/dsalgo
61c89ec597ced3e69bfbb438fd856c8fc5f20aba
[ "MIT" ]
null
null
null
algo/fizzbuzz.py
gsathya/dsalgo
61c89ec597ced3e69bfbb438fd856c8fc5f20aba
[ "MIT" ]
null
null
null
fizzbuzz()
16.846154
27
0.30137
def fizzbuzz(): for i in range(1, 101): s = "" if i % 3 == 0: s += "Fizz" if i % 5 == 0: s += "Buzz" if s == "": s = i print s fizzbuzz()
185
0
22
1e2311a60faaf10a98f1e9908e10657e12fcf455
2,261
py
Python
main/run.py
EverLookNeverSee/MFEWGANs
56e480432370bbb4fdc7723ee7c2306d4239c7fc
[ "MIT" ]
null
null
null
main/run.py
EverLookNeverSee/MFEWGANs
56e480432370bbb4fdc7723ee7c2306d4239c7fc
[ "MIT" ]
null
null
null
main/run.py
EverLookNeverSee/MFEWGANs
56e480432370bbb4fdc7723ee7c2306d4239c7fc
[ "MIT" ]
null
null
null
import torch from torch import nn, optim, ones, randn, zeros, cat from generator import Generator from discriminator import Discriminator from prep import train_loader, batch_size import matplotlib.pyplot as plt # Setting learning rate, number of epochs and loss function lr = 0.001 n_epochs = 300 loss_function = nn.B...
33.746269
81
0.709863
import torch from torch import nn, optim, ones, randn, zeros, cat from generator import Generator from discriminator import Discriminator from prep import train_loader, batch_size import matplotlib.pyplot as plt # Setting learning rate, number of epochs and loss function lr = 0.001 n_epochs = 300 loss_function = nn.B...
0
0
0
18ee4dedc3c8017c3845ee9f1b64b07f56693f60
1,871
py
Python
geolocation/entrypoint.py
summa-platform/summa-ui-stack
5c7875efb15b5bf23bc0175da39a8e680cf55c89
[ "MIT" ]
null
null
null
geolocation/entrypoint.py
summa-platform/summa-ui-stack
5c7875efb15b5bf23bc0175da39a8e680cf55c89
[ "MIT" ]
null
null
null
geolocation/entrypoint.py
summa-platform/summa-ui-stack
5c7875efb15b5bf23bc0175da39a8e680cf55c89
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os, sys, traceback import signal import asyncio from asyncio.subprocess import create_subprocess_exec, PIPE import aiohttp from service import load_config, run as service server_proc = None server_cmd = os.path.join(os.path.dirname(__file__), 'server.sh') server_name = 'twofishes' s...
28.784615
153
0.719936
#!/usr/bin/env python3 import os, sys, traceback import signal import asyncio from asyncio.subprocess import create_subprocess_exec, PIPE import aiohttp from service import load_config, run as service server_proc = None server_cmd = os.path.join(os.path.dirname(__file__), 'server.sh') server_name = 'twofishes' s...
681
0
46
74d2dbb5550d360a8187475b772c1c7a03264372
270
py
Python
lcd/I2C_LCD1602/test.py
ianhom/mpy-lib
a3a103840e52251b54d31b3e4a1afc85b9976718
[ "MIT" ]
1
2019-03-19T13:40:47.000Z
2019-03-19T13:40:47.000Z
lcd/I2C_LCD1602/test.py
ianhom/mpy-lib
a3a103840e52251b54d31b3e4a1afc85b9976718
[ "MIT" ]
null
null
null
lcd/I2C_LCD1602/test.py
ianhom/mpy-lib
a3a103840e52251b54d31b3e4a1afc85b9976718
[ "MIT" ]
1
2020-07-04T09:01:08.000Z
2020-07-04T09:01:08.000Z
''' I2C LCD1602 demo Author: shaoziyang Date: 2018.2 http://www.micropython.org.cn ''' from machine import I2C import time l = LCD1620(I2C(1)) l.puts("Hello microbit!") n = 0 while 1: l.puts(str(n), 0, 1) n = n + 1 time.sleep_ms(1000)
12.857143
33
0.592593
''' I2C LCD1602 demo Author: shaoziyang Date: 2018.2 http://www.micropython.org.cn ''' from machine import I2C import time l = LCD1620(I2C(1)) l.puts("Hello microbit!") n = 0 while 1: l.puts(str(n), 0, 1) n = n + 1 time.sleep_ms(1000)
0
0
0
7bc905097f5ce9d25b6d011a2b1daedcbaa2eb6c
800
py
Python
src/cli.py
eycjur/python_project_template
a083f7c3eb1b400b92a0d0a63f15d89c5bcacfd5
[ "MIT" ]
null
null
null
src/cli.py
eycjur/python_project_template
a083f7c3eb1b400b92a0d0a63f15d89c5bcacfd5
[ "MIT" ]
1
2022-02-14T17:05:17.000Z
2022-02-18T21:57:23.000Z
src/cli.py
eycjur/python_project_template
a083f7c3eb1b400b92a0d0a63f15d89c5bcacfd5
[ "MIT" ]
null
null
null
"""各種pythonファイルをコマンドラインから利用するためのCLIツール See Also: - `typer`_ .. _typer: https://qiita.com/iisaka51/items/18bde4dada0827fbe81e Example: ヘルプ >>> `python cli.py --help` サブコマンドのヘルプ >>> `python cli.py [command] --help` Attention: _は-で実行する """ from typing import Optional import typer from...
15.384615
76
0.64125
"""各種pythonファイルをコマンドラインから利用するためのCLIツール See Also: - `typer`_ .. _typer: https://qiita.com/iisaka51/items/18bde4dada0827fbe81e Example: ヘルプ >>> `python cli.py --help` サブコマンドのヘルプ >>> `python cli.py [command] --help` Attention: _は-で実行する """ from typing import Optional import typer from...
23
0
23
7f4aa1aba6fb6250fd280920aef36bc8c844c35b
881
py
Python
src/steps/get_pig_data.py
allanwright/media-classifier
a0da0799cc0bd6ef7360012c362f9fab273286c6
[ "MIT" ]
2
2019-08-16T00:49:27.000Z
2021-08-15T16:37:45.000Z
src/steps/get_pig_data.py
allanwright/media-classifier
a0da0799cc0bd6ef7360012c362f9fab273286c6
[ "MIT" ]
1
2020-02-19T10:17:56.000Z
2020-07-26T09:42:49.000Z
src/steps/get_pig_data.py
allanwright/media-classifier
a0da0799cc0bd6ef7360012c362f9fab273286c6
[ "MIT" ]
1
2019-06-27T10:57:07.000Z
2019-06-27T10:57:07.000Z
'''Defines a pipeline step which aquires data from the pig data source. ''' import os from src import datasets from src.step import Step class GetPigData(Step): '''Defines a pipeline step which aquires data from the pig data source. ''' def __init__(self): '''Initializes a new instance of the ...
24.472222
75
0.570942
'''Defines a pipeline step which aquires data from the pig data source. ''' import os from src import datasets from src.step import Step class GetPigData(Step): '''Defines a pipeline step which aquires data from the pig data source. ''' def __init__(self): '''Initializes a new instance of the ...
0
0
0
61b59bd6953b5882224ae4180a0662ab506b4493
8,338
py
Python
app/rqalpha/views.py
sddthree/HHHH
5d6b876ead92db09e91b262a7b9b3c8cf947b7a8
[ "MIT" ]
1
2020-06-29T04:52:30.000Z
2020-06-29T04:52:30.000Z
app/rqalpha/views.py
sddthree/HHHH
5d6b876ead92db09e91b262a7b9b3c8cf947b7a8
[ "MIT" ]
null
null
null
app/rqalpha/views.py
sddthree/HHHH
5d6b876ead92db09e91b262a7b9b3c8cf947b7a8
[ "MIT" ]
1
2020-06-29T04:52:31.000Z
2020-06-29T04:52:31.000Z
from flask import render_template, session, redirect, url_for, Flask, request, flash, jsonify from numpy.core.multiarray import ndarray from . import rqalpha import os from multiprocessing import Process import sys sys.path.insert(0, "Z:\Hello\Work\Data\QT") from rqalpha import run_code from .. import db from ..models...
39.330189
166
0.595107
from flask import render_template, session, redirect, url_for, Flask, request, flash, jsonify from numpy.core.multiarray import ndarray from . import rqalpha import os from multiprocessing import Process import sys sys.path.insert(0, "Z:\Hello\Work\Data\QT") from rqalpha import run_code from .. import db from ..models...
7,820
0
134
6b11159fe08c9faa679e52125037dd3d213c4984
4,169
py
Python
src/sprint_webserver/views/live.py
langrenn-sprint/sprint-webserver
065a96d102a6658e5422ea6a0be5abde4b6558e1
[ "Apache-2.0" ]
null
null
null
src/sprint_webserver/views/live.py
langrenn-sprint/sprint-webserver
065a96d102a6658e5422ea6a0be5abde4b6558e1
[ "Apache-2.0" ]
15
2021-01-11T19:42:39.000Z
2021-04-19T21:09:58.000Z
src/sprint_webserver/views/live.py
langrenn-sprint/sprint-webserver
065a96d102a6658e5422ea6a0be5abde4b6558e1
[ "Apache-2.0" ]
null
null
null
"""Resource module for live view.""" import logging from aiohttp import web import aiohttp_jinja2 from sprint_webserver.services import ( DeltakereService, InnstillingerService, KjoreplanService, KlasserService, ResultatHeatService, StartListeService, ) class Live(web.View): """Class rep...
32.570313
83
0.53562
"""Resource module for live view.""" import logging from aiohttp import web import aiohttp_jinja2 from sprint_webserver.services import ( DeltakereService, InnstillingerService, KjoreplanService, KlasserService, ResultatHeatService, StartListeService, ) class Live(web.View): """Class rep...
0
0
0
8835673acaaceac0726d62a70686959775168460
5,216
py
Python
scripts/search/DropNAS.py
zhengxiawu/XNAS
ea8f8ab31f67155482f5b9a9ad2a0b54c45f45d1
[ "MIT" ]
22
2020-07-01T02:12:01.000Z
2020-09-24T05:32:08.000Z
scripts/search/DropNAS.py
zhengxiawu/XNAS
ea8f8ab31f67155482f5b9a9ad2a0b54c45f45d1
[ "MIT" ]
null
null
null
scripts/search/DropNAS.py
zhengxiawu/XNAS
ea8f8ab31f67155482f5b9a9ad2a0b54c45f45d1
[ "MIT" ]
5
2020-07-09T06:53:18.000Z
2020-08-15T13:15:14.000Z
"""DropNAS searching""" from torch import device import torch.nn as nn import xnas.core.config as config import xnas.logger.logging as logging import xnas.logger.meter as meter from xnas.core.config import cfg from xnas.core.builder import * # DropNAS from xnas.algorithms.DropNAS import * from xnas.runner.trainer im...
38.637037
124
0.653758
"""DropNAS searching""" from torch import device import torch.nn as nn import xnas.core.config as config import xnas.logger.logging as logging import xnas.logger.meter as meter from xnas.core.config import cfg from xnas.core.builder import * # DropNAS from xnas.algorithms.DropNAS import * from xnas.runner.trainer im...
4,480
0
76
8aa680d96036fbe70c9149414c6bb52189390211
3,334
py
Python
vendor/ansible-module-openshift/library/openshift_policy.py
appuio/ansible-role-openshift-haproxy
f1f0752cbbc67b33a0e533328d3f0cd4ece4b03b
[ "Apache-2.0" ]
null
null
null
vendor/ansible-module-openshift/library/openshift_policy.py
appuio/ansible-role-openshift-haproxy
f1f0752cbbc67b33a0e533328d3f0cd4ece4b03b
[ "Apache-2.0" ]
null
null
null
vendor/ansible-module-openshift/library/openshift_policy.py
appuio/ansible-role-openshift-haproxy
f1f0752cbbc67b33a0e533328d3f0cd4ece4b03b
[ "Apache-2.0" ]
1
2018-09-01T16:26:23.000Z
2018-09-01T16:26:23.000Z
#!/usr/bin/python import json from ansible.module_utils.basic import * if __name__ == "__main__": main()
31.752381
151
0.637672
#!/usr/bin/python import json class PolicyModule: def __init__(self, module): self.module = module self.changed = False self.msg = [] for key in module.params: setattr(self, key, module.params[key]) def update(self): if self.cluster_roles: (rc, stdout, stderr) = self.module.ru...
3,074
-2
146
e91cfd35f65fbc83a61bfdd147a857bae1e095df
960
py
Python
LeetCode/weekly-contest-153-2019.10.18/makeArrayIncreasing_1187.py
Max-PJB/python-learning2
e8b05bef1574ee9abf8c90497e94ef20a7f4e3bd
[ "MIT" ]
null
null
null
LeetCode/weekly-contest-153-2019.10.18/makeArrayIncreasing_1187.py
Max-PJB/python-learning2
e8b05bef1574ee9abf8c90497e94ef20a7f4e3bd
[ "MIT" ]
null
null
null
LeetCode/weekly-contest-153-2019.10.18/makeArrayIncreasing_1187.py
Max-PJB/python-learning2
e8b05bef1574ee9abf8c90497e94ef20a7f4e3bd
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ ------------------------------------------------- @ Author : pengj @ date : 2019/10/22 11:00 @ IDE : PyCharm @ GitHub : https://github.com/JackyPJB @ Contact : pengjianbiao@hotmail.com ---------------...
24.615385
134
0.486458
#!/usr/bin/env python # -*- coding: utf-8 -*- """ ------------------------------------------------- @ Author : pengj @ date : 2019/10/22 11:00 @ IDE : PyCharm @ GitHub : https://github.com/JackyPJB @ Contact : pengjianbiao@hotmail.com ---------------...
280
-6
48
ab7cb840d2ccde935078d73cd40c92201d21147f
4,267
py
Python
Python/DLL.py
AlexandroM1234/DataStructures-Algorithms
1a8dd1be69928266da3f50d1c86ad7be5980e205
[ "MIT" ]
null
null
null
Python/DLL.py
AlexandroM1234/DataStructures-Algorithms
1a8dd1be69928266da3f50d1c86ad7be5980e205
[ "MIT" ]
null
null
null
Python/DLL.py
AlexandroM1234/DataStructures-Algorithms
1a8dd1be69928266da3f50d1c86ad7be5980e205
[ "MIT" ]
null
null
null
class DoublyLinkedList: """ Time Complexity: Insertion = O(1) Removal = O(1) Searching = O(N) Access = O(N) Most of the logic is the same as the SLL except dealing with the extra prev point """ def push(self,val): """ Adds a new Node at the end...
24.66474
85
0.483947
class Node: def __init__(self,val): self.val = val self.next = None class DoublyLinkedList: """ Time Complexity: Insertion = O(1) Removal = O(1) Searching = O(N) Access = O(N) Most of the logic is the same as the SLL except dealing with the extra prev po...
122
-10
74
814c8136025e552852402cb37f5ee2ee78e8dbae
385
py
Python
tests/test_tushare_api.py
xuan-wang/funcat
c4b184942564ab8a4092acb4907ab069fc44683c
[ "Apache-2.0" ]
18
2019-05-30T01:00:38.000Z
2022-01-03T15:46:25.000Z
tests/test_tushare_api.py
xuan-wang/funcat
c4b184942564ab8a4092acb4907ab069fc44683c
[ "Apache-2.0" ]
5
2019-05-28T15:01:18.000Z
2021-11-24T14:08:39.000Z
tests/test_tushare_api.py
xuan-wang/funcat
c4b184942564ab8a4092acb4907ab069fc44683c
[ "Apache-2.0" ]
8
2020-10-30T10:03:02.000Z
2021-12-04T07:20:36.000Z
import tushare as ts import time start = time.time() df = ts.pro_bar(ts_code='300851.SZ', adj='qfq', start_date='20200714', end_date='20200716') t0 = time.time() - start print(t0) print(df) arr = df.to_records() start = time.time() df = ts.get_k_data("603488", start='2020-07-14', end='2020-07-16', index=False, ktype=...
22.647059
104
0.677922
import tushare as ts import time start = time.time() df = ts.pro_bar(ts_code='300851.SZ', adj='qfq', start_date='20200714', end_date='20200716') t0 = time.time() - start print(t0) print(df) arr = df.to_records() start = time.time() df = ts.get_k_data("603488", start='2020-07-14', end='2020-07-16', index=False, ktype=...
0
0
0