hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
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
130
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
130
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.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
078c266bfb0d03456b4eacc54cbb665b4eebd7ca
232
py
Python
homeassistant/components/advantage_air/const.py
erogleva/core
994ae09f69afe772150a698953c0d7386a745de2
[ "Apache-2.0" ]
1
2020-12-17T19:05:31.000Z
2020-12-17T19:05:31.000Z
homeassistant/components/advantage_air/const.py
erogleva/core
994ae09f69afe772150a698953c0d7386a745de2
[ "Apache-2.0" ]
56
2020-08-03T07:30:54.000Z
2022-03-31T06:02:04.000Z
homeassistant/components/advantage_air/const.py
erogleva/core
994ae09f69afe772150a698953c0d7386a745de2
[ "Apache-2.0" ]
1
2021-04-30T01:57:13.000Z
2021-04-30T01:57:13.000Z
"""Constants used by Advantage Air integration.""" DOMAIN = "advantage_air" ADVANTAGE_AIR_RETRY = 5 ADVANTAGE_AIR_STATE_OPEN = "open" ADVANTAGE_AIR_STATE_CLOSE = "close" ADVANTAGE_AIR_STATE_ON = "on" ADVANTAGE_AIR_STATE_OFF = "off"
29
50
0.797414
"""Constants used by Advantage Air integration.""" DOMAIN = "advantage_air" ADVANTAGE_AIR_RETRY = 5 ADVANTAGE_AIR_STATE_OPEN = "open" ADVANTAGE_AIR_STATE_CLOSE = "close" ADVANTAGE_AIR_STATE_ON = "on" ADVANTAGE_AIR_STATE_OFF = "off"
0
0
0
0
0
0
0
0
0
0f9c09f8348b4f07928bc6ec571811ec5e2db857
172
py
Python
03 Bit Manipulation/3.7 Longest consecutive one.py
MrNevil/GeeksForGeeks-DSA-2
cb53912a2bfea5e04ce1b2c10e103a61ae1d903b
[ "MIT" ]
1
2021-04-03T06:23:42.000Z
2021-04-03T06:23:42.000Z
03 Bit Manipulation/3.7 Longest consecutive one.py
MrNevil/GeeksForGeeks-DSA-2
cb53912a2bfea5e04ce1b2c10e103a61ae1d903b
[ "MIT" ]
null
null
null
03 Bit Manipulation/3.7 Longest consecutive one.py
MrNevil/GeeksForGeeks-DSA-2
cb53912a2bfea5e04ce1b2c10e103a61ae1d903b
[ "MIT" ]
2
2021-03-08T21:13:22.000Z
2021-06-16T12:32:05.000Z
print(maxConsecutiveOnes(14)) # Output = 3 as binary(14) = 1110
19.111111
65
0.552326
def maxConsecutiveOnes(x): cnt = 0 while x: x = x&(x>>1) cnt += 1 return cnt print(maxConsecutiveOnes(14)) # Output = 3 as binary(14) = 1110
0
0
0
0
0
83
0
0
22
ea2b01aea886d2f37de71471f383795fb6766619
1,888
py
Python
WeatherDash/Forecast_IO_py/forecastiopy/FIOMinutely.py
Rcarballo2222/ENGI-301
341f7e76ec842e1e1f449b2206633150abab1b31
[ "MIT" ]
null
null
null
WeatherDash/Forecast_IO_py/forecastiopy/FIOMinutely.py
Rcarballo2222/ENGI-301
341f7e76ec842e1e1f449b2206633150abab1b31
[ "MIT" ]
null
null
null
WeatherDash/Forecast_IO_py/forecastiopy/FIOMinutely.py
Rcarballo2222/ENGI-301
341f7e76ec842e1e1f449b2206633150abab1b31
[ "MIT" ]
1
2019-04-17T19:27:56.000Z
2019-04-17T19:27:56.000Z
# -*- coding: utf-8 -*- """ This module recieves an ForecastIO object and holds the minutely weather conditions. It has one class for this purpose. """
33.122807
81
0.597987
# -*- coding: utf-8 -*- """ This module recieves an ForecastIO object and holds the minutely weather conditions. It has one class for this purpose. """ class FIOMinutely(object): """ This class recieves an ForecastIO object and holds the minutely weather conditions. It has one class for this purpose. "...
0
0
0
1,713
0
0
0
0
23
03bd722265b3aa46494aea9bb9451e7c637cfa8d
2,100
py
Python
backup.py
lucapericlp/kohonen
c6e84cc95b0468e49d258d3e40843b8090dcd3a0
[ "MIT" ]
1
2020-04-07T06:59:41.000Z
2020-04-07T06:59:41.000Z
backup.py
lucapericlp/kohonen
c6e84cc95b0468e49d258d3e40843b8090dcd3a0
[ "MIT" ]
null
null
null
backup.py
lucapericlp/kohonen
c6e84cc95b0468e49d258d3e40843b8090dcd3a0
[ "MIT" ]
null
null
null
if __name__ == '__main__': main() # if 4 neurons are used then one is left unused as a cluster i.e it is extra # if 3 neurons all are used
30.882353
99
0.74
import math import random import pandas as pd from Neuron import Neuron from Neuron import getNormalised from Visualiser import Visualiser class Network(): def __init__(self,numNeurons): self.neurons = [] for i in range(numNeurons): self.neurons.append(Neuron(weights=[random.uniform(0,1), random.un...
0
0
0
1,520
0
253
0
7
178
3b2595ebe0280acb97edd20ead3f07705eb3012c
345
py
Python
genomicode/timer.py
jefftc/changlab
11da8c415afefcba0b0216238387c75aeb3a56ac
[ "MIT" ]
9
2017-01-13T02:38:41.000Z
2021-04-08T00:44:39.000Z
genomicode/timer.py
jefftc/changlab
11da8c415afefcba0b0216238387c75aeb3a56ac
[ "MIT" ]
null
null
null
genomicode/timer.py
jefftc/changlab
11da8c415afefcba0b0216238387c75aeb3a56ac
[ "MIT" ]
4
2017-01-05T16:25:25.000Z
2019-12-12T20:07:38.000Z
""" Functions: wait """ TIMERS = {} # name -> time
15
56
0.556522
""" Functions: wait """ TIMERS = {} # name -> time def wait(delay, name=None): global TIMERS import time if delay is None: delay = 2 if name is None: name = "default" how_long = TIMERS.get(name, 0) + delay - time.time() if how_long > 0: time.sleep(how_long) TI...
0
0
0
0
0
266
0
0
23
d3000724ed087c837edb4323a518186e089d5ac4
1,117
py
Python
scripts/practice/FB-reRun/QueueUsingLinkedList.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
null
null
null
scripts/practice/FB-reRun/QueueUsingLinkedList.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
8
2020-09-05T16:04:31.000Z
2022-02-27T09:57:51.000Z
scripts/practice/FB-reRun/QueueUsingLinkedList.py
bhimeshchauhan/competitive_programming
e0777bb0c425ffa03d8173a83e50ca55c4a3fcf5
[ "MIT" ]
null
null
null
""" Queue Using Linked List """ # Python3 program to demonstrate linked list # based implementation of queue # A linked list (LL) node # to store a queue entry # A class to represent a queue # The queue, front stores the front node # of LL and rear stores the last node of LL # Driver Code if __name__== '__main__...
17.184615
44
0.664279
""" Queue Using Linked List """ # Python3 program to demonstrate linked list # based implementation of queue # A linked list (LL) node # to store a queue entry class Node: def __init__(self, data): self.data = data self.next = None # A class to represent a queue # The queue, front stores the front node # o...
0
0
0
537
0
0
0
0
44
2a3e82a35acbab969c1df2af10edbfb6bd0c9e8f
4,791
py
Python
python_modules/libraries/dagster-pandas/dagster_pandas/data_frame.py
pseudoPixels/dagster
ac78bdbec54754d35f51d706fc5b0bacfe49f2bf
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-pandas/dagster_pandas/data_frame.py
pseudoPixels/dagster
ac78bdbec54754d35f51d706fc5b0bacfe49f2bf
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-pandas/dagster_pandas/data_frame.py
pseudoPixels/dagster
ac78bdbec54754d35f51d706fc5b0bacfe49f2bf
[ "Apache-2.0" ]
null
null
null
import pandas as pd from dagster import (as_dagster_type) DataFrame = as_dagster_type( pd.DataFrame, name='PandasDataFrame', description='''Two-dimensional size-mutable, potentially heterogeneous tabular data structure with labeled axes (rows and columns). See http://pandas.pydata.org/''', ...
33.978723
98
0.675433
import pandas as pd from dagster_pandas.constraints import ConstraintViolationException from dagster_pandas.validation import validate_collection_schema from dagster import ( DagsterInvariantViolationError, EventMetadataEntry, Field, Materialization, Path, String, TypeCheck, as_dagster_...
0
1,969
0
0
0
1,785
0
373
203
320c82319d7caa371edf71cad37b302372b728d6
321
py
Python
tools/boneck/boneck.py
6vasia/ii-base
a36ea24040c24f5c3159b022670d49ffd68de638
[ "BSD-3-Clause" ]
1
2021-07-28T21:34:45.000Z
2021-07-28T21:34:45.000Z
tools/boneck/boneck.py
6vasia/ii-base
a36ea24040c24f5c3159b022670d49ffd68de638
[ "BSD-3-Clause" ]
null
null
null
tools/boneck/boneck.py
6vasia/ii-base
a36ea24040c24f5c3159b022670d49ffd68de638
[ "BSD-3-Clause" ]
null
null
null
cfg = open('config.user').read().splitlines() bonecho = open('bone.echo').read().strip() el = open('echo/%s' % bonecho).read().splitlines() lastbone = open('msg/%s' % el[-1]).read().splitlines()[8:] if lastbone: open('bone.echo','w').write(lastbone[0]) open('config.cfg','w').write('\n'.join(cfg+lastbone+['']))...
35.666667
62
0.613707
cfg = open('config.user').read().splitlines() bonecho = open('bone.echo').read().strip() el = open('echo/%s' % bonecho).read().splitlines() lastbone = open('msg/%s' % el[-1]).read().splitlines()[8:] if lastbone: open('bone.echo','w').write(lastbone[0]) open('config.cfg','w').write('\n'.join(cfg+lastbone+['']))...
0
0
0
0
0
0
0
0
0
f1343917f3d52976f0620a8993ab397c596d873e
321
py
Python
dialogos/quotes/urls.py
bertucho/epic-movie-quotes-quiz
09e4ec58a441ab74c1ce6e0fde4e71b08a4d7250
[ "MIT" ]
null
null
null
dialogos/quotes/urls.py
bertucho/epic-movie-quotes-quiz
09e4ec58a441ab74c1ce6e0fde4e71b08a4d7250
[ "MIT" ]
null
null
null
dialogos/quotes/urls.py
bertucho/epic-movie-quotes-quiz
09e4ec58a441ab74c1ce6e0fde4e71b08a4d7250
[ "MIT" ]
null
null
null
from django.conf.urls import patterns, url urlpatterns = patterns('', url(r'^sdf$', index, name='index'), url(r'^$', GameView.as_view(), name='game'), url(r'^post$', AnswerView.as_view(), name='answer'), url(r'^edit$', QuoteUpdate.as_view(), name='update'), )
29.181818
55
0.65109
from django.conf.urls import patterns, url from quotes import views from views import * urlpatterns = patterns('', url(r'^sdf$', index, name='index'), url(r'^$', GameView.as_view(), name='game'), url(r'^post$', AnswerView.as_view(), name='answer'), url(r'^edit$', QuoteUpdate.as_view(), name='update'), ) ...
0
0
0
0
0
0
0
1
46
865a4f01f0d87df969a23aa8aff7cef597e09010
1,315
py
Python
readthedocs/payments/utils.py
yarons/readthedocs.org
05c99a0adc222a1d48654d305b492ec142c3026b
[ "MIT" ]
2,092
2019-06-29T07:47:30.000Z
2022-03-31T14:54:59.000Z
readthedocs/payments/utils.py
yarons/readthedocs.org
05c99a0adc222a1d48654d305b492ec142c3026b
[ "MIT" ]
2,389
2019-06-29T04:22:55.000Z
2022-03-31T22:57:49.000Z
readthedocs/payments/utils.py
yarons/readthedocs.org
05c99a0adc222a1d48654d305b492ec142c3026b
[ "MIT" ]
1,185
2019-06-29T21:49:31.000Z
2022-03-30T09:57:15.000Z
# -*- coding: utf-8 -*- """ Payment utility functions. These are mostly one-off functions. Define the bulk of Stripe operations on :py:class:`readthedocs.payments.forms.StripeResourceMixin`. """ import structlog import stripe from django.conf import settings stripe.api_key = settings.STRIPE_SECRET log = structlo...
28.586957
86
0.696578
# -*- coding: utf-8 -*- """ Payment utility functions. These are mostly one-off functions. Define the bulk of Stripe operations on :py:class:`readthedocs.payments.forms.StripeResourceMixin`. """ import structlog import stripe from django.conf import settings stripe.api_key = settings.STRIPE_SECRET log = structlo...
0
0
0
0
0
0
0
0
0
0f5142437d1335663663b0990f48013726117758
13,770
py
Python
firewall/__init__.py
dechainers/dechainy_plugin_firewall
53327f60880bdaf8a1d5ffe85662c46f7a8b44d4
[ "Apache-2.0" ]
null
null
null
firewall/__init__.py
dechainers/dechainy_plugin_firewall
53327f60880bdaf8a1d5ffe85662c46f7a8b44d4
[ "Apache-2.0" ]
null
null
null
firewall/__init__.py
dechainers/dechainy_plugin_firewall
53327f60880bdaf8a1d5ffe85662c46f7a8b44d4
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 DeChainers # # 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, so...
40.739645
122
0.59557
# Copyright 2022 DeChainers # # 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, so...
0
12,777
0
0
0
0
0
195
223
3427cff3c40bf62d3968f67131ef4ac40d2b5e58
1,174
py
Python
examples/rules/PropertiesTagsRequired.py
obobrova/cfn-python-lint
42c0cd89577a39e903e5ef8a337926cc7ff6822c
[ "MIT-0" ]
null
null
null
examples/rules/PropertiesTagsRequired.py
obobrova/cfn-python-lint
42c0cd89577a39e903e5ef8a337926cc7ff6822c
[ "MIT-0" ]
1
2020-04-15T16:36:10.000Z
2020-04-15T16:36:10.000Z
examples/rules/PropertiesTagsRequired.py
obobrova/cfn-python-lint
42c0cd89577a39e903e5ef8a337926cc7ff6822c
[ "MIT-0" ]
1
2020-01-05T01:05:55.000Z
2020-01-05T01:05:55.000Z
""" Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: MIT-0 """
32.611111
92
0.584327
""" Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: MIT-0 """ from cfnlint.rules import CloudFormationLintRule from cfnlint.rules import RuleMatch class PropertiesTagsRequired(CloudFormationLintRule): """Check if Tags have required keys""" id = 'E9000' shor...
0
0
0
954
0
0
0
41
67
bc7a93bfaac1d5f34fa4f91b691e774c1559b5da
5,227
py
Python
neko/modules/mongodb/warns_db.py
itzrexmodz/Carla-1
c775063a0ef0d144649ace6f428c37e6e8d2c092
[ "MIT" ]
4
2021-12-26T11:42:45.000Z
2021-12-27T05:18:17.000Z
neko/modules/mongodb/warns_db.py
itzrexmodz/Carla-1
c775063a0ef0d144649ace6f428c37e6e8d2c092
[ "MIT" ]
null
null
null
neko/modules/mongodb/warns_db.py
itzrexmodz/Carla-1
c775063a0ef0d144649ace6f428c37e6e8d2c092
[ "MIT" ]
7
2021-12-26T14:49:37.000Z
2022-01-31T09:32:07.000Z
from .. import db, dt_delta warns = db.warn_s settings = db.warn_settings
25.748768
88
0.521523
import datetime from .. import db, dt_delta warns = db.warn_s settings = db.warn_settings def warn_user(user_id, chat_id, reason=""): _warn = warns.find_one({"chat_id": chat_id, "user_id": user_id}) if _warn: reasons = _warn.get("reasons") or [] reasons.append(reason) num_warns = _wa...
0
0
0
0
0
4,847
0
-6
298
b080b624d3d62e4c09ba172f0c46e7190732c3cd
345
py
Python
CondTools/L1Trigger/python/L1UniformTags_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
CondTools/L1Trigger/python/L1UniformTags_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
CondTools/L1Trigger/python/L1UniformTags_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
# print i, initL1UniformTags.tagBaseVec[ i ]
34.5
61
0.727536
def initL1UniformTags( tagBase = "IDEAL" ): import FWCore.ParameterSet.Config as cms from CondTools.L1Trigger.L1CondEnum_cfi import L1CondEnum initL1UniformTags.tagBaseVec = [] for i in range( 0, L1CondEnum.NumL1Cond ): initL1UniformTags.tagBaseVec.append( tagBase ) # print i, initL1Uni...
0
0
0
0
0
271
0
0
22
672442e7754fca2ff308af5c61785d64cbe504b0
1,398
py
Python
examples/example4.py
ZimmermanGroup/conformer-rl
beb98cbee6ba6efba686d7c6eebbf33fd737f279
[ "MIT" ]
9
2021-09-03T18:46:46.000Z
2022-03-22T05:47:20.000Z
examples/example4.py
ZimmermanGroup/conformer-rl
beb98cbee6ba6efba686d7c6eebbf33fd737f279
[ "MIT" ]
4
2021-07-15T03:57:26.000Z
2021-08-03T06:27:28.000Z
examples/example4.py
ZimmermanGroup/conformer-rl
beb98cbee6ba6efba686d7c6eebbf33fd737f279
[ "MIT" ]
1
2022-03-17T01:59:36.000Z
2022-03-17T01:59:36.000Z
import numpy as np import torch from conformer_rl import utils from conformer_rl.agents import A2CAgent from conformer_rl.config import Config from conformer_rl.environments import Task from conformer_rl.models import RTGN from conformer_rl.molecule_generation import test_alkane device = torch.device("cuda:0" if tor...
33.285714
170
0.752504
import numpy as np import torch from conformer_rl import utils from conformer_rl.agents import A2CAgent from conformer_rl.config import Config from conformer_rl.environments import Task from conformer_rl.models import RTGN from conformer_rl.molecule_generation import test_alkane device = torch.device("cuda:0" if tor...
0
0
0
0
0
0
0
0
0
525a8b00826a337a4c293642d7c027ab056d2b82
2,259
py
Python
nlp/router.py
kirollosHossam/MachineLearningTask
3780513af04cf7bb97432436b4714c32d1c271e6
[ "MIT" ]
null
null
null
nlp/router.py
kirollosHossam/MachineLearningTask
3780513af04cf7bb97432436b4714c32d1c271e6
[ "MIT" ]
null
null
null
nlp/router.py
kirollosHossam/MachineLearningTask
3780513af04cf7bb97432436b4714c32d1c271e6
[ "MIT" ]
null
null
null
from __future__ import annotations from fastapi import FastAPI from nlp.nlp import Trainer app = FastAPI() trainer = Trainer() #BaseModel is used as data validator when using fast api it cares all about exception handilng and validate #your incoming json to be what you want to be.
30.527027
107
0.715803
from __future__ import annotations from typing import Dict, List, Optional, Union from fastapi import FastAPI, HTTPException from pydantic import BaseModel from nlp.nlp import Trainer app = FastAPI() trainer = Trainer() #BaseModel is used as data validator when using fast api it cares all about exception handilng and ...
0
1,389
0
240
0
0
0
49
297
5e0c029a0d28d903e75c0e982a55151bc9d0cc84
720
py
Python
piecrust/__init__.py
ludovicchabant/PieCrust2
89b2bf268bfdaae24ff6cf6d8c29c0b1239be739
[ "Apache-2.0" ]
43
2015-04-24T05:30:04.000Z
2022-02-03T17:47:35.000Z
piecrust/__init__.py
ludovicchabant/PieCrust2
89b2bf268bfdaae24ff6cf6d8c29c0b1239be739
[ "Apache-2.0" ]
54
2015-01-03T01:58:44.000Z
2021-05-06T21:56:26.000Z
piecrust/__init__.py
ludovicchabant/PieCrust2
89b2bf268bfdaae24ff6cf6d8c29c0b1239be739
[ "Apache-2.0" ]
8
2015-05-10T01:50:46.000Z
2016-12-26T20:53:15.000Z
CACHE_DIR = '_cache' ASSETS_DIR = 'assets' TEMPLATES_DIR = 'templates' THEME_DIR = 'theme' THEMES_DIR = 'themes' PLUGINS_DIR = 'plugins' CONFIG_PATH = 'config.yml' THEME_CONFIG_PATH = 'theme_config.yml' THEME_INFO_PATH = 'theme_info.yml' ASSET_DIR_SUFFIX = '-assets' DEFAULT_FORMAT = 'markdown' DEFAULT_TEMPLATE_ENGIN...
22.5
68
0.754167
CACHE_DIR = '_cache' ASSETS_DIR = 'assets' TEMPLATES_DIR = 'templates' THEME_DIR = 'theme' THEMES_DIR = 'themes' PLUGINS_DIR = 'plugins' CONFIG_PATH = 'config.yml' THEME_CONFIG_PATH = 'theme_config.yml' THEME_INFO_PATH = 'theme_info.yml' ASSET_DIR_SUFFIX = '-assets' DEFAULT_FORMAT = 'markdown' DEFAULT_TEMPLATE_ENGIN...
0
0
0
0
0
0
0
0
0
15018b8b4e7500f24e9cb9d0490678a32711cf09
23,199
py
Python
kopf/reactor/handling.py
damc-dev/kopf
7c344fc682759bbf0647da60933021a75b3862d3
[ "MIT" ]
null
null
null
kopf/reactor/handling.py
damc-dev/kopf
7c344fc682759bbf0647da60933021a75b3862d3
[ "MIT" ]
null
null
null
kopf/reactor/handling.py
damc-dev/kopf
7c344fc682759bbf0647da60933021a75b3862d3
[ "MIT" ]
null
null
null
""" Conversion of low-level events to high-level causes, and handling them. These functions are invoked from the queueing module `kopf.reactor.queueing`, which are the actual event loop of the operator process. The conversion of the low-level events to the high-level causes is done by checking the object's state and ...
44.357553
116
0.687357
""" Conversion of low-level events to high-level causes, and handling them. These functions are invoked from the queueing module `kopf.reactor.queueing`, which are the actual event loop of the operator process. The conversion of the low-level events to the high-level causes is done by checking the object's state and ...
0
0
20,232
528
0
0
0
186
606
2bb069623fadcbb035f2202aa16c63ec3c42a1ed
448
py
Python
snipy/scope_factory.py
dade-u/snipy
408520867179f99b3158b57520e2619f3fecd69b
[ "MIT" ]
1
2017-08-09T09:29:22.000Z
2017-08-09T09:29:22.000Z
snipy/scope_factory.py
dade-u/snipy
408520867179f99b3158b57520e2619f3fecd69b
[ "MIT" ]
null
null
null
snipy/scope_factory.py
dade-u/snipy
408520867179f99b3158b57520e2619f3fecd69b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # from snipy.odict import odict _stack = [None]
14.933333
37
0.631696
# -*- coding: utf-8 -*- from contextlib import contextmanager # from snipy.odict import odict _stack = [None] class Scope(object): def __init__(self, name): self.name = name @contextmanager def vscope(name): # get current scope or new scope # append hierachical information sc = Scope(name)...
0
193
0
54
0
17
0
16
91
10334a7fe4170894486c6af95188eedeca86ef92
55
py
Python
listener/normal/custom/__init__.py
andymckay/arecibo
eb6787ea0a276047ef5add2df67a4dd051e5c961
[ "Apache-2.0" ]
6
2016-01-26T04:47:52.000Z
2022-01-24T19:55:04.000Z
listener/normal/custom/__init__.py
andymckay/arecibo
eb6787ea0a276047ef5add2df67a4dd051e5c961
[ "Apache-2.0" ]
6
2017-02-12T05:11:25.000Z
2017-02-12T05:12:15.000Z
listener/normal/custom/__init__.py
andymckay/arecibo
eb6787ea0a276047ef5add2df67a4dd051e5c961
[ "Apache-2.0" ]
2
2015-12-09T22:37:58.000Z
2021-09-09T17:04:33.000Z
try: except ImportError: pass
11
20
0.709091
try: import listeners except ImportError: pass
0
0
0
0
0
0
0
-5
26
bb668dcb39e4acf30a4628fb7b8d11525437ea6c
1,212
py
Python
setup.py
philip-hash/MTN
ce9b3bf585ceb8342261313ab527ffbcdf34c0b5
[ "MIT" ]
null
null
null
setup.py
philip-hash/MTN
ce9b3bf585ceb8342261313ab527ffbcdf34c0b5
[ "MIT" ]
null
null
null
setup.py
philip-hash/MTN
ce9b3bf585ceb8342261313ab527ffbcdf34c0b5
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages from pathlib import Path this_directory = Path(__file__).parent long_description = (this_directory / "README.md").read_text() VERSION = '0.0.6' DESCRIPTION = 'Library used to Normalize numerical time-series data' LONG_DESCRIPTION = 'A package that allows to efficien...
37.875
191
0.688944
from setuptools import setup, find_packages, Extension from pathlib import Path this_directory = Path(__file__).parent long_description = (this_directory / "README.md").read_text() VERSION = '0.0.6' DESCRIPTION = 'Library used to Normalize numerical time-series data' LONG_DESCRIPTION = 'A package that allows ...
0
0
0
0
0
0
0
11
0
ed4d6ecf028e692369dd51a8ba6206a33a31e1bf
536
py
Python
app/grandchallenge/hanging_protocols/urls.py
comic/comic-django
4f534fae2c7d2102e94991667398aef12394e32e
[ "Apache-2.0" ]
7
2016-11-05T07:16:30.000Z
2017-11-23T03:38:03.000Z
app/grandchallenge/hanging_protocols/urls.py
comic/comic-django
4f534fae2c7d2102e94991667398aef12394e32e
[ "Apache-2.0" ]
113
2015-05-26T09:27:59.000Z
2018-03-21T10:45:56.000Z
app/grandchallenge/hanging_protocols/urls.py
comic/comic-django
4f534fae2c7d2102e94991667398aef12394e32e
[ "Apache-2.0" ]
7
2015-07-16T20:11:22.000Z
2017-06-06T02:41:24.000Z
from django.urls import path from grandchallenge.hanging_protocols.views import (HangingProtocolCreate, HangingProtocolDetail, HangingProtocolList, HangingProtocolUpdate) app_name = "hanging-protocols" urlpatterns = [ path("", HangingProtocolList.as_view(), name="list"), path("create/", HangingProtoc...
29.777778
76
0.699627
from django.urls import path from grandchallenge.hanging_protocols.views import ( HangingProtocolCreate, HangingProtocolDetail, HangingProtocolList, HangingProtocolUpdate, ) app_name = "hanging-protocols" urlpatterns = [ path("", HangingProtocolList.as_view(), name="list"), path(...
0
0
0
0
0
0
0
24
0
4850fded809f5c4c03a4fe3d475ebddb547c8910
12,026
py
Python
train.py
taowenyin/PatchNetVLAD
b0f63c8de7677bc27c8fa7760c1bdfb89bc0cfec
[ "MIT" ]
1
2021-08-10T02:24:00.000Z
2021-08-10T02:24:00.000Z
train.py
taowenyin/PatchNetVLAD
b0f63c8de7677bc27c8fa7760c1bdfb89bc0cfec
[ "MIT" ]
null
null
null
train.py
taowenyin/PatchNetVLAD
b0f63c8de7677bc27c8fa7760c1bdfb89bc0cfec
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' MIT License Copyright (c) 2021 Stephen Hausler, Sourav Garg, Ming Xu, Michael Milford and Tobias Fischer 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 restric...
45.041199
142
0.651339
#!/usr/bin/env python ''' MIT License Copyright (c) 2021 Stephen Hausler, Sourav Garg, Ming Xu, Michael Milford and Tobias Fischer 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 restric...
12
0
0
0
0
0
0
0
0
428ecb59ce2f80850126f403f67d8d5fd1d223cb
133
py
Python
output/models/sun_data/attr_decl/ad_name/ad_name00104m/ad_name00104m5_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/sun_data/attr_decl/ad_name/ad_name00104m/ad_name00104m5_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/sun_data/attr_decl/ad_name/ad_name00104m/ad_name00104m5_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.sun_data.attr_decl.ad_name.ad_name00104m.ad_name00104m5_xsd.ad_name00104m5 import Root __all__ = [ "Root", ]
22.166667
105
0.796992
from output.models.sun_data.attr_decl.ad_name.ad_name00104m.ad_name00104m5_xsd.ad_name00104m5 import Root __all__ = [ "Root", ]
0
0
0
0
0
0
0
0
0
365e5102b4767a425fd536cf993ba62a742ed401
600
py
Python
bdshare/__init__.py
rochi88/dshare
9dc46baff822be2ae7a7541fa10535a0299fbb5e
[ "MIT" ]
10
2020-04-09T06:34:48.000Z
2022-02-07T09:39:22.000Z
bdshare/__init__.py
rochi88/dshare
9dc46baff822be2ae7a7541fa10535a0299fbb5e
[ "MIT" ]
null
null
null
bdshare/__init__.py
rochi88/dshare
9dc46baff822be2ae7a7541fa10535a0299fbb5e
[ "MIT" ]
5
2020-08-06T06:54:04.000Z
2021-09-06T12:28:23.000Z
__author__ = 'Raisul Islam' """ for trading data """ """ for trading news """ """ for market data """
27.272727
113
0.72
from ._version import __version__ __author__ = 'Raisul Islam' """ for trading data """ from bdshare.stock.trading import (get_current_trade_data, get_dsex_data, get_current_trading_code, get_hist_data, get_basic_hist_data, get_close_price_data, ge...
0
0
0
0
0
0
0
405
88
c906a64412a8e14097c66c2644b8082b4f66a812
8,800
py
Python
tests/io/test_io_base.py
culebron/erde
9bbaaa1df46629a182c355413a120aa33dc6b377
[ "BSD-3-Clause" ]
16
2021-08-24T05:59:04.000Z
2021-11-16T12:30:34.000Z
tests/io/test_io_base.py
culebron/erde
9bbaaa1df46629a182c355413a120aa33dc6b377
[ "BSD-3-Clause" ]
null
null
null
tests/io/test_io_base.py
culebron/erde
9bbaaa1df46629a182c355413a120aa33dc6b377
[ "BSD-3-Clause" ]
2
2021-08-30T10:27:13.000Z
2021-08-31T09:46:49.000Z
import geopandas as gpd d = 'tests/io/data/' polygons = gpd.read_file(d + 'polygons.gpkg', driver='GPKG') out_data = [] runtime_error_arg = "let's fail"
29.23588
164
0.731932
from contextlib import contextmanager from erde.io.base import BaseReader, BaseWriter, BaseDriver from shapely.geometry import Point, LineString, Polygon from time import sleep from unittest import mock from unittest.mock import patch, Mock import geopandas as gpd import pytest import sys import traceback as tb d = '...
0
816
0
0
783
6,306
0
93
632
db4d07d0bd1c5381b9d97e2518fec054d7c83526
641
py
Python
bildungslogin-plugin/tests/unittests/test_models.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
bildungslogin-plugin/tests/unittests/test_models.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
bildungslogin-plugin/tests/unittests/test_models.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*-
22.103448
65
0.616225
# -*- coding: utf-8 -*- import pytest from bildungslogin_plugin.models import User def test_user_with_valid_attributes(valid_user_kwargs): kwargs = valid_user_kwargs() user = User(**kwargs) assert user.dict() == kwargs @pytest.mark.parametrize( "test_data", ( ("id", ""), ("first...
0
383
0
0
0
126
0
15
91
3d55315ed70523b663daf7176ef0b6850f78bd5a
270
bzl
Python
example_http_archive_locked_constrained/upgraded_LOCKFILE.bzl
fenollp/bazel_lock
bc5f8edeb5523502552c2f11221e2b8b38e92c1a
[ "Apache-2.0" ]
null
null
null
example_http_archive_locked_constrained/upgraded_LOCKFILE.bzl
fenollp/bazel_lock
bc5f8edeb5523502552c2f11221e2b8b38e92c1a
[ "Apache-2.0" ]
null
null
null
example_http_archive_locked_constrained/upgraded_LOCKFILE.bzl
fenollp/bazel_lock
bc5f8edeb5523502552c2f11221e2b8b38e92c1a
[ "Apache-2.0" ]
null
null
null
locked = {} locked["http_archive> tar.gz github.com/bazelbuild/bazel-skylib ~=0.8 "] = {"sha256": "1dde365491125a3db70731e25658dfdd3bc5dbdfd11b840b3e987ecf043c7ca0", "url": "https://github.com/bazelbuild/bazel-skylib/releases/download/0.9.0/bazel_skylib-0.9.0.tar.gz"}
90
257
0.77037
locked = {} locked["http_archive> tar.gz github.com/bazelbuild/bazel-skylib ~=0.8 "] = {"sha256": "1dde365491125a3db70731e25658dfdd3bc5dbdfd11b840b3e987ecf043c7ca0", "url": "https://github.com/bazelbuild/bazel-skylib/releases/download/0.9.0/bazel_skylib-0.9.0.tar.gz"}
0
0
0
0
0
0
0
0
0
a054bd267afac311974d3a9c46078464614a0c09
628
py
Python
p046.py
yehnan/project_euler_python
9c8a50e992b71c1c313b08a16ea24298ce5cf020
[ "MIT" ]
1
2017-03-29T19:30:32.000Z
2017-03-29T19:30:32.000Z
p046.py
yehnan/project_euler_python
9c8a50e992b71c1c313b08a16ea24298ce5cf020
[ "MIT" ]
null
null
null
p046.py
yehnan/project_euler_python
9c8a50e992b71c1c313b08a16ea24298ce5cf020
[ "MIT" ]
1
2018-10-29T02:40:06.000Z
2018-10-29T02:40:06.000Z
# Problem 46: Goldbach's other conjecture # https://projecteuler.net/problem=46 # if __name__ == '__main__': import sys if len(sys.argv) >= 2 and sys.argv[1] == 'test': print(test()) else: print(main())
18.470588
68
0.469745
# Problem 46: Goldbach's other conjecture # https://projecteuler.net/problem=46 def goc(): n = 5 flag = +1 primes = set([2, 3]) while True: if all(n%p!=0 for p in primes): primes.add(n) else: if not any((n - 2*i*i) in primes for i in range(1,...
0
0
0
0
0
305
0
0
73
c7d141b05d1b2740dfa05cc9ef4888a3baa96d01
681
py
Python
setup.py
zbindenp/ch.zbindenonline.picture
780b6099537038c0f54f5401b7388527ab7cad02
[ "MIT" ]
null
null
null
setup.py
zbindenp/ch.zbindenonline.picture
780b6099537038c0f54f5401b7388527ab7cad02
[ "MIT" ]
null
null
null
setup.py
zbindenp/ch.zbindenonline.picture
780b6099537038c0f54f5401b7388527ab7cad02
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from setuptools import setup, find_packages try: long_description = open("README.md").read() except IOError: long_description = "" setup( name="ch.zbindenonline.picture", version="0.0.3a", description="A library to handle pictures", license="MIT", author="Patrick Zb...
24.321429
53
0.637298
# -*- coding: utf-8 -*- from setuptools import setup, find_packages try: long_description = open("README.md").read() except IOError: long_description = "" setup( name="ch.zbindenonline.picture", version="0.0.3a", description="A library to handle pictures", license="MIT", author="Patrick Zb...
0
0
0
0
0
0
0
0
0
309efa05ea0c3fc33bb125345a4877e75b1e302a
11,782
py
Python
tests/graphs/algorithms/test_paths.py
ref-humbold/AlgoLib_Python
05f725504656ec93b879374a8cd87464d88fff77
[ "Apache-2.0" ]
null
null
null
tests/graphs/algorithms/test_paths.py
ref-humbold/AlgoLib_Python
05f725504656ec93b879374a8cd87464d88fff77
[ "Apache-2.0" ]
null
null
null
tests/graphs/algorithms/test_paths.py
ref-humbold/AlgoLib_Python
05f725504656ec93b879374a8cd87464d88fff77
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Tests: Algorithms for shortest paths"""
56.917874
99
0.566627
# -*- coding: utf-8 -*- """Tests: Algorithms for shortest paths""" import unittest from assertpy import assert_that from algolib.graphs import DirectedSimpleGraph, UndirectedSimpleGraph from algolib.graphs.algorithms import Paths, bellman_ford, dijkstra, floyd_warshall def _from_list(graph, distances): return {...
0
0
0
11,212
0
226
0
115
159
0dd67ee07bafa26ffbfa3c77b3c517631eb548ca
6,441
py
Python
moler/cmd/unix/ip_link.py
jochenparm/moler
0253d677e0ef150206758c7991197ba5687d0965
[ "BSD-3-Clause" ]
57
2018-02-20T08:16:47.000Z
2022-03-28T10:36:57.000Z
moler/cmd/unix/ip_link.py
jochenparm/moler
0253d677e0ef150206758c7991197ba5687d0965
[ "BSD-3-Clause" ]
377
2018-07-19T11:56:27.000Z
2021-07-09T13:08:12.000Z
moler/cmd/unix/ip_link.py
jochenparm/moler
0253d677e0ef150206758c7991197ba5687d0965
[ "BSD-3-Clause" ]
24
2018-04-14T20:49:40.000Z
2022-03-29T10:44:26.000Z
# -*- coding: utf-8 -*- """ Ip link command module. """ __author__ = 'Julia Patacz' __copyright__ = 'Copyright (C) 2018, Nokia' __email__ = 'julia.patacz@nokia.com' COMMAND_OUTPUT = """ host:~ # ip link show 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default link/loop...
43.52027
201
0.620866
# -*- coding: utf-8 -*- """ Ip link command module. """ __author__ = 'Julia Patacz' __copyright__ = 'Copyright (C) 2018, Nokia' __email__ = 'julia.patacz@nokia.com' import re from moler.cmd.unix.genericunix import GenericUnixCommand from moler.exceptions import ParsingDone class IpLink(GenericUnixCommand): def...
0
0
0
5,020
0
0
0
43
91
6f494cab63080c693b2c3527d3e1b6dabae2dbb0
2,718
py
Python
paddle_ds/extras/srt_to_textfile.py
dalonlobo/asr
56d08017a69dd2c80a03310cbf2e3690ca287b96
[ "MIT" ]
null
null
null
paddle_ds/extras/srt_to_textfile.py
dalonlobo/asr
56d08017a69dd2c80a03310cbf2e3690ca287b96
[ "MIT" ]
1
2021-06-01T21:56:54.000Z
2021-06-01T21:56:54.000Z
paddle_ds/extras/srt_to_textfile.py
dalonlobo/asr
56d08017a69dd2c80a03310cbf2e3690ca287b96
[ "MIT" ]
1
2019-02-15T12:08:06.000Z
2019-02-15T12:08:06.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Wed Jan 17 15:06:25 2018 @author: dalonlobo """ from __future__ import absolute_import, division, \ print_function, unicode_literals import os import sys import argparse import logging import pysrt import glob from custom_utils imp...
37.232877
107
0.635394
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Wed Jan 17 15:06:25 2018 @author: dalonlobo """ from __future__ import absolute_import, division, \ print_function, unicode_literals import os import sys import argparse import logging import pysrt import glob from custom_utils imp...
0
0
0
0
0
0
0
0
0
638f39f37cb1887ac6653a6ebf222892d957f435
3,439
py
Python
hydrodynamics/hydrodynamicsbase.py
saridut/FloriPy
0117d358b9c2362ea32ecf9ec719fdaed87d3e14
[ "MIT" ]
null
null
null
hydrodynamics/hydrodynamicsbase.py
saridut/FloriPy
0117d358b9c2362ea32ecf9ec719fdaed87d3e14
[ "MIT" ]
null
null
null
hydrodynamics/hydrodynamicsbase.py
saridut/FloriPy
0117d358b9c2362ea32ecf9ec719fdaed87d3e14
[ "MIT" ]
null
null
null
#!/usr/bin/env python
29.904348
81
0.575749
#!/usr/bin/env python from abc import ABCMeta, abstractmethod import numpy as np from scipy import linalg as sla class HydrodynamicsBase: __metaclass__ = ABCMeta @abstractmethod def _calc_grm(self): pass @abstractmethod def _calc_gmm(self): pass @abstractmethod def upda...
0
99
0
3,202
0
0
0
25
90
932de32de77c81ff44b954e310c1d7815e13ecce
16,443
py
Python
modules/FIC_Github.py
Akhliskun/firefox-infra-changelog
5ca76e0be012acbea29d703c7728ecd92aff6f89
[ "MIT" ]
null
null
null
modules/FIC_Github.py
Akhliskun/firefox-infra-changelog
5ca76e0be012acbea29d703c7728ecd92aff6f89
[ "MIT" ]
74
2018-07-13T00:34:36.000Z
2018-12-17T16:23:24.000Z
modules/FIC_Github.py
Akhliskun/firefox-infra-changelog
5ca76e0be012acbea29d703c7728ecd92aff6f89
[ "MIT" ]
7
2018-07-14T15:51:17.000Z
2018-11-29T01:14:11.000Z
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/.
40.301471
156
0.614669
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. import github3 from modules.FIC_FileHandler import FICFileHandler from modules.FIC_DataVault import FICDataVault from mod...
0
0
0
15,854
0
0
0
124
265
b79293430cd9bd198caf3f11984b1aef0fd80517
235
py
Python
crawler/yhs_crawler/yhs_data_analyze.py
ArseneLupinhb/py_al
e2e4d25a00cb13d68da26c17f86f9cf1e47a79e1
[ "MIT" ]
1
2020-04-14T03:32:56.000Z
2020-04-14T03:32:56.000Z
crawler/yhs_crawler/yhs_data_analyze.py
ArseneLupinhb/py_al
e2e4d25a00cb13d68da26c17f86f9cf1e47a79e1
[ "MIT" ]
null
null
null
crawler/yhs_crawler/yhs_data_analyze.py
ArseneLupinhb/py_al
e2e4d25a00cb13d68da26c17f86f9cf1e47a79e1
[ "MIT" ]
null
null
null
# import os import pandas as pd os.getcwd() source_path = os.getcwd() + r'/crawler/yhs_crawler/data/' # df_1 = pd.read_csv(source_path + 'yhs.csv', encoding='utf-8', engine='python') df_1.head(20) df_1.info() df_1.shape
15.666667
80
0.702128
# 导入库 import os import pandas as pd os.getcwd() source_path = os.getcwd() + r'/crawler/yhs_crawler/data/' # 读入数据 df_1 = pd.read_csv(source_path + 'yhs弹幕.csv', encoding='utf-8', engine='python') df_1.head(20) df_1.info() df_1.shape
27
0
0
0
0
0
0
0
0
073344b2c4b77653eeb9ec24d9ddb7b328ac702a
461
py
Python
pyfinder/theories/poset.py
punkdit/pyfinder
b59e5ecc4e8b10b3e4365750834090473b873ff6
[ "BSD-2-Clause" ]
null
null
null
pyfinder/theories/poset.py
punkdit/pyfinder
b59e5ecc4e8b10b3e4365750834090473b873ff6
[ "BSD-2-Clause" ]
null
null
null
pyfinder/theories/poset.py
punkdit/pyfinder
b59e5ecc4e8b10b3e4365750834090473b873ff6
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python #______________________________________________________________________________ # Poset theory. element = Sort('element') le = Function('le', [element, element], BOOL) a = Variable('a', element) b = Variable('b', element) c = Variable('c', element) theory = Theory([ le(a, a), (le(a, b...
17.074074
79
0.642082
#!/usr/bin/env python from pyfinder.expr import * #______________________________________________________________________________ # Poset theory. element = Sort('element') le = Function('le', [element, element], BOOL) a = Variable('a', element) b = Variable('b', element) c = Variable('c', element) theory = Theory...
0
0
0
0
0
0
0
6
23
92e5cf0d3f91ede077fb779a1a97cbf351754b1f
11,755
py
Python
tests/select_test.py
BryanCutler/graph_def_editor
e8c44fe003df4f0e2c9791507abae556ee70bd71
[ "Apache-2.0" ]
13
2020-06-20T15:27:45.000Z
2021-08-30T21:12:52.000Z
tests/select_test.py
BryanCutler/graph_def_editor
e8c44fe003df4f0e2c9791507abae556ee70bd71
[ "Apache-2.0" ]
null
null
null
tests/select_test.py
BryanCutler/graph_def_editor
e8c44fe003df4f0e2c9791507abae556ee70bd71
[ "Apache-2.0" ]
4
2020-11-03T08:20:22.000Z
2020-12-27T17:45:41.000Z
# Copyright 2018 IBM. All Rights Reserved. # Copyright 2015 The TensorFlow Authors. 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...
36.058282
80
0.642365
# Copyright 2018 IBM. All Rights Reserved. # Copyright 2015 The TensorFlow Authors. 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...
0
0
0
10,710
0
0
0
-1
92
843a7a0fcaaeddc92d334ae668dee6b9974e0a0d
92
py
Python
ASGama CTF/[RE] xor in reverse/solver.py
bemrdo/CTF-2019
424512f7c43278d72091aa737da78907c14f9fc1
[ "MIT" ]
null
null
null
ASGama CTF/[RE] xor in reverse/solver.py
bemrdo/CTF-2019
424512f7c43278d72091aa737da78907c14f9fc1
[ "MIT" ]
null
null
null
ASGama CTF/[RE] xor in reverse/solver.py
bemrdo/CTF-2019
424512f7c43278d72091aa737da78907c14f9fc1
[ "MIT" ]
1
2020-03-14T07:24:12.000Z
2020-03-14T07:24:12.000Z
s = "a)))KkFmQ*wFz)TixK*||" flag = '' for i in s: flag += chr(ord(i) ^ 25) print flag
11.5
28
0.51087
s = "a)))KkFmQ*wFz)TixK*||" flag = '' for i in s: flag += chr(ord(i) ^ 25) print flag
0
0
0
0
0
0
0
0
0
9a4954bf539c0495ed9582a2a437a584b81eafba
1,537
py
Python
ELDAmwl/tests/test_factory.py
actris-scc/ELDAmwl
c4d8426e6609a00837779a80d4acd39c580a0178
[ "MIT" ]
1
2021-12-06T09:48:07.000Z
2021-12-06T09:48:07.000Z
ELDAmwl/tests/test_factory.py
actris-scc/ELDAmwl
c4d8426e6609a00837779a80d4acd39c580a0178
[ "MIT" ]
null
null
null
ELDAmwl/tests/test_factory.py
actris-scc/ELDAmwl
c4d8426e6609a00837779a80d4acd39c580a0178
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Tests for Signals""" DB_DATA = [ ('TestA', OperationA), ('TestB', OperationB), ]
26.964912
109
0.7365
# -*- coding: utf-8 -*- """Tests for Signals""" from ELDAmwl.bases.factory import BaseOperation from ELDAmwl.bases.factory import BaseOperationFactory from ELDAmwl.component.registry import Registry from unittest.mock import patch import unittest class Factory(BaseOperationFactory): pass class OperationA(BaseO...
0
406
0
80
0
586
0
89
253
bb519dce1d09797f72dd8f2de1841806604a851b
3,797
py
Python
pygtkweb/demos/012-label.py
allbuttonspressed/pyjs
c726fdead530eb63ee4763ae15daaa58d84cd58f
[ "ECL-2.0", "Apache-2.0" ]
1
2018-09-19T09:14:16.000Z
2018-09-19T09:14:16.000Z
pygtkweb/demos/012-label.py
andreyvit/pyjamas
1154abe3340a84dba7530b8174aaddecfc1a0944
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
pygtkweb/demos/012-label.py
andreyvit/pyjamas
1154abe3340a84dba7530b8174aaddecfc1a0944
[ "ECL-2.0", "Apache-2.0" ]
1
2019-08-13T20:32:25.000Z
2019-08-13T20:32:25.000Z
#!/usr/bin/env python # example label.py import pygtk pygtk.require('2.0') if __name__ == "__main__": Labels() main()
39.552083
82
0.520411
#!/usr/bin/env python # example label.py import pygtk pygtk.require('2.0') import gtk class Labels: def __init__(self): self.window = gtk.Window(gtk.WINDOW_TOPLEVEL) self.window.connect("destroy", lambda w: gtk.main_quit()) self.window.set_title("Label") vbox = gtk.VBox(False, 5)...
0
0
0
3,593
0
18
0
-11
68
8f3cea5c3a663cdfa9d722dafbf2c0cf1621974b
188
py
Python
3day/for10.py
jsjang93/joony
62f7a325094c887212b894932263bf84500e0f03
[ "MIT" ]
null
null
null
3day/for10.py
jsjang93/joony
62f7a325094c887212b894932263bf84500e0f03
[ "MIT" ]
null
null
null
3day/for10.py
jsjang93/joony
62f7a325094c887212b894932263bf84500e0f03
[ "MIT" ]
null
null
null
# for10.py # [ for in if ] # a 1 ~ 10 a = [ i for i in range(1,11) ] print(a) # b 1 ~ 10 b = [ i+1 for i in range(10) ] print(b) print(id(a) == id(b))
13.428571
31
0.526596
# for10.py # [입력변수 for 추출변수 in 대상 if 조건 ] # a 에 1 ~ 10 까지 숫자 a = [ i for i in range(1,11) ] print(a) # b 에 1 ~ 10 까지 숫자 b = [ i+1 for i in range(10) ] print(b) print(id(a) == id(b))
66
0
0
0
0
0
0
0
0
1534a129dbfddf083511bb0726870718c439eedb
1,417
py
Python
plot.py
yy-zhou/SVM-Spam-SMS-classifier
e6ac70be8fa54f7e7ab4fead06489d4d70985dd3
[ "MIT" ]
1
2019-02-21T15:42:03.000Z
2019-02-21T15:42:03.000Z
plot.py
yy-zhou/SVM-Spam-SMS-classifier
e6ac70be8fa54f7e7ab4fead06489d4d70985dd3
[ "MIT" ]
null
null
null
plot.py
yy-zhou/SVM-Spam-SMS-classifier
e6ac70be8fa54f7e7ab4fead06489d4d70985dd3
[ "MIT" ]
null
null
null
__author__ = 'BorisMirage' # --- coding:utf-8 --- ''' Create by BorisMirage File Name: plot Create Time: 2018-12-02 14:45 ''' if __name__ == '__main__': pass
25.763636
75
0.542696
__author__ = 'BorisMirage' # --- coding:utf-8 --- ''' Create by BorisMirage File Name: plot Create Time: 2018-12-02 14:45 ''' from time import time import numpy as np import matplotlib.pyplot as plt from sklearn.manifold import TSNE def svm_plot(x, y): def get_data(x, y): # clf = svm.SVC(kernel='linear...
0
0
0
0
0
1,119
0
19
113
0ebace1dbbd279ebfafd87a38a3b7827f59351b3
283
py
Python
build_bridge.py
AaronC81/delta-pico
08a3dae3c8dbae3db45b8434351b4ac0abc5f1da
[ "MIT" ]
2
2021-12-22T23:37:30.000Z
2022-03-10T01:22:00.000Z
build_bridge.py
AaronC81/delta-pico
08a3dae3c8dbae3db45b8434351b4ac0abc5f1da
[ "MIT" ]
null
null
null
build_bridge.py
AaronC81/delta-pico
08a3dae3c8dbae3db45b8434351b4ac0abc5f1da
[ "MIT" ]
null
null
null
import subprocess, os print("Building Rust component...") # "cargo build" the bridge project root_dir = os.path.dirname(os.path.realpath(__file__)) bridge_dir = os.path.join(root_dir, "rust") subprocess.check_output(["cargo", "build", "--release"], cwd=bridge_dir) print("Done!")
25.727273
72
0.727915
import subprocess, os print("Building Rust component...") # "cargo build" the bridge project root_dir = os.path.dirname(os.path.realpath(__file__)) bridge_dir = os.path.join(root_dir, "rust") subprocess.check_output(["cargo", "build", "--release"], cwd=bridge_dir) print("Done!")
0
0
0
0
0
0
0
0
0
6f6bfd6faba641ab09d6d1307be60d49c893fb56
338
py
Python
stereo/preprocess/__init__.py
leying95/stereopy
1580a88a091a2ebc0f177ea73409e2c4b4dd4c7e
[ "MIT" ]
null
null
null
stereo/preprocess/__init__.py
leying95/stereopy
1580a88a091a2ebc0f177ea73409e2c4b4dd4c7e
[ "MIT" ]
null
null
null
stereo/preprocess/__init__.py
leying95/stereopy
1580a88a091a2ebc0f177ea73409e2c4b4dd4c7e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding: utf-8 """ @author: Ping Qiu qiuping1@genomics.cn @last modified by: Ping Qiu @file:__init__.py.py @time:2021/03/05 """
28.166667
94
0.786982
#!/usr/bin/env python3 # coding: utf-8 """ @author: Ping Qiu qiuping1@genomics.cn @last modified by: Ping Qiu @file:__init__.py.py @time:2021/03/05 """ from .filter import filter_cells, filter_genes, filter_coordinates from .normalize import Normalizer, normalize_total, normalize_zscore_disksmooth, quantile_norm from ...
0
0
0
0
0
0
0
119
66
ae639af7b2deedc5fc4c667db8000d51c3ec0348
12,355
py
Python
tests/ut/python/dataset/test_datasets_usps.py
httpsgithu/mindspore
c29d6bb764e233b427319cb89ba79e420f1e2c64
[ "Apache-2.0" ]
1
2022-03-30T03:43:29.000Z
2022-03-30T03:43:29.000Z
tests/ut/python/dataset/test_datasets_usps.py
949144093/mindspore
c29d6bb764e233b427319cb89ba79e420f1e2c64
[ "Apache-2.0" ]
null
null
null
tests/ut/python/dataset/test_datasets_usps.py
949144093/mindspore
c29d6bb764e233b427319cb89ba79e420f1e2c64
[ "Apache-2.0" ]
null
null
null
# Copyright 2021-2022 Huawei Technologies Co., Ltd # # 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...
39.983819
117
0.630676
# Copyright 2021-2022 Huawei Technologies Co., Ltd # # 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...
0
0
0
0
0
398
0
0
29
ec4aea568eff55f9b12d7d6ccea094cfc76818c4
919
py
Python
apps/plot.py
JongGuk/Raman_Mapping
e4b0fb44b8077a2a9c7965132794757a0079965e
[ "MIT" ]
null
null
null
apps/plot.py
JongGuk/Raman_Mapping
e4b0fb44b8077a2a9c7965132794757a0079965e
[ "MIT" ]
null
null
null
apps/plot.py
JongGuk/Raman_Mapping
e4b0fb44b8077a2a9c7965132794757a0079965e
[ "MIT" ]
null
null
null
import tkinter as tk from pandas import DataFrame import matplotlib.pyplot as plt from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg data = {'Raman Shift': [-464, -460, -455, -450, -445], 'Intensity1': [745, 752, 746, 740, 750], 'Intensity2': [734, 745, 768, 763, 755] } # df = DataFr...
34.037037
89
0.687704
import tkinter as tk from pandas import DataFrame import matplotlib.pyplot as plt from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg data = {'Raman Shift': [-464, -460, -455, -450, -445], 'Intensity1': [745, 752, 746, 740, 750], 'Intensity2': [734, 745, 768, 763, 755] } # 데이터 짤라온것 받아오기 ...
330
0
0
0
0
0
0
0
0
59035eabd3ac8998d45ef40fc66c22001078419d
5,075
py
Python
openpose-app/MotionMeasure/OpenposeLogParser.py
B-C-WANG/AI-Apps
305d1960ec2b84081228543bf819deff694fddd2
[ "MIT" ]
7
2018-11-10T09:15:29.000Z
2021-06-05T01:54:45.000Z
openpose-app/MotionMeasure/OpenposeLogParser.py
B-C-WANG/AI-Apps
305d1960ec2b84081228543bf819deff694fddd2
[ "MIT" ]
null
null
null
openpose-app/MotionMeasure/OpenposeLogParser.py
B-C-WANG/AI-Apps
305d1960ec2b84081228543bf819deff694fddd2
[ "MIT" ]
4
2019-06-22T03:26:46.000Z
2020-05-17T11:40:22.000Z
# encoding: utf-8 point_name = [ "Nose", "Neck", "RShoulder", "RElbow", "RWrist", "LShoulder", "LElbow", "LWrist", "MidHip", "RHip", "RKnee", "RAnkle", "LHip", "LKnee", "LAnkle", "REye", "LEye", "REar", "LEar", "LBigToe", "LSmallToe", "LHeel", "RBigToe", "RSmallToe", "RHeel", "Background" ] ...
25.248756
129
0.521576
# encoding: utf-8 import json import numpy as np import matplotlib.pyplot as plt import os import queue import _thread import traceback point_name = [ "Nose", "Neck", "RShoulder", "RElbow", "RWrist", "LShoulder", "LElbow", "LWrist", "MidHip", "RHip", "RKnee", "RAnkle", "LHip", "LKnee", "LAnkle", "...
0
0
0
4,428
0
0
0
-36
177
0449817e405dd949fcb83eafc1beb5ae393f23f2
47,889
py
Python
experimental/eidelyur/variabledNLsimulation_v2.py
radiasoft/rsnibo
c2040f2ec21bbc2701a5968c6f2d3e3e0d31f81d
[ "Apache-2.0" ]
null
null
null
experimental/eidelyur/variabledNLsimulation_v2.py
radiasoft/rsnibo
c2040f2ec21bbc2701a5968c6f2d3e3e0d31f81d
[ "Apache-2.0" ]
null
null
null
experimental/eidelyur/variabledNLsimulation_v2.py
radiasoft/rsnibo
c2040f2ec21bbc2701a5968c6f2d3e3e0d31f81d
[ "Apache-2.0" ]
1
2019-04-26T22:58:22.000Z
2019-04-26T22:58:22.000Z
# # This script develops the script 'variabledNLsimulation_v1.py' (Yury Eidelman) # # Started at June 28, 2019 # # The three laws to change the strengths 't' of all nonlinear lens are implemented. # From initial value t_i to final value t_f during N stepsthese laws are follows. # 1) Linear: for step number n # ...
44.756075
145
0.628098
# # This script develops the script 'variabledNLsimulation_v1.py' (Yury Eidelman) # # Started at June 28, 2019 # # The three laws to change the strengths 't' of all nonlinear lens are implemented. # From initial value t_i to final value t_f during N stepsthese laws are follows. # 1) Linear: for step number n # ...
2
155
0
8,668
0
34,988
0
0
256
2e52a259e89d5bda865dcd429e1f812444177e48
311
py
Python
tools/ExperimentServerTester/src/script.py
zstars/weblabdeusto
09bd9d93d483671bca67ee5c70a9c412eb5d352f
[ "BSD-2-Clause" ]
15
2015-03-12T12:15:41.000Z
2021-12-20T17:53:24.000Z
tools/ExperimentServerTester/src/script.py
zstars/weblabdeusto
09bd9d93d483671bca67ee5c70a9c412eb5d352f
[ "BSD-2-Clause" ]
44
2015-01-07T09:22:05.000Z
2017-01-31T22:44:21.000Z
tools/ExperimentServerTester/src/script.py
zstars/weblabdeusto
09bd9d93d483671bca67ee5c70a9c412eb5d352f
[ "BSD-2-Clause" ]
22
2015-01-13T13:55:48.000Z
2021-12-16T17:07:00.000Z
import time connect("127.0.0.1", "10039", "weblab") #test_me("hello") start_experiment() send_file("script.py", "A script file") response = send_command("Test Command") print "The response is: %s" % response msg_box("Test Message", "test") time.sleep(2) dispose() disconnect()
13.521739
40
0.633441
import time connect("127.0.0.1", "10039", "weblab") #test_me("hello") start_experiment() send_file("script.py", "A script file") response = send_command("Test Command") print "The response is: %s" % response msg_box("Test Message", "test") time.sleep(2) dispose() disconnect()
0
0
0
0
0
0
0
0
0
48cabd08bfb5c7aca6c826bcc5b96062a846eb14
3,887
py
Python
source/vsm-dashboard/vsm_dashboard/dashboards/vsm/poolsmanagement/form.py
ramkrsna/virtual-storage-manager
78125bfb4dd4d78ff96bc3274c8919003769c545
[ "Apache-2.0" ]
172
2015-01-07T08:40:17.000Z
2019-02-18T07:01:11.000Z
source/vsm-dashboard/vsm_dashboard/dashboards/vsm/poolsmanagement/form.py
ramkrsna/virtual-storage-manager
78125bfb4dd4d78ff96bc3274c8919003769c545
[ "Apache-2.0" ]
83
2015-03-06T07:47:03.000Z
2018-07-05T15:10:19.000Z
source/vsm-dashboard/vsm_dashboard/dashboards/vsm/poolsmanagement/form.py
ramkrsna/virtual-storage-manager
78125bfb4dd4d78ff96bc3274c8919003769c545
[ "Apache-2.0" ]
125
2015-01-05T12:22:15.000Z
2019-02-18T07:01:39.000Z
# Copyright 2014 Intel Corporation, 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 or ...
40.915789
137
0.654747
# Copyright 2014 Intel Corporation, 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 or ...
0
0
0
2,756
0
0
0
188
247
47a36abef43918b317e5caf6a9faf6952120ecad
178
py
Python
recipe/run_test.py
AnacondaRecipes/pyproj-feedstock
5000f3a702d692f508b8994ae84a7e8f7d55fe57
[ "BSD-3-Clause" ]
4
2019-04-15T22:42:28.000Z
2021-11-09T11:29:36.000Z
recipe/run_test.py
AnacondaRecipes/pyproj-feedstock
5000f3a702d692f508b8994ae84a7e8f7d55fe57
[ "BSD-3-Clause" ]
116
2016-03-05T08:22:09.000Z
2022-03-28T21:28:40.000Z
recipe/run_test.py
AnacondaRecipes/pyproj-feedstock
5000f3a702d692f508b8994ae84a7e8f7d55fe57
[ "BSD-3-Clause" ]
15
2016-03-03T06:34:09.000Z
2022-03-18T13:19:21.000Z
import os import sys import pyproj from pyproj import Proj Proj(init="epsg:4269") # Test pyproj_datadir. if not os.path.isdir(pyproj.datadir.get_data_dir()): sys.exit(1)
13.692308
52
0.741573
import os import sys import pyproj from pyproj import Proj Proj(init="epsg:4269") # Test pyproj_datadir. if not os.path.isdir(pyproj.datadir.get_data_dir()): sys.exit(1)
0
0
0
0
0
0
0
0
0
66127ade5069a08d2d95e3b0c7cbd430fd9d7d41
2,462
py
Python
xontrib_term_integrations/kitty_completions.py
jnoortheen/xontrib-term-integrations
3c0f29835fb79a521a5d603d862387dcda93c959
[ "MIT" ]
4
2022-01-14T08:03:13.000Z
2022-03-27T15:26:07.000Z
xontrib_term_integrations/kitty_completions.py
jnoortheen/xontrib-iterm2
3c0f29835fb79a521a5d603d862387dcda93c959
[ "MIT" ]
4
2022-01-08T08:01:03.000Z
2022-03-07T18:53:26.000Z
xontrib_term_integrations/kitty_completions.py
jnoortheen/xontrib-term-integrations
3c0f29835fb79a521a5d603d862387dcda93c959
[ "MIT" ]
null
null
null
"""Completers for pip.""" if __name__ == "__main__": # small testing won't hurt from xonsh.main import setup setup() print(list(get_completions("kitty", "-"))) print(list(get_completions("kitty", "--"))) print(list(get_completions("kitty", "--d")))
28.298851
86
0.655971
"""Completers for pip.""" import contextlib import os import subprocess from xonsh.built_ins import XSH from xonsh.completers.tools import RichCompletion, contextual_command_completer from xonsh.parsers.completion_context import CommandContext def create_rich_completion(line: str, append_space=False): line = lin...
0
411
0
0
414
1,022
0
86
248
4b0e96bdf51100d375dbba004ff29b2e3d770875
9,381
py
Python
enhterm/provider/parser/argparser/__init__.py
pyl1b/enhterm
b4eacc25ef1bdfecab9a662b5269d016070d4e6b
[ "MIT" ]
null
null
null
enhterm/provider/parser/argparser/__init__.py
pyl1b/enhterm
b4eacc25ef1bdfecab9a662b5269d016070d4e6b
[ "MIT" ]
null
null
null
enhterm/provider/parser/argparser/__init__.py
pyl1b/enhterm
b4eacc25ef1bdfecab9a662b5269d016070d4e6b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Contains the definition of the ArgParser class. """ import logging logger = logging.getLogger('et.argparser')
31.908163
92
0.606865
# -*- coding: utf-8 -*- """ Contains the definition of the ArgParser class. """ import logging from argparse import ArgumentParser, ArgumentError, Namespace import shlex from enhterm.command import Command from enhterm.command.error import ErrorCommand from enhterm.command.noop import NoOpCommand from enhterm.command....
0
487
0
8,134
0
0
0
258
358
3c90085df15908d2e744ebdb67e564f8b9b0393f
7,665
py
Python
farabio/models/segmentation/linknet.py
tuttelikz/farabi
5b65cdf39ceecbd69ae759d030b132ee74661b48
[ "Apache-2.0" ]
53
2021-04-06T17:57:12.000Z
2022-03-07T17:45:45.000Z
farabio/models/segmentation/linknet.py
tuttelikz/farabi
5b65cdf39ceecbd69ae759d030b132ee74661b48
[ "Apache-2.0" ]
1
2022-03-07T19:48:44.000Z
2022-03-07T19:49:47.000Z
farabio/models/segmentation/linknet.py
tuttelikz/farabi
5b65cdf39ceecbd69ae759d030b132ee74661b48
[ "Apache-2.0" ]
2
2021-12-06T14:42:44.000Z
2021-12-07T11:33:14.000Z
"""LinkNet Paper: https://arxiv.org/pdf/1707.03718 Adapted from: https://github.com/qubvel/segmentation_models.pytorch/blob/master/segmentation_models_pytorch/linknet/model.py Copyright 2021 | farabio """ import torch.nn as nn __all__ = [ 'Linknet', 'linknet_vgg11', 'linknet_vgg11_bn', 'linknet_vgg13', 'linknet_...
33.915929
124
0.663405
"""LinkNet Paper: https://arxiv.org/pdf/1707.03718 Adapted from: https://github.com/qubvel/segmentation_models.pytorch/blob/master/segmentation_models_pytorch/linknet/model.py Copyright 2021 | farabio """ from typing import List, Optional, Union, Any import torch import torch.nn as nn import torch.nn.functional as F ...
0
0
0
2,840
0
3,436
0
194
614
ab8cb05d5c02d84b5dee7c2f53886dd4b6bffb7a
971
py
Python
students/k3342/laboratory_works/Frolov_Alex/laboratory_work_2/lab2_app/migrations/0002_auto_20200613_2256.py
TonikX/ITMO_ICT_-WebProgramming_2020
ba566c1b3ab04585665c69860b713741906935a0
[ "MIT" ]
10
2020-03-20T09:06:12.000Z
2021-07-27T13:06:02.000Z
students/k3342/laboratory_works/Frolov_Alex/laboratory_work_2/lab2_app/migrations/0002_auto_20200613_2256.py
TonikX/ITMO_ICT_-WebProgramming_2020
ba566c1b3ab04585665c69860b713741906935a0
[ "MIT" ]
134
2020-03-23T09:47:48.000Z
2022-03-12T01:05:19.000Z
students/k3342/laboratory_works/Frolov_Alex/laboratory_work_2/lab2_app/migrations/0002_auto_20200613_2256.py
TonikX/ITMO_ICT_-WebProgramming_2020
ba566c1b3ab04585665c69860b713741906935a0
[ "MIT" ]
71
2020-03-20T12:45:56.000Z
2021-10-31T19:22:25.000Z
# Generated by Django 3.0.5 on 2020-06-13 19:56
40.458333
376
0.527291
# Generated by Django 3.0.5 on 2020-06-13 19:56 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('lab2_app', '0001_initial'), ] operations = [ migrations.AlterField( model_name='nclass', name='letter'...
34
0
0
834
0
0
0
19
50
98e6d816ecc49f008ca2ce95cf7c99f5e3356e23
94
py
Python
trading_bot/tools/setting_parameters.py
ArthurBernard/Strategy_Manager
a6c80fe1a51a300e8a612fb69e0e17d0ae06f455
[ "MIT" ]
6
2020-02-24T02:19:30.000Z
2021-12-19T03:03:11.000Z
trading_bot/tools/setting_parameters.py
ArthurBernard/Strategy_Manager
a6c80fe1a51a300e8a612fb69e0e17d0ae06f455
[ "MIT" ]
1
2020-06-17T03:29:14.000Z
2020-06-17T04:45:34.000Z
trading_bot/tools/setting_parameters.py
ArthurBernard/Trading_Bot
a6c80fe1a51a300e8a612fb69e0e17d0ae06f455
[ "MIT" ]
1
2019-01-02T16:00:07.000Z
2019-01-02T16:00:07.000Z
#!/usr/bin/env python3 # coding: utf-8 # Import built-in packages # Import external packages
15.666667
26
0.734043
#!/usr/bin/env python3 # coding: utf-8 # Import built-in packages # Import external packages
0
0
0
0
0
0
0
0
0
facf09de719c86989c7c7380adeb080e99663302
1,685
py
Python
chwall/fetcher/local.py
milouse/chwall
963045658abd41c94e29850e9f416c8970e06c32
[ "WTFPL" ]
4
2019-11-02T12:22:48.000Z
2022-01-07T11:40:40.000Z
chwall/fetcher/local.py
milouse/chwall
963045658abd41c94e29850e9f416c8970e06c32
[ "WTFPL" ]
1
2022-03-29T18:44:47.000Z
2022-03-30T07:04:54.000Z
chwall/fetcher/local.py
milouse/chwall
963045658abd41c94e29850e9f416c8970e06c32
[ "WTFPL" ]
null
null
null
from chwall.utils import get_logger import gettext # Uncomment the following line during development. # Please, be cautious to NOT commit the following line uncommented. # gettext.bindtextdomain("chwall", "./locale") gettext.textdomain("chwall") _ = gettext.gettext logger = get_logger(__name__)
27.622951
67
0.511573
import os import glob from chwall.utils import get_logger import gettext # Uncomment the following line during development. # Please, be cautious to NOT commit the following line uncommented. # gettext.bindtextdomain("chwall", "./locale") gettext.textdomain("chwall") _ = gettext.gettext logger = get_logger(__name__)...
0
0
0
0
0
1,316
0
-22
90
170f178a212883d5eb070081e64ebf6154b68374
7,190
py
Python
python/server.py
air01a/esp32_rekognition
1e91a7ae8898e765c27153d4aedf4eef82a8e275
[ "MIT" ]
null
null
null
python/server.py
air01a/esp32_rekognition
1e91a7ae8898e765c27153d4aedf4eef82a8e275
[ "MIT" ]
null
null
null
python/server.py
air01a/esp32_rekognition
1e91a7ae8898e765c27153d4aedf4eef82a8e275
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 TOKEN = "" TIMER = 30 __all__ = ["SimpleHTTPRequestHandler"] import urllib.request, urllib.parse import re if __name__ == '__main__': run()
27.760618
91
0.668846
#!/usr/bin/env python3 TOKEN = "" TIMER = 30 __all__ = ["SimpleHTTPRequestHandler"] import os import posixpath import http.server import urllib.request, urllib.parse, urllib.error import cgi import shutil import mimetypes import re from io import BytesIO import time from AWSRekognition import AWSRekognition imp...
0
0
0
6,583
0
174
0
-54
315
68597cccb9af19fe7498a4081ce24a2e1772b686
300
py
Python
web/visualizer.py
jagsgill/410project
f3e28f796ff89aa43c48cd8e18ad0ad412335263
[ "MIT" ]
null
null
null
web/visualizer.py
jagsgill/410project
f3e28f796ff89aa43c48cd8e18ad0ad412335263
[ "MIT" ]
null
null
null
web/visualizer.py
jagsgill/410project
f3e28f796ff89aa43c48cd8e18ad0ad412335263
[ "MIT" ]
null
null
null
import flask app = flask.Flask(__name__) if __name__ == "__main__": begin()
15
53
0.673333
import json import flask import os app = flask.Flask(__name__) @app.route("/") def index(): return flask.render_template("index.html") def begin(): port = 8080 os.system("open http://localhost:{0}/".format(port)) app.debug = True app.run(port=port) if __name__ == "__main__": begin()
0
54
0
0
0
96
0
-22
90
9fef173258aa5bfe192c3ee01893f01998735937
597
py
Python
src/__init__.py
scott-currie/stock_portfolio
568d581ed277d1999563f4da427cc6b4fa5d387b
[ "MIT" ]
null
null
null
src/__init__.py
scott-currie/stock_portfolio
568d581ed277d1999563f4da427cc6b4fa5d387b
[ "MIT" ]
6
2020-03-24T16:39:37.000Z
2021-09-08T01:06:58.000Z
src/__init__.py
scott-currie/stock_portfolio
568d581ed277d1999563f4da427cc6b4fa5d387b
[ "MIT" ]
null
null
null
from flask import Flask import os basedir = os.path.abspath(os.path.dirname(__file__)) # `flask run` - runs application on local server app = Flask(__name__, static_url_path='', static_folder='static', instance_relative_config=True) DATABASE_URL = os.environ.get('DATABASE_URL') if os.environ.get('TEST...
24.875
65
0.743719
from flask import Flask import os basedir = os.path.abspath(os.path.dirname(__file__)) # `flask run` - runs application on local server app = Flask(__name__, static_url_path='', static_folder='static', instance_relative_config=True) DATABASE_URL = os.environ.get('DATABASE_URL') if os.environ.get('TEST...
0
0
0
0
0
0
0
25
23
6189469b12c3351f8e07df13c8b4ead29dc48169
1,376
py
Python
utils/jsdati.py
bynil/v2ex-crawler
c3ceefba9b330e1356259433e67633bf5d5da956
[ "MIT" ]
15
2017-10-09T13:15:27.000Z
2020-06-30T23:42:54.000Z
utils/jsdati.py
bynil/v2ex-crawler
c3ceefba9b330e1356259433e67633bf5d5da956
[ "MIT" ]
2
2019-10-21T15:03:29.000Z
2021-06-02T03:11:54.000Z
utils/jsdati.py
bynil/v2ex-crawler
c3ceefba9b330e1356259433e67633bf5d5da956
[ "MIT" ]
3
2017-10-17T02:52:26.000Z
2019-07-05T02:54:52.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Author: gexiao # Created on 2018-05-07 22:04 SERVER_HOST = 'https://v2-api.jsdama.com/upload' SOFTWARE_ID = 9487 SOFTWARE_SECRET = 'nb4GHmdsPxzbcB7iIrU36JPI73HOjUyUEnq3pkob'
31.272727
112
0.590843
#!/usr/bin/env python # -*- coding: utf-8 -*- # Author: gexiao # Created on 2018-05-07 22:04 import logging import requests import base64 SERVER_HOST = 'https://v2-api.jsdama.com/upload' SOFTWARE_ID = 9487 SOFTWARE_SECRET = 'nb4GHmdsPxzbcB7iIrU36JPI73HOjUyUEnq3pkob' class JsdatiApi(): def __init__(self, userna...
36
0
0
1,071
0
0
0
-21
90
21cd0b478e379ec3b6523625ca68a49624cc6e66
2,786
py
Python
rdchiral/utils.py
Furuidemu/retrosim
21f5449f617a93f2a64e927fcde224b298327727
[ "MIT" ]
65
2020-06-27T04:28:21.000Z
2022-03-30T11:18:22.000Z
template/rdchiral/utils.py
sw32-seo/GTA
86b102a14b78f6c8b50d742a56445c748e59b51e
[ "MIT" ]
15
2020-07-07T13:17:05.000Z
2022-03-22T12:52:29.000Z
template/rdchiral/utils.py
sw32-seo/GTA
86b102a14b78f6c8b50d742a56445c748e59b51e
[ "MIT" ]
14
2020-06-30T09:22:13.000Z
2022-03-30T11:18:28.000Z
from __future__ import print_function PLEVEL = 0 def parity4(data): ''' Thanks to http://www.dalkescientific.com/writings/diary/archive/2016/08/15/fragment_parity_calculation.html ''' if data[0] < data[1]: if data[2] < data[3]: if data[0] < data[2]: if data[1] < dat...
33.97561
111
0.298277
from __future__ import print_function PLEVEL = 0 def vprint(level, txt, *args): if PLEVEL >= level: print(txt.format(*args)) def parity4(data): ''' Thanks to http://www.dalkescientific.com/writings/diary/archive/2016/08/15/fragment_parity_calculation.html ''' if data[0] < data[1]: ...
0
0
0
0
0
66
0
0
22
c60aab25d55598eaca48d8eaa95733efdd745194
1,897
py
Python
Third course/5th semester/Analysis of algorithms course/Lab3 - Sorting/main1.py
tekcellat/University
9a0196a45c9cf33ac58018d636c3e4857eba0330
[ "MIT" ]
null
null
null
Third course/5th semester/Analysis of algorithms course/Lab3 - Sorting/main1.py
tekcellat/University
9a0196a45c9cf33ac58018d636c3e4857eba0330
[ "MIT" ]
null
null
null
Third course/5th semester/Analysis of algorithms course/Lab3 - Sorting/main1.py
tekcellat/University
9a0196a45c9cf33ac58018d636c3e4857eba0330
[ "MIT" ]
7
2020-12-04T07:26:46.000Z
2022-03-08T17:47:47.000Z
n1 = int(input("Size\nFrom: ")) n2 = int(input("To: ")) h = int(input("Step:")) if n1 > n2 or n2 == n1 or h == 0: print("Wrong input") exit() else: result = measure_time(get_best_array, get_best_array, mysort_quick_middle, n1, n2 + 1, h, 100) print("\n", result, "\n") result = m...
22.583333
103
0.530311
from sort import * import time import random def get_random_array(n): array = [] for i in range(n): array.append(random.randint(0, 20000)) return array def get_best_array(n): array = [] for i in range(n): array.append(i) return array def get_wor...
0
0
0
0
0
1,152
0
-21
194
09f55b7870106786dba51122424f11feffb40feb
1,680
py
Python
flocker/common/_era.py
stackriot/flocker
eaa586248986d7cd681c99c948546c2b507e44de
[ "Apache-2.0" ]
2,690
2015-01-02T11:12:11.000Z
2022-03-15T15:41:51.000Z
flocker/common/_era.py
stackriot/flocker
eaa586248986d7cd681c99c948546c2b507e44de
[ "Apache-2.0" ]
2,102
2015-01-02T18:49:40.000Z
2021-01-21T18:49:47.000Z
flocker/common/_era.py
stackriot/flocker
eaa586248986d7cd681c99c948546c2b507e44de
[ "Apache-2.0" ]
333
2015-01-10T01:44:01.000Z
2022-03-08T15:03:04.000Z
# Copyright ClusterHQ Inc. See LICENSE file for details. """ Era information for Flocker nodes. Every time a node reboots it gets a new, globally unique era. """ from uuid import UUID from twisted.python.filepath import FilePath from ..common.script import (FlockerScriptRunner) _BOOT_ID = FilePath(b"/proc/sys/ker...
24.347826
73
0.682738
# Copyright ClusterHQ Inc. See LICENSE file for details. """ Era information for Flocker nodes. Every time a node reboots it gets a new, globally unique era. """ import sys from uuid import UUID from zope.interface import implementer from twisted.internet.defer import succeed from twisted.python.filepath import F...
0
695
0
0
0
0
0
121
159
82e9d12b07897f4af449eb7e6367c29c879bc2f3
1,801
py
Python
book/_build/jupyter_execute/pandas/Week 4-Introduction to Data Science[Coursera].py
hossainlab/dsnotes
fee64e157f45724bba1f49ad1b186dcaaf1e6c02
[ "CC0-1.0" ]
null
null
null
book/_build/jupyter_execute/pandas/Week 4-Introduction to Data Science[Coursera].py
hossainlab/dsnotes
fee64e157f45724bba1f49ad1b186dcaaf1e6c02
[ "CC0-1.0" ]
null
null
null
book/_build/jupyter_execute/pandas/Week 4-Introduction to Data Science[Coursera].py
hossainlab/dsnotes
fee64e157f45724bba1f49ad1b186dcaaf1e6c02
[ "CC0-1.0" ]
null
null
null
# Distributions in Pandas import pandas as pd import numpy as np np.random.binomial(1, 0.5) np.random.binomial(1000, 0.5)/1000 chance_of_tornado = 0.01/100 np.random.binomial(100000, chance_of_tornado) chance_of_tornado = 0.01 tornado_events = np.random.binomial(1, chance_of_tornado, 1000000) two_days_in_a_r...
22.797468
85
0.7407
# Distributions in Pandas import pandas as pd import numpy as np np.random.binomial(1, 0.5) np.random.binomial(1000, 0.5)/1000 chance_of_tornado = 0.01/100 np.random.binomial(100000, chance_of_tornado) chance_of_tornado = 0.01 tornado_events = np.random.binomial(1, chance_of_tornado, 1000000) two_days_in_a_r...
0
0
0
0
0
0
0
0
0
514f367de86a238caeba42c73f5c4c8ed5711914
207
py
Python
jarbas/settings_unit_tests.py
mazulo/serenata-de-amor
d5f6feb97f1bbd748fda6e99fe07a47c52db3fa6
[ "MIT" ]
null
null
null
jarbas/settings_unit_tests.py
mazulo/serenata-de-amor
d5f6feb97f1bbd748fda6e99fe07a47c52db3fa6
[ "MIT" ]
null
null
null
jarbas/settings_unit_tests.py
mazulo/serenata-de-amor
d5f6feb97f1bbd748fda6e99fe07a47c52db3fa6
[ "MIT" ]
null
null
null
MIGRATION_MODULES = DisableMigrations()
15.923077
39
0.700483
from jarbas.settings import * class DisableMigrations: def __contains__(self, item): return True def __getitem__(self, item): return None MIGRATION_MODULES = DisableMigrations()
0
0
0
111
0
0
0
8
45
129442cfda6260b8d0649c7091329a38a7fc5a11
5,173
py
Python
sdk/communication/azure-communication-identity/samples/identity_samples.py
abhahn/azure-sdk-for-python
09521dfb517e0859ec961cae006fb728d787b565
[ "MIT" ]
2
2019-08-23T21:14:00.000Z
2021-09-07T18:32:34.000Z
sdk/communication/azure-communication-identity/samples/identity_samples.py
rakshith91/azure-sdk-for-python
3c4f2575d31260fa1bda870b04e34c082ac5702b
[ "MIT" ]
null
null
null
sdk/communication/azure-communication-identity/samples/identity_samples.py
rakshith91/azure-sdk-for-python
3c4f2575d31260fa1bda870b04e34c082ac5702b
[ "MIT" ]
null
null
null
# coding: utf-8 # ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # --------------------------------------------------------------------...
46.603604
107
0.7023
# coding: utf-8 # ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # --------------------------------------------------------------------...
0
0
0
4,193
0
0
0
-12
45
d0ae7e9e7b74ad5927d28b3655f5e9408cd4c60e
497
py
Python
receiver.py
rasathus/raspberrylogger
f2084b67b679523b6c0ec1f436a5fcad6f104aaa
[ "MIT" ]
null
null
null
receiver.py
rasathus/raspberrylogger
f2084b67b679523b6c0ec1f436a5fcad6f104aaa
[ "MIT" ]
null
null
null
receiver.py
rasathus/raspberrylogger
f2084b67b679523b6c0ec1f436a5fcad6f104aaa
[ "MIT" ]
null
null
null
''' Created on 1 Dec 2012 @author: Jeremy ''' import serial import sys import rt import time s = serial.Serial(sys.argv[1],115200,timeout=15) t = time.time() c = 0 RT = rt.RaceTech(s) RT.run(decode)
17.75
76
0.565392
''' Created on 1 Dec 2012 @author: Jeremy ''' import serial import sys import rt import time s = serial.Serial(sys.argv[1],115200,timeout=15) t = time.time() c = 0 def decode(header,length,msg,cs,variable_length): # print header,length,msg,cs global c,t c += 1 if c > 999: ...
0
0
0
0
0
252
0
0
25
e3ee2b35688dd42c5efe6d2b57469efb051f11a0
670
py
Python
project/urls.py
dmitrytk/takkand.pw
162fd5bb0e58c419977e06ce4633177918bd6f61
[ "MIT" ]
null
null
null
project/urls.py
dmitrytk/takkand.pw
162fd5bb0e58c419977e06ce4633177918bd6f61
[ "MIT" ]
10
2021-03-18T23:07:30.000Z
2022-03-12T00:13:17.000Z
project/urls.py
dmitrytk/takkand.pw
162fd5bb0e58c419977e06ce4633177918bd6f61
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path, include from django.conf import settings from django.conf.urls.static import static from pages import views urlpatterns = [ path('admin/', admin.site.urls), path('accounts/', include('allauth.urls')), # allauth ...
39.411765
81
0.632836
from django.contrib import admin from django.urls import path, include from django.conf import settings from django.conf.urls.static import static from pages import views urlpatterns = [ path('admin/', admin.site.urls), path('accounts/', include('allauth.urls')), # allauth ...
0
0
0
0
0
0
0
0
0
5f78fda933058c7a4fb151a47534efae216f1181
2,805
py
Python
app/Http/Controllers/machinelearning.py
ChrisFodor333/early_warning
b506e6ddaa50912f3cc5b58ee73de8a463879716
[ "MIT" ]
null
null
null
app/Http/Controllers/machinelearning.py
ChrisFodor333/early_warning
b506e6ddaa50912f3cc5b58ee73de8a463879716
[ "MIT" ]
null
null
null
app/Http/Controllers/machinelearning.py
ChrisFodor333/early_warning
b506e6ddaa50912f3cc5b58ee73de8a463879716
[ "MIT" ]
null
null
null
#!/usr/bin/python import numpy as np import pandas as pd import sys df = pd.read_csv('https://raw.githubusercontent.com/ChrisFodor333/early_warning/main/assets/machine.csv',header = 0); df = df.dropna(); #df.head(20); from sklearn.model_selection import train_test_split data = df X = data[['altman', 'in05', 'quick...
31.166667
165
0.775045
#!/usr/bin/python import numpy as np import pandas as pd import sys df = pd.read_csv('https://raw.githubusercontent.com/ChrisFodor333/early_warning/main/assets/machine.csv',header = 0); df = df.dropna(); #df.head(20); from sklearn.model_selection import train_test_split data = df X = data[['altman', 'in05', 'quick...
58
0
0
0
0
133
0
0
23
ed370fff408ba9f8a4761235130117e6135851e7
215
py
Python
python/hello_world.py
alanverdugo/travis_github_pages
5a7aefc4ac09e27e9a4214469c64262e62458553
[ "Apache-2.0" ]
null
null
null
python/hello_world.py
alanverdugo/travis_github_pages
5a7aefc4ac09e27e9a4214469c64262e62458553
[ "Apache-2.0" ]
null
null
null
python/hello_world.py
alanverdugo/travis_github_pages
5a7aefc4ac09e27e9a4214469c64262e62458553
[ "Apache-2.0" ]
1
2020-01-30T16:49:12.000Z
2020-01-30T16:49:12.000Z
#!/usr/bin/python """Sample program.""" def hello_world(): """Print a message to stdout.""" print("Hello, world!") def return_true(): """You can rent this space for only $5 a week.""" return True
17.916667
53
0.609302
#!/usr/bin/python """Sample program.""" def hello_world(): """Print a message to stdout.""" print("Hello, world!") def return_true(): """You can rent this space for only $5 a week.""" return True
0
0
0
0
0
0
0
0
0
6766ab8b4ecce2efa50640fdfa43566253393b40
466
py
Python
mundo_1/ex017.py
tseiiti/curso_em_video
59565ce809c1f025fb41ab69de3b8c5b53c8f7b2
[ "MIT" ]
null
null
null
mundo_1/ex017.py
tseiiti/curso_em_video
59565ce809c1f025fb41ab69de3b8c5b53c8f7b2
[ "MIT" ]
null
null
null
mundo_1/ex017.py
tseiiti/curso_em_video
59565ce809c1f025fb41ab69de3b8c5b53c8f7b2
[ "MIT" ]
null
null
null
from os import system, name system('cls' if name == 'nt' else 'clear') dsc = ('''DESAFIO 017: Faa um programa que leia o comprimento do cateto oposto e do cateto adjacente de um tringulo retngulo, calcule e mostre o comprimento da hipotenusa. ''') from math import hypot n1 = float(input('Cateto oposto: ')) n2 = floa...
31.066667
84
0.684549
from os import system, name system('cls' if name == 'nt' else 'clear') dsc = ('''DESAFIO 017: Faça um programa que leia o comprimento do cateto oposto e do cateto adjacente de um triângulo retângulo, calcule e mostre o comprimento da hipotenusa. ''') from math import hypot n1 = float(input('Cateto oposto: ')) n2 = f...
10
0
0
0
0
0
0
0
0
3889096aea39db5a3ddcfe2ddce7a298cdf60775
696
py
Python
scripts/dmg_settings.py
magicien/JoyfulPlayer
a06e684bd37f387a977427a83f21b07f567f7f09
[ "MIT" ]
1
2020-07-04T18:38:54.000Z
2020-07-04T18:38:54.000Z
scripts/dmg_settings.py
magicien/JoyfulPlayer
a06e684bd37f387a977427a83f21b07f567f7f09
[ "MIT" ]
null
null
null
scripts/dmg_settings.py
magicien/JoyfulPlayer
a06e684bd37f387a977427a83f21b07f567f7f09
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import os.path app = defines.get('app', './dmg/JoyfulPlayer.app') appname = os.path.basename(app) # Basics format = defines.get('format', 'UDZO') size = defines.get('size', None) files = [ app ] icon_locations = { appname: (160, 160), } # Window configuration sho...
16.571429
50
0.712644
from __future__ import unicode_literals import biplist import os.path app = defines.get('app', './dmg/JoyfulPlayer.app') appname = os.path.basename(app) # Basics format = defines.get('format', 'UDZO') size = defines.get('size', None) files = [ app ] icon_locations = { appname: (160, 160), } # Window co...
0
0
0
0
0
0
0
-7
23
d976a1a0f0149c3c740a9169eca118f522e6a8b3
916
py
Python
examples/gps/mf_lqr.py
JoeMWatson/trajopt
8b98718721e0c373cd7dc01a35f42447c1134713
[ "MIT" ]
1
2019-10-17T08:42:17.000Z
2019-10-17T08:42:17.000Z
examples/gps/mf_lqr.py
JoeMWatson/trajopt
8b98718721e0c373cd7dc01a35f42447c1134713
[ "MIT" ]
null
null
null
examples/gps/mf_lqr.py
JoeMWatson/trajopt
8b98718721e0c373cd7dc01a35f42447c1134713
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Filename: mf_lqr.py # @Date: 2019-06-16-18-38 # @Author: Hany Abdulsamad # @Contact: hany@robot-learning.de import gym from trajopt.gps import MFGPS # lqr task env = gym.make('LQR-TO-v0') env._max_episode_steps = 100 alg = MFGPS(env, nb_steps=100, kl_bo...
18.693878
66
0.649563
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Filename: mf_lqr.py # @Date: 2019-06-16-18-38 # @Author: Hany Abdulsamad # @Contact: hany@robot-learning.de import gym from trajopt.gps import MFGPS # lqr task env = gym.make('LQR-TO-v0') env._max_episode_steps = 100 alg = MFGPS(env, nb_steps=100, kl_bo...
0
0
0
0
0
0
0
0
0
f5c3e4a7036aaa2b68eeebe3f97522092aaea427
2,062
py
Python
lonely-lemmings/earlyinternet/gifapp/urls.py
Vthechamp22/summer-code-jam-2021
0a8bf1f22f6c73300891fd779da36efd8e1304c1
[ "MIT" ]
40
2020-08-02T07:38:22.000Z
2021-07-26T01:46:50.000Z
lonely-lemmings/earlyinternet/gifapp/urls.py
Vthechamp22/summer-code-jam-2021
0a8bf1f22f6c73300891fd779da36efd8e1304c1
[ "MIT" ]
134
2020-07-31T12:15:45.000Z
2020-12-13T04:42:19.000Z
lonely-lemmings/earlyinternet/gifapp/urls.py
Vthechamp22/summer-code-jam-2021
0a8bf1f22f6c73300891fd779da36efd8e1304c1
[ "MIT" ]
101
2020-07-31T12:00:47.000Z
2021-11-01T09:06:58.000Z
from django.urls import path from django.contrib.auth import views as auth_views from . import editorviews from . import userviews urlpatterns = [ # editor paths path("project", editorviews.render_all_projects, name="projects"), path("project/create", editorviews.parse_new_project_request, name="new"), ...
52.871795
115
0.739088
from django.urls import path from django.contrib.auth import views as auth_views from . import editorviews from . import userviews urlpatterns = [ # editor paths path("project", editorviews.render_all_projects, name="projects"), path("project/create", editorviews.parse_new_project_request, name="new"), ...
0
0
0
0
0
0
0
0
0
f7728f245f6643550200ae56f152b0dcaf86976e
14,468
py
Python
sidpy/hdf/dtype_utils.py
ziatdinovmax/sidpy
299147bfc22741b5170aa00e92b34159dfc910c5
[ "MIT" ]
null
null
null
sidpy/hdf/dtype_utils.py
ziatdinovmax/sidpy
299147bfc22741b5170aa00e92b34159dfc910c5
[ "MIT" ]
null
null
null
sidpy/hdf/dtype_utils.py
ziatdinovmax/sidpy
299147bfc22741b5170aa00e92b34159dfc910c5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Utilities for transforming and validating data types Given that many of the data transformations involve copying the data, they should ideally happen in a lazy manner to avoid memory issues. Created on Tue Nov 3 21:14:25 2015 @author: Suhas Somnath, Chris Smith """ from __future__ impor...
35.99005
143
0.661736
# -*- coding: utf-8 -*- """ Utilities for transforming and validating data types Given that many of the data transformations involve copying the data, they should ideally happen in a lazy manner to avoid memory issues. Created on Tue Nov 3 21:14:25 2015 @author: Suhas Somnath, Chris Smith """ from __future__ impor...
0
0
0
0
0
0
0
0
0
e1ac5baef00b06d774dac67914421c5c10c7f2b8
4,347
py
Python
artellapipe/libs/usd/core/usdview.py
ArtellaPipe/artellapipe-libs-usd
20b89bceca730aa961cc10a98ee6b94e09908d80
[ "MIT" ]
1
2021-12-01T12:06:59.000Z
2021-12-01T12:06:59.000Z
artellapipe/libs/usd/core/usdview.py
ArtellaPipe/artellapipe-libs-usd
20b89bceca730aa961cc10a98ee6b94e09908d80
[ "MIT" ]
null
null
null
artellapipe/libs/usd/core/usdview.py
ArtellaPipe/artellapipe-libs-usd
20b89bceca730aa961cc10a98ee6b94e09908d80
[ "MIT" ]
1
2022-01-04T09:00:21.000Z
2022-01-04T09:00:21.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- """ Module that contains functions related with Pixar USD usdview application """ from __future__ import print_function, division, absolute_import __author__ = "Tomas Poveda" __license__ = "MIT" __maintainer__ = "Tomas Poveda" __email__ = "tpovedatd@gmail.com" import o...
34.228346
117
0.700023
#! /usr/bin/env python # -*- coding: utf-8 -*- """ Module that contains functions related with Pixar USD usdview application """ from __future__ import print_function, division, absolute_import __author__ = "Tomas Poveda" __license__ = "MIT" __maintainer__ = "Tomas Poveda" __email__ = "tpovedatd@gmail.com" import o...
0
0
0
0
0
411
0
-11
68
3d6edba4947aa5c21d770035d86b0d082f1079c6
1,509
py
Python
data/transcoder_evaluation_gfg/python/LCS_FORMED_CONSECUTIVE_SEGMENTS_LEAST_LENGTH_K.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
241
2021-07-20T08:35:20.000Z
2022-03-31T02:39:08.000Z
data/transcoder_evaluation_gfg/python/LCS_FORMED_CONSECUTIVE_SEGMENTS_LEAST_LENGTH_K.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
49
2021-07-22T23:18:42.000Z
2022-03-24T09:15:26.000Z
data/transcoder_evaluation_gfg/python/LCS_FORMED_CONSECUTIVE_SEGMENTS_LEAST_LENGTH_K.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
71
2021-07-21T05:17:52.000Z
2022-03-29T23:49:28.000Z
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # #TOFILL if __name__ == '__main__': param = [ (4,'aggayxysdfa','aggajxaaasdfa',), (2,'55571659965107','39028665415...
35.928571
91
0.473161
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( k , s1 , s2 ) : n = len ( s1 ) m = len ( s2 ) lcs = [ [ 0 for x in range ( m + 1 ) ] for y in range ( n...
0
0
0
0
0
675
0
0
22
af7b906d9f975113497674a1301d8a1da8b05a40
13,694
py
Python
TD3.py
NamKim88/PGPS
51617637cde9b46a6f9fe0ae8c418cb60b0cf15a
[ "MIT" ]
2
2020-10-06T12:11:25.000Z
2021-09-03T08:57:06.000Z
TD3.py
NamKim88/PGPS
51617637cde9b46a6f9fe0ae8c418cb60b0cf15a
[ "MIT" ]
null
null
null
TD3.py
NamKim88/PGPS
51617637cde9b46a6f9fe0ae8c418cb60b0cf15a
[ "MIT" ]
null
null
null
import os import torch import torch.nn as nn os.environ['CUDA_VISIBLE_DEVICES'] = '1' USE_CUDA = torch.cuda.is_available() FloatTensor = torch.cuda.FloatTensor if USE_CUDA else torch.FloatTensor Device = torch.device("cuda" if USE_CUDA else "cpu")
39.578035
108
0.635607
import numpy as np import os import copy import torch import torch.nn as nn from torch.optim import Adam import torch.nn.functional as FF os.environ['CUDA_VISIBLE_DEVICES'] = '1' USE_CUDA = torch.cuda.is_available() FloatTensor = torch.cuda.FloatTensor if USE_CUDA else torch.FloatTensor Device = torch.device("cuda" if...
0
0
0
13,252
0
0
0
5
180
ebc77182ef16795e237af1a79e03276e443b251d
276
py
Python
chill/examples/chill/testcases/peel12.script.py
CompOpt4Apps/Artifact-DataDepSimplify
4fa1bf2bda2902fec50a54ee79ae405a554fc9f4
[ "MIT" ]
5
2019-05-20T03:35:41.000Z
2021-09-16T22:22:13.000Z
chill/examples/chill/testcases/peel12.script.py
CompOpt4Apps/Artifact-DataDepSimplify
4fa1bf2bda2902fec50a54ee79ae405a554fc9f4
[ "MIT" ]
null
null
null
chill/examples/chill/testcases/peel12.script.py
CompOpt4Apps/Artifact-DataDepSimplify
4fa1bf2bda2902fec50a54ee79ae405a554fc9f4
[ "MIT" ]
null
null
null
# # example from CHiLL manual page 13 # # peel 4 statements from the END of innermost loop # source('peel9101112.c') destination('peel12modified.c') procedure('mm') loop(0) peel(1,2,-4) # statement 1, loop 2 (middle, for j), 4 statements from END
15.333333
74
0.699275
# # example from CHiLL manual page 13 # # peel 4 statements from the END of innermost loop # from chill import * source('peel9101112.c') destination('peel12modified.c') procedure('mm') loop(0) peel(1,2,-4) # statement 1, loop 2 (middle, for j), 4 statements from END
0
0
0
0
0
0
0
-2
23
eb7a380c79b2a724dacaac572d80cf9e40cec552
5,408
py
Python
Main crawler/novel/spiders/crawler.py
phantom0174/Novel_Crawler
9a38ec46bb6d0963ba3d80ae99e7b4f9ff7c15a0
[ "MIT" ]
1
2022-03-19T13:20:00.000Z
2022-03-19T13:20:00.000Z
Main crawler/novel/spiders/crawler.py
phantom0174/Light-Novel-crawler
9a38ec46bb6d0963ba3d80ae99e7b4f9ff7c15a0
[ "MIT" ]
null
null
null
Main crawler/novel/spiders/crawler.py
phantom0174/Light-Novel-crawler
9a38ec46bb6d0963ba3d80ae99e7b4f9ff7c15a0
[ "MIT" ]
null
null
null
all = [[]] del(all[0])
37.041096
225
0.514238
import scrapy from opencc import OpenCC import os all = [[]] del(all[0]) class ncrawler(scrapy.Spider): name = 'n' #Things of web links start_urls = [input('Input the url of the book :')] domain = str() domain_set = bool(0) #Crawler mode set parse_mode = int(1) next_chapter = int(0) ...
48
0
0
5,296
0
0
0
-16
89
2a562ab23ac47bf79051fcbd2ddf912e304dc587
663
py
Python
examples/django_example/example/urls.py
hhru/python_social_auth
56945b8a031f276f4415a92a9ca4b7d61e951b12
[ "BSD-3-Clause" ]
1
2015-11-05T07:12:28.000Z
2015-11-05T07:12:28.000Z
examples/django_example/example/urls.py
JasonSanford/python-social-auth
2034a4390f785639c99fc05a0b747739e6d297fd
[ "BSD-3-Clause" ]
null
null
null
examples/django_example/example/urls.py
JasonSanford/python-social-auth
2034a4390f785639c99fc05a0b747739e6d297fd
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import patterns, include, url from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', url(r'^$', 'example.app.views.home'), url(r'^admin/', include(admin.site.urls)), url(r'^signup-email/', 'example.app.views.signup_email'), url(r'^email-sent/', 'example...
36.833333
78
0.665158
from django.conf.urls import patterns, include, url from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', url(r'^$', 'example.app.views.home'), url(r'^admin/', include(admin.site.urls)), url(r'^signup-email/', 'example.app.views.signup_email'), url(r'^email-sent/', 'example...
0
0
0
0
0
0
0
0
0
1acfbcde022326d208f6aa498eaf13494d09b493
188
py
Python
test_examples/python_2.py
Tejas-P-Herle/Python_Language_Converter
f349659a7fcc980d31ddf58f38b35a4aae28561b
[ "MIT" ]
3
2018-05-09T14:06:55.000Z
2019-04-10T22:53:42.000Z
test_examples/python_2.py
Tejas-P-Herle/PLC
f349659a7fcc980d31ddf58f38b35a4aae28561b
[ "MIT" ]
null
null
null
test_examples/python_2.py
Tejas-P-Herle/PLC
f349659a7fcc980d31ddf58f38b35a4aae28561b
[ "MIT" ]
null
null
null
if __name__ == "__main__": main()
14.461538
26
0.478723
def main(): value = 1 if value == 0: print("False") elif value == 1: print("True") else: print("Undefined") if __name__ == "__main__": main()
0
0
0
0
0
126
0
0
22
b2974283a5479f9baea3ad417a3eb2cb36194a6b
1,308
py
Python
apps/api/auth/decorators.py
Praetorian-Defence/praetorian-api
181fa22b043e58b2ac9c5f4eae4c3471a44c9bf4
[ "MIT" ]
2
2020-06-29T15:12:04.000Z
2020-10-13T14:18:21.000Z
apps/api/auth/decorators.py
Praetorian-Defence/praetorian-api
181fa22b043e58b2ac9c5f4eae4c3471a44c9bf4
[ "MIT" ]
10
2021-01-04T11:33:38.000Z
2021-05-07T10:23:48.000Z
apps/api/auth/decorators.py
zurek11/praetorian-api
181fa22b043e58b2ac9c5f4eae4c3471a44c9bf4
[ "MIT" ]
null
null
null
from functools import wraps def signature_exempt(view_func): """Mark a view function as being exempt from signature and apikey check.""" wrapped_view.signature_exempt = True return wraps(view_func)(wrapped_view)
33.538462
113
0.716361
from functools import wraps from http import HTTPStatus from django.utils.translation import gettext as _ from apps.api.errors import ApiException def token_required(func): @wraps(func) def inner(request, *args, **kwargs): if not hasattr(request, 'user') or not request.user or not request.user.is_au...
0
732
0
0
0
155
0
53
140
944fa87a20a65b14f77e66c05ef217e835e0f5ea
644
py
Python
qv/pages.py
Furuneko/otree_quadratic_voting
30ec9002d03153a6b22c9f1eedfe242b199c1255
[ "MIT" ]
1
2020-02-22T21:26:12.000Z
2020-02-22T21:26:12.000Z
qv/pages.py
Furuneko/otree_quadratic_voting
30ec9002d03153a6b22c9f1eedfe242b199c1255
[ "MIT" ]
null
null
null
qv/pages.py
Furuneko/otree_quadratic_voting
30ec9002d03153a6b22c9f1eedfe242b199c1255
[ "MIT" ]
null
null
null
page_sequence = [ QV ]
28
89
0.614907
from otree.api import Currency as c, currency_range from ._builtin import Page, WaitPage from .models import Constants class QV(Page): form_model = 'player' form_fields = ['q' + str(n) for n in range(1, len(Constants.questions)+1)] + \ ['q' + str(n) + '_agree' for n in range(1, len(Constants...
0
0
0
472
0
0
0
53
89
26a2050769dd854ae446a223707a3abffc1952e2
1,832
py
Python
random-priority-raffle.py
greghaskins/random-priority-raffle
15cb8425a13adcd5c9b56dc3fff63646060c83a4
[ "MIT" ]
null
null
null
random-priority-raffle.py
greghaskins/random-priority-raffle
15cb8425a13adcd5c9b56dc3fff63646060c83a4
[ "MIT" ]
null
null
null
random-priority-raffle.py
greghaskins/random-priority-raffle
15cb8425a13adcd5c9b56dc3fff63646060c83a4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import sys import random from pprint import pprint import yaml import raffle # ------------------------ # Command-line interface # ------------------------ USAGE = f""" Usage: {os.path.basename(__file__)} config_file [random_seed] config_file (required): Raffle config...
26.171429
72
0.691048
#!/usr/bin/env python3 import os import sys import random from pprint import pprint import yaml import raffle # ------------------------ # Command-line interface # ------------------------ USAGE = f""" Usage: {os.path.basename(__file__)} config_file [random_seed] config_file (required): Raffle config...
0
0
0
0
0
0
0
0
0
211a957319f53b0ed619653772aec6e92b690c12
294
py
Python
notaso/comments/admin.py
jpadilla/notaso
1c2f94d36b3d360d70f6c9937beb053beb8d8ad3
[ "MIT" ]
11
2017-03-16T21:47:51.000Z
2021-11-30T12:38:59.000Z
notaso/comments/admin.py
jpadilla/notaso
1c2f94d36b3d360d70f6c9937beb053beb8d8ad3
[ "MIT" ]
43
2015-01-13T14:14:48.000Z
2021-12-29T14:21:25.000Z
notaso/comments/admin.py
jpadilla/notaso
1c2f94d36b3d360d70f6c9937beb053beb8d8ad3
[ "MIT" ]
5
2015-09-27T15:05:36.000Z
2019-05-14T17:09:06.000Z
from django.contrib import admin from .models import Comment admin.site.register(Comment, CommentAdmin)
24.5
77
0.755102
from django.contrib import admin from .models import Comment class CommentAdmin(admin.ModelAdmin): list_display = ("created_at", "body", "professor", "created_by") search_fields = ["body", "professor__first_name", "professor__last_name"] admin.site.register(Comment, CommentAdmin)
0
0
0
163
0
0
0
0
23
57f61a27645356777c47ccb25a3133113ccffa1b
734
py
Python
output_newtargs/cp/pandas_merge_CP_bglf4_scores_newinformers_pkis1.py
SpencerEricksen/informers
5fd3934f5789c371026fc9eece1846ff1294122b
[ "MIT" ]
null
null
null
output_newtargs/cp/pandas_merge_CP_bglf4_scores_newinformers_pkis1.py
SpencerEricksen/informers
5fd3934f5789c371026fc9eece1846ff1294122b
[ "MIT" ]
1
2019-01-15T22:17:25.000Z
2019-01-16T12:14:39.000Z
output_newtargs/cp/pandas_merge_CP_bglf4_scores_newinformers_pkis1.py
SpencerEricksen/informers
5fd3934f5789c371026fc9eece1846ff1294122b
[ "MIT" ]
1
2019-01-15T12:36:15.000Z
2019-01-15T12:36:15.000Z
#!/home/ssericksen/anaconda2/bin/python2.7 import pandas as pd # load Ching-Pei's compound scores for BGLF4 with PKIS1 df1 = pd.read_csv('bglf4_pkis1', sep=" ") df1.set_index('fid', inplace=True) df1.columns = ['BGLF4'] df1.index.rename('molid', inplace=True) df1.index = df1.index.map(str) # load informer list as da...
27.185185
64
0.723433
#!/home/ssericksen/anaconda2/bin/python2.7 import pandas as pd import numpy as np # load Ching-Pei's compound scores for BGLF4 with PKIS1 df1 = pd.read_csv('bglf4_pkis1', sep=" ") df1.set_index('fid', inplace=True) df1.columns = ['BGLF4'] df1.index.rename('molid', inplace=True) df1.index = df1.index.map(str) # load ...
0
0
0
0
0
0
0
-3
22
360ce2242fc5b5c05d51c1ed4b51c81b17534215
8,395
py
Python
pytomato/conversion_af_er.py
robsonzagrejr/pytomato
3da3d9557f398a7ce2f3f8741c7cd70de9bfe05f
[ "MIT" ]
2
2021-02-25T14:29:13.000Z
2021-04-12T02:53:55.000Z
pytomato/conversion_af_er.py
robsonzagrejr/pytomato
3da3d9557f398a7ce2f3f8741c7cd70de9bfe05f
[ "MIT" ]
null
null
null
pytomato/conversion_af_er.py
robsonzagrejr/pytomato
3da3d9557f398a7ce2f3f8741c7cd70de9bfe05f
[ "MIT" ]
null
null
null
letters = 'abcdefghijklmnopqrstuvwxyz' numbers = '0123456789' """Teste Main criado para testar as funes. """ if __name__ == '__main__': print(er_to_afd('[J-M1-9]abc')) # er_to_afd('a(a|b)*a') # er_to_afd('aa*(bb*aa*b)*')
28.361486
94
0.517213
class Node: def __init__(self, left=None,right=None,data=None,father=None,first=None,fulfilled=None): self.left = left self.right = right self.data = data self.father = father self.is_first_of_chain = first self.fulfilled = fulfilled self.lastpos = None ...
4
0
0
563
0
7,331
0
0
260
4efe3582bfe30a1821bdbca1585fa90da4e93489
18,842
py
Python
accelerator_abstract/models/base_core_profile.py
masschallenge/django-accelerator
8af898b574be3b8335edc8961924d1c6fa8b5fd5
[ "MIT" ]
6
2017-06-14T19:34:01.000Z
2020-03-08T07:16:59.000Z
accelerator_abstract/models/base_core_profile.py
masschallenge/django-accelerator
8af898b574be3b8335edc8961924d1c6fa8b5fd5
[ "MIT" ]
160
2017-06-20T17:12:13.000Z
2022-03-30T13:53:12.000Z
accelerator_abstract/models/base_core_profile.py
masschallenge/django-accelerator
8af898b574be3b8335edc8961924d1c6fa8b5fd5
[ "MIT" ]
null
null
null
# MIT License # Copyright (c) 2017 MassChallenge, Inc. from django.utils.safestring import mark_safe INVITED_JUDGE_ALERT = ( "<h4>{first_name}, we would like to invite you to be a judge at " "MassChallenge!</h4>" "<p>&nbsp;</p>" "<p>{round_name} judging occurs from {start_date} to {end_date}! " "Of...
37.608782
79
0.635495
# MIT License # Copyright (c) 2017 MassChallenge, Inc. from datetime import datetime from decimal import Decimal from pytz import utc import swapper from django.conf import settings from django.core.validators import ( RegexValidator, MaxLengthValidator, ) from django.db import models from django.db.models im...
0
0
0
15,387
0
0
0
431
334
53efe294a1220ff799829ac423b0c9a968ee15e5
2,527
py
Python
game.py
AILab-FOI/MMO-IF
74a633bb7687ffdca8b3043046b0c572d5cc2969
[ "MIT" ]
null
null
null
game.py
AILab-FOI/MMO-IF
74a633bb7687ffdca8b3043046b0c572d5cc2969
[ "MIT" ]
null
null
null
game.py
AILab-FOI/MMO-IF
74a633bb7687ffdca8b3043046b0c572d5cc2969
[ "MIT" ]
null
null
null
import asyncio import sys GAME_FILE_NAME = "rooms.gblorb" game = None current_location = None EXIT_COMMANDS = ["quit", "exit"] ROOM_SELECTION_PATTERN = 'You entered (.*) room' MESSAGE_PARAMS_PATTERN = '@([^\s]+) (.*)' agent = None if __name__ == "__main__": if len(sys.argv) == 3: jid = sys.argv[1] ...
24.066667
90
0.663633
import re import asyncio import pexpect as px import sys from glulxe.interface import i7Game from avatar import Avatar GAME_FILE_NAME = "rooms.gblorb" game = None current_location = None EXIT_COMMANDS = ["quit", "exit"] ROOM_SELECTION_PATTERN = 'You entered (.*) room' MESSAGE_PARAMS_PATTERN = '@([^\s]+) (.*)' age...
0
0
1,405
0
0
398
0
5
273
91b93cc884ac8c0ea566b0f4ff9cf827afc1c82d
605
py
Python
solvers/brick_heads/instructions/gen_instructions.py
Anthony102899/Lego-ImageGenerator
52b19c8bb20f77a3394675e7c037c943a50c1e15
[ "Unlicense" ]
1
2022-03-20T10:23:38.000Z
2022-03-20T10:23:38.000Z
solvers/brick_heads/instructions/gen_instructions.py
Anthony102899/Lego-ImageGenerator
52b19c8bb20f77a3394675e7c037c943a50c1e15
[ "Unlicense" ]
null
null
null
solvers/brick_heads/instructions/gen_instructions.py
Anthony102899/Lego-ImageGenerator
52b19c8bb20f77a3394675e7c037c943a50c1e15
[ "Unlicense" ]
null
null
null
from bricks_modeling.file_IO.model_writer import write_model_to_file from util.debugger import MyDebugger from bricks_modeling.file_IO.model_reader import read_model_from_file ''' We assume the following information is provided: 1) assembly order 2) grouping 3) default camera view ''' if __name__ == "__main__": d...
35.588235
101
0.813223
from bricks_modeling.file_IO.model_writer import write_bricks_to_file_with_steps, write_model_to_file from util.debugger import MyDebugger from bricks_modeling.file_IO.model_reader import read_model_from_file, read_bricks_from_file ''' We assume the following information is provided: 1) assembly order 2) grouping 3) d...
0
0
0
0
0
0
0
56
0
406fc37da635061f79eb792d85f802ecf740e1cf
800
py
Python
data/Stats.py
T-amairi/IOTA
f7a212be681a002413219adca56f69bcdfbe8d17
[ "MIT" ]
3
2021-06-28T19:42:11.000Z
2021-08-11T08:23:10.000Z
data/Stats.py
T-amairi/IOTA
f7a212be681a002413219adca56f69bcdfbe8d17
[ "MIT" ]
null
null
null
data/Stats.py
T-amairi/IOTA
f7a212be681a002413219adca56f69bcdfbe8d17
[ "MIT" ]
1
2022-03-21T14:12:07.000Z
2022-03-21T14:12:07.000Z
import re import glob import os path = r".\data\log" os.chdir(path) t = [] logs = glob.glob("log*.txt") Nbrun = len(logs) for log in logs: l = open(log,'r') m = re.findall("(?<=Elapsed: )(.*?)(?=s)",l.read()) if float(m[-1]) > 0: t.append(float(m[-1])) l.close() if t: ...
19.512195
82
0.535
import re import glob import os path = r".\data\log" os.chdir(path) t = [] logs = glob.glob("log*.txt") Nbrun = len(logs) for log in logs: l = open(log,'r') m = re.findall("(?<=Elapsed: )(.*?)(?=s)",l.read()) if float(m[-1]) > 0: t.append(float(m[-1])) l.close() if t: ...
0
0
0
0
0
0
0
0
0
35fa41d37e98a2e529dec8561a025c496d6009c4
12,922
py
Python
lib/surface/topic/filters.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
lib/surface/topic/filters.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
null
null
null
lib/surface/topic/filters.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
1
2020-07-25T01:40:19.000Z
2020-07-25T01:40:19.000Z
# -*- coding: utf-8 -*- # # Copyright 2014 Google LLC. 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 requir...
39.76
166
0.627225
# -*- coding: utf-8 -*- # # Copyright 2014 Google LLC. 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 requir...
0
0
0
12,005
0
0
0
48
91
e7ea76e3a00992a63464a4b9c3737bee379992e0
471
py
Python
ai2_replication/tables.py
georgetown-cset/ai-definitions-for-policymaking
667e928c8bb30f6e02696ac71081c6bae4096f50
[ "ADSL" ]
1
2020-06-24T20:45:03.000Z
2020-06-24T20:45:03.000Z
ai2_replication/tables.py
georgetown-cset/ai-definitions-for-policymaking
667e928c8bb30f6e02696ac71081c6bae4096f50
[ "ADSL" ]
null
null
null
ai2_replication/tables.py
georgetown-cset/ai-definitions-for-policymaking
667e928c8bb30f6e02696ac71081c6bae4096f50
[ "ADSL" ]
null
null
null
from bq import create_client DATASET = 'ai2_replication' client = create_client() make_table('institutions') make_table('paper_authors_w_countries') make_table('language') make_table('ai_papers_any_author') make_table('paper_author_institution') make_table('oecd_comparison')
24.789474
65
0.757962
from bq import create_client, read_sql, query DATASET = 'ai2_replication' client = create_client() def make_table(table, **kw): sql = read_sql(f'../ai2_replication/{table}.sql') job = query(sql, table, dataset=DATASET, truncate=True, **kw) return job.result() make_table('institutions') make_table('pape...
0
0
0
0
0
151
0
17
23
93de89bf39c112dd5fd852b80fc612aaf44d3160
3,477
py
Python
app01/models.py
xinxinliang/ksDjango
0c0f4a5842cf225e77035b716979fcf9b8d03311
[ "Apache-2.0" ]
13
2021-03-11T12:35:29.000Z
2022-02-25T02:22:47.000Z
app01/models.py
xinxinliang/ksDjango
0c0f4a5842cf225e77035b716979fcf9b8d03311
[ "Apache-2.0" ]
1
2021-11-04T03:02:10.000Z
2021-11-04T03:02:10.000Z
app01/models.py
xinxinliang/ksDjango
0c0f4a5842cf225e77035b716979fcf9b8d03311
[ "Apache-2.0" ]
4
2021-06-12T19:27:01.000Z
2022-02-04T05:13:54.000Z
# Create your models here.
37.387097
119
0.708944
from django.db import models from datetime import datetime # Create your models here. class UserTitle(models.Model): #女为F,男为M GENDER = [ (0,"未知"), (1,"男"), (2,"女") ] STATE = [ (0,"0初次爬取"), (1,"1ksVideo"), (2,"1ksLive"), (3,"2ksVideo+ksLive"), ...
420
0
0
3,182
0
0
0
15
113
8826c003f0775c51783e8ad89aa5dd24eeb638cd
1,710
py
Python
instruments/common/example/image-classification/train_imagenet.py
All-less/mxnet-speculative-synchronization
f9220e4d8451768eeee3e680bb0b2edf8f91b9f3
[ "MIT" ]
6
2017-12-09T06:36:20.000Z
2019-10-09T07:59:18.000Z
instruments/common/example/image-classification/train_imagenet.py
All-less/mxnet-speculative-synchronization
f9220e4d8451768eeee3e680bb0b2edf8f91b9f3
[ "MIT" ]
null
null
null
instruments/common/example/image-classification/train_imagenet.py
All-less/mxnet-speculative-synchronization
f9220e4d8451768eeee3e680bb0b2edf8f91b9f3
[ "MIT" ]
2
2019-12-27T12:24:08.000Z
2019-12-27T12:26:32.000Z
import os import argparse import logging role = os.getenv('DMLC_ROLE').upper() if role == 'WORKER': role = 'Worker' # backward compatibility rank = os.getenv('DMLC_{}_ID'.format(role.upper())) logging.basicConfig(level=logging.INFO, format='%(asctime)s {0}[{1}] %(message)s'.format(role, rank)) from common import d...
35.625
120
0.609942
import os import argparse import logging role = os.getenv('DMLC_ROLE').upper() if role == 'WORKER': role = 'Worker' # backward compatibility rank = os.getenv('DMLC_{}_ID'.format(role.upper())) logging.basicConfig(level=logging.INFO, format='%(asctime)s {0}[{1}] %(message)s'.format(role, rank)) from common import f...
0
0
0
0
0
0
0
9
22
4848485d15db0cd77a31069526785a7cedbeb90e
26,456
py
Python
transitfeed/loader.py
opentransitmap/transitfeed
65d9a789dd8f58ffcb1a158a1807e1ee74b688ee
[ "Apache-2.0" ]
null
null
null
transitfeed/loader.py
opentransitmap/transitfeed
65d9a789dd8f58ffcb1a158a1807e1ee74b688ee
[ "Apache-2.0" ]
null
null
null
transitfeed/loader.py
opentransitmap/transitfeed
65d9a789dd8f58ffcb1a158a1807e1ee74b688ee
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python2.5 # Copyright (C) 2007 Google 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 la...
40.329268
88
0.570759
#!/usr/bin/python2.5 # Copyright (C) 2007 Google 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 la...
0
0
0
25,628
0
0
0
-37
222
5ba01580c6da41b657c147d3afe1463ceba3337a
4,050
py
Python
sitetree/tests/conftest.py
jonkiparsky/django-sitetree
4b9ab29ee7c26c20cd7711b8261cc1cadd8c4e50
[ "BSD-3-Clause" ]
null
null
null
sitetree/tests/conftest.py
jonkiparsky/django-sitetree
4b9ab29ee7c26c20cd7711b8261cc1cadd8c4e50
[ "BSD-3-Clause" ]
null
null
null
sitetree/tests/conftest.py
jonkiparsky/django-sitetree
4b9ab29ee7c26c20cd7711b8261cc1cadd8c4e50
[ "BSD-3-Clause" ]
null
null
null
from pytest_djangoapp import configure_djangoapp_plugin pytest_plugins = configure_djangoapp_plugin( extend_INSTALLED_APPS=[ 'django.contrib.admin', ], )
37.850467
114
0.465679
import pytest from pytest_djangoapp import configure_djangoapp_plugin pytest_plugins = configure_djangoapp_plugin( extend_INSTALLED_APPS=[ 'django.contrib.admin', ], ) @pytest.fixture def build_tree(): """Builds a sitetree from dict definition. Returns items indexed by urls. Example: ...
0
3,816
0
0
0
0
0
-8
68