hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
941d9b499a6419a8999fa8b0994ace927c93a432
445
py
Python
1. Transcricao/transcricao.py
Francisco-Jair/Bioinformatica
34aed452eb5470a4556f8c4ebaccbf1a6c1a6720
[ "MIT" ]
1
2022-02-22T12:48:25.000Z
2022-02-22T12:48:25.000Z
1. Transcricao/transcricao.py
Francisco-Jair/bioinformatica
34aed452eb5470a4556f8c4ebaccbf1a6c1a6720
[ "MIT" ]
null
null
null
1. Transcricao/transcricao.py
Francisco-Jair/bioinformatica
34aed452eb5470a4556f8c4ebaccbf1a6c1a6720
[ "MIT" ]
null
null
null
dna = open('dna.txt','r') date = dna.readline() rna = "" for i in date: if i == 'T': rna+="A" elif i == 'G': rna +="C" elif i == 'C': rna+="G" elif i == "A": rna+="U" saveRna = open('rna.txt', 'w') saveRna.write(rna) saveRna.close() """ No DNA temos as bases T - A ...
12.714286
53
0.51236
dna = open('dna.txt','r') date = dna.readline() rna = "" for i in date: if i == 'T': rna+="A" elif i == 'G': rna +="C" elif i == 'C': rna+="G" elif i == "A": rna+="U" saveRna = open('rna.txt', 'w') saveRna.write(rna) saveRna.close() """ No DNA temos as bases T - A ...
2
0
0
0
0
0
0
0
0
81cb32138e038912dc915c7664f5d98d6841a538
561
py
Python
ball.py
dynamicPilot/ball_game
c3935415be18f45780e9e68d71669bbdce290774
[ "MIT" ]
null
null
null
ball.py
dynamicPilot/ball_game
c3935415be18f45780e9e68d71669bbdce290774
[ "MIT" ]
null
null
null
ball.py
dynamicPilot/ball_game
c3935415be18f45780e9e68d71669bbdce290774
[ "MIT" ]
null
null
null
""" Ball Class (based on Gameobject). """
25.5
82
0.645276
""" Ball Class (based on Gameobject). """ import pygame from game_object import GameObject class Ball(GameObject): def __init__(self, x_center, y_center, r, color, speed, special_effect=None): GameObject.__init__(self, x_center - r, y_center - r, r * 2, r * 2, speed) self.radius = r self....
0
0
0
445
0
0
0
5
69
f83d48e61b53e1e98e2cd1a5a33dd44c84f673e1
1,037
py
Python
Strings/CountVowelSubstringofStrimg.py
haaris272k/Problem-Solving-Collection
5c8d0c36aff0d525ffec880115f5e123d0f3092b
[ "MIT" ]
1
2022-02-28T06:49:25.000Z
2022-02-28T06:49:25.000Z
Strings/CountVowelSubstringofStrimg.py
haaris272k/Problem-Solving-Collection
5c8d0c36aff0d525ffec880115f5e123d0f3092b
[ "MIT" ]
null
null
null
Strings/CountVowelSubstringofStrimg.py
haaris272k/Problem-Solving-Collection
5c8d0c36aff0d525ffec880115f5e123d0f3092b
[ "MIT" ]
null
null
null
'''A substring is a contiguous (non-empty) sequence of characters within a string. A vowel substring is a substring that only consists of vowels ('a', 'e', 'i', 'o', and 'u') and has all five vowels present in it. Given a string word, return the number of vowel substrings in word. Example 1: Input: wor...
25.292683
131
0.593057
'''A substring is a contiguous (non-empty) sequence of characters within a string. A vowel substring is a substring that only consists of vowels ('a', 'e', 'i', 'o', and 'u') and has all five vowels present in it. Given a string word, return the number of vowel substrings in word. Example 1: Input: wor...
0
0
0
0
0
0
0
0
0
529c875ae24796fe7659b77cb2d49a2a3da1d8d7
924
py
Python
commands/BaseLogger.py
WilkoV/Fusion360_ExportIt
ab32bcb8003aed9a9a5b29ae66a326db44d04df6
[ "MIT" ]
6
2020-09-20T01:01:16.000Z
2022-03-30T11:35:24.000Z
commands/BaseLogger.py
WilkoV/Fusion360_ExportIt
ab32bcb8003aed9a9a5b29ae66a326db44d04df6
[ "MIT" ]
23
2020-06-05T16:30:11.000Z
2022-01-11T06:48:10.000Z
commands/BaseLogger.py
WilkoV/Fusion360_ExportIt
ab32bcb8003aed9a9a5b29ae66a326db44d04df6
[ "MIT" ]
null
null
null
import os import logging from logging.handlers import RotatingFileHandler # create format of the log message logFormatter = logging.Formatter(LOG_FORMAT) # Get the path of the running script (api command) appPath = os.path.dirname(os.path.abspath(__file__)) # add subdirectory "log" to the path logPath = os.path.join...
26.4
115
0.780303
import os import logging from logging.handlers import RotatingFileHandler from .Statics import * # create format of the log message logFormatter = logging.Formatter(LOG_FORMAT) # Get the path of the running script (api command) appPath = os.path.dirname(os.path.abspath(__file__)) # add subdirectory "log" to the path...
0
0
0
0
0
0
0
1
22
54050ff19b88a09abe9558d5d18b3e79ccf0c924
805
py
Python
videoanalyst/data/target/target_impl/utils/debug_compare_densebox_target.py
TragedyN/SiamFCpp
65d80a66eb40d81ca09fa2dbf32636fbc414ec0d
[ "MIT" ]
737
2019-12-24T13:34:43.000Z
2022-03-28T11:38:24.000Z
videoanalyst/data/target/target_impl/utils/debug_compare_densebox_target.py
ShiAngWang/video_analyst
de4f86363cc408695428b423e8d6e346aa35149b
[ "MIT" ]
129
2020-02-13T04:08:28.000Z
2022-03-17T04:13:09.000Z
videoanalyst/data/target/target_impl/utils/debug_compare_densebox_target.py
ShiAngWang/video_analyst
de4f86363cc408695428b423e8d6e346aa35149b
[ "MIT" ]
179
2019-12-31T04:53:12.000Z
2022-03-25T06:32:20.000Z
import numpy as np # from IPython import embed;embed() from make_densebox_target import make_densebox_target as make_densebox_target_old from make_densebox_target_dev import make_densebox_target as make_densebox_target_new gt_boxes = np.asarray([[150, 250, 130, 60, 1]]) config_dict = dict( x_size=303, score_si...
32.2
69
0.740373
import numpy as np # from IPython import embed;embed() from make_densebox_target import \ make_densebox_target as make_densebox_target_old from make_densebox_target_dev import \ make_densebox_target as make_densebox_target_new gt_boxes = np.asarray([[150, 250, 130, 60, 1]]) config_dict = dict( x_size=303, ...
0
0
0
0
0
0
0
12
0
ae6ce78d2f8743264ccb5871a9860612581b3d46
7,060
py
Python
homework_1_linear_regression/main.py
Vinogradov-Mikhail/Spbu_ML_hw_19
564ed068b07656f4807ca955e6335b7e7dd5b340
[ "MIT" ]
1
2021-06-26T11:49:10.000Z
2021-06-26T11:49:10.000Z
homework_1_linear_regression/main.py
Vinogradov-Mikhail/Spbu_ML_hw_19
564ed068b07656f4807ca955e6335b7e7dd5b340
[ "MIT" ]
null
null
null
homework_1_linear_regression/main.py
Vinogradov-Mikhail/Spbu_ML_hw_19
564ed068b07656f4807ca955e6335b7e7dd5b340
[ "MIT" ]
1
2021-04-13T13:16:22.000Z
2021-04-13T13:16:22.000Z
LEARNING_RATE = 0.15 REGULARISATION = 0.005 MAX_ITERATION = 15000 TARGET_COLUMN_NAME = 53 FOLD_COUNT = 5 # x^j+1 = x^j - lambda^j * grad(F(x^j)) # block of function for features # normalise values in selected column if __name__ == "__main__": main()
34.271845
163
0.658782
import numpy as np import os import pandas as pd LEARNING_RATE = 0.15 REGULARISATION = 0.005 MAX_ITERATION = 15000 TARGET_COLUMN_NAME = 53 FOLD_COUNT = 5 # x^j+1 = x^j - lambda^j * grad(F(x^j)) # block of function for features # normalise values in selected column def normalization(column): column_min = column....
0
0
0
0
0
6,523
0
-17
295
ff88e0f5ccecc3c701f512768bb897a2dfbe68cb
1,035
py
Python
sis-api/test/bdd/steps/membership.serialization.py
maxbilbow/7054CEM-sis
1c5067c9afc38e340fcce046048f8ae21d267365
[ "MIT" ]
null
null
null
sis-api/test/bdd/steps/membership.serialization.py
maxbilbow/7054CEM-sis
1c5067c9afc38e340fcce046048f8ae21d267365
[ "MIT" ]
null
null
null
sis-api/test/bdd/steps/membership.serialization.py
maxbilbow/7054CEM-sis
1c5067c9afc38e340fcce046048f8ae21d267365
[ "MIT" ]
null
null
null
use_step_matcher("re")
27.236842
118
0.72657
from datetime import date from behave import * from core.model import to_dict from core.model.membership import Membership from core.model.membership_type import MembershipType from core.utils.serialization import serialize use_step_matcher("re") @when("a serialized membership is requested") def step_impl(context)...
0
713
0
0
0
0
0
92
203
92dd7ab3b9750981c6d00eedcdca0d935244823f
86
py
Python
molecule/default/tests/test_node.py
OsgiliathEnterprise/ansible-iam
8d79da2c2ae07e433166349cabe34736376b2412
[ "Apache-2.0" ]
null
null
null
molecule/default/tests/test_node.py
OsgiliathEnterprise/ansible-iam
8d79da2c2ae07e433166349cabe34736376b2412
[ "Apache-2.0" ]
null
null
null
molecule/default/tests/test_node.py
OsgiliathEnterprise/ansible-iam
8d79da2c2ae07e433166349cabe34736376b2412
[ "Apache-2.0" ]
null
null
null
"""Role testing files using testinfra.""" testinfra_hosts = ["node1.osgiliath.test"]
21.5
42
0.732558
"""Role testing files using testinfra.""" testinfra_hosts = ["node1.osgiliath.test"]
0
0
0
0
0
0
0
0
0
994fbc492089270e21f9fed2b7eebf5899d9b97c
1,443
py
Python
Mike's Playground/ep_energy.py
jhfernan/Python-Playground
e80cc0c0c39b3672780209eb4aa93379777e09d6
[ "MIT" ]
null
null
null
Mike's Playground/ep_energy.py
jhfernan/Python-Playground
e80cc0c0c39b3672780209eb4aa93379777e09d6
[ "MIT" ]
null
null
null
Mike's Playground/ep_energy.py
jhfernan/Python-Playground
e80cc0c0c39b3672780209eb4aa93379777e09d6
[ "MIT" ]
null
null
null
#Electric potential energy, the easy way to solve physics problems. #This energy is converted from potential to kinetic just like in any other situation. #The calculations based upon Energy in general can be used to design and build anything. #This application will attempt to quickly formulate Energy quantities and int...
35.195122
108
0.761608
#Electric potential energy, the easy way to solve physics problems. #This energy is converted from potential to kinetic just like in any other situation. #The calculations based upon Energy in general can be used to design and build anything. #This application will attempt to quickly formulate Energy quantities and int...
25
0
0
0
0
0
0
0
0
dc185d3385b39e1dc306be98e78f79858a569d99
3,189
py
Python
quex/engine/state_machine/algebra/TESTS/basics/TEST/test-union.py
smmckay/quex-mirror
7d75ed560e9f3a591935e59243188676eecb112a
[ "MIT" ]
null
null
null
quex/engine/state_machine/algebra/TESTS/basics/TEST/test-union.py
smmckay/quex-mirror
7d75ed560e9f3a591935e59243188676eecb112a
[ "MIT" ]
null
null
null
quex/engine/state_machine/algebra/TESTS/basics/TEST/test-union.py
smmckay/quex-mirror
7d75ed560e9f3a591935e59243188676eecb112a
[ "MIT" ]
null
null
null
#! /usr/bin/env python import sys import os sys.path.insert(0, os.environ["QUEX_PATH"]) import quex.input.regular_expression.engine as regex import quex.engine.state_machine.algebra.union as union import quex.engine.state_machine.algebra.intersection as intersection import quex.engine.state_machine.ch...
35.043956
77
0.532455
#! /usr/bin/env python import sys import os sys.path.insert(0, os.environ["QUEX_PATH"]) import quex.input.regular_expression.engine as regex import quex.engine.state_machine.algebra.union as union import quex.engine.state_machine.algebra.intersection as intersection import quex.engine.state_machine.ch...
0
0
0
0
0
853
0
0
27
999588c6a1dc028a7b974c575fa938c7f745b9cf
5,225
py
Python
hood/tests.py
Nelsonkioko/Hood_Watch
1153360c7f494c2820206c6b172b732ba3eb14fa
[ "Unlicense" ]
null
null
null
hood/tests.py
Nelsonkioko/Hood_Watch
1153360c7f494c2820206c6b172b732ba3eb14fa
[ "Unlicense" ]
5
2020-06-05T21:22:20.000Z
2021-09-08T01:02:44.000Z
hood/tests.py
Nelsonkioko/Hood_Watch
1153360c7f494c2820206c6b172b732ba3eb14fa
[ "Unlicense" ]
null
null
null
# Create your tests here.
38.419118
170
0.697225
from django.test import TestCase from django.contrib.auth.models import User from .models import UserProfile,Post,Comment,Location,Category,Neighborhood,Company # Create your tests here. class UserProfileTestClass(TestCase): # Set up method def setUp(self): self.user = User.objects.create_user(username=...
0
0
0
4,878
0
0
0
95
226
90806d17353332cc1da92222362340c8cbbcfb77
58,542
py
Python
ReferentialGym/agents/differentiable_obverter_agent.py
Near32/ReferentialGameGym
afe22da2ac20c0d24e93b4dbd1f1ad61374d1a6c
[ "MIT" ]
19
2019-11-20T05:50:37.000Z
2022-03-15T09:10:25.000Z
ReferentialGym/agents/differentiable_obverter_agent.py
Near32/ReferentialGameGym
afe22da2ac20c0d24e93b4dbd1f1ad61374d1a6c
[ "MIT" ]
null
null
null
ReferentialGym/agents/differentiable_obverter_agent.py
Near32/ReferentialGameGym
afe22da2ac20c0d24e93b4dbd1f1ad61374d1a6c
[ "MIT" ]
5
2020-12-20T23:00:23.000Z
2022-01-06T08:42:24.000Z
import torch.nn as nn use_decision_head = True nbr_head_outputs = 2 not_always_argmax = True ; always_categorical_sampling = True LogSoftmaxAfterLogOnSigmoid = False bmm = False normalize = True inner_model = True use_one_minus_max_prob = True whole_sentence = False packpadding = False assume_padding_with_eos = ...
54.055402
185
0.627601
import torch import torch.nn as nn import torch.nn.functional as F from .discriminative_listener import DiscriminativeListener from ..networks import choose_architecture, layer_init, BetaVAE, reg_nan, hasnan from ..utils import gumbel_softmax use_decision_head = True nbr_head_outputs = 2 not_always_argmax = True ; al...
0
0
0
54,612
0
3,236
0
111
157
e21398358baf0b9bacfa8e0348420ba7ffb199df
1,305
py
Python
pylabnet/scripts/pause_script.py
wi11dey/pylabnet
a6e3362f727c45aaa60e61496e858ae92e85574d
[ "MIT" ]
10
2020-01-07T23:28:49.000Z
2022-02-02T19:09:17.000Z
pylabnet/scripts/pause_script.py
wi11dey/pylabnet
a6e3362f727c45aaa60e61496e858ae92e85574d
[ "MIT" ]
249
2019-12-28T19:38:49.000Z
2022-03-28T16:45:32.000Z
pylabnet/scripts/pause_script.py
wi11dey/pylabnet
a6e3362f727c45aaa60e61496e858ae92e85574d
[ "MIT" ]
5
2020-11-17T19:45:10.000Z
2022-01-04T18:07:04.000Z
""" Set of tools to stop continuously running script from a different process via RPyC link. Steps: - the script class should have public method pause(), which will be called by client through RPyC link - once the script is instantiated, assign it as the module to PauseService instance: pause_service_instanc...
29
77
0.717241
""" Set of tools to stop continuously running script from a different process via RPyC link. Steps: - the script class should have public method pause(), which will be called by client through RPyC link - once the script is instantiated, assign it as the module to PauseService instance: pause_service_instanc...
0
0
0
665
0
0
0
72
91
a7406aae1ccc2e0f81a125ccdfc5675e620996e1
994
py
Python
sales/urls.py
sLeeNguyen/sales-support
3f0a6977c8c26743373a70b4296516b7a71ccf4a
[ "Apache-2.0" ]
1
2021-03-22T14:07:30.000Z
2021-03-22T14:07:30.000Z
sales/urls.py
sLeeNguyen/sales-support
3f0a6977c8c26743373a70b4296516b7a71ccf4a
[ "Apache-2.0" ]
null
null
null
sales/urls.py
sLeeNguyen/sales-support
3f0a6977c8c26743373a70b4296516b7a71ccf4a
[ "Apache-2.0" ]
null
null
null
from django.urls import path, re_path from . import views app_name = "sales" urlpatterns = [ re_path('^sales/$', views.SalesView.as_view(), name="sales"), re_path('^sales/search/product/$', views.SearchProductView.as_view(), name="search"), re_path('^sales/search/customer/$', views.SearchCustomerView.as_vi...
58.470588
111
0.686117
from django.urls import path, re_path from . import views app_name = "sales" urlpatterns = [ re_path('^sales/$', views.SalesView.as_view(), name="sales"), re_path('^sales/search/product/$', views.SearchProductView.as_view(), name="search"), re_path('^sales/search/customer/$', views.SearchCustomerView.as_vi...
0
0
0
0
0
0
0
0
0
90f50e1411da7d618e3c5ec957b3527c76d37691
1,673
py
Python
projects/schemas/project.py
dnlcesilva/projects
8e367d502aa0ffe3ed29f767d6ab039e6bee282f
[ "Apache-2.0" ]
6
2019-09-16T13:07:20.000Z
2021-06-02T19:02:05.000Z
projects/schemas/project.py
ndarvishev/projects
6a9855c5f8af8fad2799ef7a203e126b834c5056
[ "Apache-2.0" ]
325
2019-09-20T20:06:00.000Z
2022-03-30T15:05:49.000Z
projects/schemas/project.py
ndarvishev/projects
6a9855c5f8af8fad2799ef7a203e126b834c5056
[ "Apache-2.0" ]
17
2019-08-02T16:55:47.000Z
2021-06-26T19:13:35.000Z
# -*- coding: utf-8 -*- """Project schema."""
24.246377
67
0.677227
# -*- coding: utf-8 -*- """Project schema.""" from datetime import datetime from typing import List, Optional from pydantic import BaseModel from projects.schemas.deployment import Deployment from projects.schemas.experiment import Experiment from projects.utils import to_camel_case class ProjectBase(BaseModel): ...
0
639
0
628
0
0
0
106
249
06927ecbb31531d1e817ca9fc2075566e4173c8f
24,512
py
Python
main_bert_hier.py
HLTCHKUST/emotion-dialogue
0d58b339134dd9a2f386948ae474b270a77370f9
[ "MIT" ]
40
2019-04-29T09:17:48.000Z
2021-11-19T06:32:02.000Z
main_bert_hier.py
HLTCHKUST/emotion-dialogue
0d58b339134dd9a2f386948ae474b270a77370f9
[ "MIT" ]
null
null
null
main_bert_hier.py
HLTCHKUST/emotion-dialogue
0d58b339134dd9a2f386948ae474b270a77370f9
[ "MIT" ]
4
2019-09-01T10:00:56.000Z
2020-03-08T16:00:22.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from utils import constant import logging import torch.nn as nn from pytorch_pretrained_bert.tokenization import convert_to_unicode logging.basicConfig(format = '%(asctime)s - %(levelname)s - %(name)s - %(me...
50.02449
206
0.631527
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os from utils.data_reader import read_data ,get_data_for_bert from utils import constant from utils.utils import getMetrics from models.transformer import Encoder from models.lstm_model import HLstmModel ...
0
0
0
5,694
0
12,950
0
226
608
a15941426236155d42b21af772784162ea7806f2
1,301
py
Python
save_door_pointcloud.py
aidan-curtis/az-manipulator
0c9837110b30bdaa6e53938b6dc4bc7a26c0a474
[ "Apache-2.0" ]
null
null
null
save_door_pointcloud.py
aidan-curtis/az-manipulator
0c9837110b30bdaa6e53938b6dc4bc7a26c0a474
[ "Apache-2.0" ]
null
null
null
save_door_pointcloud.py
aidan-curtis/az-manipulator
0c9837110b30bdaa6e53938b6dc4bc7a26c0a474
[ "Apache-2.0" ]
null
null
null
import gym import pickle from mani_skill import env env = gym.make('OpenCabinetDoor-v0') # full environment list can be found in available_environments.txt env.set_env_mode(obs_mode='pointcloud', reward_type='sparse') # obs_mode can be 'state', 'pointcloud' or 'rgbd' # reward_type can be 'sparse' or 'dense' print(env...
35.162162
114
0.667948
import gym import pickle from mani_skill import env env = gym.make('OpenCabinetDoor-v0') # full environment list can be found in available_environments.txt env.set_env_mode(obs_mode='pointcloud', reward_type='sparse') # obs_mode can be 'state', 'pointcloud' or 'rgbd' # reward_type can be 'sparse' or 'dense' print(env...
0
0
0
0
0
0
0
0
0
9c2b2440971fc46632f5158c9309a0fe90f71f72
1,155
py
Python
src/brain/modelgen/model_generator.py
jmininger/peloton
268549dcd3451fac9fa983c190337fa5c6e4ee22
[ "Apache-2.0" ]
2
2021-03-29T01:29:18.000Z
2022-02-27T11:22:15.000Z
src/brain/modelgen/model_generator.py
lym953/15721-p3
c5ba8004c6f0f10472aa004303c04be1c860ade9
[ "Apache-2.0" ]
null
null
null
src/brain/modelgen/model_generator.py
lym953/15721-p3
c5ba8004c6f0f10472aa004303c04be1c860ade9
[ "Apache-2.0" ]
null
null
null
#===----------------------------------------------------------------------===# # # Peloton # # model_generator.py # # Identification: src/brain/modelgen/model_generator.py # # Copyright (c) 2015-2018, Carnegie Mellon University Database Group # #===-----------------------------------------------...
28.875
78
0.550649
#===----------------------------------------------------------------------===# # # Peloton # # model_generator.py # # Identification: src/brain/modelgen/model_generator.py # # Copyright (c) 2015-2018, Carnegie Mellon University Database Group # #===-----------------------------------------------...
0
0
0
0
0
565
0
-10
46
5bf1fdc565849a670ab5fc9dd781a475c9228094
4,308
py
Python
c-abi-examples/python_example.py
kristoff-it/zig-cuckoofilter
956937fdb3a3a1163e984469153e697588e9c982
[ "MIT" ]
52
2019-05-13T00:05:06.000Z
2022-02-16T05:45:42.000Z
c-abi-examples/python_example.py
kristoff-it/zig-cuckoofilter
956937fdb3a3a1163e984469153e697588e9c982
[ "MIT" ]
null
null
null
c-abi-examples/python_example.py
kristoff-it/zig-cuckoofilter
956937fdb3a3a1163e984469153e697588e9c982
[ "MIT" ]
3
2019-12-21T16:17:16.000Z
2021-11-26T06:22:39.000Z
from cffi import FFI # On macOS dynamic libraries have the .dylib extension. Windows has .dll and linux has .so # You can obtain libcuckoofilter_c.xxx.{dylib, so, dll} either by downloading it from the latest Release on GitHub # or by compiling the library using the Zig compiler: # # $ zig build-lib -dynamic --relea...
37.789474
114
0.727252
from cffi import FFI # On macOS dynamic libraries have the .dylib extension. Windows has .dll and linux has .so # You can obtain libcuckoofilter_c.xxx.{dylib, so, dll} either by downloading it from the latest Release on GitHub # or by compiling the library using the Zig compiler: # # $ zig build-lib -dynamic --relea...
0
0
0
0
0
0
0
0
0
76ec71be256ce91c25a080b7da16a5dda57078fd
3,568
py
Python
examples/lstm_forward.py
marcinz/cunumeric
c40b038d4eb0611f7bb16d5bd11891a633ef7892
[ "Apache-2.0" ]
118
2021-04-12T18:06:59.000Z
2021-10-12T21:30:24.000Z
examples/lstm_forward.py
marcinz/cunumeric
c40b038d4eb0611f7bb16d5bd11891a633ef7892
[ "Apache-2.0" ]
51
2021-04-21T10:40:13.000Z
2021-09-10T22:09:26.000Z
examples/lstm_forward.py
marcinz/cunumeric
c40b038d4eb0611f7bb16d5bd11891a633ef7892
[ "Apache-2.0" ]
9
2021-04-14T03:07:42.000Z
2021-09-22T17:02:53.000Z
#!/usr/bin/env python # Copyright 2021 NVIDIA Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
28.544
78
0.578475
#!/usr/bin/env python # Copyright 2021 NVIDIA Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
0
0
0
0
0
1,676
0
-15
90
b262b3d2c842e1ea438b151382ccdde9e343505a
3,377
py
Python
tests/test_index_update.py
jhong93/caption-index
5484df583c37ae68472c58b06c3ff4c3254a42b9
[ "BSD-3-Clause" ]
2
2020-11-05T20:37:32.000Z
2021-05-16T01:52:55.000Z
tests/test_index_update.py
scanner-research/caption-index
5484df583c37ae68472c58b06c3ff4c3254a42b9
[ "BSD-3-Clause" ]
null
null
null
tests/test_index_update.py
scanner-research/caption-index
5484df583c37ae68472c58b06c3ff4c3254a42b9
[ "BSD-3-Clause" ]
null
null
null
""" Build a dummy index, update it, and run tests on it. """ import os TEST_DATA_PATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'test-small.tar.gz') BUILD_INDEX_SCRIPT = os.path.join( os.path.dirname(os.path.abspath(__file__)), '..', 'scripts', 'build_index.py')...
37.522222
86
0.639917
""" Build a dummy index, update it, and run tests on it. """ import os import shutil import tempfile from subprocess import check_call, CalledProcessError import captions from lib.common import get_docs_and_lexicon TEST_DATA_PATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), ...
0
0
0
0
0
2,763
0
34
134
10e48b1c91f4da0db9bda2c7614b3932e9059adb
5,773
py
Python
snake_game/main.py
ps4449/python-games
559a15be98de4c0cef55eeee5e3e84888d8c7c39
[ "CC0-1.0" ]
null
null
null
snake_game/main.py
ps4449/python-games
559a15be98de4c0cef55eeee5e3e84888d8c7c39
[ "CC0-1.0" ]
null
null
null
snake_game/main.py
ps4449/python-games
559a15be98de4c0cef55eeee5e3e84888d8c7c39
[ "CC0-1.0" ]
null
null
null
size = 40 if __name__ == "__main__": game = Game() game.run()
29.605128
104
0.531093
import pygame from pygame.locals import * import time import random size = 40 class Apple: def __init__(self, parent_screen): # loading the apple image self.parent_screen = parent_screen self.apple = pygame.image.load("resources/apple.jpg").convert() self.x = size*4 self.y ...
0
0
0
5,563
0
0
0
-20
157
c33417d6722fcf82315611a3828045af6e5826a5
1,207
py
Python
manger.py
1335305660/new-project
78c0cf05ef527c7f6f2556308a4a8843d20bbbf5
[ "MIT" ]
null
null
null
manger.py
1335305660/new-project
78c0cf05ef527c7f6f2556308a4a8843d20bbbf5
[ "MIT" ]
null
null
null
manger.py
1335305660/new-project
78c0cf05ef527c7f6f2556308a4a8843d20bbbf5
[ "MIT" ]
null
null
null
from flask_script import Manager from flask_migrate import Migrate, MigrateCommand from info import create_app, db app = create_app("development") # class Config(object): # #DEBUG = True # SQLALCHEMY_DATABASE_URI = "mysql://root:mysql@127.0.0.1:3306/python22" # SQLALCHEMY_TRACK_MODIFICATIONS = False # ...
21.553571
87
0.705882
from flask_script import Manager from flask_migrate import Migrate, MigrateCommand from info import create_app, db app = create_app("development") # class Config(object): # #DEBUG = True # SQLALCHEMY_DATABASE_URI = "mysql://root:mysql@127.0.0.1:3306/python22" # SQLALCHEMY_TRACK_MODIFICATIONS = False # ...
285
0
0
0
0
0
0
0
0
c0c2f3c8c741f4204a3865d86fc06e4917c63b6f
650
py
Python
explore.py
kabirivan/Review_Database
5d807caf6bb1ba6515f89e744e8f85a3cc8930ad
[ "MIT" ]
null
null
null
explore.py
kabirivan/Review_Database
5d807caf6bb1ba6515f89e744e8f85a3cc8930ad
[ "MIT" ]
null
null
null
explore.py
kabirivan/Review_Database
5d807caf6bb1ba6515f89e744e8f85a3cc8930ad
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Aug 1 12:07:15 2021 @author: xavieraguas """ import sqlalchemy as db DBUSER = 'postgres' DBPASS = 'ivan' DBHOST = 'localhost' DBPORT = '5432' DBNAME = 'test' engine = db.create_engine('postgresql+psycopg2://{user}:{passwd}@{host}:{port}/{db}'.for...
23.214286
157
0.715385
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Aug 1 12:07:15 2021 @author: xavieraguas """ import sqlalchemy as db DBUSER = 'postgres' DBPASS = 'ivan' DBHOST = 'localhost' DBPORT = '5432' DBNAME = 'test' engine = db.create_engine('postgresql+psycopg2://{user}:{passwd}@{host}:{port}/{db}'.for...
0
0
0
0
0
0
0
0
0
17886f6f6da5d5e948c9ef37c8db58a42e700acf
4,489
py
Python
zeus/api/resources/repository_file_coverage_tree.py
conrad-kronos/zeus
ddb6bc313e51fb22222b30822b82d76f37dbbd35
[ "Apache-2.0" ]
221
2017-07-03T17:29:21.000Z
2021-12-07T19:56:59.000Z
zeus/api/resources/repository_file_coverage_tree.py
conrad-kronos/zeus
ddb6bc313e51fb22222b30822b82d76f37dbbd35
[ "Apache-2.0" ]
298
2017-07-04T18:08:14.000Z
2022-03-03T22:24:51.000Z
zeus/api/resources/repository_file_coverage_tree.py
conrad-kronos/zeus
ddb6bc313e51fb22222b30822b82d76f37dbbd35
[ "Apache-2.0" ]
24
2017-07-15T13:46:45.000Z
2020-08-16T16:14:45.000Z
from ..schemas import FileCoverageSchema SEPERATOR = "/" filecoverage_schema = FileCoverageSchema(many=False)
35.070313
88
0.539987
from flask import current_app, request from typing import Optional from zeus.constants import Result, Status from zeus.models import Build, FileCoverage, Repository from zeus.utils.trees import build_tree from zeus.vcs import vcs_client from .base_repository import BaseRepositoryResource from ..schemas import FileCov...
0
0
0
4,062
0
0
0
135
179
69504db4b756a2a61be808201760321dfb4b0ace
162
py
Python
python/split-strip.py
tbedford/code-snippets
9afe36c2726829f14fa5ec11acb8214bed704938
[ "MIT" ]
null
null
null
python/split-strip.py
tbedford/code-snippets
9afe36c2726829f14fa5ec11acb8214bed704938
[ "MIT" ]
null
null
null
python/split-strip.py
tbedford/code-snippets
9afe36c2726829f14fa5ec11acb8214bed704938
[ "MIT" ]
1
2018-10-09T02:03:12.000Z
2018-10-09T02:03:12.000Z
str= ' this | is | a string ' s1, s2, s3 = str.split('|', 2) print('>%s<' % s1.strip()) print('>%s<' % s2) print('>%s<' % s3) s = str.split('|', 2) print(s)
13.5
30
0.469136
str= ' this | is | a string ' s1, s2, s3 = str.split('|', 2) print('>%s<' % s1.strip()) print('>%s<' % s2) print('>%s<' % s3) s = str.split('|', 2) print(s)
0
0
0
0
0
0
0
0
0
5f57b69dd2b732ae783dea004681c5995c52a5d4
447
py
Python
constants.py
thomscot/bamboozled
a99d76454dff47ed90b4526185468d9061fe434f
[ "MIT" ]
null
null
null
constants.py
thomscot/bamboozled
a99d76454dff47ed90b4526185468d9061fe434f
[ "MIT" ]
null
null
null
constants.py
thomscot/bamboozled
a99d76454dff47ed90b4526185468d9061fe434f
[ "MIT" ]
null
null
null
# Bamboo website specific fields BAMBOO_LOGIN = "https://your_organization.bamboohr.com/login.php" CLOCK_OUT_BTN = "Clock Out" CLOCK_IN_BTN = "Clock In" STANDARD_LOGIN = "Log in with Email and Password" LOGIN_BTN = "Log In" LOGIN_ID = "#lemail" PWD_ID = "#password" # user specific constants MAX_SLEEP = 1200 # 20 ...
20.318182
65
0.740492
# Bamboo website specific fields BAMBOO_LOGIN = "https://your_organization.bamboohr.com/login.php" CLOCK_OUT_BTN = "Clock Out" CLOCK_IN_BTN = "Clock In" STANDARD_LOGIN = "Log in with Email and Password" LOGIN_BTN = "Log In" LOGIN_ID = "#lemail" PWD_ID = "#password" # user specific constants MAX_SLEEP = 1200 # 20 ...
0
0
0
0
0
0
0
0
0
81c18a2f0356e4349077b255c0ae7722c331a8cd
753
py
Python
ballot/urls.py
josephevans/WeVoteServer
137f3037ba9984e036eb146aeeeecb4e979c21e1
[ "MIT" ]
null
null
null
ballot/urls.py
josephevans/WeVoteServer
137f3037ba9984e036eb146aeeeecb4e979c21e1
[ "MIT" ]
null
null
null
ballot/urls.py
josephevans/WeVoteServer
137f3037ba9984e036eb146aeeeecb4e979c21e1
[ "MIT" ]
null
null
null
# ballot/urls.py # Brought to you by We Vote. Be good. # -*- coding: UTF-8 -*- from django.conf.urls import url from . import views_admin urlpatterns = [ # views_admin url(r'^import_ballot_items/$', views_admin.ballot_items_import_from_master_server_view, name='ballot_items_import_from_master...
35.857143
119
0.743692
# ballot/urls.py # Brought to you by We Vote. Be good. # -*- coding: UTF-8 -*- from django.conf.urls import url from . import views_admin urlpatterns = [ # views_admin url(r'^import_ballot_items/$', views_admin.ballot_items_import_from_master_server_view, name='ballot_items_import_from_master...
0
0
0
0
0
0
0
0
0
fe3da3a126f85af39a25fe883e7ebd890af430d1
13,774
py
Python
Main_ext.py
NewGr8Player/paipaidai_spider
9e11bf730a2371fbb3ffcf624a3031ca411b7d87
[ "MIT" ]
null
null
null
Main_ext.py
NewGr8Player/paipaidai_spider
9e11bf730a2371fbb3ffcf624a3031ca411b7d87
[ "MIT" ]
null
null
null
Main_ext.py
NewGr8Player/paipaidai_spider
9e11bf730a2371fbb3ffcf624a3031ca411b7d87
[ "MIT" ]
null
null
null
import datetime from selenium import webdriver data_xls_poz_map = { 1: {'name': '', 'code': 'user_name'}, 2: {'name': '', 'code': 'credit_level'}, 3: {'name': '', 'code': 'amount'}, 4: {'name': '', 'code': 'term'} } TYPE_KPT = 4 # LoanCategoryId 4:,8:,5: TYPE_SORT = 1 # 0,1,2 file_name = 'data_histo...
37.944904
119
0.579715
import os import time import datetime import random from bs4 import BeautifulSoup from openpyxl import load_workbook from openpyxl import Workbook from selenium import webdriver data_xls_poz_map = { 1: {'name': '用户名', 'code': 'user_name'}, 2: {'name': '信用等级', 'code': 'credit_level'}, 3: {'name': '贷款金额', 'c...
3,045
0
0
0
0
11,560
0
-1
352
159f2111ea1911cb06cdd1803e0ebeccc58ce4af
369
py
Python
back/main.py
saadlalam/issueBook
3a2519dca237bf6ac6708f88ea7d96b17de88ed3
[ "MIT" ]
null
null
null
back/main.py
saadlalam/issueBook
3a2519dca237bf6ac6708f88ea7d96b17de88ed3
[ "MIT" ]
null
null
null
back/main.py
saadlalam/issueBook
3a2519dca237bf6ac6708f88ea7d96b17de88ed3
[ "MIT" ]
null
null
null
from flask import Flask from flask_cors import CORS from app.config import properties from app.api.issues import issues app = Flask(__name__) app.register_blueprint(issues, url_prefix=f'/api/issues') CORS(app, resources={r"/*": {"origins": properties.AUTHORIZED_ORIGIN}}, supports_credentials=True) if __name__ =...
21.705882
98
0.766938
from flask import Flask from flask_cors import CORS from app.config import properties from app.api.issues import issues app = Flask(__name__) app.register_blueprint(issues, url_prefix=f'/api/issues') CORS(app, resources={r"/*": {"origins": properties.AUTHORIZED_ORIGIN}}, supports_credentials=True) if __name__ =...
0
0
0
0
0
0
0
0
0
3fd00df659d0026f50afb06f87ef017ff0c61899
950
py
Python
resources/resources_sql/inventario.py
cifpfbmoll/ollivanders-in-a-docker-pau13-loop
0f9f2589b567c57bd56a8a4161de3043d5639a8b
[ "MIT" ]
null
null
null
resources/resources_sql/inventario.py
cifpfbmoll/ollivanders-in-a-docker-pau13-loop
0f9f2589b567c57bd56a8a4161de3043d5639a8b
[ "MIT" ]
null
null
null
resources/resources_sql/inventario.py
cifpfbmoll/ollivanders-in-a-docker-pau13-loop
0f9f2589b567c57bd56a8a4161de3043d5639a8b
[ "MIT" ]
null
null
null
# Importamos el contenido de Service # Importamos el make_response
31.666667
125
0.684211
from flask_restful import Resource, Api # Importamos el contenido de Service from service.service_sql.service import Service # Importamos el make_response from flask import make_response, jsonify class Inventario(Resource): def get(self): """Gets a list of all items. Makes a custom Response Obje...
4
0
0
726
0
0
0
63
89
54fb079e1aa8bac4a52b1b1cb1f9702e0bdf4882
124
py
Python
code/common/module/__init__.py
naschorr/hawking
cdc98b7bc90c72d634f1fe877c34e7f9908ec4a8
[ "MIT" ]
21
2017-08-06T02:47:05.000Z
2022-03-13T17:39:00.000Z
code/common/module/__init__.py
naschorr/hawking
cdc98b7bc90c72d634f1fe877c34e7f9908ec4a8
[ "MIT" ]
87
2017-12-26T17:07:59.000Z
2022-03-11T01:31:48.000Z
code/common/module/__init__.py
naschorr/hawking
cdc98b7bc90c72d634f1fe877c34e7f9908ec4a8
[ "MIT" ]
7
2019-10-23T17:30:34.000Z
2022-03-31T05:56:43.000Z
__all__ = [ 'dependency_graph', 'discoverable_module', 'module_initialization_container', 'module_manager' ]
20.666667
38
0.701613
__all__ = [ 'dependency_graph', 'discoverable_module', 'module_initialization_container', 'module_manager' ]
0
0
0
0
0
0
0
0
0
c2ef4a42503ac3566c51d91b6c6562bcc97d14d7
846
py
Python
3-2.py
chrisguilbeau/aoc2021
d043f9da81343fc2e817884e7dfd36aa71632984
[ "MIT" ]
null
null
null
3-2.py
chrisguilbeau/aoc2021
d043f9da81343fc2e817884e7dfd36aa71632984
[ "MIT" ]
null
null
null
3-2.py
chrisguilbeau/aoc2021
d043f9da81343fc2e817884e7dfd36aa71632984
[ "MIT" ]
null
null
null
from sys import argv if __name__ == '__main__': with open(argv[1], 'r') as f: lines = f.readlines() main(lines)
32.538462
67
0.478723
from sys import argv def main(lines): lenLine = len(lines[0].strip()) def getVal(g=True): candidates = lines[:] for i in range(lenLine): lenLineHalf = len(candidates) / 2. numOnes = sum(int(l[i]) for l in candidates) print(numOnes) if numOnes >= l...
0
0
0
0
0
694
0
0
23
97f7620c8abd7d1be31eac719ba83b509dfa0c24
148
py
Python
compileMain.py
noahbroyles/pyinstaller-wine
f6ca8f1ee9b7b1682fcdfc4bea5ae1dc3643338e
[ "MIT" ]
6
2021-07-29T02:42:41.000Z
2021-09-18T20:38:10.000Z
compileMain.py
noahbroyles/pyinstaller-wine
f6ca8f1ee9b7b1682fcdfc4bea5ae1dc3643338e
[ "MIT" ]
1
2021-09-10T04:22:29.000Z
2021-11-05T17:01:10.000Z
compileMain.py
noahbroyles/pyinstaller-wine
f6ca8f1ee9b7b1682fcdfc4bea5ae1dc3643338e
[ "MIT" ]
null
null
null
import subprocess subprocess.call(['pyinstaller', '/home/nbroyles/PycharmProjects/PyinstallerWineCompile/main.py', '--onefile', '-n', 'pycompile'])
49.333333
129
0.763514
import subprocess subprocess.call(['pyinstaller', '/home/nbroyles/PycharmProjects/PyinstallerWineCompile/main.py', '--onefile', '-n', 'pycompile'])
0
0
0
0
0
0
0
0
0
c7df3847e83f3a0897b70fdee785e6bb33304854
1,299
py
Python
page_object_models/admin_page_model.py
ikostan/ParaBankSeleniumAutomation
e28a886adba89b82a60831ad96a3a8f00f863116
[ "Unlicense" ]
4
2019-08-12T19:36:58.000Z
2021-09-14T18:48:27.000Z
page_object_models/admin_page_model.py
ikostan/ParaBankSeleniumAutomation
e28a886adba89b82a60831ad96a3a8f00f863116
[ "Unlicense" ]
1
2021-06-02T00:01:00.000Z
2021-06-02T00:01:00.000Z
page_object_models/admin_page_model.py
ikostan/ParaBankSeleniumAutomation
e28a886adba89b82a60831ad96a3a8f00f863116
[ "Unlicense" ]
2
2019-08-12T10:06:00.000Z
2020-12-25T05:52:40.000Z
# Created by Egor Kostan. # GitHub: https://github.com/ikostan # LinkedIn: https://www.linkedin.com/in/egor-kostan/
31.682927
113
0.792148
# Created by Egor Kostan. # GitHub: https://github.com/ikostan # LinkedIn: https://www.linkedin.com/in/egor-kostan/ from tests.config import Config from utils.driver import Driver from element_object_models.element import Element from page_object_models.base_page_model import BasePageModel from page_locators.admin...
0
0
0
839
0
0
0
183
157
c73c8bbddf84252088ca00612cf7fb4729fdd58b
722
py
Python
cmd_make_1.py
bokveizen/baselines
79f5d18e2358567c72f422c5a23df78f9f64a55d
[ "MIT" ]
null
null
null
cmd_make_1.py
bokveizen/baselines
79f5d18e2358567c72f422c5a23df78f9f64a55d
[ "MIT" ]
null
null
null
cmd_make_1.py
bokveizen/baselines
79f5d18e2358567c72f422c5a23df78f9f64a55d
[ "MIT" ]
null
null
null
''' python -m baselines.run --alg=deepq --env=BreakoutNoFrameskip-v4 --num_timesteps=0 --load_path=models/Breakout_1e7/baseline --play ''' import os game_name = 'Tennis' model_timesteps = '1e6' methods = os.listdir('models/{}_{}'.format(game_name, model_timesteps)) f = open('test_cmd_{}_{}.txt'.format(game_name, model_...
30.083333
71
0.610803
''' python -m baselines.run --alg=deepq --env=BreakoutNoFrameskip-v4 --num_timesteps=0 --load_path=models/Breakout_1e7/baseline --play ''' import os game_name = 'Tennis' model_timesteps = '1e6' methods = os.listdir('models/{}_{}'.format(game_name, model_timesteps)) f = open('test_cmd_{}_{}.txt'.format(game_name, model_...
0
0
0
0
0
0
0
0
0
d2a2fd0d5a9ffb87b1df0252da7cfe7bb7509a34
152
py
Python
pomdp_problems/osm_mos/models/__init__.py
beckymathew/pomdp-py
4864514277e49dee4b7c3fb303970de7b6a888ea
[ "MIT" ]
87
2020-02-16T03:12:10.000Z
2022-03-31T08:38:10.000Z
pomdp_problems/osm_mos/models/__init__.py
beckymathew/pomdp-py
4864514277e49dee4b7c3fb303970de7b6a888ea
[ "MIT" ]
15
2020-08-01T00:25:33.000Z
2022-02-19T22:37:11.000Z
pomdp_problems/osm_mos/models/__init__.py
beckymathew/pomdp-py
4864514277e49dee4b7c3fb303970de7b6a888ea
[ "MIT" ]
26
2020-02-20T01:15:33.000Z
2022-03-30T16:21:37.000Z
"""**Defines models, including transition, observation, reward, policy; Also includes additional components such as the sensor model and grid map.**"""
50.666667
76
0.769737
"""**Defines models, including transition, observation, reward, policy; Also includes additional components such as the sensor model and grid map.**"""
0
0
0
0
0
0
0
0
0
1dcdbf88626caad0026f820c158a2011e9287b31
1,099
bzl
Python
deps/hive/repository.bzl
y0psolo/YAD
0f1f9c5140687345dee591667793d6f8ed6e29e5
[ "Apache-2.0" ]
1
2021-11-05T09:13:57.000Z
2021-11-05T09:13:57.000Z
deps/hive/repository.bzl
y0psolo/YAD
0f1f9c5140687345dee591667793d6f8ed6e29e5
[ "Apache-2.0" ]
9
2021-12-02T13:25:52.000Z
2022-01-26T14:24:05.000Z
deps/hive/repository.bzl
y0psolo/YAD
0f1f9c5140687345dee591667793d6f8ed6e29e5
[ "Apache-2.0" ]
null
null
null
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file")
43.96
141
0.689718
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file") def hive_repository(): http_archive( name = "hive_metastore_3", build_file = "//ext/hivemetastore:BUILD", sha256 = "a2e9fb781e1b86c066d2f9c71f0210ad161bc0bd791e5999c325ffbd4354c190", strip_prefix = "ap...
0
0
0
0
0
994
0
0
23
c52412dcade129e6a09942461626c5bd366a5d2b
269
py
Python
src/google_music_utils/__init__.py
thebigmunch/google-music-utils
a562d36ade47992679daa2a97956773e30f131a1
[ "MIT" ]
2
2019-04-24T09:37:25.000Z
2020-10-22T15:05:26.000Z
src/google_music_utils/__init__.py
thebigmunch/google-music-utils
a562d36ade47992679daa2a97956773e30f131a1
[ "MIT" ]
1
2020-08-17T13:52:53.000Z
2020-08-17T13:52:53.000Z
src/google_music_utils/__init__.py
thebigmunch/google-music-utils
a562d36ade47992679daa2a97956773e30f131a1
[ "MIT" ]
1
2020-08-17T13:49:45.000Z
2020-08-17T13:49:45.000Z
__all__ = [ *__about__.__all__, *compare.__all__, *constants.__all__, *filter.__all__, *metadata.__all__, *misc.__all__, ]
16.8125
24
0.724907
from .__about__ import * from .compare import * from .constants import * from .filter import * from .metadata import * from .misc import * __all__ = [ *__about__.__all__, *compare.__all__, *constants.__all__, *filter.__all__, *metadata.__all__, *misc.__all__, ]
0
0
0
0
0
0
0
7
132
7bae2575c20fa68246099177d14649c192346b89
1,224
py
Python
help/models.py
asysc2020/contentbox
5c155976e0ce7ea308d62293ab89624d97b21d09
[ "Apache-2.0" ]
39
2015-06-10T23:18:07.000Z
2021-10-21T04:29:06.000Z
help/models.py
asysc2020/contentbox
5c155976e0ce7ea308d62293ab89624d97b21d09
[ "Apache-2.0" ]
2
2016-08-22T12:38:10.000Z
2017-01-26T18:37:33.000Z
help/models.py
asysc2020/contentbox
5c155976e0ce7ea308d62293ab89624d97b21d09
[ "Apache-2.0" ]
26
2015-06-10T22:09:15.000Z
2021-06-27T15:45:15.000Z
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
31.384615
75
0.694444
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
0
0
0
531
0
0
0
7
75
c59c3389e9bb4d6d596e4c774369b19e98ff09b6
186
py
Python
a.py
danhab05/bacfrancais-ozar
8171ef704ad08bfdf2dda3907772685ee52216b2
[ "MIT" ]
null
null
null
a.py
danhab05/bacfrancais-ozar
8171ef704ad08bfdf2dda3907772685ee52216b2
[ "MIT" ]
null
null
null
a.py
danhab05/bacfrancais-ozar
8171ef704ad08bfdf2dda3907772685ee52216b2
[ "MIT" ]
null
null
null
import requests try: response = requests.get("https://raw.githubusercontent.com/danhab05/bacfrancais-ozar/master/msg.txt") msg = response.text except Exception as e: print(e)
31
105
0.741935
import requests try: response = requests.get("https://raw.githubusercontent.com/danhab05/bacfrancais-ozar/master/msg.txt") msg = response.text except Exception as e: print(e)
0
0
0
0
0
0
0
0
0
efa8c969897ba2d982f69a1d4bb36808523885d0
91
py
Python
main.py
pumassv1/FlappyBird
be82593435ea8c286816d90fe97b1b29b34ba77d
[ "MIT" ]
null
null
null
main.py
pumassv1/FlappyBird
be82593435ea8c286816d90fe97b1b29b34ba77d
[ "MIT" ]
null
null
null
main.py
pumassv1/FlappyBird
be82593435ea8c286816d90fe97b1b29b34ba77d
[ "MIT" ]
null
null
null
import GameManager if __name__ == '__main__': GameManager.GameManager().game_loop()
13
41
0.725275
import GameManager if __name__ == '__main__': GameManager.GameManager().game_loop()
0
0
0
0
0
0
0
0
0
f0f92c20e0e010fd6a9aaa13e50a6539ca32d80b
36
py
Python
testing/conftest.py
cdunklau/pytest-twisted
9662dc74c9eb4c811238341c8beb67147fd7d6bb
[ "BSD-3-Clause" ]
null
null
null
testing/conftest.py
cdunklau/pytest-twisted
9662dc74c9eb4c811238341c8beb67147fd7d6bb
[ "BSD-3-Clause" ]
null
null
null
testing/conftest.py
cdunklau/pytest-twisted
9662dc74c9eb4c811238341c8beb67147fd7d6bb
[ "BSD-3-Clause" ]
null
null
null
pytest_plugins = "_pytest.pytester"
18
35
0.805556
pytest_plugins = "_pytest.pytester"
0
0
0
0
0
0
0
0
0
22205fde61740520af75862d5eb2109b026f85da
822
py
Python
tool/pretty_print.py
MageWeiG/karonte
2ffe649557adccdd3c2c77c0ae0a5f27a385fdcb
[ "BSD-2-Clause" ]
1
2021-04-15T12:00:56.000Z
2021-04-15T12:00:56.000Z
tool/pretty_print.py
cascades-sjtu/karonte
2ffe649557adccdd3c2c77c0ae0a5f27a385fdcb
[ "BSD-2-Clause" ]
null
null
null
tool/pretty_print.py
cascades-sjtu/karonte
2ffe649557adccdd3c2c77c0ae0a5f27a385fdcb
[ "BSD-2-Clause" ]
1
2021-06-09T07:37:59.000Z
2021-06-09T07:37:59.000Z
import subprocess as sp import sys try: res_path = sys.argv[1] except: print "Usage: {} karonte_result_file".format(sys.argv[0]) sys.exit(1) o, e = exec_cmd("grep -r 'Sink' {} | sort | cut -d\" \" -f1-5 |sort|uniq ".format(res_path)) counter = 1 alerts = [x for x in o.split('\n') if x] for alert in ale...
28.344828
92
0.508516
import subprocess as sp import sys def exec_cmd(cmd): p = sp.Popen(cmd, stdout=sp.PIPE, stderr=sp.PIPE, stdin=sp.PIPE, shell=True) return p.communicate() try: res_path = sys.argv[1] except: print "Usage: {} karonte_result_file".format(sys.argv[0]) sys.exit(1) o...
0
0
0
0
0
139
0
0
23
aa8b58965f14c21450f4461dd381678cbd10e333
292
py
Python
accredible_certificate/urls.py
gymnasium/accredible
6af763d0ed6342b60063156252630a3517ccf9c9
[ "MIT" ]
null
null
null
accredible_certificate/urls.py
gymnasium/accredible
6af763d0ed6342b60063156252630a3517ccf9c9
[ "MIT" ]
1
2021-07-14T09:41:40.000Z
2021-09-09T08:38:30.000Z
accredible_certificate/urls.py
gymnasium/accredible
6af763d0ed6342b60063156252630a3517ccf9c9
[ "MIT" ]
2
2021-04-27T18:54:58.000Z
2021-04-27T18:56:10.000Z
from django.conf.urls import url from views import request_certificate from views import update_certificate urlpatterns = [ url(r'^request_certificate$', request_certificate, name='request_certificate'), url(r'^update_certificate$', update_certificate, name='update_certificate') ]
29.2
83
0.794521
from django.conf.urls import url from views import request_certificate from views import update_certificate urlpatterns = [ url(r'^request_certificate$', request_certificate, name='request_certificate'), url(r'^update_certificate$', update_certificate, name='update_certificate') ]
0
0
0
0
0
0
0
0
0
f92aa2b10021aa616f6c7921d8ffd714203aff4c
2,914
py
Python
workspace/lstm.py
kingaza/keras-gp
0b62224d2fd727143c70385a0a5b40bdc09c5bd8
[ "MIT" ]
null
null
null
workspace/lstm.py
kingaza/keras-gp
0b62224d2fd727143c70385a0a5b40bdc09c5bd8
[ "MIT" ]
null
null
null
workspace/lstm.py
kingaza/keras-gp
0b62224d2fd727143c70385a0a5b40bdc09c5bd8
[ "MIT" ]
null
null
null
""" LSTM regression on Actuator data. """ from __future__ import print_function import numpy as np np.random.seed(42) # Keras # Model assembling and executing # Metrics if __name__ == '__main__': main()
26.490909
78
0.630405
""" LSTM regression on Actuator data. """ from __future__ import print_function import numpy as np np.random.seed(42) # Keras from keras.optimizers import Adagrad, Adam, SGD, RMSprop from keras.callbacks import EarlyStopping # Model assembling and executing from kgp.utils.assemble import load_NN_configs, assemble fr...
0
0
0
0
0
2,379
0
141
179
4added1dcf5282a6a76f81b50fe069ac71b6ba40
396
py
Python
scripts/deploy_rinkeby.py
taronsung/registry
2271af2cb5d4ed2fdeeb9f5e1958895437129f60
[ "MIT" ]
9
2021-12-15T18:17:32.000Z
2022-03-05T03:01:41.000Z
scripts/deploy_rinkeby.py
taronsung/registry
2271af2cb5d4ed2fdeeb9f5e1958895437129f60
[ "MIT" ]
null
null
null
scripts/deploy_rinkeby.py
taronsung/registry
2271af2cb5d4ed2fdeeb9f5e1958895437129f60
[ "MIT" ]
9
2021-09-26T13:35:28.000Z
2022-03-22T03:49:50.000Z
RINKEBY_RESOLVER_ADDRESS = "0x5713a9cCdB31fBa207Fc4Fac7ee398eab3ecB3A6"
17.217391
71
0.646465
from brownie import ( Registry, accounts, ) RINKEBY_RESOLVER_ADDRESS = "0x5713a9cCdB31fBa207Fc4Fac7ee398eab3ecB3A6" def main(): a = accounts.load("renft-test-1") beneficiary, admin = a, a from_a = {"from": a} registry = Registry.deploy( RINKEBY_RESOLVER_ADDRESS, beneficiary,...
0
0
0
0
0
248
0
30
45
3a9219b0c39486bea2f7a119107987d88d463d77
7,570
py
Python
ringity/tests/test_ring_score_flavours.py
ClusterDuck123/ringity
44505d192b72a1d47f6b7b0a90f0db83d98b6156
[ "MIT" ]
null
null
null
ringity/tests/test_ring_score_flavours.py
ClusterDuck123/ringity
44505d192b72a1d47f6b7b0a90f0db83d98b6156
[ "MIT" ]
null
null
null
ringity/tests/test_ring_score_flavours.py
ClusterDuck123/ringity
44505d192b72a1d47f6b7b0a90f0db83d98b6156
[ "MIT" ]
null
null
null
import unittest from ringity.ring_scores import (gap_ring_score, geometric_ring_score, linear_ring_score, amplitude_ring_score, entropy_ring_score) all_ring_scores = { gap_ring_score, geometric_ring_score, linear_ring_score, amplitude_ring_score, entropy_ring_score } i...
41.36612
87
0.570542
import inspect import unittest import numpy as np from ringity.ring_scores import ( gap_ring_score, geometric_ring_score, linear_ring_score, amplitude_ring_score, entropy_ring_sco...
0
0
0
6,583
0
258
0
131
113
a766d4b53b3f09d8e3c9a8580a681b0f972d74e1
19,914
py
Python
cleanup_manager.py
univ-of-utah-marriott-library-apple/trashman
dbe079d2b6d960727aa9f0c2e49fecb3f7fff7d0
[ "MIT" ]
26
2015-03-09T20:48:03.000Z
2020-07-10T16:57:11.000Z
cleanup_manager.py
univ-of-utah-marriott-library-apple/trashman
dbe079d2b6d960727aa9f0c2e49fecb3f7fff7d0
[ "MIT" ]
8
2015-02-27T01:03:55.000Z
2015-05-27T22:01:42.000Z
cleanup_manager.py
univ-of-utah-marriott-library-apple/trashman
dbe079d2b6d960727aa9f0c2e49fecb3f7fff7d0
[ "MIT" ]
2
2016-01-05T17:11:09.000Z
2020-07-10T16:57:12.000Z
#!/usr/bin/env python import cleanup_management import argparse import datetime import os import re import sys import time try: from management_tools import loggers from management_tools import fs_analysis as fsa # Check for MT version 1.8.1 if not "bytes" in dir(fsa.Filesystem): raise Impor...
37.931429
259
0.634227
#!/usr/bin/env python import cleanup_management import argparse import datetime import os import re import sys import time try: from management_tools import loggers from management_tools import fs_analysis as fsa # Check for MT version 1.8.1 if not "bytes" in dir(fsa.Filesystem): raise Impor...
0
0
0
0
0
2,832
0
0
23
7c070276fab5338ad41e70f47fe89aa56cc475ae
14,302
py
Python
datablend/core/widgets/tidy.py
bahp/datablend
f0b69a012af6ea7cedc9210d46b3047d8e0bf504
[ "FTL", "RSA-MD", "CECILL-B" ]
null
null
null
datablend/core/widgets/tidy.py
bahp/datablend
f0b69a012af6ea7cedc9210d46b3047d8e0bf504
[ "FTL", "RSA-MD", "CECILL-B" ]
1
2021-05-26T13:09:08.000Z
2021-05-26T13:09:08.000Z
datablend/core/widgets/tidy.py
bahp/datablend
f0b69a012af6ea7cedc9210d46b3047d8e0bf504
[ "FTL", "RSA-MD", "CECILL-B" ]
null
null
null
# Libraries import pandas as pd # DataBlend Library # -------------------------------------------- # Methods # -------------------------------------------- def fillna_levels(data): """Fill nan for levels. .. note: Fill with 0? .. note: Fill interpolated if values found? """ # Columns containing ...
27.933594
87
0.539155
# Libraries import copy import numpy as np import pandas as pd # DataBlend Library from datablend.core.widgets.base import BaseWidget from datablend.core.consistency import report_unique_value from datablend.utils.pandas import str2func # -------------------------------------------- # Methods # ----------------------...
0
0
0
12,352
0
0
0
75
225
abcb88cbe5d73105b047caca971e4db3714f84d2
3,193
py
Python
rodolphe/utils/templatetags/markup.py
entwanne/Rodolphe
6187ef2af0033eb2de22268930d4cb72df73ff1d
[ "BSD-2-Clause" ]
3
2015-01-28T08:40:54.000Z
2015-02-18T15:35:31.000Z
rodolphe/utils/templatetags/markup.py
entwanne/Rodolphe
6187ef2af0033eb2de22268930d4cb72df73ff1d
[ "BSD-2-Clause" ]
5
2015-01-27T19:18:03.000Z
2015-02-02T13:52:10.000Z
rodolphe/utils/templatetags/markup.py
entwanne/Rodolphe
6187ef2af0033eb2de22268930d4cb72df73ff1d
[ "BSD-2-Clause" ]
null
null
null
from django import template register = template.Library() disable_images = DisableImagesExtension() more_style = MoreStyleExtension() post_references = PostReferencesExtension() dottags = DottagsExtension()
35.477778
80
0.625431
from django import template from django.template.defaultfilters import stringfilter from django.utils.safestring import mark_safe from django.core.urlresolvers import reverse from main.models import Post from utils.templatetags.post_color import post_color import markdown register = template.Library() class Disabl...
0
361
0
2,209
0
0
0
113
295
84327810ccdee89f192c4303c42f9b18872d2775
1,365
py
Python
android/android_9/frameworks/rs/tests/lldb/tests/testcases/test_language.py
yakuizhao/intel-vaapi-driver
b2bb0383352694941826543a171b557efac2219b
[ "MIT" ]
null
null
null
android/android_9/frameworks/rs/tests/lldb/tests/testcases/test_language.py
yakuizhao/intel-vaapi-driver
b2bb0383352694941826543a171b557efac2219b
[ "MIT" ]
null
null
null
android/android_9/frameworks/rs/tests/lldb/tests/testcases/test_language.py
yakuizhao/intel-vaapi-driver
b2bb0383352694941826543a171b557efac2219b
[ "MIT" ]
null
null
null
# Copyright (C) 2016 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
34.125
74
0.637363
# Copyright (C) 2016 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
0
0
0
594
0
0
0
32
46
a422741767c6974b9cf6a2e8c40f43ffef9452f5
65
py
Python
detector/models/__init__.py
insightcs/CenterNet
277ab04321285023ce4f0f2e7d81ef52252d4019
[ "MIT" ]
null
null
null
detector/models/__init__.py
insightcs/CenterNet
277ab04321285023ce4f0f2e7d81ef52252d4019
[ "MIT" ]
null
null
null
detector/models/__init__.py
insightcs/CenterNet
277ab04321285023ce4f0f2e7d81ef52252d4019
[ "MIT" ]
1
2019-08-15T02:28:32.000Z
2019-08-15T02:28:32.000Z
# coding: utf-8 # @Author: oliver # @Date: 2019-07-14 18:50:35
16.25
30
0.615385
# coding: utf-8 # @Author: oliver # @Date: 2019-07-14 18:50:35
0
0
0
0
0
0
0
0
0
821c1cb024ace41399ce88b1b14b051eef02c0b9
968
py
Python
tests/test_cmakeutil.py
python-cmaketools/python-cmaketools
c7988584ff3ee0a873a8cbb03997a80f16efc93b
[ "MIT" ]
19
2020-06-29T19:25:31.000Z
2022-03-27T13:48:15.000Z
tests/test_cmakeutil.py
python-cmaketools/python-cmaketools
c7988584ff3ee0a873a8cbb03997a80f16efc93b
[ "MIT" ]
2
2020-08-11T02:03:57.000Z
2020-11-26T16:05:49.000Z
tests/test_cmakeutil.py
python-cmaketools/python-cmaketools
c7988584ff3ee0a873a8cbb03997a80f16efc93b
[ "MIT" ]
1
2021-07-28T04:45:54.000Z
2021-07-28T04:45:54.000Z
# findexe(cmd) # run(*args, path=findexe("cmake"), **runargs) # validate(cmakePath=findexe("cmake")) # configured(buildDir) # clear(buildDir) # configure( # root_dir, # build_dir, # *args, # build_type="Release", # cmakePath=findexe("cmake"), # need_msvc=False, # **kwargs, # ) # build( # ...
22.511628
78
0.643595
import pytest import cmakeutils def test_hello(): hello.say_hello() # findexe(cmd) # run(*args, path=findexe("cmake"), **runargs) # validate(cmakePath=findexe("cmake")) # configured(buildDir) # clear(buildDir) # configure( # root_dir, # build_dir, # *args, # build_type="Release", # cmakePath=f...
0
0
0
0
0
18
0
-12
67
1e5200e1c4f80d9919e68f8b767d93b22a65ef04
9,682
py
Python
sourcecode/final.py
18101224/final
5b5351db843a7fbe3bcf56ea26cf5c78c2067840
[ "MIT" ]
null
null
null
sourcecode/final.py
18101224/final
5b5351db843a7fbe3bcf56ea26cf5c78c2067840
[ "MIT" ]
null
null
null
sourcecode/final.py
18101224/final
5b5351db843a7fbe3bcf56ea26cf5c78c2067840
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import pandas as pd import statsmodels.formula.api as smf pcr=np.array(data('pcr.txt'))#pcr vaccine=np.array(data('vaccine.txt'))#vaccine 1 2 3 AZ1 AZ2 F1 F2 Y1 M1 M2 F3 M3 Y3 lmp='local maximum point' # x=np.linspace(pcr.T[0].min(),pcr.T[0].max(),len(pcr.T[0])...
45.242991
125
0.524375
import numpy as np import matplotlib.pyplot as plt import pandas as pd import statsmodels.formula.api as smf from scipy import stats def data(filename): f= open(filename,'r') data=[] i=1 for line in f.readlines(): newline=line.split() newline[0]=i #날짜는 그냥 경과일로 i+=1 for in...
3,012
0
0
0
0
998
0
2
132
c512aa92c383df3f1dcf5bb0e62ce0d0f68db5be
4,345
py
Python
tests/testPandas.py
paszkow/AMICI
a0407673453d6e18a9abec5b6f73758dd09f7aaf
[ "BSD-3-Clause" ]
null
null
null
tests/testPandas.py
paszkow/AMICI
a0407673453d6e18a9abec5b6f73758dd09f7aaf
[ "BSD-3-Clause" ]
null
null
null
tests/testPandas.py
paszkow/AMICI
a0407673453d6e18a9abec5b6f73758dd09f7aaf
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 """Tests for ``amici.pandas``""" import unittest if __name__ == '__main__': suite = unittest.TestSuite() suite.addTest(TestAmiciPandasImportExport()) unittest.main()
33.945313
80
0.502186
#!/usr/bin/env python3 """Tests for ``amici.pandas``""" import sys import amici import unittest import os import copy import numpy as np import itertools class TestAmiciPandasImportExport(unittest.TestCase): """ TestCase class for testing csv import using pandas """ def setUp(self): self.de...
0
0
0
4,034
0
0
0
-50
156
0ac753e49f2cb4a101e3401e052d2ae468ef4b7e
15,675
py
Python
tg_bot/modules/blacklist2.py
shubhanshdj/AlexaRobot
8a94c1f81df10efa7e5208572154794a097117ea
[ "MIT" ]
1
2020-11-30T10:14:15.000Z
2020-11-30T10:14:15.000Z
tg_bot/modules/blacklist2.py
pro-boy/AlexaRobot
8a94c1f81df10efa7e5208572154794a097117ea
[ "MIT" ]
null
null
null
tg_bot/modules/blacklist2.py
pro-boy/AlexaRobot
8a94c1f81df10efa7e5208572154794a097117ea
[ "MIT" ]
2
2020-12-03T05:45:52.000Z
2021-12-24T13:33:42.000Z
from telegram.ext import CommandHandler, MessageHandler, Filters from tg_bot import dispatcher from tg_bot.modules.disable import DisableAbleCommandHandler __help__ = """ Blacklist sticker is used to stop certain stickers. Whenever a sticker is sent, the message will be deleted immediately. *NOTE:* Blacklist stic...
40.926893
186
0.726699
import html from typing import Optional, List import telegram.ext as tg from telegram import Message, Chat, Update, Bot, ParseMode, User, MessageEntity from telegram import TelegramError from telegram.error import BadRequest from telegram.ext import CommandHandler, MessageHandler, Filters from telegram.ext.dispatcher ...
0
12,412
0
0
0
469
0
539
584
e5417681d7dbdb45c5a95e4b7a45735e6c816470
2,081
py
Python
src/rogerthat/models/forms.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
src/rogerthat/models/forms.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
src/rogerthat/models/forms.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Green Valley Belgium NV # # 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 appl...
33.031746
99
0.731379
# -*- coding: utf-8 -*- # Copyright 2020 Green Valley Belgium NV # # 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 appl...
0
500
0
752
0
0
0
50
137
4202c94c4a49de158b5aeecaceedfb58fe27e261
2,796
py
Python
examples/FastAPI/fastapi_with_authentication_example_app.py
y-tree-limited/pyctuator
70ebdebf263c727fa8245cc706c451ffa54468e8
[ "Apache-2.0" ]
118
2020-04-26T14:32:57.000Z
2022-03-28T08:46:32.000Z
examples/FastAPI/fastapi_with_authentication_example_app.py
y-tree-limited/pyctuator
70ebdebf263c727fa8245cc706c451ffa54468e8
[ "Apache-2.0" ]
63
2020-04-29T03:38:40.000Z
2021-12-29T21:54:52.000Z
examples/FastAPI/fastapi_with_authentication_example_app.py
y-tree-limited/pyctuator
70ebdebf263c727fa8245cc706c451ffa54468e8
[ "Apache-2.0" ]
10
2020-04-28T10:00:25.000Z
2021-11-17T16:32:00.000Z
import logging from fastapi import FastAPI from uvicorn import Server from uvicorn.config import Config from pyctuator.pyctuator import Pyctuator my_logger = logging.getLogger("example") username = "u1" password = "p2" security = SimplisticBasicAuth(username, password) app = FastAPI( title="FastAPI Example ...
31.772727
117
0.723176
import datetime import logging import random import secrets from fastapi import FastAPI, Depends, APIRouter, HTTPException from fastapi.security import HTTPBasicCredentials, HTTPBasic from starlette import status from uvicorn import Server from uvicorn.config import Config from pyctuator.pyctuator import Pyctuator m...
0
224
0
857
0
88
0
60
179
0f3bde7a5f16b1078aca2269753ccd57a1af5b08
3,978
py
Python
d2l-en/d2l/data/base.py
mru4913/Object-Detection-in-Python
bcd16ac602f011292bd1d5540ef3833cd3fd7c72
[ "MIT" ]
null
null
null
d2l-en/d2l/data/base.py
mru4913/Object-Detection-in-Python
bcd16ac602f011292bd1d5540ef3833cd3fd7c72
[ "MIT" ]
null
null
null
d2l-en/d2l/data/base.py
mru4913/Object-Detection-in-Python
bcd16ac602f011292bd1d5540ef3833cd3fd7c72
[ "MIT" ]
null
null
null
import os def load_data_time_machine(num_examples=10000): """Load the time machine data set (available in the English book).""" with open('../data/timemachine.txt') as f: raw_text = f.read() lines = raw_text.split('\n') text = ' '.join(' '.join(lines).lower().split())[:num_examples] vocab ...
41.010309
78
0.655103
import os import random import numpy as np import zipfile import collections from mxnet import nd, gluon from mxnet.gluon import utils as gutils, data as gdata def data_iter_consecutive(corpus_indices, batch_size, num_steps, ctx=None): """Sample mini-batches in a consecutive order from sequential data.""" # O...
0
0
0
1,328
1,843
0
0
18
201
7e07daafd8a6a7a05ed4dc0e050f30d6cb88cba4
7,592
py
Python
cadence/parsers/txtparsing.py
quadrismegistus/cadence
580c98d7030a18f093ffc8040e241210c7ffec3c
[ "MIT" ]
12
2021-03-29T17:41:26.000Z
2022-02-03T07:30:05.000Z
cadence/parsers/txtparsing.py
quadrismegistus/cadence
580c98d7030a18f093ffc8040e241210c7ffec3c
[ "MIT" ]
1
2021-03-30T11:12:44.000Z
2021-03-30T14:56:50.000Z
cadence/parsers/txtparsing.py
quadrismegistus/cadence
580c98d7030a18f093ffc8040e241210c7ffec3c
[ "MIT" ]
3
2021-03-29T18:52:27.000Z
2022-01-15T06:50:21.000Z
# loading txt/strings # def to_lineparts(linetxt,seps=set(',:;()[].!?'),min_len=1,max_len=25): # o=[] # for sent in to_sents_str(linetxt): # toks=tokenize_agnostic(sent) # ophrase=[] # for tok in toks: # ophrase+=[tok] # # print(tok,ophrases) # ...
28.223048
104
0.585485
from ..imports import * # loading txt/strings def to_txt(txt_or_fn): # load txt if not txt_or_fn: return if os.path.exists(txt_or_fn): with open(txt_or_fn,encoding='utf-8',errors='replace') as f: txt=f.read() else: txt=txt_or_fn # clean? txt=txt.replace(...
15
0
0
0
2,304
3,451
0
2
330
2d911aa0e859a155d922fad698df5359ad99763e
3,681
py
Python
assignment_1/code/mlp_numpy.py
askliar/deep_learning
e61b2391a3258d18719bf12d9ed1404620ce6c02
[ "MIT" ]
null
null
null
assignment_1/code/mlp_numpy.py
askliar/deep_learning
e61b2391a3258d18719bf12d9ed1404620ce6c02
[ "MIT" ]
null
null
null
assignment_1/code/mlp_numpy.py
askliar/deep_learning
e61b2391a3258d18719bf12d9ed1404620ce6c02
[ "MIT" ]
2
2019-03-31T15:03:00.000Z
2020-11-14T10:56:31.000Z
""" This module implements a multi-layer perceptron (MLP) in NumPy. You should fill in code into indicated sections. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function
31.194915
106
0.589785
""" This module implements a multi-layer perceptron (MLP) in NumPy. You should fill in code into indicated sections. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from modules import * from functools import reduce class MLP(object): """ This clas...
0
0
0
3,375
0
0
0
7
69
d143fc27b9190e03cf527fd6bd1f70e0e680e691
520
py
Python
wodoo/wait/tcp.py
mt-software-de/wodoo
251d33b4bde69c6f7a0f4b4b83933f59c276b861
[ "MIT" ]
1
2022-01-17T13:09:52.000Z
2022-01-17T13:09:52.000Z
wodoo/wait/tcp.py
mt-software-de/wodoo
251d33b4bde69c6f7a0f4b4b83933f59c276b861
[ "MIT" ]
1
2022-03-29T07:55:35.000Z
2022-03-29T07:55:35.000Z
wodoo/wait/tcp.py
mt-software-de/wodoo
251d33b4bde69c6f7a0f4b4b83933f59c276b861
[ "MIT" ]
2
2022-01-27T15:27:54.000Z
2022-02-25T10:08:07.000Z
#!/usr/bin/env python # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
18.571429
59
0.642308
#!/usr/bin/env python import socket from .decorator import timeout @timeout def closed(port, host='localhost', timeout=300): try: s = socket.create_connection((host, port), timeout) s.close() except socket.error: return True @timeout def open(port, host='localhost', timeout=300): ...
0
347
0
0
0
0
0
1
92
01b51c4da25c877ec4d36b1334c1a8568a1ae211
1,282
py
Python
ocr/extract_pdf.py
mxbi/zoomintobooks
7b46020e67005a50abed8a50b62a65409e707ad1
[ "CC0-1.0" ]
3
2021-07-22T10:45:42.000Z
2021-11-04T07:21:17.000Z
ocr/extract_pdf.py
mxbi/zoomintobooks
7b46020e67005a50abed8a50b62a65409e707ad1
[ "CC0-1.0" ]
null
null
null
ocr/extract_pdf.py
mxbi/zoomintobooks
7b46020e67005a50abed8a50b62a65409e707ad1
[ "CC0-1.0" ]
null
null
null
from pdfminer.converter import TextConverter from pdfminer.layout import LAParams from pdfminer.pdfdocument import PDFDocument from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreter from pdfminer.pdfpage import PDFPage from pdfminer.pdfparser import PDFParser from io import StringIO import sys ...
27.276596
85
0.680187
from pdfminer.converter import TextConverter from pdfminer.layout import LAParams from pdfminer.pdfdocument import PDFDocument from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreter from pdfminer.pdfpage import PDFPage from pdfminer.pdfparser import PDFParser from io import StringIO import sys ...
0
0
0
0
0
0
0
0
23
120c9556aef60cedb0a66ff92b148942acafadb3
2,665
py
Python
curate_export/test_clean_up_standard_json.py
ndlib/mellon-manifest-pipeline
aa90494e73fbc30ce701771ac653d28d533217db
[ "Apache-2.0" ]
1
2021-06-27T15:16:13.000Z
2021-06-27T15:16:13.000Z
curate_export/test_clean_up_standard_json.py
ndlib/marble-manifest-pipeline
abc036e4c81a8a5e938373a43153e2492a17cbf8
[ "Apache-2.0" ]
8
2019-11-05T18:58:23.000Z
2021-09-03T14:54:42.000Z
curate_export/test_clean_up_standard_json.py
ndlib/mellon-manifest-pipeline
aa90494e73fbc30ce701771ac653d28d533217db
[ "Apache-2.0" ]
null
null
null
# test_clean_up_standard_json.py """ test clean_up_standard_json """ import unittest # import json import os local_folder = os.path.dirname(os.path.realpath(__file__)) + "/" def suite(): """ define test suite """ return unittest.TestLoader().loadTestsFromTestCase(Test) if __name__ == '__main__': suit...
36.506849
99
0.510319
# test_clean_up_standard_json.py """ test clean_up_standard_json """ import _set_path # noqa import unittest # import json import os from pathlib import Path from clean_up_standard_json import _fix_level, _fix_ids from pipelineutilities.pipeline_config import setup_pipeline_config # noqa: E402 local_folder = os.pat...
0
0
0
2,110
0
0
0
78
133
48052446b3a90685e9fccf777a5da9bfcd043995
187
py
Python
ABC/141/b.py
fumiyanll23/AtCoder
362ca9fcacb5415c1458bc8dee5326ba2cc70b65
[ "MIT" ]
null
null
null
ABC/141/b.py
fumiyanll23/AtCoder
362ca9fcacb5415c1458bc8dee5326ba2cc70b65
[ "MIT" ]
null
null
null
ABC/141/b.py
fumiyanll23/AtCoder
362ca9fcacb5415c1458bc8dee5326ba2cc70b65
[ "MIT" ]
null
null
null
S = str(input()) flag = True for i in range(len(S)): if i%2==0 and S[i]=="L": flag = False elif i%2!=0 and S[i]=="R": flag = False if flag: print("Yes") else: print("No")
15.583333
28
0.529412
S = str(input()) flag = True for i in range(len(S)): if i%2==0 and S[i]=="L": flag = False elif i%2!=0 and S[i]=="R": flag = False if flag: print("Yes") else: print("No")
0
0
0
0
0
0
0
0
0
4dd7bd9ef39a8e822b82d7d40959db6130910af9
221
py
Python
desafios-py/intermediario/d0000-palindromo/d0000-palindromo-v0.py
Lsitjs/challenges-python
fbbfa4d7860ee8efa4d0d3eee4999ea379933224
[ "MIT" ]
null
null
null
desafios-py/intermediario/d0000-palindromo/d0000-palindromo-v0.py
Lsitjs/challenges-python
fbbfa4d7860ee8efa4d0d3eee4999ea379933224
[ "MIT" ]
null
null
null
desafios-py/intermediario/d0000-palindromo/d0000-palindromo-v0.py
Lsitjs/challenges-python
fbbfa4d7860ee8efa4d0d3eee4999ea379933224
[ "MIT" ]
null
null
null
palavra=input("Digite uma palavra: ") x=0 y=len(palavra)-1 while x != len(palavra): if palavra[x]==palavra[y]: resp=' palndromo' else: resp='No palndromo' y=y-1 x=x+1 print(resp)
13.8125
37
0.579186
palavra=input("Digite uma palavra: ") x=0 y=len(palavra)-1 while x != len(palavra): if palavra[x]==palavra[y]: resp='É palíndromo' else: resp='Não é palíndromo' y=y-1 x=x+1 print(resp)
10
0
0
0
0
0
0
0
0
a1878cab6338abebe5e936ce8d4def614323fae8
2,416
py
Python
src/create_outputs.py
Lakoc/bachelor_thesis
685a81901ac19a318237772f24df1b1e94772b26
[ "MIT" ]
null
null
null
src/create_outputs.py
Lakoc/bachelor_thesis
685a81901ac19a318237772f24df1b1e94772b26
[ "MIT" ]
null
null
null
src/create_outputs.py
Lakoc/bachelor_thesis
685a81901ac19a318237772f24df1b1e94772b26
[ "MIT" ]
null
null
null
from argparse import ArgumentParser from os import listdir from os.path import isfile, join from shutil import copyfile from progress.bar import Bar from io_operations.load_files import load_stats_overall, load_texts, load_stats from outputs.create_html_output import create_output from helpers.dir_exist import create_i...
43.927273
136
0.670116
from argparse import ArgumentParser from os import listdir from os.path import isfile, join from shutil import copyfile from progress.bar import Bar from io_operations.load_files import load_stats_overall, load_texts, load_stats from outputs.create_html_output import create_output from helpers.dir_exist import create_i...
0
0
0
0
0
0
0
0
0
f3d3b25cf01beea5cdce98910551ed49ca2af088
1,038
py
Python
plot.py
L-Limbu/Solar-system
e3a49982aac6d3d09e7c7dad3cfc2520ba3d93e9
[ "MIT" ]
null
null
null
plot.py
L-Limbu/Solar-system
e3a49982aac6d3d09e7c7dad3cfc2520ba3d93e9
[ "MIT" ]
null
null
null
plot.py
L-Limbu/Solar-system
e3a49982aac6d3d09e7c7dad3cfc2520ba3d93e9
[ "MIT" ]
null
null
null
from data import initail import numpy as np data = np.load('./data/Orbits.npy') Names = initail.Names N = Names.shape[0] plotxy() plotxz()
26.615385
78
0.617534
from data import initail import numpy as np import matplotlib.pyplot as plt from matplotlib.font_manager import FontProperties data = np.load('./data/Orbits.npy') Names = initail.Names N = Names.shape[0] def plotxy(): Positions = data[:,:,(0,1)] for k in range(N): plt.plot(Positions[:,k,0], Position...
0
0
0
0
0
763
0
39
90
3c4fe09e0f93b31f9c940807bb6257779ee35314
1,691
py
Python
Supervised/Classification/NaiveBayes/classif_naive_bayes.py
neohope/MLStudy
bba16587e4f3efe11c926030f6bbcff6db0dde14
[ "BSD-3-Clause" ]
2
2018-12-31T08:10:36.000Z
2020-04-23T11:47:50.000Z
Supervised/Classification/NaiveBayes/classif_naive_bayes.py
neohope/MLStudy
bba16587e4f3efe11c926030f6bbcff6db0dde14
[ "BSD-3-Clause" ]
null
null
null
Supervised/Classification/NaiveBayes/classif_naive_bayes.py
neohope/MLStudy
bba16587e4f3efe11c926030f6bbcff6db0dde14
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: UTF-8 -*- """ p(xy)=p(x|y)p(y)=p(y|x)p(x) p(x|y)=p(y|x)p(x)/p(y) """ import numpy as np def train_naive_bayes(train_mat, train_category): """ :param train_mat: :param train_category: :return: """ train_doc_num = len(train_mat) words_num = len(t...
23.816901
99
0.596688
#!/usr/bin/python # -*- coding: UTF-8 -*- """ 工具类 利用决策树进行分类处理 贝叶斯公式 p(xy)=p(x|y)p(y)=p(y|x)p(x) p(x|y)=p(y|x)p(x)/p(y) """ import numpy as np def train_naive_bayes(train_mat, train_category): """ 朴素贝叶斯分类 :param train_mat: 训练文本 :param train_category: 对应的文本类别 :return: """ train_doc_num =...
576
0
0
0
0
0
0
0
0
b331821272bde1b55f5b1ec94fe54e79784193d4
131
py
Python
INF1511/Chapter2/Loops/continueex1.py
GalliWare/UNISA-studies
32bab94930b176c4dfe943439781ef102896fab5
[ "Unlicense" ]
null
null
null
INF1511/Chapter2/Loops/continueex1.py
GalliWare/UNISA-studies
32bab94930b176c4dfe943439781ef102896fab5
[ "Unlicense" ]
null
null
null
INF1511/Chapter2/Loops/continueex1.py
GalliWare/UNISA-studies
32bab94930b176c4dfe943439781ef102896fab5
[ "Unlicense" ]
null
null
null
# example of using continue in a loop k = 1 while k <= 10: if k == 7: k += 1 continue print(k) k = k+1
14.555556
37
0.473282
# example of using continue in a loop k = 1 while k <= 10: if k == 7: k += 1 continue print(k) k = k+1
0
0
0
0
0
0
0
0
0
6deded657b8240a9551f12f7dcf718426f908be0
4,120
py
Python
async_stripe/api_resources/list_object.py
bhch/async-stripe
75d934a8bb242f664e7be30812c12335cf885287
[ "MIT", "BSD-3-Clause" ]
8
2021-05-29T08:57:58.000Z
2022-02-19T07:09:25.000Z
async_stripe/api_resources/list_object.py
bhch/async-stripe
75d934a8bb242f664e7be30812c12335cf885287
[ "MIT", "BSD-3-Clause" ]
5
2021-05-31T10:18:36.000Z
2022-01-25T11:39:03.000Z
async_stripe/api_resources/list_object.py
bhch/async-stripe
75d934a8bb242f664e7be30812c12335cf885287
[ "MIT", "BSD-3-Clause" ]
1
2021-05-29T13:27:10.000Z
2021-05-29T13:27:10.000Z
import stripe stripe.ListObject.list = list_patch stripe.ListObject.create = create_patch stripe.ListObject.retrieve = retrieve_patch stripe.ListObject._request = _request_patch stripe.ListObject.auto_paging_iter = auto_paging_iter_patch stripe.ListObject.previous_page = previous_page_patch stripe.ListObject.next_pa...
26.753247
79
0.672816
import stripe from stripe import api_requestor, six, util from stripe.stripe_object import StripeObject from stripe.six.moves.urllib.parse import quote_plus async def list_patch( self, api_key=None, stripe_version=None, stripe_account=None, **params ): stripe_object = await self._request( "get", ...
0
0
3,475
0
0
0
0
77
228
8cd35bbeb7e6ca7e7a590bf9f39dd054c38fb277
3,199
py
Python
student_code/mohamedMahmoud/4_vidio_games.py
pranjal-teaching/asd-class
446fbf9fcc5b5491e4498ef99d7b81c108580268
[ "MIT" ]
2
2022-01-17T13:13:23.000Z
2022-03-02T18:25:24.000Z
student_code/mohamedMahmoud/4_vidio_games.py
pranjal-teaching/CP1895-ASD-2022Winter
446fbf9fcc5b5491e4498ef99d7b81c108580268
[ "MIT" ]
null
null
null
student_code/mohamedMahmoud/4_vidio_games.py
pranjal-teaching/CP1895-ASD-2022Winter
446fbf9fcc5b5491e4498ef99d7b81c108580268
[ "MIT" ]
3
2022-01-12T17:58:44.000Z
2022-01-16T15:17:58.000Z
if __name__ == "__main__": main()
27.110169
78
0.562051
import pickle def save(book_catalog): with open("book_file.bin", "wb") as file: pickle.dump(book_catalog, file) def load(): with open("book_file.bin", "rb") as file: print(pickle.load(file)) def clear(book_catalog): book_catalog.clear() def show_book(book_catalog): title = input(...
0
0
0
0
0
2,929
0
-8
229
337d20738799098b13ddb1fa72868e0d9905847b
3,063
py
Python
scripts/hp_tuning/lgb_tuning.py
riccardopoiani/recsys_2019
47a44d2f7d85e76e31dacf4ba2e69721d010b6b8
[ "MIT" ]
2
2020-10-01T11:08:32.000Z
2020-11-25T11:05:37.000Z
scripts/hp_tuning/lgb_tuning.py
riccardopoiani/recsys_2019
47a44d2f7d85e76e31dacf4ba2e69721d010b6b8
[ "MIT" ]
null
null
null
scripts/hp_tuning/lgb_tuning.py
riccardopoiani/recsys_2019
47a44d2f7d85e76e31dacf4ba2e69721d010b6b8
[ "MIT" ]
1
2020-10-01T11:08:33.000Z
2020-10-01T11:08:33.000Z
from datetime import datetime import numpy as np import pandas as pd from course_lib.Base.Evaluation.Evaluator import EvaluatorHoldout from src.data_management.New_DataSplitter_leave_k_out import New_DataSplitter_leave_k_out from src.data_management.RecSys2019Reader import RecSys2019Reader from src.data_management.da...
47.859375
114
0.70617
from datetime import datetime import numpy as np import pandas as pd from course_lib.Base.Evaluation.Evaluator import EvaluatorHoldout from src.data_management.New_DataSplitter_leave_k_out import New_DataSplitter_leave_k_out from src.data_management.RecSys2019Reader import RecSys2019Reader from src.data_management.da...
0
0
0
0
0
0
0
0
0
3f563d6b84f13639c6a476c75a1cf79492a28ab2
4,530
py
Python
repo/script.module.liveresolver/lib/liveresolver/modules/constants.py
Hades01/Addons
710da97ac850197498a3cd64be1811c593610add
[ "Apache-2.0" ]
3
2020-03-03T13:21:44.000Z
2021-07-21T09:53:31.000Z
repo/script.module.liveresolver/lib/liveresolver/modules/constants.py
Hades01/Addons
710da97ac850197498a3cd64be1811c593610add
[ "Apache-2.0" ]
null
null
null
repo/script.module.liveresolver/lib/liveresolver/modules/constants.py
Hades01/Addons
710da97ac850197498a3cd64be1811c593610add
[ "Apache-2.0" ]
2
2020-04-01T22:11:12.000Z
2020-05-07T23:54:52.000Z
resolver_dict={ 'sawlive.tv': 'sawlive', 'streamking.co': 'streamking', 'streamking.cc': 'streamking', 'castalba.tv' : 'castalba', 'p2pcast.tv' : 'p2pcast', 'p2pcast.tech' : 'p2pcast', 'finecast.tv' : 'finecast', 'filmon.com' : 'filmo...
37.131148
91
0.463797
def flash_ver(): return 'WIN\\2021,0,0,242' def get_shockwave(): return 'ShockwaveFlash/21.0.0.242' def blacklist(): black = ['advert', 'banner', 'bet', 'c4.zedo', 'chat', 'chatango', '.css', 'histats'] resolver_dict={ 'sawlive.tv': 'sawlive', 'streamking.co': 'streamking', ...
0
0
0
0
0
155
0
0
75
8622f027030f34b58bac4104d7574f310268b6c0
32,799
py
Python
framework/oktopus/solver/oktopus/oktopus_utils.py
charlee593/oktopus_framework
2835c44c61d1b6170682f014450b8c2203786347
[ "MIT" ]
1
2022-02-21T12:03:17.000Z
2022-02-21T12:03:17.000Z
framework/oktopus/solver/oktopus/oktopus_utils.py
charlee593/oktopus_framework
2835c44c61d1b6170682f014450b8c2203786347
[ "MIT" ]
4
2020-07-02T00:56:32.000Z
2020-07-02T00:56:45.000Z
framework/oktopus/solver/oktopus/oktopus_utils.py
charlee593/oktopus_framework
2835c44c61d1b6170682f014450b8c2203786347
[ "MIT" ]
1
2022-02-21T12:03:03.000Z
2022-02-21T12:03:03.000Z
""" oktopus algorithm related utils """ ############################ # Graph contraction ############################ ############################ # End - Graph contraction ############################
36.082508
221
0.583158
""" oktopus algorithm related utils """ import random, statistics from multiprocessing import Pool from collections import defaultdict, deque from sys import maxint import networkx as nx from cytoolz import merge, partial from nx_disjoint_paths import edge_disjoint_paths from ...multicast.session import Session de...
0
0
0
3,112
0
28,609
0
97
753
6ad4b0307023ca0f07b1c891343ae1a90f5a5ad5
6,436
py
Python
llvm/utils/lit/tests/shtest-format.py
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
158
2016-07-21T10:45:05.000Z
2022-03-25T00:56:20.000Z
llvm/utils/lit/tests/shtest-format.py
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
59
2019-02-26T18:57:27.000Z
2020-08-04T20:49:55.000Z
llvm/utils/lit/tests/shtest-format.py
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
62
2016-08-29T17:28:11.000Z
2021-12-29T17:55:58.000Z
# Check the various features of the ShTest format. # # RUN: rm -f %t.xml # RUN: not %{lit} -j 1 -v %{inputs}/shtest-format --xunit-xml-output %t.xml > %t.out # RUN: FileCheck < %t.out %s # RUN: FileCheck --check-prefix=XUNIT < %t.xml %s # END. # CHECK: -- Testing: # CHECK: PASS: shtest-format :: argv0.txt # CHECK: F...
39.243902
120
0.669204
# Check the various features of the ShTest format. # # RUN: rm -f %t.xml # RUN: not %{lit} -j 1 -v %{inputs}/shtest-format --xunit-xml-output %t.xml > %t.out # RUN: FileCheck < %t.out %s # RUN: FileCheck --check-prefix=XUNIT < %t.xml %s # END. # CHECK: -- Testing: # CHECK: PASS: shtest-format :: argv0.txt # CHECK: F...
0
0
0
0
0
0
0
0
0
f9487af1aa537fd2d0666a16755714386c4969fb
6,524
py
Python
generators/generate.py
adan82/ck2map
6ec3cb3b4edc8eded07cf05add452da5b1979ed7
[ "MIT" ]
11
2016-01-09T04:30:58.000Z
2019-05-21T21:59:49.000Z
generators/generate.py
adan82/ck2map
6ec3cb3b4edc8eded07cf05add452da5b1979ed7
[ "MIT" ]
1
2016-04-20T20:54:16.000Z
2016-04-23T11:24:33.000Z
generators/generate.py
adan82/ck2map
6ec3cb3b4edc8eded07cf05add452da5b1979ed7
[ "MIT" ]
4
2016-08-27T14:08:58.000Z
2019-12-10T09:13:54.000Z
# -*- coding: utf-8 -*- """ Program for generating a GeoJSON-file from provinces.bmp. This is the main file responsible for running the show. Author: Erkki Mattila, 2014-2015 """ from PIL import Image import time, csv from marcher import Marcher def read_definition(definition): """Function for reading valid ro...
33.979167
186
0.549663
# -*- coding: utf-8 -*- """ Program for generating a GeoJSON-file from provinces.bmp. This is the main file responsible for running the show. Author: Erkki Mattila, 2014-2015 """ from PIL import Image import time, csv from marcher import Marcher def read_definition(definition): """Function for reading valid ro...
18
0
0
0
0
0
0
0
0
f82666bf3ca7532e091d7760de7ca0a9cc54a890
171
py
Python
Python/Kattis/Naive/apaxiaaans.py
kchevali/OnlineJudge
c1d1894078fa45eef05c8785aba29758d9adf0c6
[ "MIT" ]
null
null
null
Python/Kattis/Naive/apaxiaaans.py
kchevali/OnlineJudge
c1d1894078fa45eef05c8785aba29758d9adf0c6
[ "MIT" ]
null
null
null
Python/Kattis/Naive/apaxiaaans.py
kchevali/OnlineJudge
c1d1894078fa45eef05c8785aba29758d9adf0c6
[ "MIT" ]
null
null
null
s = input() size = 0 while size != len(s): size = len(s) for i in range(26): letter = chr(ord("a") + i) s = s.replace(letter * 2, letter) print(s)
19
41
0.508772
s = input() size = 0 while size != len(s): size = len(s) for i in range(26): letter = chr(ord("a") + i) s = s.replace(letter * 2, letter) print(s)
0
0
0
0
0
0
0
0
0
966e8b218a834a8d1db1b95c1f7ac443390bd82c
376
py
Python
setup.py
FurtiveFox/fchat_mod
290d19da97305938cf63b472e5e859f071fceb4d
[ "MIT" ]
null
null
null
setup.py
FurtiveFox/fchat_mod
290d19da97305938cf63b472e5e859f071fceb4d
[ "MIT" ]
null
null
null
setup.py
FurtiveFox/fchat_mod
290d19da97305938cf63b472e5e859f071fceb4d
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name='fchat', version='0.0', packages=find_packages(exclude=['test']), license='MIT', description='A python based f-chat client', long_description=open('README.txt').read(), install_requires=['requests'], url='https://github.com', a...
25.066667
47
0.667553
from setuptools import setup, find_packages setup( name='fchat', version='0.0', packages=find_packages(exclude=['test']), license='MIT', description='A python based f-chat client', long_description=open('README.txt').read(), install_requires=['requests'], url='https://github.com', a...
0
0
0
0
0
0
0
0
0
2d630f1f765b05278111f5ed5e7145307baea9ac
2,230
py
Python
synth/common/top.py
pervasivesolutions/synth
7b00f14dffc2630acd2743d0d5cf9f7c1627b067
[ "MIT" ]
2
2021-03-15T18:02:46.000Z
2021-12-09T20:54:25.000Z
synth/common/top.py
pervasivesolutions/synth
7b00f14dffc2630acd2743d0d5cf9f7c1627b067
[ "MIT" ]
2
2017-04-18T08:41:49.000Z
2017-10-04T15:13:06.000Z
synth/common/top.py
pervasivesolutions/synth
7b00f14dffc2630acd2743d0d5cf9f7c1627b067
[ "MIT" ]
3
2018-02-06T17:07:06.000Z
2020-01-27T17:05:11.000Z
# "TOP" means the last-known value of each property of each device. # One use for this is so that we can set the type of each property explicitly after bulk-uploading to DevicePilot # NOTE: Any property can occasionally have a value of None (null), from which the type can't be inferred. So we need to explicitly exclude...
46.458333
163
0.613901
# "TOP" means the last-known value of each property of each device. # One use for this is so that we can set the type of each property explicitly after bulk-uploading to DevicePilot # NOTE: Any property can occasionally have a value of None (null), from which the type can't be inferred. So we need to explicitly exclude...
0
0
0
1,860
0
0
0
0
23
dd57a5e4ebb6589096ee507af5c6f02d8724a13d
1,098
py
Python
images2video.py
bingai/PackNet-SfM
d5ae24a96bf2ca5dbe70b0ea30d627001f4cd83a
[ "MIT" ]
1
2020-10-08T02:51:39.000Z
2020-10-08T02:51:39.000Z
images2video.py
bingai/PackNet-SfM
d5ae24a96bf2ca5dbe70b0ea30d627001f4cd83a
[ "MIT" ]
null
null
null
images2video.py
bingai/PackNet-SfM
d5ae24a96bf2ca5dbe70b0ea30d627001f4cd83a
[ "MIT" ]
null
null
null
# https://theailearner.com/2018/10/15/creating-video-from-images-using-opencv-python/ # Steps: # Fetch all the image file names using glob # Read all the images using cv2.imread() # Store all the images into a list # Create a VideoWriter object using cv2.VideoWriter() # Save the images to video file using cv2.Vide...
28.153846
99
0.718579
# https://theailearner.com/2018/10/15/creating-video-from-images-using-opencv-python/ # Steps: # Fetch all the image file names using glob # Read all the images using cv2.imread() # Store all the images into a list # Create a VideoWriter object using cv2.VideoWriter() # Save the images to video file using cv2.Vide...
0
0
0
0
0
94
0
-3
44
f8ecf62b233ecee90703bbf8f3c35df6d06ebb6a
989
py
Python
py_reportit/shared/config/db.py
fedus/py_reportit
46422cabb652571d8cce6c8e91a229009dcca141
[ "MIT" ]
1
2021-12-05T19:16:16.000Z
2021-12-05T19:16:16.000Z
py_reportit/shared/config/db.py
fedus/py_reportit
46422cabb652571d8cce6c8e91a229009dcca141
[ "MIT" ]
null
null
null
py_reportit/shared/config/db.py
fedus/py_reportit
46422cabb652571d8cce6c8e91a229009dcca141
[ "MIT" ]
null
null
null
import logging logger = logging.getLogger(f"py_reportit.{__name__}")
36.62963
107
0.742164
import logging from typing import Iterable from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker as sqlalchemy_sessionmaker from sqlalchemy.orm.session import Session logger = logging.getLogger(f"py_reportit.{__name__}") class Database: def __init__(self, log_db, **kwargs): self.d...
0
180
0
286
231
0
0
87
135
9ed7a06b755cbb58e1a3edee00faa390aff26545
11,564
py
Python
rlpyt/ul/algos/downstreams/vae.py
Slienteagle-wyb/rlpyt
fee14b1c28481f6751a7a1a6ce9b8cbac1e001f0
[ "MIT" ]
null
null
null
rlpyt/ul/algos/downstreams/vae.py
Slienteagle-wyb/rlpyt
fee14b1c28481f6751a7a1a6ce9b8cbac1e001f0
[ "MIT" ]
null
null
null
rlpyt/ul/algos/downstreams/vae.py
Slienteagle-wyb/rlpyt
fee14b1c28481f6751a7a1a6ce9b8cbac1e001f0
[ "MIT" ]
null
null
null
from collections import namedtuple IGNORE_INDEX = -100 # Mask action samples across episode boundary. OptInfo = namedtuple("OptInfo", ["reconLoss", "klLoss", "gradNorm"]) ValInfo = namedtuple("ValInfo", ["reconLoss", "klLoss"])
43.637736
114
0.656174
import torch import torch.nn.functional as F from collections import namedtuple from rlpyt.ul.algos.ul_for_rl.base import BaseUlAlgorithm from rlpyt.ul.models.ul.vae_models import VaeHeadModel, VaeDecoderModel from rlpyt.utils.quick_args import save__init__args from rlpyt.utils.logging import logger from rlpyt.ul.repla...
0
0
0
10,696
0
0
0
350
287
8a87b0cd7e766f6f264432745a4a7a02f1025c18
674
py
Python
chconsole/launch/launch_config.py
mincode/chconsole
ab8ca8a38bd47ecb1aa7ff90225f57e042aaad6e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
chconsole/launch/launch_config.py
mincode/chconsole
ab8ca8a38bd47ecb1aa7ff90225f57e042aaad6e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
chconsole/launch/launch_config.py
mincode/chconsole
ab8ca8a38bd47ecb1aa7ff90225f57e042aaad6e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
__author__ = 'Manfred Minimair <manfred@minimair.org>'
32.095238
81
0.695846
from traitlets.config.configurable import LoggingConfigurable from traitlets import Unicode __author__ = 'Manfred Minimair <manfred@minimair.org>' class LaunchConfig(LoggingConfigurable): gate_tunnel_user = Unicode('chconnect', config=True, help='ssh user name on gate for tunnel...
0
0
0
500
0
0
0
48
67
b748f3b0df7be72f8e6684bce7c6f0a96a780838
1,895
py
Python
tests/test_rt_gui.py
amoodie/rain-table_jeffskwang
a378a24f2c239e5b8076a864e7f924c3c6397185
[ "MIT" ]
null
null
null
tests/test_rt_gui.py
amoodie/rain-table_jeffskwang
a378a24f2c239e5b8076a864e7f924c3c6397185
[ "MIT" ]
null
null
null
tests/test_rt_gui.py
amoodie/rain-table_jeffskwang
a378a24f2c239e5b8076a864e7f924c3c6397185
[ "MIT" ]
null
null
null
print("importing: pytest and platform") print("importing: sys and os") import sys, os sys.path.append(os.path.realpath(os.path.dirname(__file__)+"/..")) print("importing: numpy") print("importing: matplotlib")
22.034884
78
0.741953
print("importing: pytest and platform") import pytest import platform print("importing: sys and os") import sys, os sys.path.append(os.path.realpath(os.path.dirname(__file__)+"/..")) print("importing: numpy") import numpy as np print("importing: matplotlib") import matplotlib @pytest.mark.mpl_image_compare(baseli...
0
1,470
0
0
0
0
0
-21
226
40cf4751ff1aafadae4d61a862e1a55e2c03c0c3
1,265
py
Python
graphi_project/graphi_project/urls.py
davidxc/graphi
e5cb5b165c0314aa3a9302d333797dab9871026c
[ "MIT" ]
null
null
null
graphi_project/graphi_project/urls.py
davidxc/graphi
e5cb5b165c0314aa3a9302d333797dab9871026c
[ "MIT" ]
null
null
null
graphi_project/graphi_project/urls.py
davidxc/graphi
e5cb5b165c0314aa3a9302d333797dab9871026c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Author: David Wong <davidwong.xc@gmail.com> License: 3 clause BSD license """ from django.conf.urls import patterns, include, url from django.contrib.staticfiles.urls import staticfiles_urlpatterns # Uncomment the next two lines to enable the admin: from django.contrib import admin admin....
35.138889
77
0.682213
# -*- coding: utf-8 -*- """ Author: David Wong <davidwong.xc@gmail.com> License: 3 clause BSD license """ from django.conf.urls import patterns, include, url from django.contrib.staticfiles.urls import staticfiles_urlpatterns # Uncomment the next two lines to enable the admin: from django.contrib import admin admin....
0
0
0
0
0
0
0
0
0
8130b2714fb2200c4919ad760d8fe3b3c75a95b2
566
py
Python
ch03/RELU_function.py
Lyli724/Book_Introduce_Deep-Learning
b24ecc76548794c7e4afaf01142a7e68764744d1
[ "Apache-2.0" ]
1
2020-07-20T05:34:15.000Z
2020-07-20T05:34:15.000Z
ch03/RELU_function.py
Lyli724/Book_Introduce_Deep-Learning
b24ecc76548794c7e4afaf01142a7e68764744d1
[ "Apache-2.0" ]
null
null
null
ch03/RELU_function.py
Lyli724/Book_Introduce_Deep-Learning
b24ecc76548794c7e4afaf01142a7e68764744d1
[ "Apache-2.0" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt # RELUinput>0: output: x, input < 0, output = 0 x = np.arange(-5.0, 5.0, 0.1) y1 = sigmoid_function(x) y2 = step_function(x) y3 = relu(x) plt.plot(x, y1, label = "sigmoid") plt.plot(x, y2, label = "step", linestyle = "--") plt.plot(x, y3, label = "relu", linestyle = ...
23.583333
56
0.64311
import numpy as np import matplotlib.pyplot as plt # RELU函数当input>0: output: x, input < 0, output = 0 def relu(x): return np.maximum(0, x) # maximum从输入的数值中选择较大的那个值进行输出 def step_function(x): return np.array(x > 0, dtype = np.int) def sigmoid_function(x): return 1 / (1 + np.exp(-x)) x = np.arange(-5.0, 5....
66
0
0
0
0
107
0
0
68
5b70fa08960cfbdcc6e7c1d4789b5302bcef0a4a
2,515
py
Python
dias/train.py
MrXiaoXiao/DIAS
8c628beb8817824a7ba4e1d4b3c3611573457a18
[ "MIT" ]
2
2021-07-01T12:28:07.000Z
2021-08-10T10:53:14.000Z
dias/train.py
MrXiaoXiao/DIAS
8c628beb8817824a7ba4e1d4b3c3611573457a18
[ "MIT" ]
null
null
null
dias/train.py
MrXiaoXiao/DIAS
8c628beb8817824a7ba4e1d4b3c3611573457a18
[ "MIT" ]
null
null
null
import numpy as np from dias.model.FPN_Model import Dias_FPN from dias.model.Unet_Model import Dias_Unet from dias.dataIO.data import IonoDataManager import matplotlib.pyplot as plt import os def train(cfgs): """ Function for training DIAS. """ print('Setting Model...') if cfgs['Model']['Type'] == ...
31.4375
79
0.604771
import tensorflow as tf import numpy as np from dias.model.FPN_Model import Dias_FPN from dias.model.Unet_Model import Dias_Unet from dias.dataIO.data import IonoDataManager import segmentation_models as sm import matplotlib.pyplot as plt import os def train(cfgs): """ Function for training DIAS. """ p...
0
0
0
0
0
0
0
13
44
3ba51943f287ab96a1b85ade2737d45bb8f347f0
4,009
py
Python
pymarkdownlint/rules.py
cheukyin699/pymarkdownlint
d3317c0e8baa1cac56c7ffc6d11e6ba7a03e4c07
[ "MIT" ]
2
2019-04-12T06:29:44.000Z
2021-01-14T05:38:25.000Z
pymarkdownlint/rules.py
TobiasSchaffner/pymarkdownlint
19d766877998fb75494bc5847f4c7ae287e86684
[ "MIT" ]
2
2018-10-15T05:02:48.000Z
2020-09-12T07:25:09.000Z
pymarkdownlint/rules.py
cheukyin699/pymarkdownlint
d3317c0e8baa1cac56c7ffc6d11e6ba7a03e4c07
[ "MIT" ]
4
2018-11-26T03:19:23.000Z
2021-03-12T06:42:32.000Z
import re RE_HEADERS = re.compile('^h[1-6]$')
29.91791
112
0.634323
from abc import abstractmethod, ABCMeta from pymarkdownlint.options import IntOption from bs4 import BeautifulSoup import markdown import re RE_HEADERS = re.compile('^h[1-6]$') class Rule(object, metaclass=ABCMeta): """ Class representing markdown rules. """ options_spec = [] id = [] name = "" e...
0
263
0
3,351
0
0
0
43
295
cc849ca59c78f1ab5df6d8f0953cda66194774b9
5,930
py
Python
df_17/simulate.py
tivvit/crypto_trading_bot_devfest_2017
7e642bb455f70f79582f98cca4996765bcaea148
[ "MIT" ]
null
null
null
df_17/simulate.py
tivvit/crypto_trading_bot_devfest_2017
7e642bb455f70f79582f98cca4996765bcaea148
[ "MIT" ]
null
null
null
df_17/simulate.py
tivvit/crypto_trading_bot_devfest_2017
7e642bb455f70f79582f98cca4996765bcaea148
[ "MIT" ]
null
null
null
"""GDAX Trading simulator Usage: train_lr.py [-zepd <file> -s --stop <stop> -a <after> -b <before> -c <cnt>] [--err-avg] train_lr.py (-h | --help) Options: -d=FILE Data path [default: /data/gdax/BTC-EUR_27_6_2017_200_days_min.json] -h --help Show this screen. -v --version Version -z --zmq ...
28.926829
83
0.590556
"""GDAX Trading simulator Usage: train_lr.py [-zepd <file> -s --stop <stop> -a <after> -b <before> -c <cnt>] [--err-avg] train_lr.py (-h | --help) Options: -d=FILE Data path [default: /data/gdax/BTC-EUR_27_6_2017_200_days_min.json] -h --help Show this screen. -v --version Version -z --zmq ...
0
0
0
0
0
4,618
0
253
245
a61ea08d9eb33e3f28c8ed7dafeaa9382eba7647
118
py
Python
basic/yield.py
Dmendoza3/Phyton
e6c563609724b2dadcd767d2bfc291090ac2f58e
[ "MIT" ]
null
null
null
basic/yield.py
Dmendoza3/Phyton
e6c563609724b2dadcd767d2bfc291090ac2f58e
[ "MIT" ]
null
null
null
basic/yield.py
Dmendoza3/Phyton
e6c563609724b2dadcd767d2bfc291090ac2f58e
[ "MIT" ]
null
null
null
for x in arrayYield(): print(x)
16.857143
29
0.525424
def arrayYield(): arr = [9,8,7,6,5,4,3,2,1] for x in arr: yield x for x in arrayYield(): print(x)
0
0
0
0
60
0
0
0
22
00a990c066e283412c864be0c5e3bb6f8b4d146d
4,740
py
Python
rpxdock/tests/search/test_onecomp.py
quecloud/rpxdock
41f7f98f5dacf24fc95897910263a0bec2209e59
[ "Apache-2.0" ]
null
null
null
rpxdock/tests/search/test_onecomp.py
quecloud/rpxdock
41f7f98f5dacf24fc95897910263a0bec2209e59
[ "Apache-2.0" ]
null
null
null
rpxdock/tests/search/test_onecomp.py
quecloud/rpxdock
41f7f98f5dacf24fc95897910263a0bec2209e59
[ "Apache-2.0" ]
1
2020-04-13T20:07:52.000Z
2020-04-13T20:07:52.000Z
if __name__ == '__main__': main()
37.92
95
0.698101
import rpxdock as rp, concurrent def test_cage_hier_onecomp_notrim(hscore, bodyC3): arg = rp.app.defaults() arg.wts = rp.Bunch(ncontact=0.01, rpx=1.0) arg.beam_size = 2e4 arg.max_bb_redundancy = 2.0 arg.max_delta_h = 9999 arg.nout_debug = 0 arg.nout_top = 0 arg.nout_each = 0 arg.score_only_s...
0
0
0
0
0
4,555
0
11
137
7631dec3502bc3893edde5223606e6691456b30f
1,599
py
Python
carrara/archivi/migrations/0021_auto_20210806_1922.py
cxc61cxc/django_prove
9df58be73ef51e13287bfbd1b8623f3f39b8a224
[ "MIT" ]
null
null
null
carrara/archivi/migrations/0021_auto_20210806_1922.py
cxc61cxc/django_prove
9df58be73ef51e13287bfbd1b8623f3f39b8a224
[ "MIT" ]
null
null
null
carrara/archivi/migrations/0021_auto_20210806_1922.py
cxc61cxc/django_prove
9df58be73ef51e13287bfbd1b8623f3f39b8a224
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-08-06 17:22
32.632653
106
0.575985
# Generated by Django 3.2.5 on 2021-08-06 17:22 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('archivi', '0020_alter_allegato_pratica'), ] operations = [ migrations.AlterField( model_name='allegato', name='doc',...
0
0
0
1,485
0
0
0
19
46
5af47c313e63f34e1877fc59a5f9405aaf7f3ce4
16,724
py
Python
src/handlers.py
Shermii/n-editor
5f5c5e2b1abe403f1ddc35de314303a1e34e99f9
[ "MIT" ]
1
2020-09-01T22:22:09.000Z
2020-09-01T22:22:09.000Z
src/handlers.py
Shermii/n-editor
5f5c5e2b1abe403f1ddc35de314303a1e34e99f9
[ "MIT" ]
1
2021-12-31T00:25:29.000Z
2021-12-31T00:25:29.000Z
src/handlers.py
Shermii/Nix
5f5c5e2b1abe403f1ddc35de314303a1e34e99f9
[ "MIT" ]
null
null
null
import platform platform = platform.system() # thanks to everyone on https://www.asciiart.eu/
33.51503
265
0.713167
import os import time import random import tkinter import threading import subprocess import glob from ascii_art import * from widgets import * import platform platform = platform.system() # thanks to everyone on https://www.asciiart.eu/ class FILE_HANDLER(object): """ File opening and closing yes""" def __init__...
0
0
0
16,384
0
0
0
-54
291
201ed5c78e308f8bf7563fcc8896d5909beb68d4
6,977
py
Python
Projects/Project1/regan/crossvalidation.py
adelezaini/MachineLearning
dc3f34f5d509bed6a993705373c46be4da3f97db
[ "MIT" ]
null
null
null
Projects/Project1/regan/crossvalidation.py
adelezaini/MachineLearning
dc3f34f5d509bed6a993705373c46be4da3f97db
[ "MIT" ]
1
2021-10-03T15:16:07.000Z
2021-10-03T15:16:07.000Z
Projects/Project1/regan/crossvalidation.py
adelezaini/MachineLearning
dc3f34f5d509bed6a993705373c46be4da3f97db
[ "MIT" ]
null
null
null
# The MIT License (MIT) # # Copyright 2021 Fridtjof Gjengset, Adele Zaini, Gaute Holen # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated # documentation files (the Software), to deal in the Software without restriction, including without limitation the # r...
38.761111
117
0.669055
# The MIT License (MIT) # # Copyright © 2021 Fridtjof Gjengset, Adele Zaini, Gaute Holen # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated # documentation files (the “Software”), to deal in the Software without restriction, including without limitation the ...
14
0
0
0
0
0
0
31
23
014959e4d9f7c9d908e94b6b8868537079c42d42
1,975
py
Python
twitch_project/facebook_users/tasks.py
tejesh95/livecoding
327114d67d613ef7300528d62b5165cd215bc1b4
[ "MIT" ]
null
null
null
twitch_project/facebook_users/tasks.py
tejesh95/livecoding
327114d67d613ef7300528d62b5165cd215bc1b4
[ "MIT" ]
null
null
null
twitch_project/facebook_users/tasks.py
tejesh95/livecoding
327114d67d613ef7300528d62b5165cd215bc1b4
[ "MIT" ]
null
null
null
from celery.utils.log import get_task_logger logger = get_task_logger(__name__)
34.051724
87
0.590886
import urllib2 import json from celery.decorators import task from celery.utils.log import get_task_logger from .models import GroupMember logger = get_task_logger(__name__) @task(name='fetch_members_from_group') def fetch_members_from_group(members, group_id): def save_members_to_db(members): for member...
0
1,752
0
0
0
0
0
6
134
2e00301aaa1a19cf8cb9eebb6282f9d668fc8bf4
2,229
py
Python
infrastructure/cleanup_db/cleanup_db.py
mesmacosta/cloudsql-postgresql-tooling
33c6ca7779d1a1dc4d07c5218c215dd780f6b595
[ "MIT" ]
6
2020-04-29T21:17:28.000Z
2020-12-08T01:52:27.000Z
infrastructure/cleanup_db/cleanup_db.py
mesmacosta/cloudsql-postgresql-tooling
33c6ca7779d1a1dc4d07c5218c215dd780f6b595
[ "MIT" ]
null
null
null
infrastructure/cleanup_db/cleanup_db.py
mesmacosta/cloudsql-postgresql-tooling
33c6ca7779d1a1dc4d07c5218c215dd780f6b595
[ "MIT" ]
2
2020-07-29T09:31:32.000Z
2021-02-10T19:01:05.000Z
import logging import sys QUERY = """ SELECT DISTINCT t.table_schema as schema_name FROM information_schema.tables t WHERE t.table_schema NOT IN ('pg_catalog', 'information_schema', 'pg_toast', 'gp_toolkit', 'pg_internal') ORDER BY t.table_schema; """ if __name__ == "__main__": ...
29.72
71
0.633019
import argparse import logging import sys import uuid from psycopg2 import connect QUERY = """ SELECT DISTINCT t.table_schema as schema_name FROM information_schema.tables t WHERE t.table_schema NOT IN ('pg_catalog', 'information_schema', 'pg_toast', 'gp_toolkit', 'pg_internal') ORDER...
0
0
0
0
0
1,461
0
-9
159
21540e20013a34251762618f72b4ba0f7a019eec
8,032
py
Python
train_nets.py
mepittma/bmi203-final
ef60d91cafbd3372f13917aa67102ec8f19e7ee8
[ "Apache-2.0" ]
null
null
null
train_nets.py
mepittma/bmi203-final
ef60d91cafbd3372f13917aa67102ec8f19e7ee8
[ "Apache-2.0" ]
null
null
null
train_nets.py
mepittma/bmi203-final
ef60d91cafbd3372f13917aa67102ec8f19e7ee8
[ "Apache-2.0" ]
null
null
null
import numpy as np """ # AUTOENCODER # Instantiate neural network and training classes NN = nn.Neural_Network(inS=1, outS=1, hS=3, depth = 1, actFunction="sigmoid") T = nn.trainer(NN, epochs = 400, batch_size = 8, metric = "roc_auc",learningRate="default") # Ensure that the 8x3x8 encoder problem can be solved by this...
32.783673
112
0.642555
from nets import neural_net as nn import matplotlib.pyplot as plt from operator import itemgetter from sklearn.metrics import roc_curve, auc, roc_auc_score from sklearn.model_selection import train_test_split import numpy as np """ # AUTOENCODER # Instantiate neural network and training classes NN = nn.Neural_Network(...
0
0
0
0
0
449
0
99
154
3d4261a3742c63486541b6cb72857f1d164e9962
2,510
py
Python
interpreter/interpreter.py
jodorganistaca/Projet_SI
e640ccf37252cb22a92a858ab2d1fd409a63aecf
[ "MIT" ]
null
null
null
interpreter/interpreter.py
jodorganistaca/Projet_SI
e640ccf37252cb22a92a858ab2d1fd409a63aecf
[ "MIT" ]
null
null
null
interpreter/interpreter.py
jodorganistaca/Projet_SI
e640ccf37252cb22a92a858ab2d1fd409a63aecf
[ "MIT" ]
null
null
null
import argparse parser = argparse.ArgumentParser() parser.add_argument('--file', required=True) args = parser.parse_args() file1 = open(f'{args.file}', 'r') lines = file1.readlines() Data_Memory={} #While not end of line i = 0 j= [] #print(len(lines)) while (i<len(lines)) : arr = lines[i].split(" ") ...
29.186047
105
0.5
import argparse parser = argparse.ArgumentParser() parser.add_argument('--file', required=True) args = parser.parse_args() file1 = open(f'{args.file}', 'r') lines = file1.readlines() Data_Memory={} #While not end of line i = 0 j= [] #print(len(lines)) while (i<len(lines)) : arr = lines[i].split(" ") ...
8
0
0
0
0
0
0
0
0