hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
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
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...
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...
6,368
3,894
134
142371552bb211f737bd8dc3be97787cf8599854
476
py
Python
app/models/base.py
Chaoyingz/paper_trading
cd3af81c932e8f4b1586f2b9bf86b5b252bec896
[ "MIT" ]
null
null
null
app/models/base.py
Chaoyingz/paper_trading
cd3af81c932e8f4b1586f2b9bf86b5b252bec896
[ "MIT" ]
null
null
null
app/models/base.py
Chaoyingz/paper_trading
cd3af81c932e8f4b1586f2b9bf86b5b252bec896
[ "MIT" ]
null
null
null
from datetime import datetime, timezone from bson import ObjectId from pydantic import BaseModel, Field from app.models.types import PyObjectId
23.8
65
0.792017
from datetime import datetime, timezone from bson import ObjectId from pydantic import BaseModel, Field from app.models.types import PyObjectId def get_utc_now(): return datetime.now(timezone.utc) class DateTimeModelMixin(BaseModel): created_at: datetime = Field(default_factory=get_utc_now) updated_at...
35
223
69
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_split, log_similarity # '<$>()<-1> : getImeiV2 memory:868404020067521' tem = ['<$>', '(', '', ')', '<-1>', ' ', '', ':', '', ' ', '<$>', '<$>', '<$>', '<$>', '<$>'] log = ['<$>', '(', '', ')', '<-1>', ' ', '', ':', '', ' ', 'getImeiV2', ' ', 'memory', ':', '868404020067521'] a = ...
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
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
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
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 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models
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...
319
1,899
23
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
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...
54
0
23
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
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
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 os import torch import torch.nn as nn class Classification_Base_1D_NN_fixed_seq_len_1s_majvote_v2(nn.Module): ''' '''
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...
1,258
0
52
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 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...
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...
3,798
0
214
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
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
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()
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...
586
0
22
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_...
129
0
23
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
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 ...
536
0
27
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 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...
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...
0
0
0
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.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'...
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'...
1,964
13
131
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 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...
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...
2,570
0
184
ab84c8185e73685f87a8bbf6bdde4531e8020b45
23,589
py
Python
tally_ho/apps/tally/tests/views/test_quality_control.py
crononauta/tally-ho
ba2207bfaef27bee3ff13a393983ca493f767238
[ "Apache-2.0" ]
null
null
null
tally_ho/apps/tally/tests/views/test_quality_control.py
crononauta/tally-ho
ba2207bfaef27bee3ff13a393983ca493f767238
[ "Apache-2.0" ]
null
null
null
tally_ho/apps/tally/tests/views/test_quality_control.py
crononauta/tally-ho
ba2207bfaef27bee3ff13a393983ca493f767238
[ "Apache-2.0" ]
null
null
null
from django.core.exceptions import PermissionDenied, SuspiciousOperation from django.contrib.auth.models import AnonymousUser from django.core.urlresolvers import reverse from django.test import RequestFactory from tally_ho.apps.tally.views import quality_control as views from tally_ho.apps.tally.models.quality_contro...
45.189655
80
0.666455
from django.core.exceptions import PermissionDenied, SuspiciousOperation from django.contrib.auth.models import AnonymousUser from django.core.urlresolvers import reverse from django.test import RequestFactory from tally_ho.apps.tally.views import quality_control as views from tally_ho.apps.tally.models.quality_contro...
22,244
14
639
5d8655e0db66bd2687b2937d4f861817bc448e33
1,072
py
Python
tests/test_RuleEngine.py
IVIR3zaM/KafkaRulesManager
848b349e79cfa8f1c9afa79831d1b552b3905410
[ "MIT" ]
1
2020-10-18T14:33:26.000Z
2020-10-18T14:33:26.000Z
tests/test_RuleEngine.py
IVIR3zaM/KafkaRulesManager
848b349e79cfa8f1c9afa79831d1b552b3905410
[ "MIT" ]
null
null
null
tests/test_RuleEngine.py
IVIR3zaM/KafkaRulesManager
848b349e79cfa8f1c9afa79831d1b552b3905410
[ "MIT" ]
null
null
null
from kafka_rules_manager import RuleEngine
28.210526
78
0.758396
from kafka_rules_manager import RuleEngine def test_no_match_no_change(): rules = RuleEngine.Rule("lorem"), engine = RuleEngine.Engine(rules) message = RuleEngine.Message("Some Ipsum", RuleEngine.MessageStatuses.NEW) engine.process_message(message) assert message.status == RuleEngine.MessageSta...
957
0
69
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...
5,459
-26
359
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...
362
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...
340
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
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__) import argparse import sys import os import subprocess import module as mod import subpackage.submodule as submod 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 ...
1,071
0
46
b5d3d2cad872fc9129b68a5b4344d6873551b3a7
410
py
Python
support/views.py
chrisdrackett/django-support
a4f29421a31797e0b069637a0afec85328b4f0ca
[ "BSD-3-Clause" ]
null
null
null
support/views.py
chrisdrackett/django-support
a4f29421a31797e0b069637a0afec85328b4f0ca
[ "BSD-3-Clause" ]
null
null
null
support/views.py
chrisdrackett/django-support
a4f29421a31797e0b069637a0afec85328b4f0ca
[ "BSD-3-Clause" ]
null
null
null
from django.template import RequestContext from django.shortcuts import render_to_response
29.285714
77
0.746341
from django.template import RequestContext from django.shortcuts import render_to_response def template(request, template_name, dictionary, *args, **kwargs): kwargs['context_instance'] = RequestContext(request) status = kwargs.pop('status', None) response = render_to_response(template_name, dictionary, *...
297
0
23
08ebba3f75d96660b3a77a1a0f6521959c1eb659
5,224
py
Python
bot/cogs/commands/bot_channel/capaventura_aux/capaventura_db_connect.py
LeandroLFE/capmon
9d1200301628ea4fec0e8ed09d5e9b67a426d923
[ "MIT" ]
null
null
null
bot/cogs/commands/bot_channel/capaventura_aux/capaventura_db_connect.py
LeandroLFE/capmon
9d1200301628ea4fec0e8ed09d5e9b67a426d923
[ "MIT" ]
null
null
null
bot/cogs/commands/bot_channel/capaventura_aux/capaventura_db_connect.py
LeandroLFE/capmon
9d1200301628ea4fec0e8ed09d5e9b67a426d923
[ "MIT" ]
null
null
null
from db.connect.instanciaAtualDB import atualDB from db.scripts.script_select.select_canais import select_verifica_canal, select_canais_ativos from db.scripts.script_select.select_aventureiros import script_select_aventureiro_nome, script_select_aventureiro_id from db.scripts.script_create_drop.create_tables import cre...
53.85567
258
0.813361
from db.connect.instanciaAtualDB import atualDB from db.scripts.script_select.select_canais import select_verifica_canal, select_canais_ativos from db.scripts.script_select.select_aventureiros import script_select_aventureiro_nome, script_select_aventureiro_id from db.scripts.script_create_drop.create_tables import cre...
2,658
1,029
23
ce93298b8ba681a158cc20994e7461c62aae6ed8
2,566
py
Python
branch/services.py
caioaraujo/bakery_payments_api_v2
ade365bd2aa9561182be982286caa72923f36e13
[ "MIT" ]
4
2019-06-01T23:51:20.000Z
2021-02-24T11:23:31.000Z
branch/services.py
caioaraujo/bakery_payments_api_v2
ade365bd2aa9561182be982286caa72923f36e13
[ "MIT" ]
8
2020-06-13T23:10:46.000Z
2022-02-28T13:58:02.000Z
branch/services.py
caioaraujo/bakery_payments_api_v2
ade365bd2aa9561182be982286caa72923f36e13
[ "MIT" ]
1
2022-03-22T04:54:35.000Z
2022-03-22T04:54:35.000Z
from django.utils.translation import ugettext from rest_framework.exceptions import NotFound from commons.decorators import validate_requirements, validate_existance, str_to_boolean from payment.models import Payment from .models import Branch class BranchService: """ General services for branch """ ...
23.117117
88
0.59431
from django.utils.translation import ugettext from rest_framework.exceptions import NotFound from commons.decorators import validate_requirements, validate_existance, str_to_boolean from payment.models import Payment from .models import Branch class BranchService: """ General services for branch """ ...
0
0
0
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...
389
0
49
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
876d5f64c3476f92c01bd76ed23572ca05df5a01
4,018
py
Python
tests/cluster/commands_set_test.py
ProjectHentai/yaaredis
be6fcaf4c66f98272bfdeae33d34bb4e6fc13f1f
[ "MIT" ]
13
2021-06-08T23:44:00.000Z
2022-03-23T22:48:17.000Z
tests/cluster/commands_set_test.py
talkiq/yaaredis
01e3fdd5ccf80843c56f5932952eb6ef0a697b33
[ "MIT" ]
10
2021-06-09T00:03:20.000Z
2022-03-22T10:37:08.000Z
tests/cluster/commands_set_test.py
ProjectHentai/yaaredis
be6fcaf4c66f98272bfdeae33d34bb4e6fc13f1f
[ "MIT" ]
1
2021-11-26T16:46:31.000Z
2021-11-26T16:46:31.000Z
import pytest from yaaredis.utils import b @pytest.mark.asyncio @pytest.mark.asyncio @pytest.mark.asyncio @pytest.mark.asyncio @pytest.mark.asyncio @pytest.mark.asyncio @pytest.mark.asyncio @pytest.mark.asyncio @pytest.mark.asyncio @pytest.mark.asyncio @pytest.mark.asyncio @pytest.mark.asyncio ...
28.097902
73
0.553758
import pytest from yaaredis.utils import b @pytest.mark.asyncio async def test_sadd(r): await r.flushdb() members = {b('1'), b('2'), b('3')} await r.sadd('a', *members) assert await r.smembers('a') == members @pytest.mark.asyncio async def test_scard(r): await r.flushdb() await r.sadd('a', ...
3,299
0
330
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 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 main(): """ Playing the tracks until CTRL-C """ try: loop() except KeyboardInt...
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...
1,092
0
23
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 -*- """ 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...
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...
1,033
0
78
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
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
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....
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....
18,936
4,176
23
f55fc1bf15829cde39cd7479fd5ae4fd2aa6ba00
1,516
py
Python
tests/test_models/test_backbone/test_resnet.py
automaton123456/nanodet
0e5ca77ca936c2cb4bf040cc4ed9caf226a4a5b1
[ "Apache-2.0" ]
4,388
2020-11-22T12:10:28.000Z
2022-03-31T13:51:51.000Z
tests/test_models/test_backbone/test_resnet.py
tkupek/nanodet
b04fafe2e91b3818b95cc3cd299bfe1ed014cb18
[ "Apache-2.0" ]
381
2020-11-23T08:02:26.000Z
2022-03-31T09:35:13.000Z
tests/test_models/test_backbone/test_resnet.py
tkupek/nanodet
b04fafe2e91b3818b95cc3cd299bfe1ed014cb18
[ "Apache-2.0" ]
838
2020-11-22T13:01:43.000Z
2022-03-30T07:24:38.000Z
import pytest import torch from nanodet.model.backbone import ResNet, build_backbone
32.255319
88
0.593668
import pytest import torch from nanodet.model.backbone import ResNet, build_backbone def test_resnet(): with pytest.raises(KeyError): cfg = dict(name="ResNet", depth=15) build_backbone(cfg) with pytest.raises(AssertionError): ResNet(depth=18, out_stages=(4, 5, 6)) input = torch....
1,406
0
23
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 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...
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
4d656673d216ce0be4fe64d21204d4348b38598e
60
py
Python
pyroombaadapter/__init__.py
ymollard/PyRoombaAdapter
a4b63e9b97ac2e27a8b472f596a1111eb3c254b9
[ "MIT" ]
null
null
null
pyroombaadapter/__init__.py
ymollard/PyRoombaAdapter
a4b63e9b97ac2e27a8b472f596a1111eb3c254b9
[ "MIT" ]
null
null
null
pyroombaadapter/__init__.py
ymollard/PyRoombaAdapter
a4b63e9b97ac2e27a8b472f596a1111eb3c254b9
[ "MIT" ]
null
null
null
from pyroombaadapter.pyroombaadapter import PyRoombaAdapter
30
59
0.916667
from pyroombaadapter.pyroombaadapter import PyRoombaAdapter
0
0
0
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 class Parameters: """Global parameters""" 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 = Pa...
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 ...
185
0
55
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
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", ...
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", ...
118
0
23
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 http import sqlite3 import json 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...
0
0
0
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
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() ...
507
416
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],...
8,315
1,954
650
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.serializer import serialize_model from autumn.tool_kit.scenarios import Scenario from autumn.tool_kit...
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...
310
0
23
728cb69af3c08ef7582f9c410b1fc5f27c722c62
2,349
py
Python
api/image_similarity.py
reneraab/librephotos
a3972ab520586e721c67f283b1a50ccb7abe2b01
[ "MIT" ]
null
null
null
api/image_similarity.py
reneraab/librephotos
a3972ab520586e721c67f283b1a50ccb7abe2b01
[ "MIT" ]
null
null
null
api/image_similarity.py
reneraab/librephotos
a3972ab520586e721c67f283b1a50ccb7abe2b01
[ "MIT" ]
null
null
null
import numpy as np import requests from django.db.models import Q from api.models import Photo, User from api.util import logger from ownphotos.settings import IMAGE_SIMILARITY_SERVER
29
87
0.648361
import numpy as np import requests from django.db.models import Q from api.models import Photo, User from api.util import logger from ownphotos.settings import IMAGE_SIMILARITY_SERVER def search_similar_embedding(user, emb, result_count=100, threshold=27): if type(user) == int: user_id = user else: ...
2,092
0
69
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 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_...
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_...
354
0
24
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 import cv2 as cv from utils.functions import iter_dir, join, make_dirs 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...
1,813
-4
131
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 ...
1,192
0
161
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 """ 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...
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...
2,342
1
76
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 import numpy as np from pyuvdata import UVCal import ...
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
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...
1,190
0
84
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 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...
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...
560
0
23
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
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
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
8f1f5c58abd02cdb6caf693636dad3802db579f4
145
py
Python
code/AST/IfAST.py
antuniooh/Dattebayo-compiler
fd6767aee1c131dcbf76fc061bce43224df03f8b
[ "MIT" ]
null
null
null
code/AST/IfAST.py
antuniooh/Dattebayo-compiler
fd6767aee1c131dcbf76fc061bce43224df03f8b
[ "MIT" ]
null
null
null
code/AST/IfAST.py
antuniooh/Dattebayo-compiler
fd6767aee1c131dcbf76fc061bce43224df03f8b
[ "MIT" ]
1
2021-12-05T14:00:39.000Z
2021-12-05T14:00:39.000Z
from .AST import AST
18.125
41
0.648276
from .AST import AST class IfAST(AST): def __init__(self, condition, scope): self.condition = condition self.scope = scope
78
-4
49
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
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 def create_status(context, state, *...
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...
344
76
91
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 # ============================================================================= from utils import pr...
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
3,008
22
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""" from parsons.etl.table import Table 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...
399
2,555
23
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...
10,127
14
536
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
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 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 ...
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 ...
10,820
0
100
6a568a60623456f59bbd5683df020e05177d6d7f
26
py
Python
dbipyt/__init__.py
paixlukee/dbi-python
4a00b2bba7f5f875cd23ec07ce061c539e9655c0
[ "MIT" ]
2
2018-10-27T17:47:59.000Z
2018-10-27T20:36:13.000Z
dbipyt/__init__.py
paixlukee/dbi-python
4a00b2bba7f5f875cd23ec07ce061c539e9655c0
[ "MIT" ]
null
null
null
dbipyt/__init__.py
paixlukee/dbi-python
4a00b2bba7f5f875cd23ec07ce061c539e9655c0
[ "MIT" ]
null
null
null
from dbipyt import dbipyt
13
25
0.846154
from dbipyt import dbipyt
0
0
0
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 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...
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...
7,856
4,942
46
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
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
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...
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...
449
234
23
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 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 annotate_cols(...
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...
7,518
0
506
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 matplotlib.pyplot as plt import tensorflow_datasets as tfds import random from ew import EWBase, EWDense, EWConv2D AUTOTUNE = tf.data.experimental.AUTOTUNE dataset = tfds.load("mnist", as_supervised=True, split="train") val_set = tfds.load("mnist", as_supe...
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): ...
263
0
92
097b103d8e1f0cc11caafbeef7b83e6bb5f01040
16,247
py
Python
athena/.ipynb_checkpoints/__init__-checkpoint.py
markowetzlab/Athena
55de866303fd6b82d05b294ccab4e85c4b965f81
[ "MIT" ]
1
2022-03-23T12:45:08.000Z
2022-03-23T12:45:08.000Z
athena/__init__.py
markowetzlab/Athena
55de866303fd6b82d05b294ccab4e85c4b965f81
[ "MIT" ]
null
null
null
athena/__init__.py
markowetzlab/Athena
55de866303fd6b82d05b294ccab4e85c4b965f81
[ "MIT" ]
null
null
null
import os import glob import pickle import random import shutil import zipfile import requests import igraph as ig import pandas as pd from .grna import GuideRNA from .network import Network from .kinetics import Kinetics from .sampling import Sampling from .gillespie_ssa import GillespieSSA from .compile_reactions imp...
42.643045
161
0.603373
import os import glob import pickle import random import shutil import zipfile import requests import igraph as ig import pandas as pd from .grna import GuideRNA from .network import Network from .kinetics import Kinetics from .sampling import Sampling from .gillespie_ssa import GillespieSSA from .compile_reactions imp...
11,296
4,588
23
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 ...
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
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
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 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']...
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']...
6,360
14
342
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/) # 問題:leftからrightまででself-dividingの数をリストで返せ。self-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...
216
-6
71
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.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...
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
0
0
7dc5b102a1b1795dd4b9eb29405a8e8ca9487934
108
py
Python
handlers/__init__.py
DurbeKK/tg_pdf_bot
75a180cc7c876df84a4cac825939898892a43aa9
[ "MIT" ]
3
2021-12-03T09:27:54.000Z
2021-12-09T03:19:42.000Z
handlers/__init__.py
DurbeKK/tg-pdf-bot
75a180cc7c876df84a4cac825939898892a43aa9
[ "MIT" ]
null
null
null
handlers/__init__.py
DurbeKK/tg-pdf-bot
75a180cc7c876df84a4cac825939898892a43aa9
[ "MIT" ]
null
null
null
from . import merge_callbacks, merge_commands from . import basic_commands, crypt, compress, convert, split
54
61
0.814815
from . import merge_callbacks, merge_commands from . import basic_commands, crypt, compress, convert, split
0
0
0
3eb3a1bc12e6c06f92dd0db8ad9e095e6a9e03cd
1,015
py
Python
bmds_server/common/management/commands/dump_test_db.py
shapiromatron/bmds-server
0b2b79b521728582fa66100621e9ea03e251f9f1
[ "MIT" ]
1
2019-07-09T16:42:15.000Z
2019-07-09T16:42:15.000Z
bmds_server/common/management/commands/dump_test_db.py
shapiromatron/bmds-server
0b2b79b521728582fa66100621e9ea03e251f9f1
[ "MIT" ]
103
2016-11-14T15:58:53.000Z
2022-03-07T21:01:03.000Z
bmds_server/common/management/commands/dump_test_db.py
shapiromatron/bmds-server
0b2b79b521728582fa66100621e9ea03e251f9f1
[ "MIT" ]
2
2017-03-17T20:43:22.000Z
2018-01-04T19:15:18.000Z
from io import StringIO from pathlib import Path from django.conf import settings from django.core.management import call_command from django.core.management.base import BaseCommand, CommandError
31.71875
80
0.662069
from io import StringIO from pathlib import Path from django.conf import settings from django.core.management import call_command from django.core.management.base import BaseCommand, CommandError class Command(BaseCommand): help = """Dump test database into a fixture.""" def handle(self, *args, **options): ...
709
85
23
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))
27
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 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...
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...
0
0
0
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""" 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...
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...
938
351
99
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 ''' glo...
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
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...
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))
198
0
22
8f29fd45da7343f135031788062e5048b62352c0
469
py
Python
basxconnect/core/context_processors.py
basxsoftwareassociation/basxconnect
f7edf62ab3f61419ceb8b2b81314648bd9ef01fd
[ "BSD-3-Clause" ]
10
2021-04-20T13:30:33.000Z
2022-03-10T17:58:06.000Z
basxconnect/core/context_processors.py
basxsoftwareassociation/basxconnect
f7edf62ab3f61419ceb8b2b81314648bd9ef01fd
[ "BSD-3-Clause" ]
146
2020-12-20T13:52:37.000Z
2022-03-21T06:48:08.000Z
basxconnect/core/context_processors.py
basxsoftwareassociation/basxconnect
f7edf62ab3f61419ceb8b2b81314648bd9ef01fd
[ "BSD-3-Clause" ]
6
2021-03-16T04:45:15.000Z
2022-02-26T22:06:34.000Z
from django.utils.html import mark_safe from dynamic_preferences.registries import global_preferences_registry from basxconnect.core.views.person.search_person_view import searchbar
31.266667
88
0.727079
from django.utils.html import mark_safe from dynamic_preferences.registries import global_preferences_registry from basxconnect.core.views.person.search_person_view import searchbar def basxconnect_core(request): return { "PLATFORMNAME": mark_safe('basx <span style="font-weight: 600">Connect</span>'), ...
262
0
23
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)) Stoc...
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...
830
0
68
591c127b1cffb54d8ffbf28a50de3b5af18a317c
3,478
py
Python
ai_transformersx/examples/tasks/news_classification/general_models.py
aicanhelp/ai-transformers
fa30031fa7360ee6d4fd3d016a3c81a23cfe8af1
[ "MIT" ]
1
2020-08-03T12:59:20.000Z
2020-08-03T12:59:20.000Z
transformersx/examples/tasks/news_classification/general_models.py
aicanhelp/ai-transformers
fa30031fa7360ee6d4fd3d016a3c81a23cfe8af1
[ "MIT" ]
null
null
null
transformersx/examples/tasks/news_classification/general_models.py
aicanhelp/ai-transformers
fa30031fa7360ee6d4fd3d016a3c81a23cfe8af1
[ "MIT" ]
null
null
null
from torch import nn import torch import torch.nn.functional as F
39.522727
104
0.648361
from torch import nn import torch import torch.nn.functional as F class NewsClassification_WordAVGModel(nn.Module): def __init__(self, vocab_size, embedding_dim, output_dim, dropout=0.2, pad_idx=0): # 初始化参数, super().__init__() self.embedding = nn.Embedding(vocab_size, embedding_dim, paddin...
3,407
64
228
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...
756
166
121
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 """ class TSTFTArray(object): """ class to support creating FC arrays from STFT objects stored as mat files % class to support creating FC arrays from STFT objects stored...
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...
306
0
102
88461a861fd799b887fa5ff02063ea8ed44aaab3
1,234
py
Python
cogs/image.py
Krepy/KrepyBot
ee726735c7265b8f46d1be077e88607402fa89fc
[ "MIT" ]
1
2021-02-17T21:18:38.000Z
2021-02-17T21:18:38.000Z
cogs/image.py
Krepy/KrepyBot
ee726735c7265b8f46d1be077e88607402fa89fc
[ "MIT" ]
null
null
null
cogs/image.py
Krepy/KrepyBot
ee726735c7265b8f46d1be077e88607402fa89fc
[ "MIT" ]
null
null
null
import discord from discord.ext import commands import random import httpx from lxml import html import os
26.255319
72
0.662075
import discord from discord.ext import commands import random import httpx from lxml import html import os class ImageModule(commands.Cog): def __init__(self, bot): self.bot = bot @commands.guild_only() @commands.cooldown(1, 5, commands.BucketType.user) @commands.command(name='birb') async...
754
326
46
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'...
382
-6
49
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 io import inspect from pyparsing import W...
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...
16,502
0
1,827
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 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....
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....
433
0
25
deb8fedc9d1b6220b5fb807b13673aaeecac02a4
825
py
Python
travelperk_http_python/oauth/config/config.py
namelivia/travelperk-http-python
c6cbd88c999a49f7d61ae040029ca3e91ce72cae
[ "MIT" ]
2
2021-08-30T12:34:26.000Z
2021-08-31T07:56:12.000Z
travelperk_http_python/oauth/config/config.py
namelivia/travelperk-http-python
c6cbd88c999a49f7d61ae040029ca3e91ce72cae
[ "MIT" ]
6
2021-07-15T16:13:06.000Z
2022-03-03T09:45:07.000Z
travelperk_http_python/oauth/config/config.py
namelivia/travelperk-http-python
c6cbd88c999a49f7d61ae040029ca3e91ce72cae
[ "MIT" ]
null
null
null
from typing import List
25
85
0.593939
from typing import List class Config: def __init__( self, client_id: str, client_secret: str, redirect_url: str, code: str = None ): self.client_id = client_id self.client_secret = client_secret self.redirect_url = redirect_url self.code = code def get_client_id(se...
624
-8
184
4c5f0c9882f83a27b4893f2477399ebb929b0fb8
282
py
Python
doges/serializers/__init__.py
Nunuzac/doges
fcd0343946bf0cb4f4a80bb910acea44dfa71b37
[ "Apache-2.0" ]
null
null
null
doges/serializers/__init__.py
Nunuzac/doges
fcd0343946bf0cb4f4a80bb910acea44dfa71b37
[ "Apache-2.0" ]
null
null
null
doges/serializers/__init__.py
Nunuzac/doges
fcd0343946bf0cb4f4a80bb910acea44dfa71b37
[ "Apache-2.0" ]
null
null
null
from .breed_serializer import BreedSerializer from .dog_serializer import DogSerializer from .user_serializer import UserSerializer from .role_serializer import RoleSerializer from .person_serializer import PersonSerializer from .custom_token_serializer import CustomTokenSerializer
47
58
0.897163
from .breed_serializer import BreedSerializer from .dog_serializer import DogSerializer from .user_serializer import UserSerializer from .role_serializer import RoleSerializer from .person_serializer import PersonSerializer from .custom_token_serializer import CustomTokenSerializer
0
0
0
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 ...
2,051
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 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 = ...
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 = ...
1,060
0
23
179a97e5c2e7d0ffd8ee5f4583397bd5e7600a67
228
py
Python
boa3_test/test_sc/function_test/ReturnStarredArgumentCount.py
hal0x2328/neo3-boa
6825a3533384cb01660773050719402a9703065b
[ "Apache-2.0" ]
25
2020-07-22T19:37:43.000Z
2022-03-08T03:23:55.000Z
boa3_test/test_sc/function_test/ReturnStarredArgumentCount.py
hal0x2328/neo3-boa
6825a3533384cb01660773050719402a9703065b
[ "Apache-2.0" ]
419
2020-04-23T17:48:14.000Z
2022-03-31T13:17:45.000Z
boa3_test/test_sc/function_test/ReturnStarredArgumentCount.py
hal0x2328/neo3-boa
6825a3533384cb01660773050719402a9703065b
[ "Apache-2.0" ]
15
2020-05-21T21:54:24.000Z
2021-11-18T06:17:24.000Z
from typing import List from boa3.builtin import public @public @public
16.285714
44
0.736842
from typing import List from boa3.builtin import public @public def fun_with_starred(*args: int) -> int: return len(args) @public def main(list_with_args: List[int]) -> int: return fun_with_starred(*list_with_args)
107
0
44