hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
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
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
4bc441d80eb90948270b0c67a69acd09e054bf96
793
py
Python
packages/jobs/statuses.py
NHSDigital/list-reconciliation
37b1ebe99a64275e23b0e7fb6a89415b92d14306
[ "MIT" ]
4
2021-06-25T08:28:54.000Z
2021-12-16T11:03:42.000Z
packages/jobs/statuses.py
NHSDigital/list-reconciliation
37b1ebe99a64275e23b0e7fb6a89415b92d14306
[ "MIT" ]
184
2021-06-24T15:27:08.000Z
2022-03-17T12:44:28.000Z
packages/jobs/statuses.py
NHSDigital/list-reconciliation
37b1ebe99a64275e23b0e7fb6a89415b92d14306
[ "MIT" ]
3
2021-11-05T10:21:44.000Z
2022-03-04T14:29:24.000Z
from enum import Enum class JobStatus(Enum): PENDING = "PENDING" REJECTED = "REJECTED" SENT_TO_DPS = "SENT_TO_DPS" PROCESSED_BY_DPS = "PROCESSED_BY_DPS" COMPLETE = "COMPLETE" NOTIFIED_VALIDATION_FAILED = "NOTIFIED_VALIDATION_FAILED" CLEANED_UP = "CLEANED_UP" class ParseStatus(Enum): ...
18.880952
61
0.675914
753
0.949559
0
0
0
0
0
0
273
0.344262
4bc544909f30548d56d19ceee6f586966f0cd714
843
py
Python
DevOps/Data_Science_in_Production/cap02/15_scikit-learn.py
unimauro/Courses
81e5b9c4cbc9b875eff82f96bda7d21ec4f258b2
[ "Apache-2.0" ]
1
2020-07-25T04:56:55.000Z
2020-07-25T04:56:55.000Z
DevOps/Data_Science_in_Production/cap02/15_scikit-learn.py
unimauro/Courses
81e5b9c4cbc9b875eff82f96bda7d21ec4f258b2
[ "Apache-2.0" ]
2
2020-06-15T04:42:00.000Z
2021-08-29T03:48:28.000Z
DevOps/Data_Science_in_Production/cap02/15_scikit-learn.py
unimauro/Courses
81e5b9c4cbc9b875eff82f96bda7d21ec4f258b2
[ "Apache-2.0" ]
null
null
null
import pandas as pd from sklearn.linear_model import LogisticRegression import mlflow import mlflow.sklearn import flask model_path = "models/logit_games_v1" model = mlflow.sklearn.load_model(model_path) app = flask.Flask(__name__) @app.route("/", methods=["GET","POST"]) def predict(): data = {"success": False} params ...
31.222222
58
0.688019
0
0
0
0
54
0.064057
0
0
177
0.209964
298a78605da6ac7b5a8526389d33bd97829a9e95
12,607
py
Python
tornado_sockets/views/timeseries.py
willjschmitt/joulia-webserver
712decb749c2d1bda71af49ecab245378bf30078
[ "FTL" ]
null
null
null
tornado_sockets/views/timeseries.py
willjschmitt/joulia-webserver
712decb749c2d1bda71af49ecab245378bf30078
[ "FTL" ]
95
2016-08-04T01:59:37.000Z
2021-06-10T18:41:46.000Z
tornado_sockets/views/timeseries.py
willjschmitt/joulia-webserver
712decb749c2d1bda71af49ecab245378bf30078
[ "FTL" ]
null
null
null
"""Handles websockets and asynchronous endpoints provided by Tornado instead of Django, but use the Django model framework for a database ORM. """ import datetime import functools import json import logging import tornado.escape from tornado.ioloop import IOLoop import tornado.web import tornado.websocket from django...
39.396875
80
0.649005
11,422
0.906005
0
0
3,316
0.263028
0
0
5,091
0.403823
298cc1131b4fa0f1be5f4becb01286a44e8b0a9d
66
py
Python
report/create_db.py
Kellel/reports
975e99396301e87176a38dd440a273c9319b3e22
[ "BSD-3-Clause" ]
null
null
null
report/create_db.py
Kellel/reports
975e99396301e87176a38dd440a273c9319b3e22
[ "BSD-3-Clause" ]
null
null
null
report/create_db.py
Kellel/reports
975e99396301e87176a38dd440a273c9319b3e22
[ "BSD-3-Clause" ]
null
null
null
from models import Base, engine Base.metadata.create_all(engine)
16.5
32
0.818182
0
0
0
0
0
0
0
0
0
0
298ede4e030cbedbbcf9ef9a22b8209288395ba1
1,751
py
Python
plugins/train/model/dfaker.py
aaman123/faceswap
a5825c3457b062c1824ef3f8b02e4f3fa4c2217f
[ "MIT" ]
2
2021-11-11T08:29:01.000Z
2021-11-11T08:34:50.000Z
plugins/train/model/dfaker.py
aaman123/faceswap
a5825c3457b062c1824ef3f8b02e4f3fa4c2217f
[ "MIT" ]
null
null
null
plugins/train/model/dfaker.py
aaman123/faceswap
a5825c3457b062c1824ef3f8b02e4f3fa4c2217f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ DFaker Model Based on the dfaker model: https://github.com/dfaker """ from keras.initializers import RandomNormal from keras.layers import Input from lib.model.nn_blocks import Conv2DOutput, UpscaleBlock, ResidualBlock from .original import Model as OriginalModel, KerasModel class Mo...
38.911111
85
0.656768
1,438
0.821245
0
0
0
0
0
0
192
0.109652
29902382e677a01b98fcb79346e95e0a9cada7e6
2,459
py
Python
classify/train.py
gallupliu/QA
0e284dd17e27ea9384a1e4d7a4c206eb95e4bf7f
[ "Apache-2.0" ]
3
2017-09-06T07:10:05.000Z
2019-08-01T03:27:39.000Z
classify/train.py
gallupliu/QA
0e284dd17e27ea9384a1e4d7a4c206eb95e4bf7f
[ "Apache-2.0" ]
2
2018-01-25T14:46:40.000Z
2018-01-25T14:53:13.000Z
classify/train.py
gallupliu/QA
0e284dd17e27ea9384a1e4d7a4c206eb95e4bf7f
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 """ @author: gallupliu @contact: gallup-liu@hotmail.com @version: 1.0 @license: Apache Licence @file: train.py @time: 2018/3/5 22:58 """ import tensorflow as tf from classify.dataset import data_utils from sklearn.model_selection import train_test_split from classify.model import TextCNN def da...
33.684932
109
0.684831
0
0
0
0
0
0
0
0
742
0.301259
2991579a0641f47ea260ec96e0a53c12f4df3dbf
342
py
Python
authors/apps/author_follows/urls.py
andela/ah-backend-dojo
f2b14f15c4af906da846cafe722f13868d58371f
[ "BSD-3-Clause" ]
3
2019-05-01T10:41:09.000Z
2021-04-25T22:17:20.000Z
authors/apps/author_follows/urls.py
andela/ah-backend-dojo
f2b14f15c4af906da846cafe722f13868d58371f
[ "BSD-3-Clause" ]
24
2019-04-23T14:56:21.000Z
2021-12-13T19:58:37.000Z
authors/apps/author_follows/urls.py
andela/ah-backend-dojo
f2b14f15c4af906da846cafe722f13868d58371f
[ "BSD-3-Clause" ]
4
2019-06-29T10:40:32.000Z
2022-01-04T11:44:53.000Z
from django.urls import path from .views import FollowStatsViews, AuthorFollowViews urlpatterns = [ # /authors/followers/ or ../following/ path("<str:follow_state>/", FollowStatsViews.as_view(), name="follows"), # /authors/<author_username>/follow path("<str:username>/follow/", AuthorFollowViews.as_vi...
34.2
78
0.719298
0
0
0
0
0
0
0
0
135
0.394737
2992bbf3c6e1e4c6fcb24c568c080fff0f59e86b
2,299
py
Python
src/cone/app/tests/test_browser_login.py
lenadax/cone.app
b25c55aedb85e45a962003d2767a22a927cc61c0
[ "BSD-3-Clause" ]
1
2022-03-13T17:51:09.000Z
2022-03-13T17:51:09.000Z
src/cone/app/tests/test_browser_login.py
lenadax/cone.app
b25c55aedb85e45a962003d2767a22a927cc61c0
[ "BSD-3-Clause" ]
1
2021-08-06T08:12:00.000Z
2021-08-06T08:12:00.000Z
src/cone/app/tests/test_browser_login.py
lenadax/cone.app
b25c55aedb85e45a962003d2767a22a927cc61c0
[ "BSD-3-Clause" ]
null
null
null
from cone.app import get_root from cone.app import security from cone.app import testing from cone.app.browser.login import login_view from cone.app.browser.login import logout_view from cone.tile import render_tile from cone.tile.tests import TileTestCase from webob.response import Response from webob.exc import HTTPF...
40.333333
94
0.660722
1,971
0.857329
0
0
0
0
0
0
650
0.282732
29934fcb2bb4b9dd5b0dcf07accd0d89e7187b95
752
py
Python
View/telaEditarControle.py
IuriBritoDev/TKINO
3c689788324bd5badc84c7969f331b076046c211
[ "MIT" ]
null
null
null
View/telaEditarControle.py
IuriBritoDev/TKINO
3c689788324bd5badc84c7969f331b076046c211
[ "MIT" ]
null
null
null
View/telaEditarControle.py
IuriBritoDev/TKINO
3c689788324bd5badc84c7969f331b076046c211
[ "MIT" ]
null
null
null
from tkinter import * def TelaEditarControle(tela, controle): # Cria a tela de configuração telaEditar = Toplevel(tela) telaEditar.title('EDITA CONTROLE') telaEditar.geometry('280x180+620+120') telaEditar['bg'] = 'gray' telaEditar.resizable(False,False) telaEditar.focus_force() telaEdi...
32.695652
96
0.694149
0
0
0
0
0
0
0
0
177
0.234127
29955858830022ac8b0ab1ecf8622aef64dde5f8
395
py
Python
yao_framework/__init__.py
QuantumBFS/yao-python
c877b3c4f920e76858021b6af8728f839d88fc1d
[ "Apache-2.0" ]
3
2019-12-04T16:40:55.000Z
2021-12-16T04:28:59.000Z
yao_framework/__init__.py
QuantumBFS/yao-python
c877b3c4f920e76858021b6af8728f839d88fc1d
[ "Apache-2.0" ]
null
null
null
yao_framework/__init__.py
QuantumBFS/yao-python
c877b3c4f920e76858021b6af8728f839d88fc1d
[ "Apache-2.0" ]
2
2021-05-07T01:17:50.000Z
2021-12-16T04:32:31.000Z
# workaround static linked python from julia.api import Julia __julia__ = Julia(compiled_modules=False) import os import sys import subprocess from .wrappers import apply script_dir = os.path.dirname(os.path.realpath(__file__)) def install(): """ Install Julia packages required for yao-framework. """ ...
21.944444
76
0.744304
0
0
0
0
0
0
0
0
118
0.298734
29964b779c4f66694fdf10686261f2a4a69976ee
4,531
py
Python
src/multiuserpad/twitchutil.py
codingwithsomeguy/multiuserpad
caca02bb3f98e855a0980b8ac9947c05d5b89463
[ "MIT" ]
4
2020-04-14T03:25:06.000Z
2020-11-03T14:30:20.000Z
src/multiuserpad/twitchutil.py
codingwithsomeguy/multiuserpad
caca02bb3f98e855a0980b8ac9947c05d5b89463
[ "MIT" ]
null
null
null
src/multiuserpad/twitchutil.py
codingwithsomeguy/multiuserpad
caca02bb3f98e855a0980b8ac9947c05d5b89463
[ "MIT" ]
null
null
null
# TODO: Generalize this with the discordutil module, factor out oauth import logging from urllib.parse import urlencode import requests import json from flask import request, redirect, session from creds import get_creds from config import config from sessionutil import invalidate_session def twitch_login(): ss...
31.685315
82
0.63827
0
0
0
0
0
0
0
0
1,614
0.356213
2996df27209f1d350199a6a54bcf14fae9ad1a1a
6,173
py
Python
src/pixel_sorting.py
in3rtial/imgsrt
2dec237b7d797d9964ed874c4e4d72f7eb23eaf0
[ "CC0-1.0" ]
2
2015-11-08T09:22:30.000Z
2020-10-15T03:42:24.000Z
src/pixel_sorting.py
in3rtial/imgsrt
2dec237b7d797d9964ed874c4e4d72f7eb23eaf0
[ "CC0-1.0" ]
null
null
null
src/pixel_sorting.py
in3rtial/imgsrt
2dec237b7d797d9964ed874c4e4d72f7eb23eaf0
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/python3 """transliteration of Kim Asendorf's pixel sorting script""" from copy import copy from random import random, gauss from PIL import Image from numpy import int32 from argparse import ArgumentParser # PROGRAM CONSTANTS # rgb(103, 105, 128) BLACK_VALUE = int32(-10000000) # rgb(164, 114, 128) WHITE_V...
32.661376
95
0.638749
0
0
0
0
0
0
0
0
1,086
0.175927
29978909888062a7973e1bdbe5b82311fd8d9b27
6,173
py
Python
main.py
ml4design/text-processing-module
f1bfe1a49d58156e9e48e5ef69b980f89a5981ea
[ "MIT" ]
null
null
null
main.py
ml4design/text-processing-module
f1bfe1a49d58156e9e48e5ef69b980f89a5981ea
[ "MIT" ]
null
null
null
main.py
ml4design/text-processing-module
f1bfe1a49d58156e9e48e5ef69b980f89a5981ea
[ "MIT" ]
null
null
null
import pandas as pd from preprocessing import preprocess from wordclouds import wordcloud, find_by_word from sentiment_analysis import calculate_sentiment, find_by_sentiment import nltk import os import tempfile from topic_modelling import lda_topic_model, show_topics, show_example_sentences_by_topic os.environ["MPLCO...
55.116071
524
0.706302
0
0
0
0
0
0
0
0
5,542
0.897781
299875f6900cd7a8b095fbe70057acd505857f31
4,796
py
Python
finetune/target_models/multifield.py
IndicoDataSolutions/finetune-transformer-lm
3534658e5de281e5634c8481b0fb37635b0cb3af
[ "MIT" ]
null
null
null
finetune/target_models/multifield.py
IndicoDataSolutions/finetune-transformer-lm
3534658e5de281e5634c8481b0fb37635b0cb3af
[ "MIT" ]
null
null
null
finetune/target_models/multifield.py
IndicoDataSolutions/finetune-transformer-lm
3534658e5de281e5634c8481b0fb37635b0cb3af
[ "MIT" ]
null
null
null
import copy from finetune.errors import FinetuneError from finetune.target_models.classifier import Classifier, ClassificationPipeline from finetune.target_models.regressor import Regressor, RegressionPipeline from finetune.base import BaseModel class MultiFieldClassificationPipeline(ClassificationPipeline): def...
38.677419
116
0.66347
4,537
0.945997
0
0
0
0
0
0
2,794
0.582569
2998b411809973174ac82478a06ef6fa40c371df
157
py
Python
db_s3_backup/db_interface/dump_protocol.py
saurabhariyan/db-s3-backup
5b67737f43814f0841d47033c92825206a24e1a1
[ "MIT" ]
9
2015-08-04T00:54:46.000Z
2021-08-29T04:21:13.000Z
db_s3_backup/db_interface/dump_protocol.py
saurabhariyan/db-s3-backup
5b67737f43814f0841d47033c92825206a24e1a1
[ "MIT" ]
7
2015-05-28T15:57:15.000Z
2017-01-25T11:29:28.000Z
db_s3_backup/db_interface/dump_protocol.py
saurabhariyan/db-s3-backup
5b67737f43814f0841d47033c92825206a24e1a1
[ "MIT" ]
9
2015-05-28T13:09:25.000Z
2021-02-12T04:57:04.000Z
from exceptions import ValueError class DumpProtocol: def dump(self, config=None, verbose=False): raise ValueError('DumpProtocol not followed')
26.166667
53
0.751592
122
0.77707
0
0
0
0
0
0
27
0.171975
299a6f26561daff35ded494f622e2b673df00a7d
24,679
py
Python
LPES-video/01.01-podstawy-terminala/01.01.04-pagery.py
opcode-eu-org-website/LPES-wyklady-src
dd4d413f2bb5560790b6365fa7e68e8f1a8a65b0
[ "MIT" ]
null
null
null
LPES-video/01.01-podstawy-terminala/01.01.04-pagery.py
opcode-eu-org-website/LPES-wyklady-src
dd4d413f2bb5560790b6365fa7e68e8f1a8a65b0
[ "MIT" ]
null
null
null
LPES-video/01.01-podstawy-terminala/01.01.04-pagery.py
opcode-eu-org-website/LPES-wyklady-src
dd4d413f2bb5560790b6365fa7e68e8f1a8a65b0
[ "MIT" ]
1
2021-07-03T16:43:47.000Z
2021-07-03T16:43:47.000Z
# Copyright (c) 2020-2021 Matematyka dla Ciekawych Świata (http://ciekawi.icm.edu.pl/) # Copyright (c) 2020-2021 Robert Ryszard Paciorek <rrp@opcode.eu.org> # # MIT License # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Soft...
173.795775
1,738
0.678066
0
0
0
0
0
0
0
0
23,172
0.935638
299c02cae606323659e0dd5bb1c799eaccfa8b0a
2,109
py
Python
setup.py
tilakpatidar/pytest-snowflake_bdd
db49f0a6d844828b607a2717b96bba517995cf72
[ "MIT" ]
null
null
null
setup.py
tilakpatidar/pytest-snowflake_bdd
db49f0a6d844828b607a2717b96bba517995cf72
[ "MIT" ]
null
null
null
setup.py
tilakpatidar/pytest-snowflake_bdd
db49f0a6d844828b607a2717b96bba517995cf72
[ "MIT" ]
1
2022-01-24T08:26:08.000Z
2022-01-24T08:26:08.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import codecs import os from setuptools import setup def read(fname): file_path = os.path.join(os.path.dirname(__file__), fname) return codecs.open(file_path, encoding='utf-8').read() gh_run_number = os.environ.get("BUILD_NUMBER", None) build_number = None if ...
33.47619
114
0.625889
0
0
0
0
0
0
0
0
1,173
0.556188
299c9b32319909c8f36fc5af498db57a782db34f
437
py
Python
integration_tests/test_12_dmaap.py
krasm/python-onapsdk
87cd3017fc542a8afd3be51fbd89934ed87ed3a7
[ "Apache-2.0" ]
4
2020-06-13T04:51:27.000Z
2021-01-06T15:00:51.000Z
integration_tests/test_12_dmaap.py
krasm/python-onapsdk
87cd3017fc542a8afd3be51fbd89934ed87ed3a7
[ "Apache-2.0" ]
10
2021-09-20T15:42:47.000Z
2021-09-23T12:49:51.000Z
integration_tests/test_12_dmaap.py
krasm/python-onapsdk
87cd3017fc542a8afd3be51fbd89934ed87ed3a7
[ "Apache-2.0" ]
8
2020-08-28T10:56:02.000Z
2022-02-11T17:06:03.000Z
# SPDX-License-Identifier: Apache-2.0 # Copyright 2020 Nokia import pytest import logging import os from onapsdk.dmaap.dmaap import Dmaap logging.basicConfig(level=os.environ.get("LOGLEVEL", "DEBUG")) @pytest.mark.integration def test_should_get_all_topics_from_dmaap(): # given # when response = Dmaap....
20.809524
95
0.729977
0
0
0
0
231
0.528604
0
0
134
0.306636
299d93368abb2922353eb3246c80b4d0b6d61d48
390
py
Python
awx/main/migrations/0112_deployhistory_date.py
Pavloid21/awx
224827f6060013b996eb8210597bca68cda65d40
[ "Apache-2.0" ]
null
null
null
awx/main/migrations/0112_deployhistory_date.py
Pavloid21/awx
224827f6060013b996eb8210597bca68cda65d40
[ "Apache-2.0" ]
null
null
null
awx/main/migrations/0112_deployhistory_date.py
Pavloid21/awx
224827f6060013b996eb8210597bca68cda65d40
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.8 on 2020-03-25 13:50 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0111_auto_20200325_1311'), ] operations = [ migrations.AddField( model_name='deployhistory', name='date', ...
20.526316
54
0.602564
297
0.761538
0
0
0
0
0
0
99
0.253846
299f9a135fb0ac674c3200f9214021f3cf9fd561
920
py
Python
policy.py
shantanusingh16/Pytorch-DQN
b7d3270e9e345e85e5c5a5216109529879ab77bd
[ "MIT" ]
4
2018-09-23T19:58:24.000Z
2022-03-22T20:32:36.000Z
policy.py
shantanusingh16/Pytorch-DQN
b7d3270e9e345e85e5c5a5216109529879ab77bd
[ "MIT" ]
null
null
null
policy.py
shantanusingh16/Pytorch-DQN
b7d3270e9e345e85e5c5a5216109529879ab77bd
[ "MIT" ]
2
2019-05-22T06:02:38.000Z
2019-10-18T17:08:24.000Z
import numpy as np import torch from utils.helpers import process_state, device def make_epsilon_greedy_policy(estimator, nA): """ :param estimator: model that returns q values for a given statem/action pair :param nA: number of actions in the environment :return: A function that takes in a state and ...
36.8
87
0.646739
0
0
0
0
0
0
0
0
434
0.471739
29a1b5f087c1d14e9f6ed91d094e1aa061d5a041
2,798
py
Python
phonotactics/onsets/onsets.py
shlomo-Kallner/coventreiya
aa0773693220025f8d2c23644a2c5d9d884773e9
[ "Apache-2.0" ]
null
null
null
phonotactics/onsets/onsets.py
shlomo-Kallner/coventreiya
aa0773693220025f8d2c23644a2c5d9d884773e9
[ "Apache-2.0" ]
null
null
null
phonotactics/onsets/onsets.py
shlomo-Kallner/coventreiya
aa0773693220025f8d2c23644a2c5d9d884773e9
[ "Apache-2.0" ]
null
null
null
__name__ = 'onsets' __version__ = '1.5.1' __package__ = 'phonotactics' # imports #some import machinery checking and manipulations... #import sys #import os #from os import path #if '__file__' in dir(): # __mod_path = path.dirname(__file__) # if __mod_path not in sys.path: # sys.path.app...
30.086022
84
0.592566
248
0.088635
0
0
0
0
0
0
1,447
0.517155
29a35e6f75f695c4d26d13d7a9c5d6dff08f119d
6,228
py
Python
aptitudetech_private/aptitudetech_private/doctype/simplified_time_reporting/simplified_time_reporting.py
CloudGround/aptitudetech_private
d4d150226bd33ea0c76086264286ae7cae52457f
[ "MIT" ]
null
null
null
aptitudetech_private/aptitudetech_private/doctype/simplified_time_reporting/simplified_time_reporting.py
CloudGround/aptitudetech_private
d4d150226bd33ea0c76086264286ae7cae52457f
[ "MIT" ]
null
null
null
aptitudetech_private/aptitudetech_private/doctype/simplified_time_reporting/simplified_time_reporting.py
CloudGround/aptitudetech_private
d4d150226bd33ea0c76086264286ae7cae52457f
[ "MIT" ]
1
2019-05-17T00:04:05.000Z
2019-05-17T00:04:05.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2019, Aptitudetech and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ from frappe.model.document import Document class SimplifiedTimeReporting(Document): def onload_post_render(self):...
34.793296
312
0.701028
5,975
0.959377
0
0
0
0
0
0
1,737
0.278902
29a405435385e49ddae23458da015f3ba0c567e1
442
py
Python
6 - Python/Collections/7 - Piling Up!.py
Terence-Guan/Python.HackerRank
165a5f0e739c7678dfac7eae95443018e2167c3d
[ "MIT" ]
88
2016-10-23T16:41:14.000Z
2019-12-30T23:51:47.000Z
HackerRank/6 - Python/Collections/7 - Piling Up!.py
natalie-o-perret/coding-challenges
9a242e0ec54488f59be82592822b31ff51af1633
[ "MIT" ]
1
2018-10-13T14:31:54.000Z
2018-10-13T14:31:54.000Z
HackerRank/6 - Python/Collections/7 - Piling Up!.py
natalie-o-perret/coding-challenges
9a242e0ec54488f59be82592822b31ff51af1633
[ "MIT" ]
82
2017-02-01T17:02:56.000Z
2020-02-01T11:45:58.000Z
from collections import deque T = int(input()) for t in range(T): n = int(input()) lengths = deque(map(int, input().split())) top = max(lengths) while len(lengths) > 0: left = lengths[0] right = lengths[-1] if (right >= left) and (right <= top): top = right lengths.pop() elif (left >= right) and (lef...
19.217391
43
0.595023
0
0
0
0
0
0
0
0
9
0.020362
29a40a64c821d23b2e28418293629df23986810c
6,343
bzl
Python
tools/bzl/deps.bzl
xshaun/compiler-programl
f90bcd84700d0f245c80440a3d5fd29370d2f973
[ "Apache-2.0" ]
null
null
null
tools/bzl/deps.bzl
xshaun/compiler-programl
f90bcd84700d0f245c80440a3d5fd29370d2f973
[ "Apache-2.0" ]
null
null
null
tools/bzl/deps.bzl
xshaun/compiler-programl
f90bcd84700d0f245c80440a3d5fd29370d2f973
[ "Apache-2.0" ]
null
null
null
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") def programl_deps(): http_archive( name="labm8", sha256="e4bc669322533e7615f689e5e8a810446d0c803be2e3b21e99a4e0135709755e", strip_prefix="labm8-b98301dec615465a6567bed4ec4131753d1f8b32", urls=[ "https://github.com/ChrisCummin...
35.836158
153
0.760366
0
0
0
0
0
0
0
0
4,485
0.707079
29a7a6484cb6277e0cdd34fa9a54d64187a477f7
1,082
py
Python
matrix_multiplication_evolution_example.py
bobbywlindsey/stokepy
e7f4ad0c27d8fc22129558db6ae0dbbab0627ace
[ "MIT" ]
9
2017-05-09T20:00:10.000Z
2020-07-02T18:00:22.000Z
matrix_multiplication_evolution_example.py
bobbywlindsey/stokepy
e7f4ad0c27d8fc22129558db6ae0dbbab0627ace
[ "MIT" ]
null
null
null
matrix_multiplication_evolution_example.py
bobbywlindsey/stokepy
e7f4ad0c27d8fc22129558db6ae0dbbab0627ace
[ "MIT" ]
2
2017-08-10T14:47:07.000Z
2019-01-25T02:37:34.000Z
import stokepy as sp import numpy as np # instantiate class fmc = sp.FiniteMarkovChain() # create initial distribution vector phi = np.array([0, 0, 1, 0, 0]) # generate Markov chain with no boundary conditions fmc.gen_from_params(phi, p = 0.6, num_states = 5, dim = 1) # apply boundary condition: absorbing, reflecti...
33.8125
76
0.750462
0
0
0
0
0
0
0
0
386
0.356747
29a7cf6d7a2997edf3ae4f28829f450e4f401145
1,225
py
Python
tests/__main__.py
nickswebsite/nickswebsite-serializer
2c131a04a4105afae439670f96b5b72bdfe65854
[ "Unlicense" ]
2
2017-09-26T16:38:36.000Z
2018-08-09T15:09:51.000Z
tests/__main__.py
nickswebsite/nickswebsite-serializer
2c131a04a4105afae439670f96b5b72bdfe65854
[ "Unlicense" ]
8
2015-02-20T13:16:11.000Z
2016-12-20T14:55:43.000Z
tests/__main__.py
nickswebsite/nickswebsite-serializer
2c131a04a4105afae439670f96b5b72bdfe65854
[ "Unlicense" ]
6
2015-05-20T21:26:40.000Z
2018-08-08T10:33:04.000Z
import doctest import sys import unittest import r2dto from tests.test_acceptance import AcceptanceTests from tests.test_base_serializer import BaseSerializerTests __all__ = ["doctest", "sys", "unittest", "r2dto", "AcceptanceTests", "BaseSerializerTests"] try: import pep8 except ImportError: print("WARNING: ...
26.06383
117
0.660408
0
0
0
0
0
0
0
0
440
0.359184
29a7fecfec58a37e5770387c0619949240d50800
10,697
py
Python
manager/jobs/jobs.py
jlbrewe/hub
c737669e6493ad17536eaa240bed3394b20c6b7d
[ "Apache-2.0" ]
30
2016-03-26T12:08:04.000Z
2021-12-24T14:48:32.000Z
manager/jobs/jobs.py
jlbrewe/hub
c737669e6493ad17536eaa240bed3394b20c6b7d
[ "Apache-2.0" ]
1,250
2016-03-23T04:56:50.000Z
2022-03-28T02:27:58.000Z
manager/jobs/jobs.py
jlbrewe/hub
c737669e6493ad17536eaa240bed3394b20c6b7d
[ "Apache-2.0" ]
11
2016-07-14T17:04:20.000Z
2021-07-01T16:19:09.000Z
""" Module that defines the interface between the `manager` (i.e Django) and the `broker` (i.e. RabbitMQ). Defines three functions involved in a job's lifecycle: - `dispatch_job` - send a job to a queue - `update_job` - update the status of a job by checking it's (intermediate) result - `check_job` - for a parent job...
37.013841
102
0.598299
0
0
0
0
0
0
0
0
4,179
0.39067
29a916eb7d2d8321665bd4ae8b4fed316f3bc30f
217
py
Python
sklearn-nlp/utils/data_utils.py
fmailhot/sklearn-nlp
3de76cb71fc85bc1231bdfa9cd78b5f98a0f14f7
[ "BSD-3-Clause" ]
null
null
null
sklearn-nlp/utils/data_utils.py
fmailhot/sklearn-nlp
3de76cb71fc85bc1231bdfa9cd78b5f98a0f14f7
[ "BSD-3-Clause" ]
null
null
null
sklearn-nlp/utils/data_utils.py
fmailhot/sklearn-nlp
3de76cb71fc85bc1231bdfa9cd78b5f98a0f14f7
[ "BSD-3-Clause" ]
null
null
null
"""Data loading/munging utilities. This will need to leverage a lot of existing stuff (e.g. numpy.genfromtxt)... """ import logging class DataLoader(object): def __init__(self, data_files=None): pass
15.5
50
0.700461
79
0.364055
0
0
0
0
0
0
117
0.539171
29aa089f836846e2e53f80e15d88b7aa8aa740d4
12,785
py
Python
assignment2/ptb-lm-loss-compute.py
adijo/ift6135-rnn
88ebcd621cea4042f5ada688f2452ce25d02b761
[ "Apache-2.0" ]
null
null
null
assignment2/ptb-lm-loss-compute.py
adijo/ift6135-rnn
88ebcd621cea4042f5ada688f2452ce25d02b761
[ "Apache-2.0" ]
null
null
null
assignment2/ptb-lm-loss-compute.py
adijo/ift6135-rnn
88ebcd621cea4042f5ada688f2452ce25d02b761
[ "Apache-2.0" ]
null
null
null
#!/bin/python # coding: utf-8 import argparse import time import collections import os import sys import torch import torch.nn from torch.autograd import Variable import torch.nn as nn import numpy as np from models_grad import RNN, GRU from models_grad import make_model as TRANSFORMER parser = argparse.ArgumentPars...
38.509036
141
0.630504
767
0.059992
630
0.049276
544
0.04255
0
0
5,452
0.426437
29aa6576959454006572496dfd5c5ae886a2c7c2
78
py
Python
Configuration/Eras/python/Modifier_run3_nanoAOD_devel_cff.py
malbouis/cmssw
16173a30d3f0c9ecc5419c474bb4d272c58b65c8
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
Configuration/Eras/python/Modifier_run3_nanoAOD_devel_cff.py
gartung/cmssw
3072dde3ce94dcd1791d778988198a44cde02162
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
Configuration/Eras/python/Modifier_run3_nanoAOD_devel_cff.py
gartung/cmssw
3072dde3ce94dcd1791d778988198a44cde02162
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms run3_nanoAOD_devel = cms.Modifier()
19.5
40
0.820513
0
0
0
0
0
0
0
0
0
0
29aa65c529d8ece9233ccff13d236d4bc2a7ac6d
4,892
py
Python
python-3.4.4.amd64/Lib/site-packages/idlexlib/extensions/ClearWindow.py
CSnap/photogate
208272ef39f4e86f40d431da2ca523e21701f789
[ "CC0-1.0" ]
2
2018-12-29T13:47:40.000Z
2018-12-29T13:47:49.000Z
Build/External/WPy3710/python-3.7.1/Lib/site-packages/idlexlib/extensions/ClearWindow.py
Heono/Turtle-IDE
aa42dd8f658284601b1a8d3ffb92f157de5022e2
[ "MIT" ]
1
2022-03-17T16:46:04.000Z
2022-03-17T16:46:04.000Z
Lib/site-packages/idlexlib/extensions/ClearWindow.py
JWerbrouck/RWTH_M1_Projekt
7ae63a2277361fa3273cf0677b297379482b8240
[ "bzip2-1.0.6" ]
null
null
null
# IDLEX EXTENSION ## """ ## Copyright(C) 2011-2012 The Board of Trustees of the University of Illinois. ## All rights reserved. ## ## Developed by: Roger D. Serwy ## University of Illinois ## ## Permission is hereby granted, free of charge, to any person obtaining ## a copy of thi...
33.737931
107
0.634914
2,360
0.48242
0
0
0
0
0
0
2,678
0.547424
29aa9a45456c6db0c06ce0852d48191f56cbe430
104
py
Python
src/hardware/GPIO_Map.py
lbowes/ascii-pong
00e5a5f4b33a360f14299e6fc33f862880e5fb8f
[ "MIT" ]
null
null
null
src/hardware/GPIO_Map.py
lbowes/ascii-pong
00e5a5f4b33a360f14299e6fc33f862880e5fb8f
[ "MIT" ]
null
null
null
src/hardware/GPIO_Map.py
lbowes/ascii-pong
00e5a5f4b33a360f14299e6fc33f862880e5fb8f
[ "MIT" ]
1
2021-03-10T17:22:00.000Z
2021-03-10T17:22:00.000Z
GPIO_CON_1_BUT_1 = 10 GPIO_CON_1_BUT_2 = 9 GPIO_CON_2_BUT_1 = 11 GPIO_CON_2_BUT_2 = 14 GPIO_BUZZER = 15
17.333333
21
0.807692
0
0
0
0
0
0
0
0
0
0
29ac9c03bbaa51b34d7d739bc8607fc9dd0af610
309
py
Python
main.py
yaojenkuo/stockflow
946609c2fcc1d602032672b57ae7119b4cadae8d
[ "MIT" ]
33
2015-03-08T00:43:37.000Z
2021-02-18T23:40:05.000Z
main.py
Asoul/stockflow
946609c2fcc1d602032672b57ae7119b4cadae8d
[ "MIT" ]
null
null
null
main.py
Asoul/stockflow
946609c2fcc1d602032672b57ae7119b4cadae8d
[ "MIT" ]
25
2015-03-07T15:57:23.000Z
2021-07-05T01:32:32.000Z
#!/bin/python # -*- coding: utf-8 -*- '''基本範例格式''' import sys from ctrls.Tester import Tester from models.exampleModel import exampleModel def main(): numbers = ['1314']# 股票編號 tester = Tester(numbers, exampleModel)# 使用測試元件 tester.run()# 模擬 if __name__ == '__main__': sys.exit(main())
17.166667
50
0.647249
0
0
0
0
0
0
0
0
118
0.342029
29ad5c4ad4e9d3f8e84eb705d16ecf7d414f2aac
4,025
py
Python
tests/test_preprocessing_evaluation_pipelines.py
CLARIN-PL/embeddings
49fb59b796475ca92bc262ec2bc6def1d89a10e0
[ "MIT" ]
33
2021-06-15T12:09:29.000Z
2022-03-26T14:34:16.000Z
tests/test_preprocessing_evaluation_pipelines.py
CLARIN-PL/embeddings
49fb59b796475ca92bc262ec2bc6def1d89a10e0
[ "MIT" ]
201
2021-03-23T05:50:23.000Z
2022-03-31T22:56:04.000Z
tests/test_preprocessing_evaluation_pipelines.py
CLARIN-PL/embeddings
49fb59b796475ca92bc262ec2bc6def1d89a10e0
[ "MIT" ]
null
null
null
from tempfile import TemporaryDirectory from typing import Any, Dict, Tuple import datasets import flair import numpy as np import pytest import torch from flair.data import Corpus from numpy import typing as nptyping from embeddings.data.data_loader import HuggingFaceDataLoader from embeddings.data.dataset import Hu...
31.692913
99
0.766957
0
0
0
0
1,907
0.473789
0
0
391
0.097143
29adb65f2ba3f76e7586b891107a612d5e21f5e3
672
py
Python
Exercises/Exercises_01/06_exercise.py
Szymon-Budziak/ASD_exercises_solutions
36ccbdae03a6c7e4ad141a2b7b01bef9353574ee
[ "MIT" ]
7
2021-12-28T23:38:42.000Z
2022-03-29T16:36:16.000Z
Exercises/Exercises_01/06_exercise.py
Szymon-Budziak/ASD_exercises_solutions
36ccbdae03a6c7e4ad141a2b7b01bef9353574ee
[ "MIT" ]
null
null
null
Exercises/Exercises_01/06_exercise.py
Szymon-Budziak/ASD_exercises_solutions
36ccbdae03a6c7e4ad141a2b7b01bef9353574ee
[ "MIT" ]
4
2021-06-29T20:21:52.000Z
2022-03-12T10:04:17.000Z
# Proszę zaimplementować funkcję, która otrzymuje na wejściu posortowaną niemalejąco tablicę A # o rozmiarze n oraz liczbę x i sprawdza, czy x występuje w A. Jeśli tak, to zwraca najmniejszy indeks, # pod którym x występuje. def binary_search(T, i, j, x): if i > j: return None c = (i + j) // 2 if ...
28
103
0.574405
0
0
0
0
0
0
0
0
235
0.343066
29ae59f7491eb508b08d30811e2ad409b6a63558
4,508
py
Python
lib/sentencers/RuleBasedSentencer.py
gucorpling/GumDrop
06e705adc5b78b048f199a3d6f50d911fed398e2
[ "Apache-2.0" ]
null
null
null
lib/sentencers/RuleBasedSentencer.py
gucorpling/GumDrop
06e705adc5b78b048f199a3d6f50d911fed398e2
[ "Apache-2.0" ]
null
null
null
lib/sentencers/RuleBasedSentencer.py
gucorpling/GumDrop
06e705adc5b78b048f199a3d6f50d911fed398e2
[ "Apache-2.0" ]
null
null
null
import re, io, os, sys from nltk import word_tokenize from argparse import ArgumentParser # Allow package level imports in module script_dir = os.path.dirname(os.path.realpath(__file__)) lib = os.path.abspath(script_dir + os.sep + "..") sys.path.append(lib) from conll_reader import space_join, text2conllu class RuleB...
37.882353
110
0.562999
2,036
0.42399
0
0
0
0
0
0
2,161
0.450021
29b0e35636d971fec8136ffc141e0dd2c3c239b5
2,878
py
Python
pyogp/lib/client/tests/test_appearance.py
grobertson/PyOGP.lib.Client
681492d95b9a901a79071b70c77bfdd55cdb02db
[ "Apache-2.0" ]
null
null
null
pyogp/lib/client/tests/test_appearance.py
grobertson/PyOGP.lib.Client
681492d95b9a901a79071b70c77bfdd55cdb02db
[ "Apache-2.0" ]
null
null
null
pyogp/lib/client/tests/test_appearance.py
grobertson/PyOGP.lib.Client
681492d95b9a901a79071b70c77bfdd55cdb02db
[ "Apache-2.0" ]
null
null
null
""" Contributors can be viewed at: http://svn.secondlife.com/svn/linden/projects/2008/pyogp/lib/base/trunk/CONTRIBUTORS.txt $LicenseInfo:firstyear=2008&license=apachev2$ Copyright 2009, Linden Research, Inc. Licensed under the Apache License, Version 2.0. You may obtain a copy of the License at: http://www.apa...
32.704545
89
0.723767
1,820
0.632384
0
0
0
0
0
0
679
0.235928
29b119e99bde0832d57541650801a62ec77c42f6
1,017
py
Python
jisho_api/word/cfg.py
finia2NA/jisho-api
c80beb44a7b70f24e799cd2a7d579356c58f8625
[ "Apache-2.0" ]
26
2021-10-05T03:54:33.000Z
2022-03-26T10:46:31.000Z
jisho_api/word/cfg.py
finia2NA/jisho-api
c80beb44a7b70f24e799cd2a7d579356c58f8625
[ "Apache-2.0" ]
7
2021-11-22T00:43:30.000Z
2022-01-12T00:34:22.000Z
jisho_api/word/cfg.py
finia2NA/jisho-api
c80beb44a7b70f24e799cd2a7d579356c58f8625
[ "Apache-2.0" ]
4
2021-12-08T13:41:07.000Z
2022-03-25T20:54:07.000Z
from enum import Enum from typing import List, Optional from pydantic import BaseModel, HttpUrl class Sense(BaseModel): class Link(BaseModel): text: str url: HttpUrl class Source(BaseModel): language: str english_definitions: List[str] parts_of_speech: List[Optional[str]] ...
19.941176
60
0.647984
911
0.895772
50
0.049164
104
0.102262
0
0
106
0.104228
29b134fd22e0ec5acfe0ea6bb8fddd3eb700cbd7
1,018
py
Python
tests/validators/test_symbol_required.py
Ennkua/wtforms
c08ec7840c5a78ae8784139f7ee70f9627cf1ab8
[ "BSD-3-Clause" ]
null
null
null
tests/validators/test_symbol_required.py
Ennkua/wtforms
c08ec7840c5a78ae8784139f7ee70f9627cf1ab8
[ "BSD-3-Clause" ]
null
null
null
tests/validators/test_symbol_required.py
Ennkua/wtforms
c08ec7840c5a78ae8784139f7ee70f9627cf1ab8
[ "BSD-3-Clause" ]
null
null
null
import pytest from wtforms.validators import symbol_required from wtforms.validators import ValidationError @pytest.mark.parametrize("min_v", [2, 3, 4, 5, 6]) def test_correct_symbol_required(min_v, dummy_form, dummy_field): """ It should pass for the string with correct count of required symbol. """ ...
28.277778
79
0.674853
0
0
0
0
903
0.887033
0
0
298
0.292731
29b245fab6ed28cf6c359207c9c4af61c43d22d1
102
py
Python
ch7/exercises/parrot.py
hewittaj/python_crash_course
52a3341eec79c2eb6c7f9f1cb7f0806c3b2d61aa
[ "MIT" ]
null
null
null
ch7/exercises/parrot.py
hewittaj/python_crash_course
52a3341eec79c2eb6c7f9f1cb7f0806c3b2d61aa
[ "MIT" ]
null
null
null
ch7/exercises/parrot.py
hewittaj/python_crash_course
52a3341eec79c2eb6c7f9f1cb7f0806c3b2d61aa
[ "MIT" ]
null
null
null
# using the input() function message = input("Tell me something, and I'll repeat it!") print(message)
25.5
57
0.72549
0
0
0
0
0
0
0
0
68
0.666667
29b2e2e2b5e0b11ab0a21e7a356d8c2fabd4abe1
1,028
py
Python
src/Nodes/WhileOp.py
gabrielzezze/z-lang
89be471fd5618a9d1c9e3eb955608cdc888511c2
[ "MIT" ]
null
null
null
src/Nodes/WhileOp.py
gabrielzezze/z-lang
89be471fd5618a9d1c9e3eb955608cdc888511c2
[ "MIT" ]
null
null
null
src/Nodes/WhileOp.py
gabrielzezze/z-lang
89be471fd5618a9d1c9e3eb955608cdc888511c2
[ "MIT" ]
null
null
null
from src.Node import Node from src.Nodes import Block from src.SymbolTable import SymbolTable class WhileOp(Node): def __init__(self, child: Block, condition: Node): self.condition = condition self.child = child super().__init__( value=condition, children=[child, con...
35.448276
82
0.694553
932
0.906615
0
0
0
0
0
0
50
0.048638
29b5b93fcc93149c869189a925d3bab4277eed76
748
py
Python
googledevices/cli/commands/info.py
vlebourl/googledevices
5d8604ad48d94170127d1da9f01106a4d3bc4845
[ "MIT" ]
19
2018-11-24T03:09:59.000Z
2021-02-11T09:20:11.000Z
googledevices/cli/commands/info.py
vlebourl/googledevices
5d8604ad48d94170127d1da9f01106a4d3bc4845
[ "MIT" ]
13
2018-11-24T13:16:38.000Z
2022-02-22T17:27:08.000Z
googledevices/cli/commands/info.py
vlebourl/googledevices
5d8604ad48d94170127d1da9f01106a4d3bc4845
[ "MIT" ]
4
2018-11-26T16:14:42.000Z
2021-10-20T14:20:40.000Z
"""Get information about this package.""" def info(system): """Get information about this package.""" import googledevices.utils.const as package print("Projectname: ", package.NAME) print("Version: ", package.VERSION) print("GitHub link: ", package.URLS.get("github")) print("PyPi link...
32.521739
81
0.593583
0
0
0
0
0
0
0
0
261
0.34893
29b61776c27c79d1d7092a2b9bd2ee11a295186e
251
py
Python
Check_if_subarray_with_0_sum_is_exists_or_not.py
KiranPesarlanka9/data-structures-and-algorithms-Problems
557e3ca7f04b37fa5a709295f455b6338815486e
[ "MIT" ]
1
2019-11-28T12:21:51.000Z
2019-11-28T12:21:51.000Z
Check_if_subarray_with_0_sum_is_exists_or_not.py
KiranPesarlanka9/data-structures-and-algorithms-Problems
557e3ca7f04b37fa5a709295f455b6338815486e
[ "MIT" ]
null
null
null
Check_if_subarray_with_0_sum_is_exists_or_not.py
KiranPesarlanka9/data-structures-and-algorithms-Problems
557e3ca7f04b37fa5a709295f455b6338815486e
[ "MIT" ]
1
2019-12-06T09:18:41.000Z
2019-12-06T09:18:41.000Z
def check(arr): sum_log = set() _sum = 0 for i in xrange(len(arr)): if _sum in sum_log: return True _sum += 1 sum_log.add(_sum) return False arr = [1, 0, -2, 5, -4, 1, 9, -2] print(check(arr))
15.6875
34
0.49004
0
0
0
0
0
0
0
0
0
0
29b90065070b5025868557255475b9c600fb78b4
1,588
py
Python
scripts/join_completed.py
shannonfenn/data-tools
c730c2f88b8443f3c84a41467a40b2cc59dd8e87
[ "MIT" ]
null
null
null
scripts/join_completed.py
shannonfenn/data-tools
c730c2f88b8443f3c84a41467a40b2cc59dd8e87
[ "MIT" ]
null
null
null
scripts/join_completed.py
shannonfenn/data-tools
c730c2f88b8443f3c84a41467a40b2cc59dd8e87
[ "MIT" ]
null
null
null
#! /usr/bin/env python import argparse import pandas as pd import numpy as np def check_dataframe(filename, data_frame, key_columns): if any(col not in data_frame for col in key_columns): raise ValueError('Key columns not in {}.'.format(filename)) nonzero = np.count_nonzero(data_frame['trg_error']) ...
31.137255
72
0.632872
0
0
0
0
0
0
0
0
323
0.203401
29b95a7e7b6ab6d04a7196faa187fadcabb8c0e4
9,859
py
Python
pet/preprocessor.py
YerongLi/pet
8323080e9033c38c234431aecacad154ed477472
[ "Apache-2.0" ]
null
null
null
pet/preprocessor.py
YerongLi/pet
8323080e9033c38c234431aecacad154ed477472
[ "Apache-2.0" ]
null
null
null
pet/preprocessor.py
YerongLi/pet
8323080e9033c38c234431aecacad154ed477472
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under th...
48.566502
120
0.674713
9,061
0.919059
0
0
264
0.026778
0
0
2,108
0.213815
29ba20d9bd3f8cb7d67a41fe698ce4a315481ebd
21
py
Python
test/__init__.py
mzappitello/http_monitor
6a20e41bdbab480090de3c8d760bc7c425b9c899
[ "MIT" ]
null
null
null
test/__init__.py
mzappitello/http_monitor
6a20e41bdbab480090de3c8d760bc7c425b9c899
[ "MIT" ]
null
null
null
test/__init__.py
mzappitello/http_monitor
6a20e41bdbab480090de3c8d760bc7c425b9c899
[ "MIT" ]
null
null
null
# test __init__ file
10.5
20
0.761905
0
0
0
0
0
0
0
0
20
0.952381
29ba94b0967bd5341e441dd394da5100f547c093
3,542
py
Python
xbrl/const.py
blinkace/pxp
9155103dc166674137bd0e2fddb609ca44875761
[ "MIT" ]
1
2022-01-27T14:53:23.000Z
2022-01-27T14:53:23.000Z
xbrl/const.py
blinkace/pxp
9155103dc166674137bd0e2fddb609ca44875761
[ "MIT" ]
null
null
null
xbrl/const.py
blinkace/pxp
9155103dc166674137bd0e2fddb609ca44875761
[ "MIT" ]
null
null
null
import re class NS: xs = 'http://www.w3.org/2001/XMLSchema' link = 'http://www.xbrl.org/2003/linkbase' xlink = "http://www.w3.org/1999/xlink" xbrli = "http://www.xbrl.org/2003/instance" xbrldi = "http://xbrl.org/2006/xbrldi" xbrldie = "http://xbrl.org/2005/xbrldi/errors" xbrldt = "http://xb...
37.680851
78
0.660926
2,469
0.697064
0
0
0
0
0
0
1,863
0.525974
29bcfd631b01019c349e3bbedaeeb2cbda9283d5
2,832
py
Python
src/cogs/xpevent.py
nsde/lhxp
ef6d1004c704c1156b9b01172e4748634b31b541
[ "MIT" ]
2
2021-12-18T11:44:31.000Z
2022-01-07T23:27:00.000Z
src/cogs/xpevent.py
nsde/lhxp
ef6d1004c704c1156b9b01172e4748634b31b541
[ "MIT" ]
null
null
null
src/cogs/xpevent.py
nsde/lhxp
ef6d1004c704c1156b9b01172e4748634b31b541
[ "MIT" ]
null
null
null
try: from .helpers import config, management, xp, spam except ImportError: import helpers.config, helpers.management, helpers.xp, helpers.spam import time import discord from discord.ext import commands from discord.commands import slash_command class XPEvent(commands.Cog): def __init__(self, client): ...
32.551724
92
0.628884
2,519
0.889477
0
0
342
0.120763
2,377
0.839336
252
0.088983
29be043b68e9b14821af31619772ea7a817c2a7b
2,199
py
Python
utilities/utils.py
jluech/PGAcloud_Manager
9008fac26f9d762b2ab527034e46d467b5b0c26f
[ "MIT" ]
null
null
null
utilities/utils.py
jluech/PGAcloud_Manager
9008fac26f9d762b2ab527034e46d467b5b0c26f
[ "MIT" ]
null
null
null
utilities/utils.py
jluech/PGAcloud_Manager
9008fac26f9d762b2ab527034e46d467b5b0c26f
[ "MIT" ]
null
null
null
import logging import os import subprocess import sys import yaml files_dir = "" # --- General util commands --- def execute_command( command, working_directory, environment_variables, executor, logger=logging, livestream=False ): logger_prefix = "" if executo...
23.393617
76
0.637108
0
0
0
0
0
0
0
0
169
0.076853
29bfe3374dd25a06358a1da66a585cb725eee7be
578
py
Python
pyscf/nao/m_color.py
KMCzajkowski/pyscf
e8af41d910cc0d3963655120c0b689590ad978e7
[ "BSD-2-Clause" ]
null
null
null
pyscf/nao/m_color.py
KMCzajkowski/pyscf
e8af41d910cc0d3963655120c0b689590ad978e7
[ "BSD-2-Clause" ]
null
null
null
pyscf/nao/m_color.py
KMCzajkowski/pyscf
e8af41d910cc0d3963655120c0b689590ad978e7
[ "BSD-2-Clause" ]
null
null
null
class color: import os T = os.getenv('TERM') if ( T=='cygwin' or T=='mingw' ) : HEADER = '\033[01;35m' BLUE = '\033[01;34m' GREEN = '\033[01;32m' WARNING = '\033[01;33m' FAIL = '\033[01;31m' RED = FAIL ENDC = '\033[0m' else : HEADER = '\033[95m' BLUE = '\033[94m' GREEN = ...
19.931034
36
0.49308
577
0.99827
0
0
0
0
0
0
168
0.290657
29c079a0baef167378f06f75800a84013625dfce
7,958
py
Python
Scripts Daily/재무정보수집.py
oms1226/msbot
4c141502ef6899f9e4bb3fe8e03c7eb866487d5e
[ "MIT" ]
1
2020-05-01T07:50:49.000Z
2020-05-01T07:50:49.000Z
Scripts Daily/재무정보수집.py
oms1226/msbot
4c141502ef6899f9e4bb3fe8e03c7eb866487d5e
[ "MIT" ]
1
2021-06-01T22:36:14.000Z
2021-06-01T22:36:14.000Z
Scripts Daily/재무정보수집.py
oms1226/msbot
4c141502ef6899f9e4bb3fe8e03c7eb866487d5e
[ "MIT" ]
8
2019-10-26T03:30:53.000Z
2022-03-26T08:06:25.000Z
# -*- coding: utf-8 -*- import re import calendar import datetime, time from datetime import timedelta import urllib.request import requests, json from http.cookiejar import CookieJar from bs4 import BeautifulSoup import numpy as np import pandas as pd from pandas import DataFrame import pandas.io.sql as pdsql from ma...
37.895238
199
0.539834
0
0
0
0
0
0
0
0
2,680
0.298242
29c2e1b7e5523be19b17e937a85dde93fdb45fab
24,237
py
Python
apps/recurring_donations/management/commands/process_monthly_donations.py
gannetson/sportschooldeopenlucht
0c78e5a95b22a963244112e478119ba60c572141
[ "BSD-3-Clause" ]
1
2019-01-19T06:58:39.000Z
2019-01-19T06:58:39.000Z
apps/recurring_donations/management/commands/process_monthly_donations.py
gannetson/sportschooldeopenlucht
0c78e5a95b22a963244112e478119ba60c572141
[ "BSD-3-Clause" ]
null
null
null
apps/recurring_donations/management/commands/process_monthly_donations.py
gannetson/sportschooldeopenlucht
0c78e5a95b22a963244112e478119ba60c572141
[ "BSD-3-Clause" ]
null
null
null
import csv import os import math import logging import traceback import requests import sys from collections import namedtuple from optparse import make_option from django.conf import settings from django.contrib.contenttypes.models import ContentType from django.core.management.base import BaseCommand from django.db i...
49.564417
171
0.67562
2,449
0.101044
0
0
0
0
0
0
6,742
0.27817
29c3750914f24305e5c021af40b18b30bd0ff4d0
5,387
py
Python
information_extraction/Preprocessor.py
shatha2014/Fashion_Rec
5f4dd4f1c7c2d18a9364b02f1798125c259e6598
[ "BSD-2-Clause" ]
11
2018-08-30T10:52:35.000Z
2021-11-08T06:04:22.000Z
information_extraction/Preprocessor.py
shatha2014/Fashion_Rec
5f4dd4f1c7c2d18a9364b02f1798125c259e6598
[ "BSD-2-Clause" ]
1
2020-09-08T19:53:48.000Z
2021-11-08T13:29:42.000Z
information_extraction/Preprocessor.py
shatha2014/Fashion_Rec
5f4dd4f1c7c2d18a9364b02f1798125c259e6598
[ "BSD-2-Clause" ]
8
2018-08-30T10:52:37.000Z
2022-02-20T09:13:40.000Z
# Author: Kim Hammar <kimham@kth.se> KTH 2018 from nltk.corpus import stopwords from nltk.stem import WordNetLemmatizer from nltk.tokenize import TweetTokenizer from nltk.tag.perceptron import PerceptronTagger import nltk import emoji nltk.download('averaged_perceptron_tagger') nltk.download('stopwords') nltk.download...
45.652542
131
0.667347
5,053
0.937999
0
0
0
0
0
0
1,103
0.204752
29c3fd69e8b7142e1bb7b65ea92363c60fad4735
47
py
Python
searl/__init__.py
automl/SEARL
bac75d8c9540ff4f0b5b340c612ec384b189bd84
[ "Apache-2.0" ]
25
2021-03-10T09:10:53.000Z
2022-03-28T09:11:16.000Z
searl/__init__.py
automl/SEARL
bac75d8c9540ff4f0b5b340c612ec384b189bd84
[ "Apache-2.0" ]
null
null
null
searl/__init__.py
automl/SEARL
bac75d8c9540ff4f0b5b340c612ec384b189bd84
[ "Apache-2.0" ]
4
2021-03-17T15:00:02.000Z
2021-07-24T13:35:39.000Z
from .utils.handler.config import ConfigHandler
47
47
0.87234
0
0
0
0
0
0
0
0
0
0
29c4a45e5143815cb47c3724fcaecb30960fac72
475
py
Python
src/kotify/fabric/procfile.py
kotify/kotify.fabric
5ce50a38210217f643c81438b53466b60fc16cb1
[ "MIT" ]
null
null
null
src/kotify/fabric/procfile.py
kotify/kotify.fabric
5ce50a38210217f643c81438b53466b60fc16cb1
[ "MIT" ]
null
null
null
src/kotify/fabric/procfile.py
kotify/kotify.fabric
5ce50a38210217f643c81438b53466b60fc16cb1
[ "MIT" ]
null
null
null
from ._core import Collection, local, task @task(name="main", default=True) def start_main(c): local(f"overmind start -l {','.join(c.start.main + c.start.minimal)}", pty=True) @task(name="minimal") def start_minimal(c): local(f"overmind start -l {','.join(c.start.minimal)}", pty=True) @task(name="all") de...
20.652174
84
0.692632
0
0
0
0
322
0.677895
0
0
154
0.324211
29c698fcf98da3c177cd1347dd70acef351370fb
888
py
Python
backend/src/feature_extraction/rolloff.py
AnXi-TieGuanYin-Tea/MusicGenreClassifiaction
a0b9f621b0a5d2451180b12af7681756c5abd138
[ "MIT" ]
7
2018-05-01T19:39:17.000Z
2020-01-02T17:11:05.000Z
backend/src/feature_extraction/rolloff.py
AnXi-TieGuanYin-Tea/MusicGenreClassifiaction
a0b9f621b0a5d2451180b12af7681756c5abd138
[ "MIT" ]
10
2018-12-10T22:16:43.000Z
2020-08-27T18:23:45.000Z
backend/src/feature_extraction/rolloff.py
AnXi-TieGuanYin-Tea/MusicGenreClassifiaction
a0b9f621b0a5d2451180b12af7681756c5abd138
[ "MIT" ]
2
2021-04-16T08:20:17.000Z
2022-01-06T14:06:44.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Mar 17 23:14:28 2018 @author: Akihiro Inui """ def rolloff(input_power_spectrum: list, param: float=0.85) -> float: """ Spectral Rolloff :param input_power_spectrum: power spectrum in list :param param: threadshold for roll off :...
28.645161
83
0.667793
0
0
0
0
0
0
0
0
448
0.504505
29c6aa30b18efa3ef99f8685007919d2bfcf3019
112
py
Python
webStorm-APICloud/python_tools/Tools/Scripts/2to3.py
zzr925028429/androidyianyan
8967fdba92473e8e65ee222515dfc54cdae5bb0b
[ "MIT" ]
null
null
null
webStorm-APICloud/python_tools/Tools/Scripts/2to3.py
zzr925028429/androidyianyan
8967fdba92473e8e65ee222515dfc54cdae5bb0b
[ "MIT" ]
null
null
null
webStorm-APICloud/python_tools/Tools/Scripts/2to3.py
zzr925028429/androidyianyan
8967fdba92473e8e65ee222515dfc54cdae5bb0b
[ "MIT" ]
null
null
null
#!/usr/bin/env python from lib2to3.main import main import sys import os sys.exit(main("lib2to3.fixes"))
16
32
0.714286
0
0
0
0
0
0
0
0
37
0.330357
29c79f364e1d41c68e19d472b3c1d55bd0b5b9e5
1,070
py
Python
afterglow_core/schemas/api/v1/jobs/field_cal_job.py
SkynetRTN/afterglow-access-server
3d8d62f622577fdd1ae7b0076cb536251f7bf0cd
[ "Apache-2.0" ]
2
2021-05-24T15:12:07.000Z
2022-02-17T19:58:16.000Z
afterglow_core/schemas/api/v1/jobs/field_cal_job.py
SkynetRTN/afterglow-access-server
3d8d62f622577fdd1ae7b0076cb536251f7bf0cd
[ "Apache-2.0" ]
1
2022-02-27T03:01:06.000Z
2022-02-27T03:01:06.000Z
afterglow_core/schemas/api/v1/jobs/field_cal_job.py
SkynetRTN/afterglow-access-server
3d8d62f622577fdd1ae7b0076cb536251f7bf0cd
[ "Apache-2.0" ]
2
2021-06-08T18:16:40.000Z
2021-07-09T14:19:49.000Z
""" Afterglow Core: photometric calibration job schemas """ from typing import List as TList from marshmallow.fields import Integer, List, Nested from ..job import JobSchema, JobResultSchema from ..field_cal import FieldCalSchema, FieldCalResultSchema from ..photometry import PhotSettingsSchema from .source_extracti...
31.470588
72
0.774766
638
0.596262
0
0
0
0
0
0
114
0.106542
29c7ff7b0f45d2d5b8a537d89fbcc9e55ee8907c
2,692
py
Python
Python/addRow.py
alexwu2021/practice
ff786d4d16afdef3e031002d22b58a976c8ed16b
[ "MIT" ]
null
null
null
Python/addRow.py
alexwu2021/practice
ff786d4d16afdef3e031002d22b58a976c8ed16b
[ "MIT" ]
1
2021-11-22T05:54:33.000Z
2021-11-22T05:54:33.000Z
Python/addRow.py
alexwu2021/practice
ff786d4d16afdef3e031002d22b58a976c8ed16b
[ "MIT" ]
null
null
null
#import unittest def addRow(r, d, v): dmo = [] getHeightAndMore(r, 0, dmo, d) if len(dmo) <= 0: print ('no way to add row for no d-1 nodes found') return print('dmo has %d' % len(dmo)) print('dmo: %s' % ','.join([str(x.val) for x in dmo])) for n in dmo: left, right = N...
23.206897
154
0.556092
208
0.077266
0
0
0
0
0
0
389
0.144502
29c8162014a517194fd9f41815841a6c8677d84e
4,458
py
Python
src/genie/libs/parser/iosxe/tests/ShowIpInterfaceBrief/cli/equal/golden_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
204
2018-06-27T00:55:27.000Z
2022-03-06T21:12:18.000Z
src/genie/libs/parser/iosxe/tests/ShowIpInterfaceBrief/cli/equal/golden_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
468
2018-06-19T00:33:18.000Z
2022-03-31T23:23:35.000Z
src/genie/libs/parser/iosxe/tests/ShowIpInterfaceBrief/cli/equal/golden_expected.py
balmasea/genieparser
d1e71a96dfb081e0a8591707b9d4872decd5d9d3
[ "Apache-2.0" ]
309
2019-01-16T20:21:07.000Z
2022-03-30T12:56:41.000Z
expected_output = { "interface": { "GigabitEthernet0/0/0": { "interface_is_ok": "YES", "ip_address": "10.105.44.23", "method": "other", "protocol": "up", "status": "up" }, "GigabitEthernet0/0/1": { "interface_is_ok": "YE...
29.328947
45
0.394796
0
0
0
0
0
0
0
0
2,281
0.511664
29c8dfdb3c65c5e9847d8ee2d3b8fe9a5f54498a
1,000
py
Python
ssh.py
telkomdev/keris
8451f3d69df174e33003e90e4fd70f602412412a
[ "MIT" ]
1
2020-02-11T16:10:11.000Z
2020-02-11T16:10:11.000Z
ssh.py
telkomdev/keris
8451f3d69df174e33003e90e4fd70f602412412a
[ "MIT" ]
null
null
null
ssh.py
telkomdev/keris
8451f3d69df174e33003e90e4fd70f602412412a
[ "MIT" ]
null
null
null
from common import is_connection_ok import paramiko """ execute_ssh(host, port, username, password, cmd) """ def execute_ssh(host, username, password, cmd, port='22'): if is_connection_ok(): try: ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) ...
35.714286
143
0.601
0
0
0
0
0
0
0
0
209
0.209
29ca0af350d167975f57568f8d8d244098802dd2
376
py
Python
novel/spider/config.py
rrcgat/novel-info
fcda24f9f6da5a4755e942a520045b7b5a53bef4
[ "MIT" ]
4
2019-04-02T09:44:18.000Z
2020-04-15T11:47:49.000Z
novel/spider/config.py
rrcgat/novel-info
fcda24f9f6da5a4755e942a520045b7b5a53bef4
[ "MIT" ]
1
2019-03-04T17:20:39.000Z
2019-03-04T17:48:18.000Z
novel/spider/config.py
rrcgat/novel-info
fcda24f9f6da5a4755e942a520045b7b5a53bef4
[ "MIT" ]
1
2020-04-15T11:47:50.000Z
2020-04-15T11:47:50.000Z
''' 请求头 ''' HEADERS_IPHONE = {'user-agent': ( 'Mozilla/5.0 ' '(iPhone; CPU iPhone OS 6_0 like Mac OS X) ' 'AppleWebKit/536.26 (KHTML, like Gecko) ' 'Version/6.0 Mobile/10A5376e Safari/8536.25' )} HEADERS_CHROME = {'user-agent': ( 'Mozilla/5.0 (X11; Linux x86_64) ' 'AppleWebKit/537.36 (KHTML, l...
22.117647
48
0.617021
0
0
0
0
0
0
0
0
294
0.769634
29cb4ed39bb073f7561e68074f27a72bbc5b7c7c
7,167
py
Python
tests/test_editor_common.py
jpfxgood/ped
f753ca27e4462c321ed28f00e1ef47fbde62990e
[ "MIT" ]
null
null
null
tests/test_editor_common.py
jpfxgood/ped
f753ca27e4462c321ed28f00e1ef47fbde62990e
[ "MIT" ]
21
2020-07-03T13:14:15.000Z
2020-07-14T14:27:43.000Z
tests/test_editor_common.py
jpfxgood/ped
f753ca27e4462c321ed28f00e1ef47fbde62990e
[ "MIT" ]
null
null
null
from ped_core import editor_common import io import pprint import os import curses import curses.ascii import time import re from ped_core import keymap from ped_core import keytab from ped_core import clipboard from ped_test_util import read_str, match_attr, undo_all, window_pos, play_macro, validate_mark, validate_sc...
40.954286
205
0.599972
0
0
0
0
0
0
0
0
435
0.060695
29cc2793a730a906cbbcc655e8b03fef329faada
227
py
Python
rsmtpd/response/smtp_501.py
alfmel/rsmtpd
10900876b1f83d6c141070a413f81edf3c98ac51
[ "Apache-2.0" ]
1
2017-06-12T04:10:07.000Z
2017-06-12T04:10:07.000Z
rsmtpd/response/smtp_501.py
alfmel/rsmtpd
10900876b1f83d6c141070a413f81edf3c98ac51
[ "Apache-2.0" ]
null
null
null
rsmtpd/response/smtp_501.py
alfmel/rsmtpd
10900876b1f83d6c141070a413f81edf3c98ac51
[ "Apache-2.0" ]
null
null
null
from rsmtpd.response.action import OK from rsmtpd.response.base_response import BaseResponse class SmtpResponse501(BaseResponse): _smtp_code = 501 _message = "Syntax error in parameters or arguments" _action = OK
25.222222
56
0.779736
131
0.577093
0
0
0
0
0
0
41
0.180617
29cd522f460b996800fe0d9f2739255f875ef960
14,116
py
Python
qatrack/qatrack_core/tests/test_core.py
crcrewso/qatrackplus
b9da3bc542d9e3eca8b7291bb631d1c7255d528e
[ "MIT" ]
20
2021-03-11T18:37:32.000Z
2022-03-23T19:38:07.000Z
qatrack/qatrack_core/tests/test_core.py
crcrewso/qatrackplus
b9da3bc542d9e3eca8b7291bb631d1c7255d528e
[ "MIT" ]
75
2021-02-12T02:37:33.000Z
2022-03-29T20:56:16.000Z
qatrack/qatrack_core/tests/test_core.py
crcrewso/qatrackplus
b9da3bc542d9e3eca8b7291bb631d1c7255d528e
[ "MIT" ]
5
2021-04-07T15:46:53.000Z
2021-09-18T16:55:00.000Z
import datetime import re from django.contrib.sites.models import Site from django.core import mail from django.test import TestCase from django.urls import reverse from django.utils import timezone import numpy as np import pandas as pd import pytz from qatrack.qa.tests import utils from qatrack.qatrack_core.seriali...
45.980456
110
0.63637
13,676
0.96883
0
0
0
0
0
0
1,767
0.125177
29cdd1a0441cda0528b31705900a6564e1af5682
179
py
Python
app/blog/urls.py
AjayHao/AtThirty
96b2ce00be8f3ed07ee5e6e2b1ca13ab25e9521d
[ "MIT" ]
null
null
null
app/blog/urls.py
AjayHao/AtThirty
96b2ce00be8f3ed07ee5e6e2b1ca13ab25e9521d
[ "MIT" ]
null
null
null
app/blog/urls.py
AjayHao/AtThirty
96b2ce00be8f3ed07ee5e6e2b1ca13ab25e9521d
[ "MIT" ]
null
null
null
from django.conf.urls import patterns, url from app.blog import views as blog_views urlpatterns = [ #django url url(r'^$', blog_views.index, name='blog_index'), ]
16.272727
52
0.681564
0
0
0
0
0
0
0
0
28
0.156425
29cde250e9d497ca3e7e9d2169fa12a67aa2c621
752
py
Python
core/recc/system/environ.py
bogonets/answer
57f892a9841980bcbc35fa1e27521b34cd94bc25
[ "MIT" ]
3
2021-06-20T02:24:10.000Z
2022-01-26T23:55:33.000Z
core/recc/system/environ.py
bogonets/answer
57f892a9841980bcbc35fa1e27521b34cd94bc25
[ "MIT" ]
null
null
null
core/recc/system/environ.py
bogonets/answer
57f892a9841980bcbc35fa1e27521b34cd94bc25
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from os import environ from typing import Optional, Dict, Any, Type def get_os_envs_dict() -> Dict[str, str]: return {k: str(environ.get(k)) for k in environ if environ} def exchange_env(key: str, exchange: Optional[str]) -> Optional[str]: result = environ.get(key) if result is ...
23.5
69
0.655585
0
0
0
0
0
0
0
0
23
0.030585
29cf16e7358b9161ab9d90ae6bb97701b983418a
436
py
Python
InteractiveProgramming/assignment3.3.py
mr-ice/pipython
ea27af520946cb710cb717815be625489fc8a1a3
[ "MIT" ]
null
null
null
InteractiveProgramming/assignment3.3.py
mr-ice/pipython
ea27af520946cb710cb717815be625489fc8a1a3
[ "MIT" ]
null
null
null
InteractiveProgramming/assignment3.3.py
mr-ice/pipython
ea27af520946cb710cb717815be625489fc8a1a3
[ "MIT" ]
null
null
null
try: s = raw_input("Enter score between 0.0 and 1.0: ") score = float(s) if score < 0 or score > 1: raise Exception except ValueError: print "You didn't even enter a number" except: print "Not a possible score." else: if score >= 0.9: print "A" elif score >= 0.8: prin...
20.761905
54
0.529817
0
0
0
0
0
0
0
0
105
0.240826
29cf80f6c6965927720d1b295a0c8b626681599d
254
py
Python
Store/robot-test/say.py
Quanta-Robotics/Robot-Blueberry
7b7e77e09ac5e9ec5afd947e0db1ecc8773e56da
[ "MIT" ]
25
2021-06-08T07:09:30.000Z
2021-12-30T06:28:35.000Z
Store/robot-test/say.py
ICT-CoU/Robot-Blueberry
d19fd1be037df9d67de64df57a87006d74cd6c43
[ "MIT" ]
2
2021-05-23T12:54:51.000Z
2021-06-07T17:47:56.000Z
Store/robot-test/say.py
ICT-CoU/Robot-Blueberry
d19fd1be037df9d67de64df57a87006d74cd6c43
[ "MIT" ]
14
2021-06-08T13:02:28.000Z
2021-12-30T20:07:18.000Z
import pyttsx3 engine = pyttsx3.init() engine.setProperty('rate', 150) voices = engine.getProperty('voices') engine.setProperty("voice", 'english_rp+f4') def talk(text): engine.say(text) engine.runAndWait() talk("My name is robot leena")
15.875
44
0.704724
0
0
0
0
0
0
0
0
60
0.23622
29d39c3e482269db7c4ce7b3f24a9b213141989d
141
py
Python
api/server/utils/logger.py
ktolstikhin/vision-service
b87f10f5ec3d22b76c06a0e6c0105fd823e60c39
[ "MIT" ]
null
null
null
api/server/utils/logger.py
ktolstikhin/vision-service
b87f10f5ec3d22b76c06a0e6c0105fd823e60c39
[ "MIT" ]
null
null
null
api/server/utils/logger.py
ktolstikhin/vision-service
b87f10f5ec3d22b76c06a0e6c0105fd823e60c39
[ "MIT" ]
null
null
null
import logging def initialize(app): level = logging.DEBUG if app.config.get('DEBUG') else logging.INFO app.logger.setLevel(level)
17.625
70
0.723404
0
0
0
0
0
0
0
0
7
0.049645
29d3aa7dc92ae861ca049b62d573cabdb669506d
1,579
py
Python
tests/integration/test_dug_utils.py
helxplatform/roger
60c1c1198c41949804692217c74848e2aa8b9ea2
[ "MIT" ]
null
null
null
tests/integration/test_dug_utils.py
helxplatform/roger
60c1c1198c41949804692217c74848e2aa8b9ea2
[ "MIT" ]
7
2021-04-08T12:17:27.000Z
2022-02-08T23:12:32.000Z
tests/integration/test_dug_utils.py
helxplatform/roger
60c1c1198c41949804692217c74848e2aa8b9ea2
[ "MIT" ]
3
2020-12-07T20:49:43.000Z
2021-06-12T19:49:43.000Z
import tempfile from pathlib import Path import pytest from dug_helpers.dug_utils import FileFetcher, get_topmed_files, get_dbgap_files from roger.Config import config def test_fetch_network_file(): filename = "README.md" with tempfile.TemporaryDirectory() as tmp_dir: fetch1 = FileFetcher( ...
26.316667
80
0.640912
0
0
0
0
0
0
0
0
186
0.117796
29d584e58250f68d3fe99344f92ca1d026fcfaa6
6,915
py
Python
tests/bean_test.py
samuelchen/truepy
f1fd86ffccf7c3b2eee4cd4ced9436ff832d257e
[ "OpenSSL" ]
40
2015-08-04T11:01:33.000Z
2022-01-17T10:45:18.000Z
tests/bean_test.py
samuelchen/truepy
f1fd86ffccf7c3b2eee4cd4ced9436ff832d257e
[ "OpenSSL" ]
9
2016-09-14T04:40:58.000Z
2021-07-22T09:07:51.000Z
tests/bean_test.py
samuelchen/truepy
f1fd86ffccf7c3b2eee4cd4ced9436ff832d257e
[ "OpenSSL" ]
13
2015-02-24T05:39:10.000Z
2022-02-03T00:41:53.000Z
# coding: utf-8 # truepy # Copyright (C) 2014-2015 Moses Palmér # # This program is free software: you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free Software # Foundation, either version 3 of the License, or (at your option) any later # version. # # Th...
32.013889
79
0.572523
5,898
0.852805
0
0
377
0.054511
0
0
2,353
0.340226
29d6295eb61db2d065b900e834740080a6c5d3ff
3,679
py
Python
normal_version/export_es_data.py
Logistic98/es-data-transfer
6ed916201e8ab701e258e156e2c71468a3c509e5
[ "Apache-2.0" ]
1
2022-03-23T05:22:41.000Z
2022-03-23T05:22:41.000Z
normal_version/export_es_data.py
Logistic98/es-data-transfer
6ed916201e8ab701e258e156e2c71468a3c509e5
[ "Apache-2.0" ]
null
null
null
normal_version/export_es_data.py
Logistic98/es-data-transfer
6ed916201e8ab701e258e156e2c71468a3c509e5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from elasticsearch import Elasticsearch from datetime import timedelta import datetime import os import json import logging from configparser import ConfigParser # 生成日志文件 logging.basicConfig(filename='logging_es.log', level=logging.INFO, format='%(asctime)s - %(name)s - %(l...
32.27193
84
0.57271
0
0
0
0
0
0
0
0
1,110
0.283091
29d8926e28c855d35087d877a48866f5e57129f6
25
py
Python
env/lib/python2.7/site-packages/grpc/_grpcio_metadata.py
husky-parul/SheHacks
19383029947f50ebaf07232c9b2ee76c75d8ada6
[ "Apache-2.0" ]
2
2018-02-01T06:30:24.000Z
2018-04-12T15:39:56.000Z
env/lib/python2.7/site-packages/grpc/_grpcio_metadata.py
husky-parul/SheHacks
19383029947f50ebaf07232c9b2ee76c75d8ada6
[ "Apache-2.0" ]
null
null
null
env/lib/python2.7/site-packages/grpc/_grpcio_metadata.py
husky-parul/SheHacks
19383029947f50ebaf07232c9b2ee76c75d8ada6
[ "Apache-2.0" ]
null
null
null
__version__ = """1.8.4"""
25
25
0.56
0
0
0
0
0
0
0
0
11
0.44
29d92f0ff0b006c6d957ac126ab63d45f2f46f8c
146
py
Python
danesfield/core/admin/__init__.py
girder/Danesfield
04b0e991cae52bda758de4ee3f7e04dab45f3ff9
[ "Apache-2.0" ]
null
null
null
danesfield/core/admin/__init__.py
girder/Danesfield
04b0e991cae52bda758de4ee3f7e04dab45f3ff9
[ "Apache-2.0" ]
24
2021-10-29T21:03:34.000Z
2022-03-18T02:07:57.000Z
danesfield/core/admin/__init__.py
girder/Danesfield
04b0e991cae52bda758de4ee3f7e04dab45f3ff9
[ "Apache-2.0" ]
1
2022-01-26T09:31:48.000Z
2022-01-26T09:31:48.000Z
from django.contrib import admin # general admin settings admin.site.site_header = 'Danesfield Admin' admin.site.site_title = 'Danesfield Admin'
24.333333
43
0.80137
0
0
0
0
0
0
0
0
60
0.410959
29dae29f89683a7db968db7356c874c048160ba7
2,645
py
Python
cnmodel/util/expfitting.py
pbmanis/cnmodel
eee593c673752c19137658d5b9a381ea9ad4580f
[ "BSD-3-Clause" ]
5
2017-07-26T21:46:14.000Z
2020-11-27T07:53:14.000Z
cnmodel/util/expfitting.py
pbmanis/cnmodel
eee593c673752c19137658d5b9a381ea9ad4580f
[ "BSD-3-Clause" ]
12
2017-07-26T07:16:16.000Z
2021-07-14T13:41:37.000Z
cnmodel/util/expfitting.py
pbmanis/cnmodel
eee593c673752c19137658d5b9a381ea9ad4580f
[ "BSD-3-Clause" ]
10
2017-07-26T07:03:29.000Z
2021-06-23T15:52:37.000Z
#!/usr/bin/env python # encoding: utf-8 """ expfitting.py Provide single or double exponential fits to data. """ import lmfit import numpy as np import scipy.optimize class ExpFitting: """ Parameters ---------- nexp : int 1 or 2 for single or double exponential fit initpars : dict ...
33.910256
92
0.485444
2,473
0.934972
0
0
200
0.075614
0
0
644
0.243478
29db5cdc597125eaa323b36fcd83763a78a5f8f9
4,338
py
Python
django_cloud_tasks/models.py
joaodaher/django-cloud-tasks
bc8ff94a281bda8b49ee73229d5ed5cacdd7a388
[ "Apache-2.0" ]
null
null
null
django_cloud_tasks/models.py
joaodaher/django-cloud-tasks
bc8ff94a281bda8b49ee73229d5ed5cacdd7a388
[ "Apache-2.0" ]
1
2020-07-09T17:48:19.000Z
2020-07-09T17:53:33.000Z
django_cloud_tasks/models.py
joaodaher/django-cloud-tasks
bc8ff94a281bda8b49ee73229d5ed5cacdd7a388
[ "Apache-2.0" ]
null
null
null
# pylint: disable=no-member from datetime import datetime from typing import Optional, Dict from django.db import transaction, models from django.apps import apps from django_cloud_tasks import tasks, serializers class Pipeline(models.Model): name = models.CharField(max_length=100) def start(self): r...
31.434783
109
0.642692
4,048
0.933149
0
0
158
0.036422
0
0
815
0.187875
29db5eb5db45a035903363004257142de128c253
2,913
py
Python
src/ifood/model/order/event.py
micael95/sdk-ifood-python
27462d8127b62a29b5c89624e79accbea9563a80
[ "MIT" ]
2
2021-05-06T18:50:43.000Z
2021-06-05T21:54:04.000Z
src/ifood/model/order/event.py
micael95/sdk-ifood-python
27462d8127b62a29b5c89624e79accbea9563a80
[ "MIT" ]
null
null
null
src/ifood/model/order/event.py
micael95/sdk-ifood-python
27462d8127b62a29b5c89624e79accbea9563a80
[ "MIT" ]
1
2021-05-06T18:50:54.000Z
2021-05-06T18:50:54.000Z
from datetime import datetime from uuid import UUID from ...serializer import IfoodSerializable from ...utils import auto_str from uuid import UUID @auto_str class Consumer(IfoodSerializable): financial_occurrence: str payment_type: str @staticmethod def unserialize(dict=None): if dict is No...
26.243243
119
0.610711
2,714
0.931686
0
0
2,754
0.945417
0
0
67
0.023
29dc92373ea8f436e4e33eb083ad67d7e28abdae
2,599
py
Python
scripts/pm/set_sla_kpis.py
supsi-dacd-isaac/parity-sidechain-interface
b64a5fb724955332afb4998344081d1b93ac216a
[ "MIT" ]
null
null
null
scripts/pm/set_sla_kpis.py
supsi-dacd-isaac/parity-sidechain-interface
b64a5fb724955332afb4998344081d1b93ac216a
[ "MIT" ]
null
null
null
scripts/pm/set_sla_kpis.py
supsi-dacd-isaac/parity-sidechain-interface
b64a5fb724955332afb4998344081d1b93ac216a
[ "MIT" ]
null
null
null
# Importing section import json import requests import argparse import logging import time import datetime from classes.time_utils import TimeUtils import utilities as u # Main if __name__ == "__main__": arg_parser = argparse.ArgumentParser() arg_parser.add_argument('-c', help='config file') arg_parser.ad...
33.320513
106
0.614082
0
0
0
0
0
0
0
0
808
0.310889
29dd6423703e7bd3d65394220ac73d337651b108
1,603
py
Python
src/spinnaker_ros_lsm/venv/lib/python2.7/site-packages/spinnman/messages/scp/impl/scp_version_request.py
Roboy/LSM_SpiNNaker_MyoArm
04fa1eaf78778edea3ba3afa4c527d20c491718e
[ "BSD-3-Clause" ]
2
2020-11-01T13:22:11.000Z
2020-11-01T13:22:20.000Z
src/spinnaker_ros_lsm/venv/lib/python2.7/site-packages/spinnman/messages/scp/impl/scp_version_request.py
Roboy/LSM_SpiNNaker_MyoArm
04fa1eaf78778edea3ba3afa4c527d20c491718e
[ "BSD-3-Clause" ]
null
null
null
src/spinnaker_ros_lsm/venv/lib/python2.7/site-packages/spinnman/messages/scp/impl/scp_version_request.py
Roboy/LSM_SpiNNaker_MyoArm
04fa1eaf78778edea3ba3afa4c527d20c491718e
[ "BSD-3-Clause" ]
null
null
null
from spinnman.messages.scp.abstract_messages.abstract_scp_request\ import AbstractSCPRequest from spinnman.messages.sdp.sdp_flag import SDPFlag from spinnman.messages.sdp.sdp_header import SDPHeader from spinnman.messages.scp.scp_request_header import SCPRequestHeader from spinnman.messages.scp.scp_command import S...
40.075
101
0.674984
1,191
0.742982
0
0
0
0
0
0
729
0.454772
29dd6adf13db2f5c89c5474bb138c114f67d7138
4,506
py
Python
mac/pyobjc-framework-Quartz/Examples/Core Image/CIBevelSample/CIBevelView.py
albertz/music-player
d23586f5bf657cbaea8147223be7814d117ae73d
[ "BSD-2-Clause" ]
132
2015-01-01T10:02:42.000Z
2022-03-09T12:51:01.000Z
mac/pyobjc-framework-Quartz/Examples/Core Image/CIBevelSample/CIBevelView.py
mba811/music-player
7998986b34cfda2244ef622adefb839331b81a81
[ "BSD-2-Clause" ]
6
2015-01-06T08:23:19.000Z
2019-03-14T12:22:06.000Z
mac/pyobjc-framework-Quartz/Examples/Core Image/CIBevelSample/CIBevelView.py
mba811/music-player
7998986b34cfda2244ef622adefb839331b81a81
[ "BSD-2-Clause" ]
27
2015-02-23T11:51:43.000Z
2022-03-07T02:34:18.000Z
from Cocoa import * from Quartz import * from SampleCIView import SampleCIView from math import sin import objc NUM_POINTS=4 class CIBevelView (SampleCIView): currentPoint = objc.ivar(type=objc._C_INT) points = objc.ivar() angleTime = objc.ivar(type=objc._C_FLT) lineIm...
36.634146
126
0.630715
4,375
0.970928
0
0
0
0
0
0
413
0.091656
29e24314b4b43a27db5d5e7fb35c4c927a75f669
4,226
py
Python
oops_fhir/r4/code_system/request_intent.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/code_system/request_intent.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/code_system/request_intent.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
from pathlib import Path from fhir.resources.codesystem import CodeSystem from oops_fhir.utils import CodeSystemConcept __all__ = ["RequestIntent"] _resource = CodeSystem.parse_file(Path(__file__).with_suffix(".json")) class RequestIntent: """ RequestIntent Codes indicating the degree of authority/i...
35.813559
266
0.600331
3,999
0.946285
0
0
0
0
0
0
2,835
0.670847
29e35c162bb13bbac4bbfa70c3c033b9eb162d1c
266
py
Python
ABC/202/b.py
fumiyanll23/AtCoder
362ca9fcacb5415c1458bc8dee5326ba2cc70b65
[ "MIT" ]
null
null
null
ABC/202/b.py
fumiyanll23/AtCoder
362ca9fcacb5415c1458bc8dee5326ba2cc70b65
[ "MIT" ]
null
null
null
ABC/202/b.py
fumiyanll23/AtCoder
362ca9fcacb5415c1458bc8dee5326ba2cc70b65
[ "MIT" ]
null
null
null
def main(): # input S = list(input()) # compute for i,s in enumerate(S): if s == '6': S[i] = '9' elif s == '9': S[i] = '6' # output print(''.join(reversed(S))) if __name__ == '__main__': main()
14.777778
31
0.406015
0
0
0
0
0
0
0
0
48
0.180451
29e3af095a46b5abdfb783f45e3fb0c6a6c5b81f
652
py
Python
LC/201.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
2
2018-02-24T17:20:02.000Z
2018-02-24T17:25:43.000Z
LC/201.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
LC/201.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
class Solution(object): def rangeBitwiseAnd(self, m, n): """ :type m: int :type n: int :rtype: int """ ## my solution # res='' # for i in xrange(len(bin(m))-2): # if m>>i & 1 == 0: # res='0'+res # elif (...
24.148148
44
0.328221
652
1
0
0
0
0
0
0
301
0.461656
29e4187ad7c1dcf2ceaec9e4c64c93ba30148a08
88
py
Python
twitoff/__init__.py
boscolio/twitoff-ds19
46449f9a55619a74dafa32ebee733daca8d1602f
[ "MIT" ]
null
null
null
twitoff/__init__.py
boscolio/twitoff-ds19
46449f9a55619a74dafa32ebee733daca8d1602f
[ "MIT" ]
null
null
null
twitoff/__init__.py
boscolio/twitoff-ds19
46449f9a55619a74dafa32ebee733daca8d1602f
[ "MIT" ]
null
null
null
from .app import create_app # creates the app by calling the package APP = create_app()
22
40
0.772727
0
0
0
0
0
0
0
0
40
0.454545
29e53d00d3dfdf9edbf744f3dfa7a95332d492b5
170
py
Python
books/init_api.py
nabekabebe/BookFInder
aaa7eb3028cb2ef5552f865107ddb13a5dc3fde7
[ "MIT" ]
null
null
null
books/init_api.py
nabekabebe/BookFInder
aaa7eb3028cb2ef5552f865107ddb13a5dc3fde7
[ "MIT" ]
null
null
null
books/init_api.py
nabekabebe/BookFInder
aaa7eb3028cb2ef5552f865107ddb13a5dc3fde7
[ "MIT" ]
null
null
null
from flask_restplus import Api API = Api( title="Book API", version='1.0', description="This Api provides endpoint for accessing books and their reviews." )
21.25
83
0.705882
0
0
0
0
0
0
0
0
82
0.482353
29e60f021e4805e18f02c579cb9365d85a32c49b
371
py
Python
test_game.py
thom1555/euchre
f2fa54fcecb5deeaad2e750e8cda04c94eb1e1e9
[ "Apache-2.0" ]
null
null
null
test_game.py
thom1555/euchre
f2fa54fcecb5deeaad2e750e8cda04c94eb1e1e9
[ "Apache-2.0" ]
null
null
null
test_game.py
thom1555/euchre
f2fa54fcecb5deeaad2e750e8cda04c94eb1e1e9
[ "Apache-2.0" ]
null
null
null
import unittest from game import Game from suit import Suit class TestGame(unittest.TestCase): def test_setup(self): g = Game('tim', 'rick', 'bob', 'james', 'ballers', 'scrubs') self.assertEqual(len(g.players), 4) self.assertEqual(g.dealer, 0) self.assertEqual(g.trump, Suit.spades...
21.823529
68
0.6469
258
0.695418
0
0
0
0
0
0
50
0.134771
29e805265bd23dadb56a588aaeba28a86de79226
4,250
py
Python
src/test/resources/scripts/Authentication.py
tomjbarry/Penstro
d9179852158bebf48aaba7a198de5246acb1b064
[ "MIT" ]
1
2019-02-25T05:55:34.000Z
2019-02-25T05:55:34.000Z
src/test/resources/scripts/Authentication.py
tomjbarry/penstro
d9179852158bebf48aaba7a198de5246acb1b064
[ "MIT" ]
null
null
null
src/test/resources/scripts/Authentication.py
tomjbarry/penstro
d9179852158bebf48aaba7a198de5246acb1b064
[ "MIT" ]
null
null
null
from PyConstants import Paths from PyConstants import Codes from PyConstants import CacheTimes from PyBaseTest import BaseTest from PyRequest import PyRequest import time class Authentication(BaseTest): password = "testPassword123" invalidPassword = "incorrectincorrect" def runTests(self): ...
57.432432
183
0.704941
4,068
0.957176
0
0
0
0
0
0
797
0.187529
29e8e499563826ecb59fe97bb20177891dc4f78e
235
py
Python
my_env/lib/python3.8/site-packages/tests/strategies.py
David5627/AWWARD
a22a2b2f7d7d6377435bfd475e82268e4e907141
[ "MIT" ]
296
2015-09-07T16:04:01.000Z
2022-03-27T06:31:43.000Z
my_env/lib/python3.8/site-packages/tests/strategies.py
David5627/AWWARD
a22a2b2f7d7d6377435bfd475e82268e4e907141
[ "MIT" ]
189
2015-09-07T14:56:32.000Z
2022-01-31T09:17:22.000Z
my_env/lib/python3.8/site-packages/tests/strategies.py
David5627/AWWARD
a22a2b2f7d7d6377435bfd475e82268e4e907141
[ "MIT" ]
115
2015-09-17T08:36:36.000Z
2022-03-09T12:36:14.000Z
from __future__ import unicode_literals from hypothesis.strategies import integers from star_ratings import app_settings def scores(max_rating=app_settings.STAR_RATINGS_RANGE): return integers(min_value=0, max_value=max_rating)
26.111111
55
0.851064
0
0
0
0
0
0
0
0
0
0
29e96f72799e651c5585b837791c85848195cb09
55
py
Python
Game6/modules/sprites/__init__.py
ttkaixin1998/pikachupythongames
609a3a5a2be3f5a187c332c7980bb5bb14548f02
[ "MIT" ]
4,013
2018-06-16T08:00:02.000Z
2022-03-30T11:48:14.000Z
Game6/modules/sprites/__init__.py
pigbearcat/Games
b8c47ef1bcce9a9db3f3730c162e6e8e08b508a2
[ "MIT" ]
22
2018-10-18T00:15:50.000Z
2022-01-13T08:16:15.000Z
Game6/modules/sprites/__init__.py
pigbearcat/Games
b8c47ef1bcce9a9db3f3730c162e6e8e08b508a2
[ "MIT" ]
2,172
2018-07-20T04:03:14.000Z
2022-03-31T14:18:29.000Z
'''初始化''' from .Bird import Bird from .Pipe import Pipe
18.333333
22
0.709091
0
0
0
0
0
0
0
0
15
0.245902
29ea1aef1c82bd772907c42e68df319791525947
6,824
py
Python
Render2018/lib/create_config_bodyflow.py
BigOto2/BlenderRenderDNS
a8ff239ecffef5217f0db35d579227a0a444c32d
[ "MIT" ]
1
2021-07-28T00:42:39.000Z
2021-07-28T00:42:39.000Z
Render2018/lib/create_config_bodyflow.py
BigOto2/BlenderRenderDNS
a8ff239ecffef5217f0db35d579227a0a444c32d
[ "MIT" ]
null
null
null
Render2018/lib/create_config_bodyflow.py
BigOto2/BlenderRenderDNS
a8ff239ecffef5217f0db35d579227a0a444c32d
[ "MIT" ]
1
2019-05-13T17:38:05.000Z
2019-05-13T17:38:05.000Z
import os.path import configparser from dircheck import get_yesno_input import create_jobscripts from create_dirname_config import config_dirname_cfg from create_all_dirs import create_all import socket import cgns_load_data # Script that creates the two configuration files (case and render files) necessary to run the ...
56.396694
286
0.75381
0
0
0
0
0
0
0
0
3,682
0.539566
29eb3307185eaf4daecd050d3551f86ee4f012bf
1,004
py
Python
util/replicate.py
ZvonimirSun/janusgraph-utils
c10e7b3ccb7c56c7662053d9d8b1d0bcb0a20bb8
[ "Apache-2.0" ]
204
2017-08-10T02:36:53.000Z
2022-03-11T12:21:18.000Z
util/replicate.py
HsbcJone/Jaunsgraph-LoadBulkData-Utils-
9c4e3b0c0b9f9966ab43422929ae5ea4993b3bb8
[ "Apache-2.0" ]
37
2017-08-16T01:06:02.000Z
2020-08-05T02:30:18.000Z
util/replicate.py
HsbcJone/Jaunsgraph-LoadBulkData-Utils-
9c4e3b0c0b9f9966ab43422929ae5ea4993b3bb8
[ "Apache-2.0" ]
103
2017-08-29T14:17:32.000Z
2022-03-07T14:30:48.000Z
#!/usr/bin/python import sys import simplejson as json def replicate_vertex(conf,pos, i): p = conf["VertexTypes"][pos]["columns"]["T{}-P1".format(pos+1)] for x in range(2, i+1): new_key = "T{}-P{}".format(pos+1, str(x)) conf["VertexTypes"][pos]["columns"][new_key] = p return conf def replicate_edge(conf, pos, ...
32.387097
77
0.62749
0
0
0
0
0
0
0
0
163
0.162351
29eb4a3f8932c013c8f2635314e11c22d12e4148
1,602
py
Python
commands/fight.py
AlexMog/IRCPokemonBot
0a735f262ce06ecd4c3b702094cf4b78e3cd7c45
[ "MIT" ]
2
2015-06-10T12:16:53.000Z
2016-03-09T22:43:43.000Z
commands/fight.py
AlexMog/IRCPokemonBot
0a735f262ce06ecd4c3b702094cf4b78e3cd7c45
[ "MIT" ]
null
null
null
commands/fight.py
AlexMog/IRCPokemonBot
0a735f262ce06ecd4c3b702094cf4b78e3cd7c45
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 import copy import random from classes.Pokemons import * from classes.Battle import * def fight(connection, canal, auteur, cmds, canalobj, mogbot): user = mogbot.getUserManager().findUser(auteur) if user == False: connection.privmsg(canal, auteur + " je ne te trouve pas dans la ...
40.05
173
0.585518
0
0
0
0
0
0
0
0
348
0.217228
29ebeb3c0f6aa2c670636976b54b4c234e9cc858
3,356
py
Python
horizon_hpe_storage/storage_panel/config/software_tests/forms.py
hp-storage/horizon-ssmc-link
f419ecf2a545a79f1ff6628dc26f31dfb7c84996
[ "Apache-2.0" ]
1
2017-01-07T13:45:57.000Z
2017-01-07T13:45:57.000Z
horizon_hpe_storage/storage_panel/config/software_tests/forms.py
hp-storage/horizon-ssmc-link
f419ecf2a545a79f1ff6628dc26f31dfb7c84996
[ "Apache-2.0" ]
null
null
null
horizon_hpe_storage/storage_panel/config/software_tests/forms.py
hp-storage/horizon-ssmc-link
f419ecf2a545a79f1ff6628dc26f31dfb7c84996
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
44.157895
78
0.616508
2,503
0.745828
0
0
0
0
0
0
911
0.271454
29ecd056c8357be81181e47ac71a968400c85cc9
1,396
py
Python
tests/test_liquidity_provider_factory.py
diem/liquidity-emulator
255cccd06c0949750e42e93906b083e915ddf505
[ "Apache-2.0" ]
2
2021-11-29T06:00:59.000Z
2022-01-27T18:42:29.000Z
tests/test_liquidity_provider_factory.py
hengkyherdianto/liquidity-emulator
255cccd06c0949750e42e93906b083e915ddf505
[ "Apache-2.0" ]
1
2021-01-31T09:14:05.000Z
2021-02-01T07:43:41.000Z
tests/test_liquidity_provider_factory.py
hengkyherdianto/liquidity-emulator
255cccd06c0949750e42e93906b083e915ddf505
[ "Apache-2.0" ]
4
2021-02-15T14:45:04.000Z
2022-03-03T02:32:45.000Z
from diem import chain_ids from liquidity import create_liquidity_provider, init_liquidity_provider from liquidity.liquidity import FaucetLiquidityProvider, DDLiquidityProvider CUSTODY_PRIVATE_KEYS = ( '{"liquidity":"c6537e56d844fa4a15f3bf5eacd41c9123a19ef19a1026f2325a6b2dd33a13f1"}' ) def test_faucet_liquidity...
33.238095
86
0.809456
0
0
0
0
0
0
0
0
178
0.127507
29ecd75f594b19acd9901238ad242a2ae33df3f6
112
py
Python
layers/modules/__init__.py
Eralaf/ssd.pytorch
acad53fd801f32120ecb3ff57950556e35db3d1c
[ "MIT" ]
null
null
null
layers/modules/__init__.py
Eralaf/ssd.pytorch
acad53fd801f32120ecb3ff57950556e35db3d1c
[ "MIT" ]
null
null
null
layers/modules/__init__.py
Eralaf/ssd.pytorch
acad53fd801f32120ecb3ff57950556e35db3d1c
[ "MIT" ]
null
null
null
from .l2norm import L2Norm from .multibox_loss import MultiBoxLoss __all__ = ['L2Norm', 'MultiBoxLoss']
22.4
39
0.732143
0
0
0
0
0
0
0
0
22
0.196429
29edb04d6019c45efcdb61aac97edab310263a90
59
py
Python
test/octagon.py
Jahongir2007/pymetry
02c8e82a188700b4213fd4a70aa66a3b5e9843b8
[ "MIT" ]
1
2021-04-04T11:38:42.000Z
2021-04-04T11:38:42.000Z
test/octagon.py
Jahongir2007/pymetry
02c8e82a188700b4213fd4a70aa66a3b5e9843b8
[ "MIT" ]
null
null
null
test/octagon.py
Jahongir2007/pymetry
02c8e82a188700b4213fd4a70aa66a3b5e9843b8
[ "MIT" ]
null
null
null
import pymetry pym = pymetry pym.octagon(150, "yellow", 8)
14.75
29
0.728814
0
0
0
0
0
0
0
0
8
0.135593
29f10336d5ea889a3a24c9c3648237cbdaee7b65
5,586
py
Python
tools/remote_debugger.py
budelius/openstreetmap-heatmap
f7376671eecda68955b8edc016c63218c5ebc6a2
[ "Apache-2.0" ]
null
null
null
tools/remote_debugger.py
budelius/openstreetmap-heatmap
f7376671eecda68955b8edc016c63218c5ebc6a2
[ "Apache-2.0" ]
null
null
null
tools/remote_debugger.py
budelius/openstreetmap-heatmap
f7376671eecda68955b8edc016c63218c5ebc6a2
[ "Apache-2.0" ]
null
null
null
""" Remote debugging support. This addon allows you to use a remote Python debugger with PyCharm, PyDev and possibly other IDEs. As it is, without modification, it only supports PyCharm, but it may work by pointing it at a similar egg file shipped with PyDev. Before using, point the addon to your pycharm-debug-py3k.e...
30.692308
100
0.674544
2,705
0.48416
0
0
798
0.142832
0
0
2,150
0.384822
29f1f4d867171d615c82f43e02801e5ac479dcd4
2,247
py
Python
todo/views/accepted_petitions.py
josalhor/WebModels
6b9cde3141c53562f40b129e6e1c87448ce9853a
[ "BSD-3-Clause" ]
null
null
null
todo/views/accepted_petitions.py
josalhor/WebModels
6b9cde3141c53562f40b129e6e1c87448ce9853a
[ "BSD-3-Clause" ]
41
2021-03-23T12:58:25.000Z
2021-05-25T11:38:42.000Z
todo/views/accepted_petitions.py
josalhor/WebModels
6b9cde3141c53562f40b129e6e1c87448ce9853a
[ "BSD-3-Clause" ]
null
null
null
import datetime from django.contrib import messages from django.contrib.auth.decorators import login_required, user_passes_test from django.http import HttpResponse from django.shortcuts import render from .book_assign import send_email_reject_book from todo.forms import SearchForm from todo.models import Task, Book,...
31.208333
151
0.668002
0
0
0
0
1,909
0.849199
0
0
264
0.117438
29f31b2343f07216325a81bd944dfce29b98de66
610
py
Python
2_sheet/2-sheet-hundt-robin/plot-data.py
robinhundt/practical-course-parallel-computing
08f1fc76324d5c6338b32b2f14c2a11fef3ad619
[ "MIT" ]
null
null
null
2_sheet/2-sheet-hundt-robin/plot-data.py
robinhundt/practical-course-parallel-computing
08f1fc76324d5c6338b32b2f14c2a11fef3ad619
[ "MIT" ]
null
null
null
2_sheet/2-sheet-hundt-robin/plot-data.py
robinhundt/practical-course-parallel-computing
08f1fc76324d5c6338b32b2f14c2a11fef3ad619
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt # number of threads used to compute product of 2 matrices of dim. 1024 data_x = [1, 2, 3, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096] # execution time in seconds data_y = [3.300059, 1.664494, 2.294884, 3.200235, 2.915945, 3.082389, 3.023162, 3.012096, ...
33.888889
82
0.672131
0
0
0
0
0
0
0
0
214
0.35082