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
8790f34d0d7e3a06ae4b661ea64a167a9284b21f
521
py
Python
app/config_template.py
larrylx/email-bot
0689ddb3a63dc0faa7d97a2aa2b72d9a428157da
[ "MIT" ]
null
null
null
app/config_template.py
larrylx/email-bot
0689ddb3a63dc0faa7d97a2aa2b72d9a428157da
[ "MIT" ]
null
null
null
app/config_template.py
larrylx/email-bot
0689ddb3a63dc0faa7d97a2aa2b72d9a428157da
[ "MIT" ]
null
null
null
# Auth ALLOW_HOST = [] # Bot Address SEND_AS = "" # Google GOOGLE_WORKSPACE_USER = "" GOOGLE_WORKSPACE_SERVICE_ACCOUNT_CREDENTIALS = '''{ "type": "service_account", "project_id": "", "private_key_id": "", "private_key": "", "client_email": "", "client_id": "", "auth_uri": "https://accounts...
24.809524
80
0.646833
# Auth ALLOW_HOST = [] # Bot Address SEND_AS = "" # Google GOOGLE_WORKSPACE_USER = "" GOOGLE_WORKSPACE_SERVICE_ACCOUNT_CREDENTIALS = '''{ "type": "service_account", "project_id": "", "private_key_id": "", "private_key": "", "client_email": "", "client_id": "", "auth_uri": "https://accounts...
0
0
0
0
0
0
0
0
0
604d2c58889a799deb5a51136f866fdb18afcd8e
756
py
Python
pylearn2/datasets/tests/test_adult.py
ikervazquezlopez/Pylearn2
2971e8f64374ffde572d4cf967aad5342beaf5e0
[ "BSD-3-Clause" ]
2,045
2015-01-01T14:07:52.000Z
2022-03-08T08:56:41.000Z
pylearn2/datasets/tests/test_adult.py
ikervazquezlopez/Pylearn2
2971e8f64374ffde572d4cf967aad5342beaf5e0
[ "BSD-3-Clause" ]
305
2015-01-02T13:18:24.000Z
2021-08-20T18:03:28.000Z
pylearn2/datasets/tests/test_adult.py
ikervazquezlopez/Pylearn2
2971e8f64374ffde572d4cf967aad5342beaf5e0
[ "BSD-3-Clause" ]
976
2015-01-01T17:08:51.000Z
2022-03-25T19:53:17.000Z
""" Test code for adult.py ======= Testing class that simply checks to see if the adult dataset is loadable """ from pylearn2.datasets.adult import adult from pylearn2.testing.skip import skip_if_no_data def test_adult(): """ Tests if it will work correctly for train and test set. """ skip_if_no_data(...
27
60
0.678571
""" Test code for adult.py ======= Testing class that simply checks to see if the adult dataset is loadable """ import numpy from pylearn2.datasets.adult import adult from pylearn2.testing.skip import skip_if_no_data def test_adult(): """ Tests if it will work correctly for train and test set. """ ski...
0
0
0
0
0
0
0
-9
22
58251a14d5f0a885f6169a7ae42e78076d256e6f
401
py
Python
tests/cases/fib_with_argparse.py
MiguelMarcelino/py2many
9b040b2a157e265df9c053eaf3e5cd644d3e30d0
[ "MIT" ]
2
2022-02-02T11:37:53.000Z
2022-03-30T18:19:06.000Z
tests/cases/fib_with_argparse.py
MiguelMarcelino/py2many
9b040b2a157e265df9c053eaf3e5cd644d3e30d0
[ "MIT" ]
25
2022-02-28T21:19:11.000Z
2022-03-23T21:26:20.000Z
tests/cases/fib_with_argparse.py
MiguelMarcelino/py2many
9b040b2a157e265df9c053eaf3e5cd644d3e30d0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 if __name__ == "__main__": args = Options.parse_args() if args.v: print("args.v is true") if args.n == 0: args.n = 5 print(fib(args.n))
16.04
40
0.553616
#!/usr/bin/env python3 from argparse_dataclass import dataclass @dataclass class Options: v: bool = False n: int = 0 def fib(i: int) -> int: if i == 0 or i == 1: return 1 return fib(i - 1) + fib(i - 2) if __name__ == "__main__": args = Options.parse_args() if args.v: print...
0
39
0
0
0
79
0
19
69
396d1311738d5c4198813a6e64e8cda6bf7c0a43
3,821
py
Python
src/util.py
Fluxticks/BountyOptimiser
5ce96dd58045d540536ad4c31fd1b454461bd9f1
[ "MIT" ]
null
null
null
src/util.py
Fluxticks/BountyOptimiser
5ce96dd58045d540536ad4c31fd1b454461bd9f1
[ "MIT" ]
null
null
null
src/util.py
Fluxticks/BountyOptimiser
5ce96dd58045d540536ad4c31fd1b454461bd9f1
[ "MIT" ]
null
null
null
import logging DEBUG_TRACE_NUM = 9 logging.Logger.trace = trace logging.addLevelName(9, 'TRACE') def dprint(data, parent='data', level=0): """Prints a dictionary with formatting Args: data (dict): The dictionary to be printed parent (str, optional): The key from the parent for ...
35.055046
114
0.61921
import logging import colorlog from coloured_log import ColoredFormatter DEBUG_TRACE_NUM = 9 def trace(self, message, *args, **kws): if self.isEnabledFor(DEBUG_TRACE_NUM): self._log(DEBUG_TRACE_NUM, message, args, **kws) logging.Logger.trace = trace logging.addLevelName(9, 'TRACE') def makeLogg...
0
0
0
230
0
1,899
0
14
169
28702ad204922dd46aac6611c5b25848b5b1b25c
5,505
py
Python
src/train.py
jf20541/DNNHyperparameterTuning
ba741c8eaaa4b814407ebb063bddde9f7a51bcbd
[ "MIT" ]
1
2021-08-17T02:01:19.000Z
2021-08-17T02:01:19.000Z
src/train.py
jf20541/DNNHyperparameterTuning
ba741c8eaaa4b814407ebb063bddde9f7a51bcbd
[ "MIT" ]
null
null
null
src/train.py
jf20541/DNNHyperparameterTuning
ba741c8eaaa4b814407ebb063bddde9f7a51bcbd
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import torch import optuna from dataset import HotelDataSet from model import DeepNeuralNetwork import config from engine import Engine from sklearn.metrics import roc_auc_score import torch.optim as optim def train(fold, params, save_model=False): """Finding the optimal DNN...
36.456954
115
0.662125
import pandas as pd import numpy as np import torch import optuna from dataset import HotelDataSet from model import DeepNeuralNetwork import config from engine import Engine from sklearn.metrics import roc_auc_score import torch.optim as optim def train(fold, params, save_model=False): """Finding the optimal DNN...
0
0
0
0
0
0
0
0
0
3d27ae549e9ad48016af98290dc2ad7096ed0215
9,638
py
Python
src/serverattack_main.py
Ilcyb/Federated-Learning-PyTorch
4830a89ffa1ac0ad0e52a4551338532cfb4ca210
[ "MIT" ]
1
2021-04-28T03:34:01.000Z
2021-04-28T03:34:01.000Z
src/serverattack_main.py
Ilcyb/Federated-Learning-PyTorch
4830a89ffa1ac0ad0e52a4551338532cfb4ca210
[ "MIT" ]
null
null
null
src/serverattack_main.py
Ilcyb/Federated-Learning-PyTorch
4830a89ffa1ac0ad0e52a4551338532cfb4ca210
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Python version: 3.6 import os import copy import time import numpy as np from tqdm import tqdm import torch from tensorboardX import SummaryWriter import torchvision.utils as vutils from options import args_parser from update import LocalUpdate, test_inference, Advers...
44.62037
206
0.618489
#!/usr/bin/env python # -*- coding: utf-8 -*- # Python version: 3.6 import os import copy import time import pickle import numpy as np from tqdm import tqdm import torch from tensorboardX import SummaryWriter import torchvision.utils as vutils from options import args_parser from update import LocalUpdate, test_inf...
147
0
0
0
0
0
0
162
22
93c0cc9337e79fdca67a9b20fc3b1dcffb643e0e
1,327
py
Python
ODEs/RK_methods.py
Zettergren-Courses/EP501_python
dabaa584e5158eb35197a43f38920a9ed7cc02b8
[ "MIT" ]
null
null
null
ODEs/RK_methods.py
Zettergren-Courses/EP501_python
dabaa584e5158eb35197a43f38920a9ed7cc02b8
[ "MIT" ]
1
2020-10-06T13:29:01.000Z
2020-10-06T13:29:01.000Z
ODEs/RK_methods.py
Zettergren-Courses/EP501_python
dabaa584e5158eb35197a43f38920a9ed7cc02b8
[ "MIT" ]
6
2020-09-01T10:35:59.000Z
2020-09-18T10:12:59.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Nov 19 07:23:35 2020 Illustrate the use of Runge-Kutta methods to solve ODEs @author: zettergm """ # Imports import numpy as np import matplotlib.pyplot as plt # RHS of ODE for use with RK4 # Time grid N=15 tmin=0 tmax=6 t=np.linspace(tmin,tmax,n...
17.012821
55
0.635268
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Nov 19 07:23:35 2020 Illustrate the use of Runge-Kutta methods to solve ODEs @author: zettergm """ # Imports import numpy as np import matplotlib.pyplot as plt # RHS of ODE for use with RK4 def fRK(t,y,alpha): fval=-alpha*y return fval # ...
0
0
0
0
0
32
0
0
22
fc148f3dfeed66f22fc7a3ed41f21e0da706a57c
1,267
py
Python
album_recommender/rec_system/migrations/0001_initial.py
LevUdaltsov/album_recommender
86d5f225bab0f8f4d65fd8184abadafb6654155f
[ "MIT" ]
1
2020-11-22T20:00:27.000Z
2020-11-22T20:00:27.000Z
album_recommender/rec_system/migrations/0001_initial.py
LevUdaltsov/album_recommender
86d5f225bab0f8f4d65fd8184abadafb6654155f
[ "MIT" ]
null
null
null
album_recommender/rec_system/migrations/0001_initial.py
LevUdaltsov/album_recommender
86d5f225bab0f8f4d65fd8184abadafb6654155f
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-11-04 19:12
36.2
114
0.573007
# Generated by Django 3.1.2 on 2020-11-04 19:12 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Album', fields=[ ('id', models.AutoField(au...
0
0
0
1,153
0
0
0
19
46
1c3d851cd9c71be09e0a6c57c8a32fceaf1783d2
12,793
py
Python
structuretimers/admin.py
buahaha/aa-structuretimers
fbc2752d442795c0803aa419a58ebd1cfd33c66d
[ "MIT" ]
null
null
null
structuretimers/admin.py
buahaha/aa-structuretimers
fbc2752d442795c0803aa419a58ebd1cfd33c66d
[ "MIT" ]
null
null
null
structuretimers/admin.py
buahaha/aa-structuretimers
fbc2752d442795c0803aa419a58ebd1cfd33c66d
[ "MIT" ]
null
null
null
# @admin.register(Timer) # class TimerAdmin(admin.ModelAdmin): # list_select_related = ("eve_solar_system", "structure_type", "user") # list_filter = ( # "timer_type", # ("eve_solar_system", admin.RelatedOnlyFieldListFilter), # ("structure_type", admin.RelatedOnlyFieldListFilter),...
34.575676
88
0.60197
from typing import Any, Dict, Optional from django import forms from django.contrib import admin from django.core.exceptions import ValidationError from django.db.models.functions import Lower from django.utils.safestring import mark_safe from django.utils.timezone import now from allianceauth.eveonline.models import...
0
8,498
0
1,833
0
67
0
278
361
5354bf2eb0b6402c52bb66eebb35355e3a2c29a4
357
py
Python
script.py
f1amingo/logparser
65f077a78a974a50e0fff792257fb6fea0a86821
[ "MIT" ]
null
null
null
script.py
f1amingo/logparser
65f077a78a974a50e0fff792257fb6fea0a86821
[ "MIT" ]
null
null
null
script.py
f1amingo/logparser
65f077a78a974a50e0fff792257fb6fea0a86821
[ "MIT" ]
null
null
null
from logparser.ADC.ADC_Fast import log_similarity # '<$>()<-1> : getImeiV2 memory:868404020067521' tem = ['<$>', '(', '', ')', '<-1>', ' ', '', ':', '', ' ', '<$>', '<$>', '<$>', '<$>', '<$>'] log = ['<$>', '(', '', ')', '<-1>', ' ', '', ':', '', ' ', 'getImeiV2', ' ', 'memory', ':', '868404020067521'] a = log_similar...
44.625
110
0.420168
from logparser.ADC.ADC_Fast import log_split, log_similarity # '<$>()<-1> : getImeiV2 memory:868404020067521' tem = ['<$>', '(', '', ')', '<-1>', ' ', '', ':', '', ' ', '<$>', '<$>', '<$>', '<$>', '<$>'] log = ['<$>', '(', '', ')', '<-1>', ' ', '', ':', '', ' ', 'getImeiV2', ' ', 'memory', ':', '868404020067521'] a = ...
0
0
0
0
0
0
0
11
0
16eca7bda6e12e4d2913a6a98b2a3352ed2ed698
386
py
Python
experiments/chatterbot.py
wmodes/chickenrobot
b1a903f48a667a295a7be5c026ededb6f20ade36
[ "MIT" ]
null
null
null
experiments/chatterbot.py
wmodes/chickenrobot
b1a903f48a667a295a7be5c026ededb6f20ade36
[ "MIT" ]
null
null
null
experiments/chatterbot.py
wmodes/chickenrobot
b1a903f48a667a295a7be5c026ededb6f20ade36
[ "MIT" ]
null
null
null
from chatterbot import ChatBot from chatterbot.trainers import ChatterBotCorpusTrainer chatbot = ChatBot('Ron Obvious') # Create a new trainer for the chatbot trainer = ChatterBotCorpusTrainer(chatbot) # Train the chatbot based on the english corpus trainer.train("chatterbot.corpus.english") # Get a response to an ...
27.571429
55
0.803109
from chatterbot import ChatBot from chatterbot.trainers import ChatterBotCorpusTrainer chatbot = ChatBot('Ron Obvious') # Create a new trainer for the chatbot trainer = ChatterBotCorpusTrainer(chatbot) # Train the chatbot based on the english corpus trainer.train("chatterbot.corpus.english") # Get a response to an ...
0
0
0
0
0
0
0
0
0
aba10f8d8eff32b9423a552b3f2ba0b280c6670c
236
py
Python
drlgeb/example.py
mikuh/drlgeb
5b70834fba6c550f319ea202a691394c2e99e8b5
[ "MIT" ]
null
null
null
drlgeb/example.py
mikuh/drlgeb
5b70834fba6c550f319ea202a691394c2e99e8b5
[ "MIT" ]
null
null
null
drlgeb/example.py
mikuh/drlgeb
5b70834fba6c550f319ea202a691394c2e99e8b5
[ "MIT" ]
null
null
null
from drlgeb.ac import A3C if __name__ == '__main__': env_id = "SpaceInvaders-v0" agent = A3C(env_id=env_id) # train agent.learn() # test model_path = "..." agent.play(episodes=5, model_path=model_path)
14.75
49
0.622881
from drlgeb.ac import A3C if __name__ == '__main__': env_id = "SpaceInvaders-v0" agent = A3C(env_id=env_id) # train agent.learn() # test model_path = "..." agent.play(episodes=5, model_path=model_path)
0
0
0
0
0
0
0
0
0
6a63c85a82799a6fc6dd7884c13a0a1e90d300b1
2,406
py
Python
horarios/migrations/0002_auto__chg_field_subject_name.py
xyos/horarios
f77cdcb3e9865389c4cb0cba8a41c087bffc88eb
[ "MIT" ]
2
2015-01-04T17:20:58.000Z
2016-01-08T17:20:47.000Z
horarios/migrations/0002_auto__chg_field_subject_name.py
xyos/horarios
f77cdcb3e9865389c4cb0cba8a41c087bffc88eb
[ "MIT" ]
8
2015-01-08T18:36:04.000Z
2015-05-25T02:44:26.000Z
horarios/migrations/0002_auto__chg_field_subject_name.py
xyos/horarios
f77cdcb3e9865389c4cb0cba8a41c087bffc88eb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*-
48.12
146
0.57606
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Changing field 'Subject.name' db.alter_column(u'horarios_subject', 'na...
0
0
0
2,218
0
0
0
53
111
546df6e9ef21d349caa0a7c75b2aa1e5f16fd0b2
223
py
Python
data/masif_site/nn_models/all_feat_1l/custom_params.py
NBDsoftware/masif
2a370518e0d0d0b0d6f153f2f10f6630ae91f149
[ "Apache-2.0" ]
309
2019-04-11T20:20:12.000Z
2022-03-31T16:32:17.000Z
data/masif_site/nn_models/all_feat_1l/custom_params.py
NBDsoftware/masif
2a370518e0d0d0b0d6f153f2f10f6630ae91f149
[ "Apache-2.0" ]
41
2019-03-31T06:44:46.000Z
2022-03-13T16:08:56.000Z
data/masif_site/nn_models/all_feat_1l/custom_params.py
NBDsoftware/masif
2a370518e0d0d0b0d6f153f2f10f6630ae91f149
[ "Apache-2.0" ]
90
2019-04-20T11:06:11.000Z
2022-03-24T16:22:22.000Z
custom_params = {} custom_params['model_dir'] = 'nn_models/all_feat_1l/model_data/' custom_params['out_dir'] = 'output/all_feat_1l/' custom_params['feat_mask'] = [1.0, 1.0, 1.0, 1.0, 1.0] custom_params['n_conv_layers'] = 1
37.166667
64
0.721973
custom_params = {} custom_params['model_dir'] = 'nn_models/all_feat_1l/model_data/' custom_params['out_dir'] = 'output/all_feat_1l/' custom_params['feat_mask'] = [1.0, 1.0, 1.0, 1.0, 1.0] custom_params['n_conv_layers'] = 1
0
0
0
0
0
0
0
0
0
0b82ddb45eaa0f0a0ba412992da31cf583976f8a
2,433
py
Python
pynini/examples/g2p.py
Freddy-pp/pynini
12587a4a3056931640dc741526225a0a5f02ca2f
[ "Apache-2.0" ]
62
2019-02-16T17:21:15.000Z
2022-03-25T04:50:58.000Z
pynini/examples/g2p.py
Freddy-pp/pynini
12587a4a3056931640dc741526225a0a5f02ca2f
[ "Apache-2.0" ]
44
2019-02-07T13:47:22.000Z
2022-02-04T14:46:33.000Z
pynini/examples/g2p.py
kylebgorman/pynini
a573bb49a4f307f5e920570e45d517065bd2b7cc
[ "Apache-2.0" ]
9
2019-05-06T09:09:36.000Z
2022-01-26T16:18:38.000Z
# Copyright 2016-2020 Google LLC # # 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 writi...
32.013158
79
0.549527
# Copyright 2016-2020 Google LLC # # 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 writi...
44
0
0
0
0
54
0
9
45
98f64fad3e877fc69d88e7f67a0d9ef1252d5d20
1,100
py
Python
skompiler/toskast/sklearn/linear_model/base.py
odinsemvosem/SKompiler
e46264796c8695497f43f6653688f5bcdbc0cfae
[ "MIT" ]
112
2018-12-12T03:54:28.000Z
2022-01-14T14:18:42.000Z
skompiler/toskast/sklearn/linear_model/base.py
odinsemvosem/SKompiler
e46264796c8695497f43f6653688f5bcdbc0cfae
[ "MIT" ]
10
2018-12-20T17:21:09.000Z
2022-03-24T19:31:55.000Z
skompiler/toskast/sklearn/linear_model/base.py
odinsemvosem/SKompiler
e46264796c8695497f43f6653688f5bcdbc0cfae
[ "MIT" ]
7
2019-02-05T05:20:05.000Z
2021-03-21T16:31:38.000Z
""" SKLearn linear model to SKAST. """ from skompiler.dsl import const def linear_model(coef, intercept, inputs): """ Linear regression. Depending on the shape of the coef and intercept, produces either a single-valued linear model (w @ x + b) or a multi-valued one (M @ x + b_vec) Args: c...
42.307692
129
0.691818
""" SKLearn linear model to SKAST. """ from skompiler.dsl import const def linear_model(coef, intercept, inputs): """ Linear regression. Depending on the shape of the coef and intercept, produces either a single-valued linear model (w @ x + b) or a multi-valued one (M @ x + b_vec) Args: c...
0
0
0
0
0
0
0
0
0
cb9c843981e48fb47efbd0dce57789a730182e3a
55
py
Python
howl/roomsensor/__init__.py
volzotan/django-howl
3b11c530da95d152844934da09592619b3d4497f
[ "MIT" ]
null
null
null
howl/roomsensor/__init__.py
volzotan/django-howl
3b11c530da95d152844934da09592619b3d4497f
[ "MIT" ]
null
null
null
howl/roomsensor/__init__.py
volzotan/django-howl
3b11c530da95d152844934da09592619b3d4497f
[ "MIT" ]
null
null
null
default_app_config = 'roomsensor.apps.RoomsensorConfig'
55
55
0.872727
default_app_config = 'roomsensor.apps.RoomsensorConfig'
0
0
0
0
0
0
0
0
0
21e507e7ab4bcd8fb87c931f3aa580cb59331a62
1,553
py
Python
src/TASK_train_1dCNN_ER_EC/model_cnn1d_cmu_classification_stage2.py
haoqi/emotions_as_primitives_towards_behavior_understanding
5d82bb0265e585da1cd0144bb93b28dc5cb0e710
[ "0BSD" ]
2
2020-08-13T18:26:46.000Z
2021-04-07T18:58:48.000Z
src/TASK_train_1dCNN_ER_EC/model_cnn1d_cmu_classification_stage2.py
haoqi/emotions_as_primitives_towards_behavior_understanding
5d82bb0265e585da1cd0144bb93b28dc5cb0e710
[ "0BSD" ]
null
null
null
src/TASK_train_1dCNN_ER_EC/model_cnn1d_cmu_classification_stage2.py
haoqi/emotions_as_primitives_towards_behavior_understanding
5d82bb0265e585da1cd0144bb93b28dc5cb0e710
[ "0BSD" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Nov 14 21:10:20 2018 @author: haoqi """ import torch.nn as nn
31.06
110
0.509981
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Nov 14 21:10:20 2018 @author: haoqi """ import os import torch import torch.nn as nn class Classification_Base_1D_NN_fixed_seq_len_1s_majvote_v2(nn.Module): ''' ''' def __init__(self, in_channels_num): super(Classification_Base_1D...
0
0
0
1,376
0
0
0
-21
67
ad5aac441f52450806160ebb3f673743c409340e
18,905
py
Python
btcde.py
rundekugel/btcde
f18bc844a92d8dc932332a2d9b479487b158c9d1
[ "MIT" ]
null
null
null
btcde.py
rundekugel/btcde
f18bc844a92d8dc932332a2d9b479487b158c9d1
[ "MIT" ]
null
null
null
btcde.py
rundekugel/btcde
f18bc844a92d8dc932332a2d9b479487b158c9d1
[ "MIT" ]
null
null
null
#! /usr/bin/env python """API Wrapper for Bitcoin.de Trading API.""" import logging logging.basicConfig() log = logging.getLogger(__name__) requests_log = logging.getLogger("requests.packages.urllib3") requests_log.propagate = True __version__ = '4.0' def HandleRequestsException(e): """Handle Exception from requ...
44.798578
129
0.606982
#! /usr/bin/env python """API Wrapper for Bitcoin.de Trading API.""" import requests import time import json import hmac import hashlib import logging import codecs import decimal import inspect import urllib from urllib.parse import urlencode logging.basicConfig() log = logging.getLogger(__name__) requests_log = lo...
0
0
0
17,874
0
0
0
-60
268
8c080f7a67d89084acf08fc4b0d24de5c243f0ba
749
py
Python
Section3/L6 Saving loading of file/saving_loading_arrays2.py
Mohit-Sharma1/Takenmind_Internship_assignments
7099ae3a70fca009f6298482e90e988124868148
[ "MIT" ]
null
null
null
Section3/L6 Saving loading of file/saving_loading_arrays2.py
Mohit-Sharma1/Takenmind_Internship_assignments
7099ae3a70fca009f6298482e90e988124868148
[ "MIT" ]
null
null
null
Section3/L6 Saving loading of file/saving_loading_arrays2.py
Mohit-Sharma1/Takenmind_Internship_assignments
7099ae3a70fca009f6298482e90e988124868148
[ "MIT" ]
null
null
null
import numpy as np arr=np.arange(10) print arr #saving single array np.save('saved_array',arr) #now_file_is_created = saved_array.npy new_array=np.load('saved_array.npy') print new_array #save multiple array array_1=np.arange(25) array_2=np.arange(30) np.savez('saved_archieve.npz',x=array_1,y=array_2) load_archi...
18.725
137
0.766355
import numpy as np arr=np.arange(10) print arr #saving single array np.save('saved_array',arr) #now_file_is_created = saved_array.npy new_array=np.load('saved_array.npy') print new_array #save multiple array array_1=np.arange(25) array_2=np.arange(30) np.savez('saved_archieve.npz',x=array_1,y=array_2) load_archi...
0
0
0
0
0
0
0
0
0
76d2e76305c2d3d979ffcd7fdf87223ff0b7649d
840
py
Python
caravel_test/test_frequency_counter.py
mattvenn/wrapped_frequency_counter
e3a0c328ed4b4882601dba04e3694d1dc0b70a52
[ "Apache-2.0" ]
1
2022-03-17T00:17:06.000Z
2022-03-17T00:17:06.000Z
caravel_test/test_frequency_counter.py
mattvenn/wrapped_frequency_counter
e3a0c328ed4b4882601dba04e3694d1dc0b70a52
[ "Apache-2.0" ]
null
null
null
caravel_test/test_frequency_counter.py
mattvenn/wrapped_frequency_counter
e3a0c328ed4b4882601dba04e3694d1dc0b70a52
[ "Apache-2.0" ]
null
null
null
clocks_per_phase = 10 # takes ~60 seconds on my PC
22.702703
67
0.671429
import cocotb from cocotb.clock import Clock from cocotb.triggers import RisingEdge, FallingEdge, ClockCycles import random from test.test_encoder import Encoder clocks_per_phase = 10 # takes ~60 seconds on my PC @cocotb.test() async def test_start(dut): clock = Clock(dut.clock, 25, units="ns") cocotb.fork(c...
0
601
0
0
0
0
0
52
132
cf18605741f7a9144acd9f9a39605a2fd243f40c
5,454
py
Python
lemonadefashion_flask_monitoringdashboard/controllers/requests.py
us88/LF_Flask-MonitoringDashboard
5917543fe480a3d46b52663d6937558078e9f705
[ "MIT" ]
null
null
null
lemonadefashion_flask_monitoringdashboard/controllers/requests.py
us88/LF_Flask-MonitoringDashboard
5917543fe480a3d46b52663d6937558078e9f705
[ "MIT" ]
null
null
null
lemonadefashion_flask_monitoringdashboard/controllers/requests.py
us88/LF_Flask-MonitoringDashboard
5917543fe480a3d46b52663d6937558078e9f705
[ "MIT" ]
null
null
null
import datetime import numpy from sqlalchemy import func, and_ from lemonadefashion_flask_monitoringdashboard.core.timezone import to_utc_datetime, to_local_datetime from lemonadefashion_flask_monitoringdashboard.database import Request from lemonadefashion_flask_monitoringdashboard.database.count_group import count_...
39.521739
119
0.713055
import datetime import numpy from sqlalchemy import func, and_ from lemonadefashion_flask_monitoringdashboard.core.timezone import to_utc_datetime, to_local_datetime from lemonadefashion_flask_monitoringdashboard.database import Request from lemonadefashion_flask_monitoringdashboard.database.count_group import count_...
0
0
0
0
0
129
0
84
45
8561e6fbacbb534b3ebce62f6af578c0af3f291e
5,992
py
Python
src/myth.py
gupta-siddhartha/MYTH
4a57536ba91e77687fa86e714c06821b275fef7a
[ "MIT" ]
null
null
null
src/myth.py
gupta-siddhartha/MYTH
4a57536ba91e77687fa86e714c06821b275fef7a
[ "MIT" ]
null
null
null
src/myth.py
gupta-siddhartha/MYTH
4a57536ba91e77687fa86e714c06821b275fef7a
[ "MIT" ]
null
null
null
#====================================================================== # MYTH : Multipurpose code compiles YT-rendering for Hydro-simulations # # Author: Siddhartha Gupta # contact: gsiddhartha@uchicago.edu # # Last modified on 17 July 2020 #======================================================================...
34.436782
101
0.563919
#====================================================================== # MYTH : Multipurpose code compiles YT-rendering for Hydro-simulations # # Author: Siddhartha Gupta # contact: gsiddhartha@uchicago.edu # # Last modified on 17 July 2020 #======================================================================...
0
0
0
0
0
0
0
7
69
4faa90fa574ae7c5351d0d865e9c4fefeaa8b91e
3,954
py
Python
azure-mgmt-batchai/azure/mgmt/batchai/models/cluster_create_parameters.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
4
2016-06-17T23:25:29.000Z
2022-03-30T22:37:45.000Z
azure-mgmt-batchai/azure/mgmt/batchai/models/cluster_create_parameters.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
2
2016-09-30T21:40:24.000Z
2017-11-10T18:16:18.000Z
azure-mgmt-batchai/azure/mgmt/batchai/models/cluster_create_parameters.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
3
2016-05-03T20:49:46.000Z
2017-10-05T21:05:27.000Z
# 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. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
49.425
188
0.6826
# 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. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
0
0
0
3,417
0
0
0
17
46
6e6d727791f38eb8a21eb1a8ac25979239e65594
1,457
py
Python
manager_app/apis/manage_carousel_api.py
syz247179876/e_mall
f94e39e091e098242342f532ae371b8ff127542f
[ "Apache-2.0" ]
7
2021-04-10T13:20:56.000Z
2022-03-29T15:00:29.000Z
manager_app/apis/manage_carousel_api.py
syz247179876/E_mall
f94e39e091e098242342f532ae371b8ff127542f
[ "Apache-2.0" ]
9
2021-05-11T03:53:31.000Z
2022-03-12T00:58:03.000Z
manager_app/apis/manage_carousel_api.py
syz247179876/E_mall
f94e39e091e098242342f532ae371b8ff127542f
[ "Apache-2.0" ]
2
2020-11-24T08:59:22.000Z
2020-11-24T14:10:59.000Z
# -*- coding: utf-8 -*- # @Time : 2021/4/6 8:51 # @Author : # @File : manage_carousel_api.py # @Software: Pycharm
31
107
0.702128
# -*- coding: utf-8 -*- # @Time : 2021/4/6 下午8:51 # @Author : 司云中 # @File : manage_carousel_api.py # @Software: Pycharm from rest_framework.response import Response from Emall.base_api import BackendGenericApiView from Emall.decorator import validate_url_data from Emall.response_code import response_code, DELETE_CARO...
171
395
0
536
0
0
0
215
134
25eb94215850c29794e09342a0067104f51af52e
3,678
py
Python
tests/test_user_def_template.py
CodeYellowBV/django-tally
a705821050da912fb8dabd56c41c040ea0a00a21
[ "MIT" ]
null
null
null
tests/test_user_def_template.py
CodeYellowBV/django-tally
a705821050da912fb8dabd56c41c040ea0a00a21
[ "MIT" ]
null
null
null
tests/test_user_def_template.py
CodeYellowBV/django-tally
a705821050da912fb8dabd56c41c040ea0a00a21
[ "MIT" ]
null
null
null
from django_tally.user_def.lang import parse AGGREGATE_PARAMS = { 'required': ['get_tally', 'add', 'sub'], 'optional': [ 'base', 'get_value', 'get_nonexisting_value', 'filter_value', 'transform', 'get_group', ], } AGGREGATE_TEMPLATE = list(parse(""" (do (def agg_base '(do (defn agg_s...
25.191781
67
0.54323
from django.test import TestCase from django_tally.data.models import Data from django_tally.user_def.lang import parse from django_tally.user_def.lang.json import encode from django_tally.user_def.models import UserDefTemplate from .testapp.models import Foo AGGREGATE_PARAMS = { 'required': ['get_tally', 'add'...
0
0
0
2,085
0
0
0
105
135
2d6b79d9f4841f82e28b707c6ae7d9435b499d27
7,381
py
Python
ml_models/RF.py
lackeylela/openASO
20dddb35f226e42dfd6da5c0fe1cf7196795d33d
[ "BSD-3-Clause" ]
3
2020-11-19T14:51:15.000Z
2022-01-29T02:14:18.000Z
ml_models/RF.py
lackeylela/openASO
20dddb35f226e42dfd6da5c0fe1cf7196795d33d
[ "BSD-3-Clause" ]
1
2020-05-24T00:15:49.000Z
2020-10-30T15:59:22.000Z
ml_models/RF.py
lackeylela/openASO
20dddb35f226e42dfd6da5c0fe1cf7196795d33d
[ "BSD-3-Clause" ]
4
2020-05-22T17:56:59.000Z
2021-01-13T03:51:53.000Z
# -*- coding: utf-8 -*- """ Created on Sat May 23 12:02:26 2020 @author: Chung """ import numpy as np import sys from sklearn.preprocessing import OneHotEncoder import matplotlib.pyplot as plt from sklearn.model_selection import train_test_split from sklearn.ensemble import RandomForestRegressor #from sklearn.ensembl...
29.762097
97
0.702886
# -*- coding: utf-8 -*- """ Created on Sat May 23 12:02:26 2020 @author: Chung """ import numpy as np import pandas as pd from sklearn import svm import sys import argparse from sklearn.linear_model import Perceptron from sklearn.preprocessing import OneHotEncoder import matplotlib.pyplot as plt from sklearn.model_s...
0
0
0
0
0
2,570
0
176
428
44c4d063f133515fa09f6e2667424f3d14d11a80
8,603
py
Python
parse_mail.py
ulrichard/vouchergen
698b60186c44209235c21ad502a66b19d003ef13
[ "BSD-3-Clause" ]
1
2019-06-24T20:51:06.000Z
2019-06-24T20:51:06.000Z
parse_mail.py
ulrichard/vouchergen
698b60186c44209235c21ad502a66b19d003ef13
[ "BSD-3-Clause" ]
1
2015-03-07T01:01:49.000Z
2015-03-07T01:01:49.000Z
parse_mail.py
ulrichard/vouchergen
698b60186c44209235c21ad502a66b19d003ef13
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/python import email, smtplib, tidy, os, datetime, csv, subprocess, locale, time, inspect, sys from lxml import etree from email.mime.text import MIMEText # allow import from subdirectory currentDir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) btcuDir = currentDir + '/bitcoin...
37.732456
118
0.55748
#! /usr/bin/python import email, smtplib, tidy, os, datetime, csv, subprocess, locale, time, inspect, sys from lxml import etree from email.mime.text import MIMEText # allow import from subdirectory currentDir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) btcuDir = currentDir + '/bitcoin...
0
0
0
5,708
0
0
0
0
93
0c6df9cb0d37ac8b13fd3faeca5ef0f44c8698b5
1,133
py
Python
ProjectEuler/p031.py
TISparta/competitive-programming-solutions
31987d4e67bb874bf15653565c6418b5605a20a8
[ "MIT" ]
1
2018-01-30T13:21:30.000Z
2018-01-30T13:21:30.000Z
ProjectEuler/p031.py
TISparta/competitive-programming-solutions
31987d4e67bb874bf15653565c6418b5605a20a8
[ "MIT" ]
null
null
null
ProjectEuler/p031.py
TISparta/competitive-programming-solutions
31987d4e67bb874bf15653565c6418b5605a20a8
[ "MIT" ]
1
2018-08-29T13:26:50.000Z
2018-08-29T13:26:50.000Z
# Execution time : 0.001408 seconds # Solution Explanation # Let v = { v1, v2, ..., vn } be values # We want to find in how many ways we can sum s with # element of v if we can get as many items of v as we need # ( We can choose as many times and element as we want ) # So, we can define the following recurrence # sol...
30.621622
93
0.595763
# Execution time : 0.001408 seconds # Solution Explanation # Let v = { v1, v2, ..., vn } be values # We want to find in how many ways we can sum s with # element of v if we can get as many items of v as we need # ( We can choose as many times and element as we want ) # So, we can define the following recurrence # sol...
0
0
0
0
0
362
0
0
23
61c2f0b08e78df0660d2c6a39451cea11268969f
933
py
Python
The Revolution of Prime Numbers/primenumbers_5.py
mralamdari/python_Adventure
026372163612aaab4f4908732f2912b8dd5240fb
[ "MIT" ]
2
2021-01-18T14:03:18.000Z
2021-02-04T09:45:15.000Z
The Revolution of Prime Numbers/primenumbers_5.py
EFA2020/python_Adventure
f98585008ee50867e21f025ce01b68e36123fff3
[ "MIT" ]
null
null
null
The Revolution of Prime Numbers/primenumbers_5.py
EFA2020/python_Adventure
f98585008ee50867e21f025ce01b68e36123fff3
[ "MIT" ]
null
null
null
""" This is my fifth prime number project, it is one of the fastest. It will find all prime numbers between 2 and 'End'. 1. At first we create an Prime array to N store True vlaue, and N is End + 1 == size and another list containing 2 as our main prime list 2.we iterate all odd numbers in range of 3 and END, if tha...
28.272727
52
0.632369
""" This is my fifth prime number project, it is one of the fastest. It will find all prime numbers between 2 and 'End'. 1. At first we create an Prime array to N store True vlaue, and N is End + 1 == size and another list containing 2 as our main prime list 2.we iterate all odd numbers in range of 3 and END, if tha...
0
0
0
0
0
340
0
0
23
612c9d94cef45f4522dd83452ff711ebfc4e387e
1,613
py
Python
src/Filtering/BinaryMathematicalMorphology/ThinImage/Code.py
Leengit/ITKExamples
9ab3696385a9fe82b4bbbadbdf7d3bb3b7079ec5
[ "Apache-2.0" ]
null
null
null
src/Filtering/BinaryMathematicalMorphology/ThinImage/Code.py
Leengit/ITKExamples
9ab3696385a9fe82b4bbbadbdf7d3bb3b7079ec5
[ "Apache-2.0" ]
null
null
null
src/Filtering/BinaryMathematicalMorphology/ThinImage/Code.py
Leengit/ITKExamples
9ab3696385a9fe82b4bbbadbdf7d3bb3b7079ec5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright NumFOCUS # # 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.txt # # Unless required by applicable law or ...
26.883333
87
0.725356
#!/usr/bin/env python # Copyright NumFOCUS # # 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.txt # # Unless required by applicable law or ...
0
0
0
0
0
0
0
0
0
dabb92efc6b69498e1c95a7d244c96eb89f7d911
1,411
py
Python
06_project_example/run.py
alexarmstrongvi/Tutorial-Python-Logger
a5d69f05fe2e02cc5bb2d98243bb21d25d801e82
[ "MIT" ]
null
null
null
06_project_example/run.py
alexarmstrongvi/Tutorial-Python-Logger
a5d69f05fe2e02cc5bb2d98243bb21d25d801e82
[ "MIT" ]
null
null
null
06_project_example/run.py
alexarmstrongvi/Tutorial-Python-Logger
a5d69f05fe2e02cc5bb2d98243bb21d25d801e82
[ "MIT" ]
null
null
null
import logger log = logger.get_logger(__name__) if __name__ == '__main__': args = get_args() if args.log_level: log.setLevel(args.log_level.upper()) main()
25.196429
76
0.639972
import logger log = logger.get_logger(__name__) import argparse import sys import os import subprocess import module as mod import subpackage.submodule as submod def get_args(): parser = argparse.ArgumentParser() parser.add_argument('-l', '--log-level') # log_level args = parser.parse_args() return ...
0
0
0
0
0
1,071
0
-18
180
a227747028c6b14641d8f64ac9d748b7af8120d3
2,996
py
Python
lib/surface/certificate_manager/maps/list.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/certificate_manager/maps/list.py
google-cloud-sdk-unofficial/google-cloud-sdk
2a48a04df14be46c8745050f98768e30474a1aac
[ "Apache-2.0" ]
null
null
null
lib/surface/certificate_manager/maps/list.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 2020 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...
31.87234
79
0.748331
# -*- coding: utf-8 -*- # # Copyright 2020 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
676
0
0
0
0
0
162
112
e750fd535877fd5891ddba57200668a4010a3aa3
938
py
Python
plugins/hanlp_demo/hanlp_demo/zh/train_sota_bert_pku.py
callzhang/HanLP
f33c7e95b1d30d952d57f50272152f8d3a1740b2
[ "Apache-2.0" ]
null
null
null
plugins/hanlp_demo/hanlp_demo/zh/train_sota_bert_pku.py
callzhang/HanLP
f33c7e95b1d30d952d57f50272152f8d3a1740b2
[ "Apache-2.0" ]
null
null
null
plugins/hanlp_demo/hanlp_demo/zh/train_sota_bert_pku.py
callzhang/HanLP
f33c7e95b1d30d952d57f50272152f8d3a1740b2
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # Author: hankcs # Date: 2020-08-11 02:47 from hanlp.common.dataset import SortingSamplerBuilder from hanlp.components.tokenizers.transformer import TransformerTaggingTokenizer from hanlp.datasets.cws.sighan2005.pku import SIGHAN2005_PKU_TRAIN_ALL, SIGHAN2005_PKU_TEST from tests import cdroot cd...
31.266667
91
0.766525
# -*- coding:utf-8 -*- # Author: hankcs # Date: 2020-08-11 02:47 from hanlp.common.dataset import SortingSamplerBuilder from hanlp.components.tokenizers.transformer import TransformerTaggingTokenizer from hanlp.datasets.cws.sighan2005.pku import SIGHAN2005_PKU_TRAIN_ALL, SIGHAN2005_PKU_TEST from tests import cdroot cd...
0
0
0
0
0
0
0
0
0
11ebadeaa60ed1cc5bbb6ca2726e3438b9721491
1,499
py
Python
bandcamp_player/__init__.py
MonkeysAreEvil/bandcamp-player
f3ecd9d998ff23df858eff755dcc0ac339cea771
[ "MIT" ]
null
null
null
bandcamp_player/__init__.py
MonkeysAreEvil/bandcamp-player
f3ecd9d998ff23df858eff755dcc0ac339cea771
[ "MIT" ]
null
null
null
bandcamp_player/__init__.py
MonkeysAreEvil/bandcamp-player
f3ecd9d998ff23df858eff755dcc0ac339cea771
[ "MIT" ]
1
2019-06-11T14:32:17.000Z
2019-06-11T14:32:17.000Z
# coding=utf-8 import logging logging.basicConfig(level=logging.INFO) def main(): """ Playing the tracks until CTRL-C """ try: loop() except KeyboardInterrupt: exit(0) if __name__ == '__main__': main()
26.298246
120
0.643763
# coding=utf-8 import logging import sys import argparse from bandcamp_parser.album import Album from bandcamp_parser.tag import Tag from bandcamp_parser.track import Track logging.basicConfig(level=logging.INFO) def loop(): parser = argparse.ArgumentParser(description="Plays a track, an album, or random tracks...
0
0
0
0
0
1,092
0
33
134
d42c6ad7703b5e148e59e19432bd1b37dbd29b17
9,809
py
Python
parts/broker/pub/hedge.py
coolerking/agent_smith
1ec8c285fcb3996eaa77869b15af993696e113a8
[ "MIT" ]
null
null
null
parts/broker/pub/hedge.py
coolerking/agent_smith
1ec8c285fcb3996eaa77869b15af993696e113a8
[ "MIT" ]
null
null
null
parts/broker/pub/hedge.py
coolerking/agent_smith
1ec8c285fcb3996eaa77869b15af993696e113a8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ MarvelmindAWS IoT Core Publish """
37.582375
103
0.504741
# -*- coding: utf-8 -*- """ MarvelmindデータをAWS IoT Core へ Publish するパーツクラスを定義するモジュール。 """ import time import json from .base import PublisherBase, to_float, to_str from .topic import pub_hedge_usnav_json_topic, pub_hedge_usnav_raw_json_topic, pub_hedge_imu_json_topic class USNavPublisher(PublisherBase): """ Ma...
2,181
0
0
8,770
0
0
0
90
157
e348e8fc45a6e77e7787283a95d82cd9fd9945ea
183
py
Python
python/moBu/menu/clean/__init__.py
CountZer0/PipelineConstructionSet
0aa73a8a63c72989b2d1c677efd78dad4388d335
[ "BSD-3-Clause" ]
21
2015-04-27T05:01:36.000Z
2021-11-22T13:45:14.000Z
python/moBu/menu/clean/__init__.py
0xb1dd1e/PipelineConstructionSet
621349da1b6d1437e95d0c9e48ee9f36d59f19fd
[ "BSD-3-Clause" ]
null
null
null
python/moBu/menu/clean/__init__.py
0xb1dd1e/PipelineConstructionSet
621349da1b6d1437e95d0c9e48ee9f36d59f19fd
[ "BSD-3-Clause" ]
7
2015-04-11T11:37:19.000Z
2020-05-22T09:49:04.000Z
''' Author: Jason.Parks Created: April 25, 2012 Module: menu.clean.__init__ Purpose: to import menu clean ''' if not __name__ == '__main__': print "menu.clean.__init__ imported"
20.333333
38
0.721311
''' Author: Jason.Parks Created: April 25, 2012 Module: menu.clean.__init__ Purpose: to import menu clean ''' if not __name__ == '__main__': print "menu.clean.__init__ imported"
0
0
0
0
0
0
0
0
0
21d6858d5d6148960d84325725569e7f3ca79771
23,676
py
Python
lib/membase/helper/cluster_helper.py
pavithra-mahamani/testrunner
d204491caa23f1fbe90505646534ed7810d96289
[ "Apache-2.0" ]
null
null
null
lib/membase/helper/cluster_helper.py
pavithra-mahamani/testrunner
d204491caa23f1fbe90505646534ed7810d96289
[ "Apache-2.0" ]
null
null
null
lib/membase/helper/cluster_helper.py
pavithra-mahamani/testrunner
d204491caa23f1fbe90505646534ed7810d96289
[ "Apache-2.0" ]
1
2020-07-24T07:15:59.000Z
2020-07-24T07:15:59.000Z
# the first ip is taken as the master ip # Returns True if cluster successfully finished then rebalance #wait_if_warmup=True is useful in tearDown method for (auto)failover tests # returns true if warmup is completed in wait_time sec # otherwise return false
44.420263
127
0.564285
from membase.api.rest_client import RestConnection, RestHelper from memcached.helper.data_helper import MemcachedClientHelper from remote.remote_util import RemoteMachineShellConnection from mc_bin_client import MemcachedClient, MemcachedError from membase.api.exception import ServerAlreadyJoinedException from membase....
0
22,061
0
16
0
0
0
231
1,085
76f60614b7a4484297d586fa523b1b6aa918d7e8
1,145
py
Python
stupid_not_work/pwm_socket_server_gui.py
mikeroslikov/BLIMP
84718a98bb4b31a8a73155547ed1e8537ef80eec
[ "Unlicense" ]
null
null
null
stupid_not_work/pwm_socket_server_gui.py
mikeroslikov/BLIMP
84718a98bb4b31a8a73155547ed1e8537ef80eec
[ "Unlicense" ]
null
null
null
stupid_not_work/pwm_socket_server_gui.py
mikeroslikov/BLIMP
84718a98bb4b31a8a73155547ed1e8537ef80eec
[ "Unlicense" ]
null
null
null
import socket import time throttle_position=1000 throttle_min =0 throttle_max = 0xffff master = Tk() master.geometry("500x500") master.columnconfigure(0, weight=1) master.rowconfigure(0, weight=1) w1 = Scale(master, from_=throttle_min, to=throttle_max, tickinterval=10) w1.set(throttle_min) w1.pack(fill=BOTH) # Crea...
23.854167
72
0.687336
import socket import sys import time throttle_position=1000 throttle_min =0 throttle_max = 0xffff from tkinter import * master = Tk() master.geometry("500x500") master.columnconfigure(0, weight=1) master.rowconfigure(0, weight=1) w1 = Scale(master, from_=throttle_min, to=throttle_max, tickinterval=10) w1.set(thrott...
0
0
0
0
0
0
0
-11
45
a4dcc5f588d7e513d03afc395d5dd04c07c6cb9d
654
py
Python
chapter1/code/params_global_argparse.py
gabrielmahia/ushuhudAI
ee40c9822852f66c6111d1d485dc676b6da70677
[ "MIT" ]
74
2020-05-19T01:08:03.000Z
2022-03-31T14:00:41.000Z
chapter1/code/params_global_argparse.py
gabrielmahia/ushuhudAI
ee40c9822852f66c6111d1d485dc676b6da70677
[ "MIT" ]
1
2021-06-04T06:08:21.000Z
2021-06-04T06:08:21.000Z
chapter1/code/params_global_argparse.py
gabrielmahia/ushuhudAI
ee40c9822852f66c6111d1d485dc676b6da70677
[ "MIT" ]
47
2020-05-05T12:06:31.000Z
2022-03-10T04:45:01.000Z
import argparse parser = argparse.ArgumentParser(description='Testing parameters') parser.add_argument("-p1", dest="param1", help="parameter1") parser.add_argument("-p2", dest="param2", help="parameter2") params = parser.parse_args() input_parameters = Parameters(param1=params.param1,param2=params.param2...
26.16
73
0.707951
import argparse class Parameters: """Global parameters""" def __init__(self, **kwargs): self.param1 = kwargs.get("param1") self.param2 = kwargs.get("param2") def view_parameters(input_parameters): print(input_parameters.param1) print(input_parameters.param2) parser ...
0
0
0
150
0
89
0
0
51
ec31ee23234715462a66dee082636edc4e8caf82
979
py
Python
scenarios/intersections/6lane/scenario.py
Semanti1/smarts_baseline
77dbc350f37ae7735c74a2b8f1585c2818ac3421
[ "MIT" ]
5
2021-06-15T05:06:10.000Z
2021-12-01T05:11:49.000Z
scenarios/intersections/6lane/scenario.py
Semanti1/smarts_baseline
77dbc350f37ae7735c74a2b8f1585c2818ac3421
[ "MIT" ]
null
null
null
scenarios/intersections/6lane/scenario.py
Semanti1/smarts_baseline
77dbc350f37ae7735c74a2b8f1585c2818ac3421
[ "MIT" ]
1
2022-03-31T02:14:09.000Z
2022-03-31T02:14:09.000Z
from pathlib import Path from smarts.sstudio import gen_scenario from smarts.sstudio.types import (SocialAgentActor, Scenario) actors = [ SocialAgentActor( name=f"non-interactive-agent-{speed}-v0", agent_locator="zoo.policies:non-interactive-agent-v0", policy_kwargs={"speed": speed}, )...
25.763158
80
0.614913
import os from pathlib import Path from smarts.sstudio import gen_scenario from smarts.sstudio.types import ( Mission, Route, SocialAgentActor, Scenario, ) actors = [ SocialAgentActor( name=f"non-interactive-agent-{speed}-v0", agent_locator="zoo.policies:non-interactive-agent-v0", ...
0
0
0
0
0
118
0
23
45
f1d5e52ea40f07596966b608a0b31cc62fe50969
4,976
py
Python
Using Databases with Python/Geodata/geoload.py
Karoline0097/University-of-Michigan-Python-for-Everybody
8b3999638c0c074ae3c1120de87cf8f31740ebb8
[ "MIT" ]
null
null
null
Using Databases with Python/Geodata/geoload.py
Karoline0097/University-of-Michigan-Python-for-Everybody
8b3999638c0c074ae3c1120de87cf8f31740ebb8
[ "MIT" ]
null
null
null
Using Databases with Python/Geodata/geoload.py
Karoline0097/University-of-Michigan-Python-for-Everybody
8b3999638c0c074ae3c1120de87cf8f31740ebb8
[ "MIT" ]
null
null
null
## STEP: GATHER DATA # data source: where.data, Google Geodata API # edit where.data to add an address nearby where you live # use the Google geocoding API to clean up some user-entered geographic locations of university names import urllib.request, urllib.parse, urllib.error import sqlite3 import json import time imp...
37.984733
109
0.697548
## STEP: GATHER DATA # data source: where.data, Google Geodata API # edit where.data to add an address nearby where you live # use the Google geocoding API to clean up some user-entered geographic locations of university names import urllib.request, urllib.parse, urllib.error import http import sqlite3 import json imp...
3
0
0
0
0
0
0
-21
44
139922438afd400fe3016bba57e000f385c74743
392
py
Python
setup.py
roblabs/gdal2tilesp
c92cc808c2ee614b2088d17634b76da9590b7273
[ "Apache-2.0" ]
18
2016-08-19T06:24:19.000Z
2022-01-07T06:00:40.000Z
setup.py
roblabs/gdal2tilesp
c92cc808c2ee614b2088d17634b76da9590b7273
[ "Apache-2.0" ]
11
2016-08-18T15:00:13.000Z
2020-02-03T19:43:50.000Z
setup.py
roblabs/gdal2tilesp
c92cc808c2ee614b2088d17634b76da9590b7273
[ "Apache-2.0" ]
11
2016-08-25T08:40:04.000Z
2019-12-11T18:08:57.000Z
from setuptools import setup setup( name='gdal2tilesp.py', version='3.14.15926', author='', author_email='', packages=['.'], scripts=['gdal2tilesp.py'], url='https://github.com/roblabs/gdal2tilesp', license='LICENSE.txt', description='Enhancements to tile cutter for parallelism and ...
26.133333
87
0.668367
from setuptools import setup setup( name='gdal2tilesp.py', version='3.14.15926', author='', author_email='', packages=['.'], scripts=['gdal2tilesp.py'], url='https://github.com/roblabs/gdal2tilesp', license='LICENSE.txt', description='Enhancements to tile cutter for parallelism and ...
0
0
0
0
0
0
0
0
0
8712734418a8763b66fe9e2ce2e53f044fb08ff4
1,121
py
Python
155-MinStack/MinStack.py
DarknessFall/MyLeetCode
4c7dcacfc208a0188542b73ae62bb4f7e57bcf51
[ "MIT" ]
null
null
null
155-MinStack/MinStack.py
DarknessFall/MyLeetCode
4c7dcacfc208a0188542b73ae62bb4f7e57bcf51
[ "MIT" ]
null
null
null
155-MinStack/MinStack.py
DarknessFall/MyLeetCode
4c7dcacfc208a0188542b73ae62bb4f7e57bcf51
[ "MIT" ]
null
null
null
stack = MinStackNew() stack.push(0) stack.push(-1) stack.push(0) x = stack.getMin() print(x) stack.pop() stack.pop() x = stack.getMin() print(x)
15.569444
49
0.600357
class MinStack: def __init__(self): """ initialize your data structure here. """ self.stack1 = [] self.stack2 = [] def push(self, x: int) -> None: if len(self.stack1) == 0 or x <= self.getMin(): self.stack2.append(x) self.stack1.append(x) def pop(self) -> None: value = self.stack1.pop() ...
0
0
0
923
0
0
0
0
47
da2ce721703a51a4f0e81c417b3dd0f0f7cf326e
11,728
py
Python
Examples/site/server/myclass.py
cyh-ustc/BlokusHacker
d08bd34df30b1b7ce6a09640b83c82babda9d593
[ "MIT" ]
20
2016-04-02T10:38:22.000Z
2021-09-20T07:47:26.000Z
Examples/site/server/myclass.py
cyh-ustc/BlokusHacker
d08bd34df30b1b7ce6a09640b83c82babda9d593
[ "MIT" ]
3
2016-04-02T08:44:45.000Z
2016-04-11T01:20:48.000Z
Examples/site/server/myclass.py
cyh-ustc/BlokusHacker
d08bd34df30b1b7ce6a09640b83c82babda9d593
[ "MIT" ]
14
2016-03-31T14:11:28.000Z
2017-08-13T01:36:59.000Z
#from simplejson import JSONDecoder #from simplejson import JSONEncoder # -------------------------------------------------------------------------------------- # This block define the input of the app # the name of style is not difined # json_example: # '{"State": "Normal", "Style": "10", "Moves": [[1, 2],...
36.880503
120
0.517224
#from simplejson import JSONDecoder #from simplejson import JSONEncoder # -------------------------------------------------------------------------------------- # This block define the input of the app # the name of style is not difined # json_example: # '{"State": "Normal", "Style": "10", "Moves": [[1, 2],...
539
0
0
9,081
0
1,376
0
2
147
1d16b85f47778da2655aaada8a1dc36f8747f3db
3,525
py
Python
autumn/model_runner.py
malanchak/AuTuMN
0cbd006d1f15da414d02eed44e48bb5c06f0802e
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
autumn/model_runner.py
malanchak/AuTuMN
0cbd006d1f15da414d02eed44e48bb5c06f0802e
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
autumn/model_runner.py
malanchak/AuTuMN
0cbd006d1f15da414d02eed44e48bb5c06f0802e
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
""" Build and run any AuTuMN model, storing the outputs """ import os import logging import yaml from datetime import datetime from autumn import constants from autumn.tool_kit.timer import Timer from autumn.tool_kit.scenarios import Scenario from autumn.tool_kit.utils import (get_git_branch, get_git_hash) from autum...
33.571429
97
0.639716
""" Build and run any AuTuMN model, storing the outputs """ import os import logging import yaml from datetime import datetime from autumn import constants from autumn.tool_kit.timer import Timer from autumn.tool_kit.serializer import serialize_model from autumn.tool_kit.scenarios import Scenario from autumn.tool_kit...
0
0
0
0
0
310
0
44
45
37bce0df6bd8a43af644e580e4fb57dc494b883f
768
py
Python
days/day101/Bite 18. Find the most common word/harry.py
alex-vegan/100daysofcode-with-python-course
b6c12316abe18274b7963371b8f0ed2fd549ef07
[ "MIT" ]
2
2018-10-28T17:12:37.000Z
2018-10-28T17:12:39.000Z
days/day101/Bite 18. Find the most common word/harry.py
alex-vegan/100daysofcode-with-python-course
b6c12316abe18274b7963371b8f0ed2fd549ef07
[ "MIT" ]
3
2018-10-28T17:11:04.000Z
2018-10-29T22:36:36.000Z
days/day101/Bite 18. Find the most common word/harry.py
alex-vegan/100daysofcode-with-python-course
b6c12316abe18274b7963371b8f0ed2fd549ef07
[ "MIT" ]
null
null
null
import os import urllib.request # data provided stopwords_file = os.path.join('/tmp', 'stopwords') harry_text = os.path.join('/tmp', 'harry') urllib.request.urlretrieve('http://bit.ly/2EuvyHB', stopwords_file) urllib.request.urlretrieve('http://bit.ly/2C6RzuR', harry_text) #stopwords_file = 'stopwords.txt' ...
33.391304
68
0.64974
import os import urllib.request from collections import Counter import re # data provided stopwords_file = os.path.join('/tmp', 'stopwords') harry_text = os.path.join('/tmp', 'harry') urllib.request.urlretrieve('http://bit.ly/2EuvyHB', stopwords_file) urllib.request.urlretrieve('http://bit.ly/2C6RzuR', harry_...
0
0
0
0
0
354
0
-2
70
6e2916af0581365bb3494ca2d3c85afdbe9c4fb8
2,062
py
Python
libs/preprocessors/silhouette.py
ajkdrag/Who-Is-That-Pokemon-Bot
6176148ee674c051458c744c6e05ad0934a7dcf7
[ "MIT" ]
null
null
null
libs/preprocessors/silhouette.py
ajkdrag/Who-Is-That-Pokemon-Bot
6176148ee674c051458c744c6e05ad0934a7dcf7
[ "MIT" ]
null
null
null
libs/preprocessors/silhouette.py
ajkdrag/Who-Is-That-Pokemon-Bot
6176148ee674c051458c744c6e05ad0934a7dcf7
[ "MIT" ]
null
null
null
import logging LOG = logging.getLogger(__name__)
36.175439
95
0.632881
import logging import cv2 as cv from utils.functions import iter_dir, join, make_dirs LOG = logging.getLogger(__name__) class Silhouette: def __init__(self, config): self.config = config def get_holes(self, image, thresh, base): gray = cv.cvtColor(image, cv.COLOR_BGR2GRAY) im_bw = c...
0
0
0
1,916
0
0
0
27
68
62732ead68f40bf265f23cb83b3530c32c6e7b6e
2,084
py
Python
giraffez/fmt.py
istvan-fodor/giraffez
6b4d27eb1a1eaf188c6885c7364ef27e92b1b957
[ "Apache-2.0" ]
122
2016-08-18T21:12:58.000Z
2021-11-24T14:45:19.000Z
giraffez/fmt.py
istvan-fodor/giraffez
6b4d27eb1a1eaf188c6885c7364ef27e92b1b957
[ "Apache-2.0" ]
68
2016-08-31T18:19:16.000Z
2021-11-01T19:21:22.000Z
giraffez/fmt.py
istvan-fodor/giraffez
6b4d27eb1a1eaf188c6885c7364ef27e92b1b957
[ "Apache-2.0" ]
44
2016-08-19T01:22:21.000Z
2022-03-23T17:39:40.000Z
# -*- coding: utf-8 -*- # # Copyright 2016 Capital One Services, LLC # # 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 ...
29.771429
90
0.644914
# -*- coding: utf-8 -*- # # Copyright 2016 Capital One Services, LLC # # 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 ...
0
0
0
0
0
1,192
0
1
275
d3521872ad60a69a63f6579c90ba8e0a110ff706
3,731
py
Python
unet/unet_model.py
visinf/pixelpyramids
cd59fe8a8f744f556f44c1faeed958822b39fe7c
[ "Apache-2.0" ]
8
2021-11-10T17:45:32.000Z
2022-02-22T16:40:54.000Z
unet/unet_model.py
visinf/pixelpyramids
cd59fe8a8f744f556f44c1faeed958822b39fe7c
[ "Apache-2.0" ]
1
2021-12-23T07:09:23.000Z
2021-12-24T06:24:39.000Z
unet/unet_model.py
visinf/pixelpyramids
cd59fe8a8f744f556f44c1faeed958822b39fe7c
[ "Apache-2.0" ]
1
2021-11-15T06:50:39.000Z
2021-11-15T06:50:39.000Z
""" Full assembly of the parts to form the complete network """ '''class UNet(nn.Module): def __init__(self, n_channels, n_classes, isfine=True, bilinear=True): super(UNet, self).__init__() self.n_channels = n_channels self.n_classes = n_classes self.is_fine = isfine self.bi...
35.198113
99
0.537925
""" Full assembly of the parts to form the complete network """ import sys import torch.nn.functional as F from .unet_parts import * '''class UNet(nn.Module): def __init__(self, n_channels, n_classes, isfine=True, bilinear=True): super(UNet, self).__init__() self.n_channels = n_channels se...
0
0
0
2,396
0
0
0
3
90
edc112350f0641b049e49966a7cbc254a44c2bb1
6,467
py
Python
pyuvdata/tests/test_fhd_cal.py
r-xue/pyuvdata
667abc1a8a8a4fefd91f68a1cb15d4f62cd9fb60
[ "BSD-2-Clause" ]
null
null
null
pyuvdata/tests/test_fhd_cal.py
r-xue/pyuvdata
667abc1a8a8a4fefd91f68a1cb15d4f62cd9fb60
[ "BSD-2-Clause" ]
null
null
null
pyuvdata/tests/test_fhd_cal.py
r-xue/pyuvdata
667abc1a8a8a4fefd91f68a1cb15d4f62cd9fb60
[ "BSD-2-Clause" ]
null
null
null
# -*- mode: python; coding: utf-8 -* # Copyright (c) 2018 Radio Astronomy Software Group # Licensed under the 2-clause BSD License """Tests for FHD_cal object. """ from __future__ import absolute_import, division, print_function import nose.tools as nt import os from pyuvdata import UVCal import pyuvdata.tests as u...
41.722581
106
0.720427
# -*- mode: python; coding: utf-8 -* # Copyright (c) 2018 Radio Astronomy Software Group # Licensed under the 2-clause BSD License """Tests for FHD_cal object. """ from __future__ import absolute_import, division, print_function import nose.tools as nt import os import numpy as np from pyuvdata import UVCal import ...
0
0
0
0
0
0
0
-3
22
1a2717656fd27b5bbc8cd7307b564457181591a0
2,605
py
Python
qsdsan/sanunits/_component_splitter.py
stetsonrowles/QSDsan
a74949fcf9e6ff91e9160a75bedaf6fab2191efb
[ "NCSA", "CNRI-Python", "FTL" ]
null
null
null
qsdsan/sanunits/_component_splitter.py
stetsonrowles/QSDsan
a74949fcf9e6ff91e9160a75bedaf6fab2191efb
[ "NCSA", "CNRI-Python", "FTL" ]
null
null
null
qsdsan/sanunits/_component_splitter.py
stetsonrowles/QSDsan
a74949fcf9e6ff91e9160a75bedaf6fab2191efb
[ "NCSA", "CNRI-Python", "FTL" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' QSDsan: Quantitative Sustainable Design for sanitation and resource recovery systems This module is developed by: Yalin Li <zoe.yalin.li@gmail.com> This module is under the University of Illinois/NCSA Open Source License. Please refer to https://github.com/QSD-G...
29.269663
105
0.59501
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' QSDsan: Quantitative Sustainable Design for sanitation and resource recovery systems This module is developed by: Yalin Li <zoe.yalin.li@gmail.com> This module is under the University of Illinois/NCSA Open Source License. Please refer to https://github.com/QSD-G...
0
577
0
1,499
0
0
0
27
46
8ef77eaada8f6cb34ed14bebcaae741bfa4909f6
926
py
Python
antaytheist/quote/quotefallacy.py
antaytheist/antaytheist
52f64f5e09c4bd52d694eb44af62bb897ab492da
[ "MIT" ]
null
null
null
antaytheist/quote/quotefallacy.py
antaytheist/antaytheist
52f64f5e09c4bd52d694eb44af62bb897ab492da
[ "MIT" ]
null
null
null
antaytheist/quote/quotefallacy.py
antaytheist/antaytheist
52f64f5e09c4bd52d694eb44af62bb897ab492da
[ "MIT" ]
null
null
null
# fallacy quoter for antaytheist import json import requests fallaciesjson = requests.get("https://yourlogicalfallacyis.com/js/data/fallacies.json", timeout=15) fallaciesjson.raise_for_status() fallacies = json.loads(fallaciesjson.text) fallacynames = [] for fallacyitem in fallacies: fallacynames.append(fallacyit...
28.9375
103
0.61987
# fallacy quoter for antaytheist import json import re import requests fallaciesjson = requests.get("https://yourlogicalfallacyis.com/js/data/fallacies.json", timeout=15) fallaciesjson.raise_for_status() fallacies = json.loads(fallaciesjson.text) fallacynames = [] for fallacyitem in fallacies: fallacynames.append...
0
0
0
0
0
560
0
-12
45
8180e77980290adfbae6f1839d3968062a315434
171
py
Python
programmers/lv2_review/test.py
mrbartrns/swacademy_structure
778f0546030385237c383d81ec37d5bd9ed1272d
[ "MIT" ]
null
null
null
programmers/lv2_review/test.py
mrbartrns/swacademy_structure
778f0546030385237c383d81ec37d5bd9ed1272d
[ "MIT" ]
null
null
null
programmers/lv2_review/test.py
mrbartrns/swacademy_structure
778f0546030385237c383d81ec37d5bd9ed1272d
[ "MIT" ]
null
null
null
idx = 0 a, b, c = map(int, input().split()) for i in range(a): for j in range(b): for k in range(c): idx += 1 print(i, j, k) print(idx)
21.375
35
0.461988
idx = 0 a, b, c = map(int, input().split()) for i in range(a): for j in range(b): for k in range(c): idx += 1 print(i, j, k) print(idx)
0
0
0
0
0
0
0
0
0
6b00713419d5784bad69590ca1e8452a747dae46
809
py
Python
ImageProcessing/LiveStreamVideo/Video/old/webcamread.py
gudduarnav/ImageProcessingPython
e0d5d3f64d8a209ff986e10d81763f9614e2403d
[ "MIT" ]
null
null
null
ImageProcessing/LiveStreamVideo/Video/old/webcamread.py
gudduarnav/ImageProcessingPython
e0d5d3f64d8a209ff986e10d81763f9614e2403d
[ "MIT" ]
null
null
null
ImageProcessing/LiveStreamVideo/Video/old/webcamread.py
gudduarnav/ImageProcessingPython
e0d5d3f64d8a209ff986e10d81763f9614e2403d
[ "MIT" ]
null
null
null
# Live stream a Colored video from Webcam or default Video Capture device import cv2 # Open the default Video Capture device (or WebCam) v = cv2.VideoCapture(0) # Check if the file can be opened successfully if(v.isOpened() == "False"): print("ERROR: Cannot open the Video File") quit() print("SUCCESS: Video...
22.472222
73
0.663782
# Live stream a Colored video from Webcam or default Video Capture device import cv2 # Open the default Video Capture device (or WebCam) v = cv2.VideoCapture(0) # Check if the file can be opened successfully if(v.isOpened() == "False"): print("ERROR: Cannot open the Video File") quit() print("SUCCESS: Video...
0
0
0
0
0
0
0
0
0
b85d122594b4531661a033b8ba3925c5dc50ff2c
724
py
Python
06.py
sqldan/advent-of-code-2020
17c5240da16dec81d84859061fdb5d3a3174c860
[ "MIT" ]
null
null
null
06.py
sqldan/advent-of-code-2020
17c5240da16dec81d84859061fdb5d3a3174c860
[ "MIT" ]
null
null
null
06.py
sqldan/advent-of-code-2020
17c5240da16dec81d84859061fdb5d3a3174c860
[ "MIT" ]
null
null
null
answers = [] with open("input06.txt") as f: ans = set('') for line in f: line = line.strip() if not line: answers.append(ans) ans = set('') else: ans = ans.union(set(line)) ans = ans.union(set(line)) answers.append(ans) print(sum([len(a) for a in ans...
23.354839
51
0.558011
answers = [] with open("input06.txt") as f: ans = set('') for line in f: line = line.strip() if not line: answers.append(ans) ans = set('') else: ans = ans.union(set(line)) ans = ans.union(set(line)) answers.append(ans) print(sum([len(a) for a in ans...
0
0
0
0
0
0
0
0
0
97dddffe5b61ea8e1e48b4113345224990d3eccd
4,648
py
Python
bedevere/util.py
hugovk/bedevere
1163568e89fe5b4bbad66885fef6d3a2fc85c736
[ "Apache-2.0" ]
null
null
null
bedevere/util.py
hugovk/bedevere
1163568e89fe5b4bbad66885fef6d3a2fc85c736
[ "Apache-2.0" ]
null
null
null
bedevere/util.py
hugovk/bedevere
1163568e89fe5b4bbad66885fef6d3a2fc85c736
[ "Apache-2.0" ]
null
null
null
DEFAULT_BODY = "" TAG_NAME = "gh-issue-number" NEWS_NEXT_DIR = "Misc/NEWS.d/next/" CLOSING_TAG = f"<!-- /{TAG_NAME} -->" BODY = f"""\ {{body}} <!-- {TAG_NAME}: gh-{{issue_number}} --> * gh-{{issue_number}} {CLOSING_TAG} """ def create_status(context, state, *, description=None, target_url=None): """Create the...
27.502959
83
0.6321
import enum import sys import gidgethub DEFAULT_BODY = "" TAG_NAME = "gh-issue-number" NEWS_NEXT_DIR = "Misc/NEWS.d/next/" CLOSING_TAG = f"<!-- /{TAG_NAME} -->" BODY = f"""\ {{body}} <!-- {TAG_NAME}: gh-{{issue_number}} --> * gh-{{issue_number}} {CLOSING_TAG} """ @enum.unique class StatusState(enum.Enum): SUC...
6
89
2,420
0
0
344
0
-26
297
88d146fb72f4520dbbb2e8d70ecdedfaf44b1bb6
4,218
py
Python
dev_ws/src/everyday_studio/capture.py
MichaelContrerasR/Face-every-day-maker
788b36e3b4a3830c6a1f45c3d92b9b35a0ff46e0
[ "Apache-2.0" ]
7
2021-06-13T10:33:24.000Z
2021-08-22T12:46:33.000Z
dev_ws/src/everyday_studio/capture.py
MichaelContrerasR/Face-every-day-maker
788b36e3b4a3830c6a1f45c3d92b9b35a0ff46e0
[ "Apache-2.0" ]
null
null
null
dev_ws/src/everyday_studio/capture.py
MichaelContrerasR/Face-every-day-maker
788b36e3b4a3830c6a1f45c3d92b9b35a0ff46e0
[ "Apache-2.0" ]
5
2021-06-13T04:31:03.000Z
2021-07-19T22:03:23.000Z
""" Author: John Betacourt Gonzalez Aka: @JohnBetaCode """ # ============================================================================= # LIBRARIES AND DEPENDENCIES - LIBRARIES AND DEPENDENCIES - LIBRARIES AND DEPEN # ============================================================================= # =================...
34.292683
124
0.490991
""" Author: John Betacourt Gonzalez Aka: @JohnBetaCode """ # ============================================================================= # LIBRARIES AND DEPENDENCIES - LIBRARIES AND DEPENDENCIES - LIBRARIES AND DEPEN # ============================================================================= from utils import pr...
0
617
0
2,391
0
0
0
-6
110
77bffa1098b8768211df90eae754fc4c4e7a4356
3,101
py
Python
parsons/ngpvan/locations.py
cmc333333/parsons
50804a3627117797570f1e9233c9bbad583f7831
[ "Apache-2.0" ]
3
2019-09-05T16:57:15.000Z
2019-10-01T19:56:58.000Z
parsons/ngpvan/locations.py
cmc333333/parsons
50804a3627117797570f1e9233c9bbad583f7831
[ "Apache-2.0" ]
22
2019-09-03T13:23:37.000Z
2019-10-03T20:32:48.000Z
parsons/ngpvan/locations.py
cmc333333/parsons
50804a3627117797570f1e9233c9bbad583f7831
[ "Apache-2.0" ]
2
2019-09-01T18:30:10.000Z
2019-10-03T20:07:46.000Z
"""NGPVAN Locations Endpoints""" import logging logger = logging.getLogger(__name__)
28.190909
88
0.530474
"""NGPVAN Locations Endpoints""" from parsons.etl.table import Table import logging logger = logging.getLogger(__name__) class Locations(object): def __init__(self, van_connection): self.connection = van_connection def get_locations(self, name=None): """ Get locations. `A...
0
0
0
2,954
0
0
0
14
46
07f3903bad8e2886e3957bfe37cc6140d43c9015
14,018
py
Python
kindlestrip.py
cxumol/kindlestrip
05646993262cf7cb998ead2ca60867d20e14cbe3
[ "Unlicense" ]
3
2018-10-19T09:51:29.000Z
2020-07-22T19:06:13.000Z
kindlestrip.py
cxumol/kindlestrip
05646993262cf7cb998ead2ca60867d20e14cbe3
[ "Unlicense" ]
null
null
null
kindlestrip.py
cxumol/kindlestrip
05646993262cf7cb998ead2ca60867d20e14cbe3
[ "Unlicense" ]
1
2019-11-17T04:06:26.000Z
2019-11-17T04:06:26.000Z
#!/usr/bin/env python # vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai # # This is a python script. You need a Python interpreter to run it. # For example, ActiveState Python, which exists for windows. # # This script strips the penultimate record from a Mobipocket file. # This is useful because the current KindleGen...
36.792651
112
0.643458
#!/usr/bin/env python # vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai # # This is a python script. You need a Python interpreter to run it. # For example, ActiveState Python, which exists for windows. # # This script strips the penultimate record from a Mobipocket file. # This is useful because the current KindleGen...
0
0
0
5,168
0
5,214
0
-44
407
246d46ae6c505df31b87fe4cb7e01b2fa96c9f97
1,484
py
Python
tools/icon_map_generator.py
pjeanjean/dakara-player
0251f42ab86a3ae8fdfc2bb61d156527807dedf2
[ "MIT" ]
null
null
null
tools/icon_map_generator.py
pjeanjean/dakara-player
0251f42ab86a3ae8fdfc2bb61d156527807dedf2
[ "MIT" ]
null
null
null
tools/icon_map_generator.py
pjeanjean/dakara-player
0251f42ab86a3ae8fdfc2bb61d156527807dedf2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import re import os import json from argparse import ArgumentParser CSS_ICON_NAME_PARSER = r"""\.fa-([^:]*?):(?=[^}]*?content:\s*['"](.*?)['"])""" def generate(css_file, json_file): """Generate a file that contains code for character names """ # check css_file exists if not os...
22.830769
80
0.623989
#!/usr/bin/env python3 import re import os import json from argparse import ArgumentParser CSS_ICON_NAME_PARSER = r"""\.fa-([^:]*?):(?=[^}]*?content:\s*['"](.*?)['"])""" def generate(css_file, json_file): """Generate a file that contains code for character names """ # check css_file exists if not os...
0
0
0
0
0
0
0
0
0
fccb8d9930d2562fe22c0a8e111619c543d501f6
11,310
py
Python
workunit.py
ringThePeople/LCA_web_service
4addd167d63e5d60816939939c5fb7d16d2cfbd7
[ "MIT" ]
null
null
null
workunit.py
ringThePeople/LCA_web_service
4addd167d63e5d60816939939c5fb7d16d2cfbd7
[ "MIT" ]
null
null
null
workunit.py
ringThePeople/LCA_web_service
4addd167d63e5d60816939939c5fb7d16d2cfbd7
[ "MIT" ]
null
null
null
import json import csv import berexapi as bex from pandas import Series, DataFrame import pandas as pd import tools.color as toolcolor import tools.arrange as toolarrange import numpy as np import itertools import tools.repack as toolrepack import tools.genie3 as toolgenie3 ERROR_CODE = ["", 1] if _...
31.859155
204
0.660566
import json from numpy import * import csv import berexapi as bex from pandas import Series, DataFrame import pandas as pd import tools.color as toolcolor import tools.arrange as toolarrange import numpy as np import itertools import tools.repack as toolrepack import tools.genie3 as toolgenie3 ERROR_CODE ...
0
0
0
0
0
10,820
0
-2
123
2496d5bf833996999c495500f73b3012f376f5fa
13,697
py
Python
asdfghjkl/matrices.py
rioyokotalab/asdfghjkl
f435c1e2527162fb07512b4ce5058460aab238b9
[ "MIT" ]
null
null
null
asdfghjkl/matrices.py
rioyokotalab/asdfghjkl
f435c1e2527162fb07512b4ce5058460aab238b9
[ "MIT" ]
null
null
null
asdfghjkl/matrices.py
rioyokotalab/asdfghjkl
f435c1e2527162fb07512b4ce5058460aab238b9
[ "MIT" ]
null
null
null
import torch HESSIAN = 'hessian' # Hessian FISHER_EXACT = 'fisher_exact' # exact Fisher FISHER_MC = 'fisher_mc' # Fisher estimation by Monte-Carlo sampling COV = 'cov' # no-centered covariance a.k.a. empirical Fisher SHAPE_FULL = 'full' # full SHAPE_BLOCK_DIAG = 'block_diag' # layer-wise block-diagonal SHAPE_K...
36.23545
132
0.571658
import os import copy import torch import torch.distributed as dist from .symmatrix import SymMatrix HESSIAN = 'hessian' # Hessian FISHER_EXACT = 'fisher_exact' # exact Fisher FISHER_MC = 'fisher_mc' # Fisher estimation by Monte-Carlo sampling COV = 'cov' # no-centered covariance a.k.a. empirical Fisher SHAPE_F...
0
154
0
12,439
0
205
0
0
135
7c4a5c208693dc301133a460806a91704d8e72d2
148
py
Python
chuck-pyth/code/copytildone.py
KaiserPhemi/python-101
703facf41f1b47c486e5044696ce87b6d28a9ab3
[ "MIT" ]
41
2015-02-27T22:13:41.000Z
2021-11-14T15:37:29.000Z
chuck-pyth/code/copytildone.py
KaiserPhemi/python-101
703facf41f1b47c486e5044696ce87b6d28a9ab3
[ "MIT" ]
2
2015-12-15T04:03:15.000Z
2017-01-13T15:29:47.000Z
chuck-pyth/code/copytildone.py
KaiserPhemi/python-101
703facf41f1b47c486e5044696ce87b6d28a9ab3
[ "MIT" ]
45
2015-01-03T17:26:02.000Z
2022-01-09T16:06:04.000Z
while True: line = raw_input('> ') if line[0] == '#' : continue if line == 'done': break print line print 'Done!'
13.454545
26
0.472973
while True: line = raw_input('> ') if line[0] == '#' : continue if line == 'done': break print line print 'Done!'
0
0
0
0
0
0
0
0
0
6a63ed94125041dfe1732611478aa856e87d8ccc
1,029
py
Python
test_package/conanfile.py
lucteo/conan-llvm
48ac43d0338f425b8fdea66b29f531c695b7fe1c
[ "MIT" ]
2
2017-02-17T11:47:03.000Z
2020-03-20T23:47:08.000Z
test_package/conanfile.py
lucteo/conan-llvm
48ac43d0338f425b8fdea66b29f531c695b7fe1c
[ "MIT" ]
1
2018-02-20T22:48:01.000Z
2018-02-21T18:13:37.000Z
test_package/conanfile.py
lucteo/conan-llvm
48ac43d0338f425b8fdea66b29f531c695b7fe1c
[ "MIT" ]
3
2018-01-14T20:34:27.000Z
2018-04-01T08:53:34.000Z
import os ############### CONFIGURE THESE VALUES ################## default_user = "lucteo" default_channel = "testing" ######################################################### channel = os.getenv("CONAN_CHANNEL", default_channel) username = os.getenv("CONAN_USERNAME", default_user)
33.193548
82
0.579203
from conans import ConanFile, CMake import os ############### CONFIGURE THESE VALUES ################## default_user = "lucteo" default_channel = "testing" ######################################################### channel = os.getenv("CONAN_CHANNEL", default_channel) username = os.getenv("CONAN_USERNAME", default_use...
0
0
0
683
0
0
0
14
45
ede3be627374eb4e0bbf1cb79ed587d97de563ee
19,123
py
Python
code/network_helpers.py
lujonathanh/BETS
7121e16281e0e7973c1ee6f631b59ac1f7e7a7d5
[ "Apache-2.0" ]
12
2019-04-02T05:22:03.000Z
2021-09-18T14:46:29.000Z
code/network_helpers.py
lujonathanh/BETS
7121e16281e0e7973c1ee6f631b59ac1f7e7a7d5
[ "Apache-2.0" ]
1
2019-06-05T20:12:18.000Z
2019-06-06T16:12:03.000Z
code/network_helpers.py
lujonathanh/BETS
7121e16281e0e7973c1ee6f631b59ac1f7e7a7d5
[ "Apache-2.0" ]
3
2020-07-15T21:34:46.000Z
2021-02-21T17:47:01.000Z
__author__ = 'jlu96' import numpy as np import pandas as pd import collections global data_dir data_dir = "/Users/jlu96/v-causal-snps/data/GeneExpressionData/GGR_Network/" global genecols genecols = ["Official Symbol Interactor A", "Official Symbol Interactor B"] def annotate_cols(df, cols, genes, name):...
27.876093
127
0.619045
__author__ = 'jlu96' import csv import numpy as np import json import pandas as pd import collections global data_dir data_dir = "/Users/jlu96/v-causal-snps/data/GeneExpressionData/GGR_Network/" global genecols genecols = ["Official Symbol Interactor A", "Official Symbol Interactor B"] def load_hg_ensg_old(): h...
0
0
0
0
0
7,518
0
-21
550
634a8730df30da759f5eb7f0b329cabff1b0d86f
3,241
py
Python
example.py
dunky11/exponential-weighting-watermarking
717bd04ac05daf8eb7e902ec84b04fc02126bf92
[ "MIT" ]
7
2020-11-22T19:14:17.000Z
2022-03-01T05:59:58.000Z
example.py
dunky11/exponential-weighting-watermarking
717bd04ac05daf8eb7e902ec84b04fc02126bf92
[ "MIT" ]
1
2021-10-05T21:17:02.000Z
2021-10-05T21:17:02.000Z
example.py
dunky11/exponential-weighting-watermarking
717bd04ac05daf8eb7e902ec84b04fc02126bf92
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow import keras import tensorflow_datasets as tfds from ew import EWDense, EWConv2D AUTOTUNE = tf.data.experimental.AUTOTUNE dataset = tfds.load("mnist", as_supervised=True, split="train") val_set = tfds.load("mnist", as_supervised=True, split="test") dataset = dataset.map(to_f...
33.412371
290
0.735267
import tensorflow as tf from tensorflow import keras import matplotlib.pyplot as plt import tensorflow_datasets as tfds import random from ew import EWBase, EWDense, EWConv2D AUTOTUNE = tf.data.experimental.AUTOTUNE def enable_ew(model): for layer in model.layers: if isinstance(layer, EWBase): ...
0
0
0
0
0
263
0
10
136
bcaff74a3fb31af55f4d0dcd134ec2f92c623590
2,151
py
Python
Avito/QA_Excellence/scripts/task1/task1.py
stanislav-kudriavtsev/Test-Tasks
fc0c26eb7afc995b48897861554512a8412a6ef3
[ "CC0-1.0" ]
null
null
null
Avito/QA_Excellence/scripts/task1/task1.py
stanislav-kudriavtsev/Test-Tasks
fc0c26eb7afc995b48897861554512a8412a6ef3
[ "CC0-1.0" ]
null
null
null
Avito/QA_Excellence/scripts/task1/task1.py
stanislav-kudriavtsev/Test-Tasks
fc0c26eb7afc995b48897861554512a8412a6ef3
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Task 1 - data parsing.""" __author__ = "Stanislav D. Kudriavtsev" import json from pathlib import Path from sys import exit # Attention. # the original files were with mistakes # so they all were passed through JSON # online validator and beautifier, see # README ...
29.067568
78
0.555091
#!/usr/bin/env python # -*- coding: utf-8 -*- """Task 1 - data parsing.""" __author__ = "Stanislav D. Kudriavtsev" import json from pathlib import Path from sys import exit # Attention. # the original files were with mistakes # so they all were passed through JSON # online validator and beautifier, see # README ...
46
0
0
0
0
0
0
0
0
fe9cd45bc69ace98750dc3416020c7bbca73ef19
1,828
py
Python
scalica/web/scalica/populate_test_2.py
BlindGhosty/LSWA-Project
950fa492426bcebe60872c9a24e00399ff63f045
[ "MIT" ]
null
null
null
scalica/web/scalica/populate_test_2.py
BlindGhosty/LSWA-Project
950fa492426bcebe60872c9a24e00399ff63f045
[ "MIT" ]
2
2017-12-03T23:04:13.000Z
2017-12-03T23:49:25.000Z
scalica/web/scalica/populate_test_2.py
BlindGhosty/LSWA-Project
950fa492426bcebe60872c9a24e00399ff63f045
[ "MIT" ]
null
null
null
import sys from django.contrib.auth import authenticate from django.contrib.auth import get_user_model from django.utils import timezone from micro.models import Following import random User = get_user_model() user_nameL = "L" user_nameR = "R" password = "pass" TOTAL_USERS = 20 MAX_FOLLOWERS = 3 i = 0 while (i < TO...
28.5625
109
0.68709
import sys from django.contrib.auth import authenticate from django.contrib.auth import get_user_model from django.utils import timezone from micro.models import Following import random User = get_user_model() user_nameL = "L" user_nameR = "R" password = "pass" TOTAL_USERS = 20 MAX_FOLLOWERS = 3 i = 0 while (i < TO...
0
0
0
0
0
0
0
0
0
75dae17e02466a6554ef3f2682cb050534a5fe72
35
py
Python
src/models/train_model.py
suppathak/anomaly-detection-HTM
baca3c6bcf68b27ebefb1735d9f73c1cb15a1e0f
[ "FTL" ]
7
2020-06-30T15:44:44.000Z
2022-03-02T12:23:40.000Z
src/models/train_model.py
suppathak/anomaly-detection-HTM
baca3c6bcf68b27ebefb1735d9f73c1cb15a1e0f
[ "FTL" ]
39
2021-09-09T21:42:19.000Z
2022-03-21T15:30:08.000Z
src/models/train_model.py
suppathak/anomaly-detection-HTM
baca3c6bcf68b27ebefb1735d9f73c1cb15a1e0f
[ "FTL" ]
17
2020-06-19T20:55:22.000Z
2021-08-30T16:42:22.000Z
"""Here goes the training code."""
17.5
34
0.657143
"""Here goes the training code."""
0
0
0
0
0
0
0
0
0
e226b11de8770b5ab2d4e922dd1283b226547d37
7,804
py
Python
src/aggregator.py
dmartyanov/timeseries-vae-anomaly
354127c1a34e4ddc3dbb37d38538964f6aff068e
[ "MIT" ]
null
null
null
src/aggregator.py
dmartyanov/timeseries-vae-anomaly
354127c1a34e4ddc3dbb37d38538964f6aff068e
[ "MIT" ]
4
2020-11-13T18:36:26.000Z
2022-02-10T00:41:38.000Z
src/aggregator.py
dmartyanov/timeseries-vae-anomaly
354127c1a34e4ddc3dbb37d38538964f6aff068e
[ "MIT" ]
1
2020-03-03T17:30:56.000Z
2020-03-03T17:30:56.000Z
import os import json import pandas as pd from datetime import timedelta SAMPLES_FOLDER = os.environ.get('SAMPLES_FOLDER') application_diagram = { 'productpage': set(['reviews', 'details']), 'reviews': set(['ratings']), 'details': set() } k1 = '#DC7633' k2 = '#E74C3C' delta = timedelta(seconds=5) ...
35.472727
127
0.582394
import os import json import pandas as pd import numpy as np import uuid import matplotlib.pyplot as plt from matplotlib.cm import get_cmap import random from datetime import datetime, timedelta SAMPLES_FOLDER = os.environ.get('SAMPLES_FOLDER') application_diagram = { 'productpage': set(['reviews', 'details']...
0
0
0
6,676
0
0
0
12
159
d1f7fa38176bcb6053a6fa5ffbbb440fd27e5d2f
480
py
Python
codes_/0728_Self_Dividing_Numbers.py
SaitoTsutomu/leetcode
4656d66ab721a5c7bc59890db9a2331c6823b2bf
[ "MIT" ]
null
null
null
codes_/0728_Self_Dividing_Numbers.py
SaitoTsutomu/leetcode
4656d66ab721a5c7bc59890db9a2331c6823b2bf
[ "MIT" ]
null
null
null
codes_/0728_Self_Dividing_Numbers.py
SaitoTsutomu/leetcode
4656d66ab721a5c7bc59890db9a2331c6823b2bf
[ "MIT" ]
null
null
null
# %% [728. Self Dividing Numbers](https://leetcode.com/problems/self-dividing-numbers/) # leftrightself-dividingself-dividing # `k, m = m % 10, m // 10`
30
87
0.6125
# %% [728. Self Dividing Numbers](https://leetcode.com/problems/self-dividing-numbers/) # 問題:leftからrightまででself-dividingの数をリストで返せ。self-dividingは、各桁の数字で割り切れる # 解法:各桁は`k, m = m % 10, m // 10`のように更新する class Solution: def selfDividingNumbers(self, left: int, right: int) -> List[int]: return [n for n in range(le...
135
0
0
125
0
111
0
0
45
f4486965ca8aab1f75920c2f84fd0b24dd3afd98
461
py
Python
cvat/apps/project_submission/signals.py
hukkelas/cvat_tdt4265
f389ba8c3e5dab7408ef5ca0ecdac061b5e07c8c
[ "MIT" ]
null
null
null
cvat/apps/project_submission/signals.py
hukkelas/cvat_tdt4265
f389ba8c3e5dab7408ef5ca0ecdac061b5e07c8c
[ "MIT" ]
1
2020-09-17T19:27:02.000Z
2020-09-29T11:56:26.000Z
cvat/apps/project_submission/signals.py
ErlingLie/cvat
f053d14955b1e48bf6498466949f4beb1833fe8e
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model User = get_user_model()
30.733333
82
0.787419
from django.db.models.signals import post_save from django.dispatch import receiver from django.contrib.auth import get_user_model from .models import LeaderboardSettings User = get_user_model() @receiver(post_save, sender=User) def update_submission_map(sender, instance, created, **kwargs): """automatically cre...
0
241
0
0
0
0
0
58
90
abdeb184ccdd44588dd8af406dd4aae199799b12
81
py
Python
codesignal/arcade/largestNumber.py
stephanosterburg/coding_challenges
601cf1360a7fdf068487106ba995955407365983
[ "MIT" ]
null
null
null
codesignal/arcade/largestNumber.py
stephanosterburg/coding_challenges
601cf1360a7fdf068487106ba995955407365983
[ "MIT" ]
null
null
null
codesignal/arcade/largestNumber.py
stephanosterburg/coding_challenges
601cf1360a7fdf068487106ba995955407365983
[ "MIT" ]
1
2019-11-08T00:49:14.000Z
2019-11-08T00:49:14.000Z
n = 2 print(largestNumber(n))
11.571429
26
0.641975
def largestNumber(n): return int(str(9) * n) n = 2 print(largestNumber(n))
0
0
0
0
0
27
0
0
22
d4e36c47d10ab2b44cf48d5216eb58aa73ba1d4c
1,409
py
Python
concat_csv.py
t2hk/scdv_glove_elasticsearch
41cd336decf1e14e77439caaa26f64edf28ce42b
[ "Apache-2.0" ]
2
2020-01-07T15:44:04.000Z
2020-02-28T08:03:15.000Z
concat_csv.py
t2hk/scdv_glove_elasticsearch
41cd336decf1e14e77439caaa26f64edf28ce42b
[ "Apache-2.0" ]
null
null
null
concat_csv.py
t2hk/scdv_glove_elasticsearch
41cd336decf1e14e77439caaa26f64edf28ce42b
[ "Apache-2.0" ]
null
null
null
import glob, os, argparse import pandas as pd parser = argparse.ArgumentParser() parser.add_argument('csv_dir') parser.add_argument('output_file') args = parser.parse_args() # CSVCSV files = glob.glob(args.csv_dir + '/*.csv') major_class_name = "()_" medium_class_name = "()_" small_class_name = "()_" # CSVoutput wa...
23.881356
59
0.658623
import re, glob, sys, os, argparse import pandas as pd import numpy as np parser = argparse.ArgumentParser() parser.add_argument('csv_dir') parser.add_argument('output_file') args = parser.parse_args() # 指定されたCSVディレクトリ配下の全CSVファイルのパス files = glob.glob(args.csv_dir + '/*.csv') major_class_name = "業種(大分類)_分類名" medium_c...
498
0
0
0
0
0
0
6
22
aa9464e6bc496a9384634706e8a46594b1baf579
1,914
py
Python
tests/webapp/driver_wrapper.py
amplify-education/selen_kaa
8f3f683d97f15be8bda050975c64c7883471e648
[ "MIT" ]
4
2019-11-10T19:17:15.000Z
2021-07-20T12:41:25.000Z
tests/webapp/driver_wrapper.py
amplify-education/selen_kaa
8f3f683d97f15be8bda050975c64c7883471e648
[ "MIT" ]
3
2020-04-15T14:44:50.000Z
2020-04-15T14:59:35.000Z
tests/webapp/driver_wrapper.py
amplify-education/selen_kaa
8f3f683d97f15be8bda050975c64c7883471e648
[ "MIT" ]
1
2022-01-24T10:05:29.000Z
2022-01-24T10:05:29.000Z
"""Just a class to verify the wrapping works""" from selen_kaa.utils import se_utils DEFAULT_TIMEOUT = 7 TimeoutType = se_utils.TimeoutType
31.377049
117
0.713166
"""Just a class to verify the wrapping works""" import re import time import logging from selenium.common.exceptions import WebDriverException, UnexpectedAlertPresentException from selen_kaa.webdriver import SeWebDriver from selen_kaa.element.se_web_element import SeWebElement from selen_kaa.utils import se_utils D...
0
407
0
1,061
0
0
0
98
203
7978347b2616c4e3c10be2b460295ceffd96f5c8
2,993
py
Python
app/request.py
scottwedge/News-Highlight
c321d683dde5bd7f4a38f100bcaa91e1f4de2e08
[ "MIT" ]
null
null
null
app/request.py
scottwedge/News-Highlight
c321d683dde5bd7f4a38f100bcaa91e1f4de2e08
[ "MIT" ]
2
2020-02-06T22:03:41.000Z
2020-02-07T19:08:42.000Z
app/request.py
scottwedge/News-Highlight
c321d683dde5bd7f4a38f100bcaa91e1f4de2e08
[ "MIT" ]
2
2020-02-06T19:11:39.000Z
2020-02-06T19:59:56.000Z
# from app import app import urllib.request import json from .models import Source, Article # Source = source.Source # Getting api key api_key = None # Getting the news base url source_base_url = None article_base_url = None def configure_request(app): ''' Function to acquire the api key and base urls ''' gl...
26.486726
86
0.732376
# from app import app import urllib.request import json from .models import Source,Article # Source = source.Source # Getting api key api_key = None # Getting the news base url source_base_url = None article_base_url = None def configure_request(app): ''' Function to acquire the api key and base urls ''' glo...
0
0
0
0
0
0
0
-1
0
091c4f92c6297aefbd437d098277c136b8dd7a08
1,387
py
Python
examples/cell/hppc_rctau.py
batterysim/equiv-circ-model
fc3720ff13db2d393aadef60187364c02a0b0d35
[ "MIT" ]
33
2019-07-19T16:15:50.000Z
2022-03-30T13:37:48.000Z
examples/cell/hppc_rctau.py
batterysim/equiv-circ-model
fc3720ff13db2d393aadef60187364c02a0b0d35
[ "MIT" ]
2
2020-06-12T21:30:26.000Z
2020-10-21T19:42:42.000Z
examples/cell/hppc_rctau.py
batterysim/equiv-circ-model
fc3720ff13db2d393aadef60187364c02a0b0d35
[ "MIT" ]
15
2019-11-14T06:04:48.000Z
2021-10-05T11:58:28.000Z
""" Use HPPC battery cell data to determine the tau, resistor and capacitor values (RC parameters) for each SOC section. Curve fit coefficients are determined from the two time constant (TTC) function. """ import params from ecm import CellHppcData from ecm import CellEcm # Battery cell HPPC data and equivalent circu...
34.675
126
0.521269
""" Use HPPC battery cell data to determine the tau, resistor and capacitor values (RC parameters) for each SOC section. Curve fit coefficients are determined from the two time constant (TTC) function. """ import params from ecm import CellHppcData from ecm import CellEcm # Battery cell HPPC data and equivalent circu...
9
0
0
0
0
0
0
0
0
48a3fdc98ec582b021ad0adf80c3d431daa480b2
243
py
Python
dynamic_programming/nth_tribonacci_number.py
elenaborisova/LeetCode-Solutions
98376aab7fd150a724e316357ae5ea46988d9eac
[ "MIT" ]
null
null
null
dynamic_programming/nth_tribonacci_number.py
elenaborisova/LeetCode-Solutions
98376aab7fd150a724e316357ae5ea46988d9eac
[ "MIT" ]
null
null
null
dynamic_programming/nth_tribonacci_number.py
elenaborisova/LeetCode-Solutions
98376aab7fd150a724e316357ae5ea46988d9eac
[ "MIT" ]
null
null
null
print(tribonacci(3))
12.15
27
0.390947
def tribonacci(n): t0 = 0 t1 = 1 t2 = 1 t = 0 if n == 1 or n == 2: return 1 for i in range(3, n+1): t = t0 + t1 + t2 t0 = t1 t1 = t2 t2 = t return t print(tribonacci(3))
0
0
0
0
0
198
0
0
22
4db81e3c6d1571cacdb07378ece06d15cbd81a75
1,284
py
Python
cookbook/c09/p18_define_classes.py
itpubs/python3-cookbook
140f5e4cc0416b9674edca7f4c901b1f58fc1415
[ "Apache-2.0" ]
3
2018-09-19T06:44:13.000Z
2019-03-24T10:07:07.000Z
cookbook/c09/p18_define_classes.py
itpubs/python3-cookbook
140f5e4cc0416b9674edca7f4c901b1f58fc1415
[ "Apache-2.0" ]
2
2020-09-19T17:10:23.000Z
2020-10-17T16:43:52.000Z
cookbook/c09/p18_define_classes.py
itpubs/python3-cookbook
140f5e4cc0416b9674edca7f4c901b1f58fc1415
[ "Apache-2.0" ]
1
2020-12-22T06:33:18.000Z
2020-12-22T06:33:18.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ Topic: Desc : """ # stock.py # Example of making a class manually from parts # Methods cls_dict = { '__init__': __init__, 'cost': cost, } # Make a class import types Stock = types.new_class('Stock', (), {}, lambda ns: ns.update(cls_dict)) Stock.__modu...
22.137931
76
0.646417
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ Topic: 以编程方式定义类 Desc : """ # stock.py # Example of making a class manually from parts # Methods def __init__(self, name, shares, price): self.name = name self.shares = shares self.price = price def cost(self): return self.shares * self.price cls...
24
0
0
0
0
830
0
-17
113
4089c1ab0ac1c81610c3364af753f1b0b1367400
2,015
py
Python
bfebench/protocols/strategy.py
MatthiasLohr/bfebench
baca2e18a9c24282ecda99dccfd134fab4c223b3
[ "Apache-2.0" ]
null
null
null
bfebench/protocols/strategy.py
MatthiasLohr/bfebench
baca2e18a9c24282ecda99dccfd134fab4c223b3
[ "Apache-2.0" ]
null
null
null
bfebench/protocols/strategy.py
MatthiasLohr/bfebench
baca2e18a9c24282ecda99dccfd134fab4c223b3
[ "Apache-2.0" ]
null
null
null
# This file is part of the Blockchain-based Fair Exchange Benchmark Tool # https://gitlab.com/MatthiasLohr/bfebench # # Copyright 2021 Matthias Lohr <mail@mlohr.com> # # 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...
28.785714
108
0.704715
# This file is part of the Blockchain-based Fair Exchange Benchmark Tool # https://gitlab.com/MatthiasLohr/bfebench # # Copyright 2021 Matthias Lohr <mail@mlohr.com> # # 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...
0
103
0
871
0
0
0
72
160
6b8b15fda65791c8df661e8e899dda386fbb3084
7,020
py
Python
iris_mt_scratch/sandbox/transfer_function/TSTFTarray.py
simpeg-research/iris-mt-scratch
ea458f253071db513fd0731118a2a7452a725944
[ "MIT" ]
null
null
null
iris_mt_scratch/sandbox/transfer_function/TSTFTarray.py
simpeg-research/iris-mt-scratch
ea458f253071db513fd0731118a2a7452a725944
[ "MIT" ]
19
2020-12-23T17:55:48.000Z
2021-06-24T21:01:05.000Z
iris_mt_scratch/sandbox/transfer_function/TSTFTarray.py
simpeg-research/iris-mt-scratch
ea458f253071db513fd0731118a2a7452a725944
[ "MIT" ]
null
null
null
""" based on Gary's TSTFTarray.m in iris_mt_scratch/egbert_codes-20210121T193218Z-001/egbert_codes/matlabPrototype_10-13-20/TF/classes """
39.886364
98
0.595014
""" based on Gary's TSTFTarray.m in iris_mt_scratch/egbert_codes-20210121T193218Z-001/egbert_codes/matlabPrototype_10-13-20/TF/classes """ def consistent_headers(header1, header2): #do some checking return True class TSTFTArray(object): """ class to support creating FC arrays from STFT objects stored a...
0
50
0
4,790
0
2,019
0
0
22
c1032138496fda4fcc37963907d13d4359b251b0
592
py
Python
interview/leet/761_Special_Binary_String_v3.py
eroicaleo/LearningPython
297d46eddce6e43ce0c160d2660dff5f5d616800
[ "MIT" ]
1
2020-10-12T13:33:29.000Z
2020-10-12T13:33:29.000Z
interview/leet/761_Special_Binary_String_v3.py
eroicaleo/LearningPython
297d46eddce6e43ce0c160d2660dff5f5d616800
[ "MIT" ]
null
null
null
interview/leet/761_Special_Binary_String_v3.py
eroicaleo/LearningPython
297d46eddce6e43ce0c160d2660dff5f5d616800
[ "MIT" ]
1
2016-11-09T07:28:45.000Z
2016-11-09T07:28:45.000Z
#!/usr/bin/env python3 S = "11100010" S = "111000111100001100" S = '1100' S = '1010' S = '10' S = "11011000" S = '' sol = Solution() print(sol.makeLargestSpecial(S))
22.769231
56
0.472973
#!/usr/bin/env python3 class Solution: def makeLargestSpecial(self, S: str) -> str: self.ix, l = 0, len(S) def dfs(): tokens = [] while self.ix < l: c, self.ix = S[self.ix], self.ix+1 if c == '1': tokens.append(f'1{dfs()}0'...
0
0
0
402
0
0
0
0
23
723d25090796ff946b4dfe2d3bb084c00e10553b
35,816
py
Python
src/ase2sprkkr/common/grammar_types.py
ase2sprkkr/ase2sprkkr
5e04f54365e4ab65d97bd11d573b078674548a59
[ "MIT" ]
1
2022-03-14T22:56:11.000Z
2022-03-14T22:56:11.000Z
src/ase2sprkkr/common/grammar_types.py
ase2sprkkr/ase2sprkkr
5e04f54365e4ab65d97bd11d573b078674548a59
[ "MIT" ]
1
2022-03-10T09:08:50.000Z
2022-03-10T09:08:50.000Z
src/ase2sprkkr/common/grammar_types.py
ase2sprkkr/ase2sprkkr
5e04f54365e4ab65d97bd11d573b078674548a59
[ "MIT" ]
null
null
null
""" Classes, that represents various value types that can appear in the configuration and problem definitionfiles. Each grammar type can both parse string containing a value of a given type, and to create the string containing a given value. """ import pyparsing as pp import inspect import numpy as np from collectio...
32.888889
156
0.646666
""" Classes, that represents various value types that can appear in the configuration and problem definitionfiles. Each grammar type can both parse string containing a value of a given type, and to create the string containing a given value. """ import pyparsing as pp import io import inspect from pyparsing import W...
0
1,471
240
27,091
0
0
0
190
706
0e64c3f77d066447da3d127e03adf7c1b2379aa7
933
py
Python
hybrid_django_react/poetry_setup.py
lluc2397/hybrid-django-react
2b64f524ed74be334f5e8da54048d7c604f773f0
[ "MIT" ]
4
2021-12-15T04:39:33.000Z
2022-03-07T09:44:53.000Z
hybrid_django_react/poetry_setup.py
lluc2397/hybrid-django-react
2b64f524ed74be334f5e8da54048d7c604f773f0
[ "MIT" ]
2
2022-01-19T14:55:34.000Z
2022-02-01T17:48:12.000Z
hybrid_django_react/poetry_setup.py
lluc2397/hybrid-django-react
2b64f524ed74be334f5e8da54048d7c604f773f0
[ "MIT" ]
2
2021-12-15T04:57:39.000Z
2022-01-23T19:11:32.000Z
import os def setup_poetry(config): """Entry point of module: setup poetry files and run poetry commands""" update_pyproject_dot_toml(config) #lock_poetry_dependencies() #install_dependencies() def lock_poetry_dependencies_on_docker(): """Create poetry.lock file""" os.system("doc...
29.15625
76
0.6388
import re import os def setup_poetry(config): """Entry point of module: setup poetry files and run poetry commands""" update_pyproject_dot_toml(config) #lock_poetry_dependencies() #install_dependencies() def lock_poetry_dependencies_on_docker(): """Create poetry.lock file""" os....
0
0
0
0
0
433
0
-12
48
44d3b12b68786b1791977c1b8958791817f18bfa
3,469
py
Python
demo/sorting/visualize.py
Rufaim/graph_net_lib
36ebf91af4115df356a3272299ed4f558d17b3b3
[ "Apache-2.0" ]
null
null
null
demo/sorting/visualize.py
Rufaim/graph_net_lib
36ebf91af4115df356a3272299ed4f558d17b3b3
[ "Apache-2.0" ]
null
null
null
demo/sorting/visualize.py
Rufaim/graph_net_lib
36ebf91af4115df356a3272299ed4f558d17b3b3
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Rufaim (https://github.com/Rufaim) # # 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 ...
34.009804
115
0.676564
# Copyright 2021 Rufaim (https://github.com/Rufaim) # # 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
0
0
2,051
0
0
46
cbf70b1af4b0ab8fe62eb853c468bbe0475e4ca5
1,450
py
Python
udf/bazaar/view/util/refresh-documents.py
stephen-v/deepdive-app-chinese
dfe1626fd9fad42169aca5cc85153336239eb6aa
[ "Apache-2.0" ]
6
2018-10-27T03:02:03.000Z
2021-07-15T07:42:03.000Z
udf/bazaar/view/util/refresh-documents.py
stephen-v/deepdive-app-chinese
dfe1626fd9fad42169aca5cc85153336239eb6aa
[ "Apache-2.0" ]
null
null
null
udf/bazaar/view/util/refresh-documents.py
stephen-v/deepdive-app-chinese
dfe1626fd9fad42169aca5cc85153336239eb6aa
[ "Apache-2.0" ]
1
2019-10-01T14:32:49.000Z
2019-10-01T14:32:49.000Z
#!/usr/bin/env python ES_HOST = {"host" : "localhost", "port" : 9200} INDEX_NAME = 'view' TYPE_NAME = 'docs' N = 1000 from pyhocon import ConfigFactory from elasticsearch import Elasticsearch conf = ConfigFactory.parse_file('../view.conf') docs_conf = conf.get('view.docs') es = Elasticsearch(hosts = [ES_HOST]) in...
23.015873
80
0.547586
#!/usr/bin/env python import pipe ES_HOST = {"host" : "localhost", "port" : 9200} INDEX_NAME = 'view' TYPE_NAME = 'docs' N = 1000 from pyhocon import ConfigFactory from elasticsearch import Elasticsearch import json import sys conf = ConfigFactory.parse_file('../view.conf') docs_conf = conf.get('view.docs') es = ...
0
0
0
0
0
1,060
0
-31
90
5d426a552dd2b03b06476c8e56b7d8789bd45763
4,252
py
Python
tests/fhir_tests/test_picklejar.py
dnstone/fhirtordf
2ec2ac2ea66798a39fa0c3f27c9803f69e7710d1
[ "Apache-2.0" ]
null
null
null
tests/fhir_tests/test_picklejar.py
dnstone/fhirtordf
2ec2ac2ea66798a39fa0c3f27c9803f69e7710d1
[ "Apache-2.0" ]
null
null
null
tests/fhir_tests/test_picklejar.py
dnstone/fhirtordf
2ec2ac2ea66798a39fa0c3f27c9803f69e7710d1
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017, Mayo Clinic # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # Redistributions of source code must retain the above copyright notice, this # list of conditions and the f...
37.964286
99
0.676152
# Copyright (c) 2017, Mayo Clinic # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # Redistributions of source code must retain the above copyright notice, this # list of conditions and the f...
0
248
0
2,204
0
0
0
73
114
37ba785d1dcf0efb21e6755298fd6ec36a75c92c
1,614
py
Python
src/image_attacks/im_main.py
tahleen-rahman/all2friends
156ba257677def409661e8b68ccdfb1e896ba721
[ "Apache-2.0" ]
null
null
null
src/image_attacks/im_main.py
tahleen-rahman/all2friends
156ba257677def409661e8b68ccdfb1e896ba721
[ "Apache-2.0" ]
4
2021-06-08T21:47:39.000Z
2022-03-12T00:35:39.000Z
src/image_attacks/im_main.py
tahleen-rahman/all2friends
156ba257677def409661e8b68ccdfb1e896ba721
[ "Apache-2.0" ]
null
null
null
# Created by rahman at 15:20 2020-03-05 using PyCharm import subprocess from image_attacks.im_utils import slice_files, combine_files, clean_trim, count_cats, make_features_counts, score from shared_tools.utils import make_allPairs, classifiers, DATAPATH, city def attack_images(cores, prob_cutoff): """ :p...
25.619048
153
0.7057
# Created by rahman at 15:20 2020-03-05 using PyCharm import subprocess from image_attacks.im_utils import slice_files, combine_files, clean_trim, count_cats, make_features_counts, score from shared_tools.utils import make_allPairs, classifiers, DATAPATH, city def attack_images(cores, prob_cutoff): """ :p...
0
0
0
0
0
0
0
0
0
0ffc5834a2b713e166cfe5b56e3fdb43410997d9
570
py
Python
Exercicios Python/ex028.py
ClaudioSiqueira/Exercicios-Python
128387769b34b7d42aee5c1effda16de21216e10
[ "MIT" ]
null
null
null
Exercicios Python/ex028.py
ClaudioSiqueira/Exercicios-Python
128387769b34b7d42aee5c1effda16de21216e10
[ "MIT" ]
null
null
null
Exercicios Python/ex028.py
ClaudioSiqueira/Exercicios-Python
128387769b34b7d42aee5c1effda16de21216e10
[ "MIT" ]
null
null
null
from random import randint from time import sleep computador = randint(1, 5) print('\033[34m-==-\033[m'*17) print('Vamos jogar um jogo, tente adivinhar o nmero que estou pensando !') sleep(1) jogador = int(input('Chute um valor de 1 at 5: ')) print('PROCESSANDO...') sleep(1) if jogador == computador: print('\033[1...
35.625
118
0.7
from random import randint from time import sleep computador = randint(1, 5) print('\033[34m-==-\033[m'*17) print('Vamos jogar um jogo, tente adivinhar o número que estou pensando !') sleep(1) jogador = int(input('Chute um valor de 1 até 5: ')) print('PROCESSANDO...') sleep(1) if jogador == computador: print('\033...
16
0
0
0
0
0
0
0
0
9fb59721e031ca2d2ad94260365575fbf0c263fc
69
py
Python
tests/data/config/i_child.py
jinliwei1997/mmcv
f8d46df4a9fa32fb44d2e92a4ca5e7b26ee9cb79
[ "Apache-2.0" ]
3,748
2018-10-12T08:39:46.000Z
2022-03-31T17:22:55.000Z
tests/data/config/i_child.py
jinliwei1997/mmcv
f8d46df4a9fa32fb44d2e92a4ca5e7b26ee9cb79
[ "Apache-2.0" ]
1,637
2018-10-12T06:06:18.000Z
2022-03-31T02:20:53.000Z
tests/data/config/i_child.py
jinliwei1997/mmcv
f8d46df4a9fa32fb44d2e92a4ca5e7b26ee9cb79
[ "Apache-2.0" ]
1,234
2018-10-12T09:28:20.000Z
2022-03-31T15:56:24.000Z
_base_ = './i_base.py' item_cfg = {'b': 2} item6 = {'cfg': item_cfg}
17.25
25
0.57971
_base_ = './i_base.py' item_cfg = {'b': 2} item6 = {'cfg': item_cfg}
0
0
0
0
0
0
0
0
0
c5740ab7ab678719ba6d2355a1a59e6f3c6dc3bc
17,820
py
Python
python/oneflow/nn/graph/graph.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
python/oneflow/nn/graph/graph.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
python/oneflow/nn/graph/graph.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 The OneFlow 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/LICENSE-2.0 Unless required by applicable law or agr...
36.367347
107
0.565825
""" Copyright 2020 The OneFlow 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/LICENSE-2.0 Unless required by applicable law or agr...
0
340
0
15,894
0
0
0
485
398
8a7c3ef46588513a00763c8fbd4bb9d87d5bd15a
848
py
Python
src/decoding/bin/decodePixelBased.py
WoutDavid/ST-nextflow-pipeline
8de3da218ec4f10f183e1163fe782c19fd8dd841
[ "MIT" ]
null
null
null
src/decoding/bin/decodePixelBased.py
WoutDavid/ST-nextflow-pipeline
8de3da218ec4f10f183e1163fe782c19fd8dd841
[ "MIT" ]
null
null
null
src/decoding/bin/decodePixelBased.py
WoutDavid/ST-nextflow-pipeline
8de3da218ec4f10f183e1163fe782c19fd8dd841
[ "MIT" ]
null
null
null
import sys import re from modules.pixelBasedDecoding import decodePixelBased # Input parsing: # needs to know up front how large the image is going to be x_dim = int(sys.argv[1]) y_dim = int(sys.argv[2]) # Extract tile nr tile_nr = sys.argv[3] tile_nr_int = int(re.findall(r"\d+", tile_nr)[0]) codebook = sys.argv[...
27.354839
101
0.746462
import sys import csv import re from modules.pixelBasedDecoding import decodePixelBased # Input parsing: # needs to know up front how large the image is going to be x_dim = int(sys.argv[1]) y_dim = int(sys.argv[2]) # Extract tile nr tile_nr = sys.argv[3] tile_nr_int = int(re.findall(r"\d+", tile_nr)[0]) codebook ...
0
0
0
0
0
0
0
-11
22
cdbef3b5da47b0cf0e8e70e5d63b840baa5fdd6c
1,112
py
Python
book_club/book_club/book/migrations/0001_initial.py
Beshkov/Python-web-fundamentals
6b0e9cc9725ea80a33c2ebde6e29f2ab585ab8d9
[ "MIT" ]
null
null
null
book_club/book_club/book/migrations/0001_initial.py
Beshkov/Python-web-fundamentals
6b0e9cc9725ea80a33c2ebde6e29f2ab585ab8d9
[ "MIT" ]
null
null
null
book_club/book_club/book/migrations/0001_initial.py
Beshkov/Python-web-fundamentals
6b0e9cc9725ea80a33c2ebde6e29f2ab585ab8d9
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-08-08 21:52
38.344828
161
0.560252
# Generated by Django 3.2.6 on 2021-08-08 21:52 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Book', fields=[ ('id', models.BigAutoField(...
0
0
0
998
0
0
0
19
46
1bb4c5017f9be7bdefa32170d540c123ac7888b3
1,209
py
Python
neural_heap/dataset/io_synthesis/io_synthesis.py
brandontrabucco/neural-heap
57a4823370c8e6b6c38562ebf3ca11489441a94b
[ "MIT" ]
null
null
null
neural_heap/dataset/io_synthesis/io_synthesis.py
brandontrabucco/neural-heap
57a4823370c8e6b6c38562ebf3ca11489441a94b
[ "MIT" ]
null
null
null
neural_heap/dataset/io_synthesis/io_synthesis.py
brandontrabucco/neural-heap
57a4823370c8e6b6c38562ebf3ca11489441a94b
[ "MIT" ]
null
null
null
import os os.chdir("G:\\My Drive\\Academic\\Research\\Neural Heap")
30.225
81
0.594706
import os, sys os.chdir("G:\\My Drive\\Academic\\Research\\Neural Heap") from neural_heap.dataset.io_synthesis.io_synthesis_args import IOSynthesisArgs from neural_heap.dataset.io_synthesis.io_synthesis_utils import IOSynthesisUtils class IOSynthesis(object): def __init__( self, p...
0
0
0
939
0
0
0
121
71
4f28caf061d0d3e8e16222acca82b34d0343937c
2,589
py
Python
SilverBash/Adam_Teal_Bash/algod_app.py
preciousM494/TEAL
7c4b6ee8b50842c568db5c984b7896219304a71a
[ "Apache-2.0" ]
3
2022-01-20T14:08:29.000Z
2022-01-30T11:08:09.000Z
SilverBash/Adam_Teal_Bash/algod_app.py
preciousM494/TEAL
7c4b6ee8b50842c568db5c984b7896219304a71a
[ "Apache-2.0" ]
7
2022-01-09T03:14:46.000Z
2022-01-27T22:51:51.000Z
SilverBash/Adam_Teal_Bash/algod_app.py
preciousM494/TEAL
7c4b6ee8b50842c568db5c984b7896219304a71a
[ "Apache-2.0" ]
26
2022-01-09T02:48:42.000Z
2022-01-26T15:02:51.000Z
# from deploy import PytealDeploy algod_token = 'B3SU4KcVKi94Jap2VXkK83xx38bsv95K5UZm2lab' algod_addres = "http://testnet-algorand.api.purestake.io/ps2" purestack_token = { "X-Api-Key": algod_token } tmpl_fee = Int(1000) tmpl_period = Int(50) tmpl_dur = Int(5000) tmpl_lease = Bytes("base64", "023sd...
30.821429
110
0.65392
from pyteal import * from algosdk.v2client import algod from algosdk import account, mnemonic import pyteal # from deploy import PytealDeploy algod_token = 'B3SU4KcVKi94Jap2VXkK83xx38bsv95K5UZm2lab' algod_addres = "http://testnet-algorand.api.purestake.io/ps2" purestack_token = { "X-Api-Key": algod_to...
0
0
0
0
0
1,963
0
20
141
a8494f2b5e36e61c41ba5193984ac5e32316d1a8
8,056
py
Python
murano_tempest_tests/tests/api/application_catalog/test_repository.py
zhur0ng/murano-tempest-plugin
c70cda4dc7b8208252e9741a96acba9fb6a5c6e9
[ "Apache-2.0" ]
6
2017-10-31T10:37:17.000Z
2019-01-28T22:05:05.000Z
murano_tempest_tests/tests/api/application_catalog/test_repository.py
zhur0ng/murano-tempest-plugin
c70cda4dc7b8208252e9741a96acba9fb6a5c6e9
[ "Apache-2.0" ]
1
2018-08-20T07:39:23.000Z
2018-08-20T07:39:23.000Z
murano_tempest_tests/tests/api/application_catalog/test_repository.py
zhur0ng/murano-tempest-plugin
c70cda4dc7b8208252e9741a96acba9fb6a5c6e9
[ "Apache-2.0" ]
2
2018-01-11T05:08:35.000Z
2018-08-20T07:32:33.000Z
# Copyright (c) 2016 Mirantis, 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 law...
36.288288
78
0.617925
# Copyright (c) 2016 Mirantis, 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 law...
0
6,811
0
85
0
0
0
64
433
ad1df4e9b490e6ef1278f8134c76f77a5ef9f80f
1,210
py
Python
setup.py
chaselgrove/hypothesis
07a9c436208ec62b6d8b33c1cb4305a67baff8c6
[ "BSD-2-Clause" ]
6
2018-11-11T02:10:56.000Z
2022-02-07T10:21:25.000Z
setup.py
chaselgrove/hypothesis
07a9c436208ec62b6d8b33c1cb4305a67baff8c6
[ "BSD-2-Clause" ]
2
2018-08-10T02:32:29.000Z
2018-08-21T15:34:13.000Z
setup.py
chaselgrove/hypothesis
07a9c436208ec62b6d8b33c1cb4305a67baff8c6
[ "BSD-2-Clause" ]
2
2018-07-24T03:31:32.000Z
2018-08-10T02:59:09.000Z
#!/usr/bin/python # See file COPYING distributed with python-hypothesis for copyright and # license. from setuptools import setup long_description = open('README.rst').read() setup(name='python-hypothesis', version='0.4.2', description='Python library for the Hypothes.is API', author='Christia...
34.571429
72
0.563636
#!/usr/bin/python # See file COPYING distributed with python-hypothesis for copyright and # license. from setuptools import setup long_description = open('README.rst').read() setup(name='python-hypothesis', version='0.4.2', description='Python library for the Hypothes.is API', author='Christia...
0
0
0
0
0
0
0
0
0
513206d0eb2312c92c22e659d7d284bcc14bff04
481
py
Python
showminder/frontend/migrations/0008_auto_20180422_1431.py
chassing/showminder
136ef3f1a41fa3aa45574770dd5751b0b7b9edd3
[ "MIT" ]
1
2017-01-26T09:12:55.000Z
2017-01-26T09:12:55.000Z
showminder/frontend/migrations/0008_auto_20180422_1431.py
chassing/showminder
136ef3f1a41fa3aa45574770dd5751b0b7b9edd3
[ "MIT" ]
null
null
null
showminder/frontend/migrations/0008_auto_20180422_1431.py
chassing/showminder
136ef3f1a41fa3aa45574770dd5751b0b7b9edd3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2018-04-22 14:31 from __future__ import unicode_literals
22.904762
74
0.627859
# -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2018-04-22 14:31 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('frontend', '0007_auto_20170505_1441'), ] operations = [ migrations.AlterFie...
0
0
0
302
0
0
0
19
46
4c494c9bae4f69ee732530ae8c366dc42ff79e88
2,028
py
Python
python/oneflow/framework/docstr/index_select.py
felixhao28/oneflow
e558af6ef6c4ed90e4abc7bc1ba895f55795626d
[ "Apache-2.0" ]
null
null
null
python/oneflow/framework/docstr/index_select.py
felixhao28/oneflow
e558af6ef6c4ed90e4abc7bc1ba895f55795626d
[ "Apache-2.0" ]
null
null
null
python/oneflow/framework/docstr/index_select.py
felixhao28/oneflow
e558af6ef6c4ed90e4abc7bc1ba895f55795626d
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 The OneFlow 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/LICENSE-2.0 Unless required by applicable law or agr...
34.372881
129
0.649408
""" Copyright 2020 The OneFlow 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/LICENSE-2.0 Unless required by applicable law or agr...
0
0
0
0
0
0
0
0
0