hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
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
239
max_issues_repo_name
stringlengths
5
130
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
239
max_forks_repo_name
stringlengths
5
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.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a238aeacac1f1412741994aad4fbe944bfc042c
2,054
py
Python
pagarmecoreapi/models/list_discounts_response.py
pagarme/pagarme-core-api-python
c7b11ca78ab3e7e896e5b75048e6f72b511db00e
[ "MIT" ]
6
2021-09-02T19:55:04.000Z
2022-03-16T14:06:15.000Z
pagarmecoreapi/models/list_discounts_response.py
pagarme/pagarme-core-api-python
c7b11ca78ab3e7e896e5b75048e6f72b511db00e
[ "MIT" ]
2
2021-10-11T22:48:15.000Z
2022-01-24T18:24:23.000Z
pagarmecoreapi/models/list_discounts_response.py
pagarme/pagarme-core-api-python
c7b11ca78ab3e7e896e5b75048e6f72b511db00e
[ "MIT" ]
2
2021-09-12T21:43:32.000Z
2022-03-07T16:58:54.000Z
# -*- coding: utf-8 -*- """ pagarmecoreapi This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ). """ import pagarmecoreapi.models.get_discount_response import pagarmecoreapi.models.paging_response class ListDiscountsResponse(object): """Implementation of the 'List...
29.342857
150
0.611003
4a238b5e03cec42fc880fc27715a18c28f2d35e4
11,536
py
Python
tests/test_ssdeep_pep_452.py
drobotun/pyssdeep
d9499bd21fbe7dc9caed3ddbe6f77399a297bb70
[ "MIT" ]
null
null
null
tests/test_ssdeep_pep_452.py
drobotun/pyssdeep
d9499bd21fbe7dc9caed3ddbe6f77399a297bb70
[ "MIT" ]
null
null
null
tests/test_ssdeep_pep_452.py
drobotun/pyssdeep
d9499bd21fbe7dc9caed3ddbe6f77399a297bb70
[ "MIT" ]
null
null
null
import unittest from unittest import mock import pytest from pyssdeep import FuzzyHash from pyssdeep import new from pyssdeep import compare from pyssdeep import get_hash_file from pyssdeep import get_hash_buffer from pyssdeep import FuzzyHashError def fuzzy_new_mock_raise(): raise FuzzyHashError(-1) def fuzzy_c...
35.604938
93
0.640083
4a238b84455a0c4d8771f8a729920fbf526e59c7
3,128
py
Python
src/cyborgbackup/main/management/commands/cleanup_jobs.py
ikkemaniac/cyborgbackup
b11139fa9632f745a3c288787c51fbf814b961fa
[ "BSD-3-Clause" ]
null
null
null
src/cyborgbackup/main/management/commands/cleanup_jobs.py
ikkemaniac/cyborgbackup
b11139fa9632f745a3c288787c51fbf814b961fa
[ "BSD-3-Clause" ]
null
null
null
src/cyborgbackup/main/management/commands/cleanup_jobs.py
ikkemaniac/cyborgbackup
b11139fa9632f745a3c288787c51fbf814b961fa
[ "BSD-3-Clause" ]
null
null
null
# Python import datetime import logging # Django from django.core.management.base import BaseCommand, CommandError from django.db import transaction from django.utils.timezone import now # CyBorgBackup from cyborgbackup.main.models import Job, Repository class Command(BaseCommand): ''' Management command t...
38.617284
115
0.54156
4a238bc307a7f833f58a2de99a5949f4fa80d4fd
2,550
py
Python
test.py
jiniannet/jnt.py
a0418142fba49883a7897b12f4aef232ac9feee8
[ "MIT" ]
null
null
null
test.py
jiniannet/jnt.py
a0418142fba49883a7897b12f4aef232ac9feee8
[ "MIT" ]
null
null
null
test.py
jiniannet/jnt.py
a0418142fba49883a7897b12f4aef232ac9feee8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from jntemplate import Template,engine,BaseLoader,FileLoader,engine from timeit import timeit import time #from jntemplate import Lexer # engine.configure(None) # lexer = Lexer("${user.name}23412BAESFD$225B${name}${none}") # arr = lexer.parse() # for c in arr: # print(c.string()) # dic = {...
19.615385
70
0.569412
4a238c2e3bd5689ccedacefa9c63fd32e387bfae
5,662
py
Python
badsources.py
SiarheiGribov/pyBot
f3257a9ffb3f022ad6c67b0eb7d25b1054a512a4
[ "MIT" ]
null
null
null
badsources.py
SiarheiGribov/pyBot
f3257a9ffb3f022ad6c67b0eb7d25b1054a512a4
[ "MIT" ]
null
null
null
badsources.py
SiarheiGribov/pyBot
f3257a9ffb3f022ad6c67b0eb7d25b1054a512a4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys sys.path.append('pyBot/ext_libs') import re import os import ast import json import time import login import requests import ConfigParser from urllib2 import urlopen from bs4 import BeautifulSoup from sseclient import SSEClient as EventSource reload(sys) sys.setdefaultencoding('utf8'...
46.793388
248
0.504415
4a238c90fefd377dd69f1105a5dd6dff6122585b
10,560
py
Python
scratch/losses/cauchy_selec_bound_train_gamma/plot_train_alpha_cases.py
finn-dodgson/DeepHalos
86e0ac6c24ac97a0a2a0a60a7ea3721a04bd050c
[ "MIT" ]
2
2021-07-26T10:56:33.000Z
2021-12-20T17:30:53.000Z
scratch/losses/cauchy_selec_bound_train_gamma/plot_train_alpha_cases.py
finn-dodgson/DeepHalos
86e0ac6c24ac97a0a2a0a60a7ea3721a04bd050c
[ "MIT" ]
1
2021-11-25T21:01:19.000Z
2021-12-05T01:40:53.000Z
scratch/losses/cauchy_selec_bound_train_gamma/plot_train_alpha_cases.py
finn-dodgson/DeepHalos
86e0ac6c24ac97a0a2a0a60a7ea3721a04bd050c
[ "MIT" ]
1
2021-11-27T02:35:10.000Z
2021-11-27T02:35:10.000Z
import numpy as np import matplotlib.pyplot as plt import re def read_training_log_file(filepath): with open(filepath) as f: h = f.readlines()[1:] test = [re.sub(r'"', '', hi) for hi in h] test = [re.sub(r'\[', '', hi) for hi in test] test = [re.sub(r'\]', '', hi) for hi in test] test = [r...
35.436242
115
0.573864
4a238ccc164b4b5bf3d58505c1e34be7a882403d
671
py
Python
nikola/data/themes/base/messages/messages_ja.py
doctorlard/nikola
d6dd2fc4af6fa0d92dfda500393bbd235b60df2a
[ "MIT" ]
null
null
null
nikola/data/themes/base/messages/messages_ja.py
doctorlard/nikola
d6dd2fc4af6fa0d92dfda500393bbd235b60df2a
[ "MIT" ]
1
2019-08-18T13:37:20.000Z
2019-08-18T16:09:08.000Z
nikola/data/themes/base/messages/messages_ja.py
doctorlard/nikola
d6dd2fc4af6fa0d92dfda500393bbd235b60df2a
[ "MIT" ]
null
null
null
# -*- encoding:utf-8 -*- from __future__ import unicode_literals MESSAGES = { "Also available in": "他の言語で読む", "Archive": "過去の記事", "Categories": "", "LANGUAGE": "日本語", "More posts about": "タグ", "Newer posts": "新しい記事", "Next post": "次の記事", "Older posts": "過去の記事", "Original site": "元のサ...
25.807692
53
0.545455
4a238cd37be886cd343634146d984988cd85ca94
94
py
Python
python/numpy/eye_and_identity.py
avenet/hackerrank
e522030a023af4ff50d5fc64bd3eba30144e006c
[ "MIT" ]
null
null
null
python/numpy/eye_and_identity.py
avenet/hackerrank
e522030a023af4ff50d5fc64bd3eba30144e006c
[ "MIT" ]
null
null
null
python/numpy/eye_and_identity.py
avenet/hackerrank
e522030a023af4ff50d5fc64bd3eba30144e006c
[ "MIT" ]
null
null
null
import numpy rows, columns = map(int, input().split()) print(numpy.eye(rows, columns, k=0))
15.666667
41
0.680851
4a238d4a4776a429569b780a87dbbb2ba3696bc8
5,599
bzl
Python
go/private/rules/binary.bzl
mboes/rules_go
da3744eac9bdb8ff30207ec527266e5b94c9c784
[ "Apache-2.0" ]
null
null
null
go/private/rules/binary.bzl
mboes/rules_go
da3744eac9bdb8ff30207ec527266e5b94c9c784
[ "Apache-2.0" ]
null
null
null
go/private/rules/binary.bzl
mboes/rules_go
da3744eac9bdb8ff30207ec527266e5b94c9c784
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
29.161458
86
0.57546
4a238d7fe50a14937123199240dec3ba02fb0b85
432
py
Python
payment_gateway/payment_gateway/celeryconfig.py
MayaraMachado/sns_and_sqs_project
4fcc5bbb5f6841543ea8dda353dd85a43024f683
[ "MIT" ]
5
2020-06-22T21:29:54.000Z
2021-11-01T20:12:04.000Z
payment_gateway/payment_gateway/celeryconfig.py
MayaraMachado/sns_and_sqs_project
4fcc5bbb5f6841543ea8dda353dd85a43024f683
[ "MIT" ]
5
2021-03-30T13:38:15.000Z
2021-09-22T19:10:27.000Z
payment_gateway/payment_gateway/celeryconfig.py
MayaraMachado/sns_and_sqs_project
4fcc5bbb5f6841543ea8dda353dd85a43024f683
[ "MIT" ]
null
null
null
from django.conf import settings from datetime import timedelta CELERY_APPS = [ 'api', ] CELERY_IMPORTS = ['api.tasks'] BROKER_URL = 'redis://redis:6379/10' CELERY_RESULT_BACKEND = 'redis://redis:6379/10' CELERYBEAT_SCHEDULER = 'django_celery_beat.schedulers:DatabaseScheduler' CELERY_ACCEPT_CONTENT = ['applicat...
24
72
0.780093
4a238e95358a764abb84f136e780c17c74f507d4
276
py
Python
homeassistant/components/locative/config_flow.py
alindeman/home-assistant
b274b10f3874c196f0db8f9cfa5f47eb756d1f8e
[ "Apache-2.0" ]
4
2019-07-03T22:36:57.000Z
2019-08-10T15:33:25.000Z
homeassistant/components/locative/config_flow.py
alindeman/home-assistant
b274b10f3874c196f0db8f9cfa5f47eb756d1f8e
[ "Apache-2.0" ]
7
2019-08-23T05:26:02.000Z
2022-03-11T23:57:18.000Z
homeassistant/components/locative/config_flow.py
alindeman/home-assistant
b274b10f3874c196f0db8f9cfa5f47eb756d1f8e
[ "Apache-2.0" ]
2
2018-08-15T03:59:35.000Z
2018-10-18T12:20:05.000Z
"""Config flow for Locative.""" from homeassistant.helpers import config_entry_flow from .const import DOMAIN config_entry_flow.register_webhook_flow( DOMAIN, 'Locative Webhook', { 'docs_url': 'https://www.home-assistant.io/components/locative/' } )
21.230769
72
0.713768
4a238ede1ede0c557c079deb1277970321775cd7
3,212
py
Python
pettingzoo/utils/wrappers/order_enforcing.py
mlanas/PettingZoo
58d47c68057bdf37720f961c1a372b4671b8b777
[ "Apache-2.0" ]
1
2021-09-13T17:47:48.000Z
2021-09-13T17:47:48.000Z
pettingzoo/utils/wrappers/order_enforcing.py
mlanas/PettingZoo
58d47c68057bdf37720f961c1a372b4671b8b777
[ "Apache-2.0" ]
null
null
null
pettingzoo/utils/wrappers/order_enforcing.py
mlanas/PettingZoo
58d47c68057bdf37720f961c1a372b4671b8b777
[ "Apache-2.0" ]
null
null
null
from ..env import AECIterable, AECIterator from ..env_logger import EnvLogger from .base import BaseWrapper class OrderEnforcingWrapper(BaseWrapper): ''' check all call orders: * error on getting rewards, dones, infos, agent_selection before reset * error on calling step, observe before reset * e...
33.458333
122
0.640722
4a238f1746fb4618a23b1267dee6c5daa441c427
1,563
py
Python
tests/test_respselector.py
yam-ai/yamas
36ae42862d4d0197fcc3ac22af3a03f2873b3976
[ "Apache-2.0" ]
2
2019-10-28T03:58:12.000Z
2022-02-25T21:02:02.000Z
tests/test_respselector.py
yam-ai/yamas
36ae42862d4d0197fcc3ac22af3a03f2873b3976
[ "Apache-2.0" ]
7
2019-10-26T10:35:17.000Z
2019-11-07T09:54:22.000Z
tests/test_respselector.py
yam-ai/yamas
36ae42862d4d0197fcc3ac22af3a03f2873b3976
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2019 YAM AI Machinery Limited # # 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 l...
33.978261
77
0.673704
4a238fcf24a49d817bead1bdf00dcc2733264c65
21,936
py
Python
nasws/cnn/procedures/landmark_procedures.py
kcyu2014/nas-landmarkreg
a00c3619bf4042e446e1919087f0b09fe9fa3a65
[ "MIT" ]
8
2021-04-13T01:52:11.000Z
2022-03-30T03:53:12.000Z
nasws/cnn/procedures/landmark_procedures.py
kcyu2014/nas-landmarkreg
a00c3619bf4042e446e1919087f0b09fe9fa3a65
[ "MIT" ]
4
2021-05-29T01:41:00.000Z
2021-08-24T09:40:43.000Z
nasws/cnn/procedures/landmark_procedures.py
kcyu2014/nas-landmarkreg
a00c3619bf4042e446e1919087f0b09fe9fa3a65
[ "MIT" ]
null
null
null
""" Add landmark as regualrization inside. """ import torch import math from nasws.cnn.procedures.utils_maml import assign_parameters from utils import accuracy from .maml_procedure import named_module_parameters, task_update_step from .maml_procedure import _summarize_shared_train as maml_summarize import logging fro...
40.323529
121
0.629422
4a238fd37199899d0285468a4b68aefbc6c0ac93
10,067
py
Python
phathom/pipeline/find_corr_neighbors_cmd.py
chunglabmit/phathom
304db7a95e898e9b03d6b2640172752d21a7e3ed
[ "MIT" ]
1
2018-04-18T11:54:29.000Z
2018-04-18T11:54:29.000Z
phathom/pipeline/find_corr_neighbors_cmd.py
chunglabmit/phathom
304db7a95e898e9b03d6b2640172752d21a7e3ed
[ "MIT" ]
2
2018-04-05T20:53:52.000Z
2018-11-01T16:37:39.000Z
phathom/pipeline/find_corr_neighbors_cmd.py
chunglabmit/phathom
304db7a95e898e9b03d6b2640172752d21a7e3ed
[ "MIT" ]
null
null
null
import argparse import pickle import matplotlib matplotlib.use("Agg") import matplotlib.backends.backend_pdf from matplotlib import pyplot import multiprocessing import numpy as np import json import tqdm import sys import os from scipy.spatial import KDTree from precomputed_tif.client import ArrayReader from phathom...
33.334437
82
0.584484
4a23902d5fc666f9143d75b63ada087ac2fec2e5
9,401
py
Python
bot/cogs/watchchannels/talentpool.py
Ayplow/bot
71a3ac9382851845dcb26609d64299bd69b0f0f5
[ "MIT" ]
null
null
null
bot/cogs/watchchannels/talentpool.py
Ayplow/bot
71a3ac9382851845dcb26609d64299bd69b0f0f5
[ "MIT" ]
null
null
null
bot/cogs/watchchannels/talentpool.py
Ayplow/bot
71a3ac9382851845dcb26609d64299bd69b0f0f5
[ "MIT" ]
null
null
null
import logging import textwrap from collections import ChainMap from typing import Union from discord import Color, Embed, Member, User from discord.ext.commands import Bot, Cog, Context, group from bot.api import ResponseCodeError from bot.constants import Channels, Guild, Roles, Webhooks from bot.decorators import ...
40.347639
116
0.605148
4a23908dc337f96c27ebba814a2775af0d26bd85
961
py
Python
kms/tests/system.py
DaveCheez/google-cloud-python
fc03d4d41f13e9d13db7206438163b3a471fdabd
[ "Apache-2.0" ]
2
2021-11-26T07:08:43.000Z
2022-03-07T20:20:04.000Z
kms/tests/system.py
DaveCheez/google-cloud-python
fc03d4d41f13e9d13db7206438163b3a471fdabd
[ "Apache-2.0" ]
40
2019-07-16T10:04:48.000Z
2020-01-20T09:04:59.000Z
kms/tests/system.py
DaveCheez/google-cloud-python
fc03d4d41f13e9d13db7206438163b3a471fdabd
[ "Apache-2.0" ]
2
2019-07-18T00:05:31.000Z
2019-11-27T14:17:22.000Z
# -*- coding: utf-8 -*- # # Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
32.033333
74
0.736733
4a2390aae197184e542c7586d536bf7adab2e939
982
py
Python
courses/machine_learning/feateng/taxifare_tft/trainer/setup.py
laurenzberger/training-data-analyst
3e2ef4668c5088ab50ad50a4f29673c88fb1bcd3
[ "Apache-2.0" ]
6,140
2016-05-23T16:09:35.000Z
2022-03-30T19:00:46.000Z
courses/machine_learning/feateng/taxifare_tft/trainer/setup.py
laurenzberger/training-data-analyst
3e2ef4668c5088ab50ad50a4f29673c88fb1bcd3
[ "Apache-2.0" ]
1,384
2016-07-08T22:26:41.000Z
2022-03-24T16:39:43.000Z
courses/machine_learning/feateng/taxifare_tft/trainer/setup.py
laurenzberger/training-data-analyst
3e2ef4668c5088ab50ad50a4f29673c88fb1bcd3
[ "Apache-2.0" ]
5,110
2016-05-27T13:45:18.000Z
2022-03-31T18:40:42.000Z
# Copyright 2016 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 law or a...
30.6875
74
0.743381
4a23935d62bce5fa5aa50aee52f9ba4e8e23a4b5
2,063
py
Python
migration/env.py
mglacayo07/jqGrid
71625fb6e9684eb4bf5811414965fd84a6038d40
[ "MIT" ]
null
null
null
migration/env.py
mglacayo07/jqGrid
71625fb6e9684eb4bf5811414965fd84a6038d40
[ "MIT" ]
null
null
null
migration/env.py
mglacayo07/jqGrid
71625fb6e9684eb4bf5811414965fd84a6038d40
[ "MIT" ]
null
null
null
from __future__ import with_statement from alembic import context from sqlalchemy import engine_from_config, pool # this is the Alembic Config object, which provides # access to the values within the .ini file in use. config = context.config # Interpret the config file for Python logging. # This line sets up loggers ...
26.792208
69
0.722734
4a2393a3572f32fac1007823299d3fc97fe35fa4
727
py
Python
tests/test_base_os.py
karliy/elasticsearch-docker
e6d9e03de18bd0c7cf797e5981ea73fc05452e61
[ "Apache-2.0" ]
null
null
null
tests/test_base_os.py
karliy/elasticsearch-docker
e6d9e03de18bd0c7cf797e5981ea73fc05452e61
[ "Apache-2.0" ]
null
null
null
tests/test_base_os.py
karliy/elasticsearch-docker
e6d9e03de18bd0c7cf797e5981ea73fc05452e61
[ "Apache-2.0" ]
1
2019-07-24T16:55:31.000Z
2019-07-24T16:55:31.000Z
from .fixtures import elasticsearch def test_base_os(host): assert host.system_info.distribution == 'centos' assert host.system_info.release == '7' def test_java_home_env_var(host): java_path_cmdline = '$JAVA_HOME/bin/java -version' assert host.run(java_path_cmdline).exit_status == 0 def test_no_...
25.068966
72
0.715268
4a239587a3484a14a5cd217208894b922fa1f24d
29
py
Python
trajopt/riccati/__init__.py
Fitz13009/trajopt
e74cf44cfa7d3037d1fccb27ab1e7eebff16c8c4
[ "MIT" ]
40
2019-06-17T11:49:57.000Z
2022-03-29T16:30:56.000Z
trajopt/riccati/__init__.py
JoeMWatson/trajopt
8b98718721e0c373cd7dc01a35f42447c1134713
[ "MIT" ]
2
2019-12-10T13:40:00.000Z
2020-10-06T09:22:47.000Z
trajopt/riccati/__init__.py
JoeMWatson/trajopt
8b98718721e0c373cd7dc01a35f42447c1134713
[ "MIT" ]
10
2019-07-05T11:29:12.000Z
2021-12-29T12:56:56.000Z
from .riccati import Riccati
14.5
28
0.827586
4a2397fe7132f6869deaaa754ba2fb75d1bfb697
12,100
py
Python
tests/unit/test_snap.py
simondeziel/operator-libs-linux
4a1a73420900e8b3e78dc5b41ec8df7b2b10260f
[ "Apache-2.0" ]
null
null
null
tests/unit/test_snap.py
simondeziel/operator-libs-linux
4a1a73420900e8b3e78dc5b41ec8df7b2b10260f
[ "Apache-2.0" ]
null
null
null
tests/unit/test_snap.py
simondeziel/operator-libs-linux
4a1a73420900e8b3e78dc5b41ec8df7b2b10260f
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Canonical Ltd. # See LICENSE file for licensing details. import json import unittest from unittest.mock import MagicMock, mock_open, patch import fake_snapd as fake_snapd from charms.operator_libs_linux.v0 import snap patch("charms.operator_libs_linux.v0.snap._cache_init", lambda x: x).start() lazy...
35.380117
273
0.610496
4a2398e809daedb12a117098a708258e4de8073c
17,568
py
Python
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/aio/operations/_content_item_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/aio/operations/_content_item_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/aio/operations/_content_item_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
45.161954
239
0.678222
4a239b330c4a49cd2ec5fdcb5d90d7d1725a85c0
2,079
py
Python
search/search_utils.py
DDMAL/liberusualis
1fd5ab9b3f2ac16296f1fb47ebc855f94b65ef3b
[ "MIT" ]
1
2015-07-19T21:15:46.000Z
2015-07-19T21:15:46.000Z
search/search_utils.py
DDMAL/liberusualis
1fd5ab9b3f2ac16296f1fb47ebc855f94b65ef3b
[ "MIT" ]
15
2015-05-08T17:00:39.000Z
2022-03-11T23:12:12.000Z
search/search_utils.py
DDMAL/liberusualis
1fd5ab9b3f2ac16296f1fb47ebc855f94b65ef3b
[ "MIT" ]
null
null
null
import re import math def incorporate_zoom(dimension, zoom_difference): return dimension / math.pow(2, zoom_difference) def get_transpositions(sequence): """ Given a series of pitch names (no flats or sharps - just abcdefg), return a list of the 7 possible transpositions of the melody. This is used when...
28.875
120
0.610871
4a239b8574076e7b3abe7f4aefc3c636c177c2d4
994
py
Python
examples/async_version/async_webhook_receiver.py
YUKAI/emo-platform-api-python
ba350f7cda7cd23627a0f3363490a56dfb6bd38b
[ "MIT" ]
null
null
null
examples/async_version/async_webhook_receiver.py
YUKAI/emo-platform-api-python
ba350f7cda7cd23627a0f3363490a56dfb6bd38b
[ "MIT" ]
1
2022-01-12T08:35:23.000Z
2022-01-31T04:41:35.000Z
examples/async_version/async_webhook_receiver.py
YUKAI/emo-platform-api-python
ba350f7cda7cd23627a0f3363490a56dfb6bd38b
[ "MIT" ]
null
null
null
"""Emo Platform API python example Receiving webhook data. """ import asyncio from emo_platform import AsyncClient, WebHook client = AsyncClient() # Please replace "YOUR WEBHOOK URL" with the URL forwarded to http://localhost:8000 client.create_webhook_setting(WebHook("YOUR WEBHOOK URL")) async def print_queue(que...
26.157895
83
0.700201
4a239c017f1f36ca87f05a43d6876b41ff211d4b
1,112
py
Python
libG/hclust_sort.py
fraunhofer-iais/IAIS-Jupyter-Snippets-Extension
b089bf08dde9c923209065ab8589382669b7a005
[ "MIT" ]
3
2020-09-29T12:01:10.000Z
2020-09-30T07:36:21.000Z
libG/hclust_sort.py
fraunhofer-iais/IAIS-Jupyter-Snippets-Extension
b089bf08dde9c923209065ab8589382669b7a005
[ "MIT" ]
null
null
null
libG/hclust_sort.py
fraunhofer-iais/IAIS-Jupyter-Snippets-Extension
b089bf08dde9c923209065ab8589382669b7a005
[ "MIT" ]
1
2020-09-11T09:57:50.000Z
2020-09-11T09:57:50.000Z
from scipy.spatial.distance import pdist import scipy.cluster.hierarchy as hierarchy from sklearn.preprocessing import MinMaxScaler import numpy as np import pandas as pd import pylab as pl def hclust_sort(df, sort_cols=True, sort_rows=True): '''Sort an array by the hierarchical leaf ordering. Parameters: ...
29.263158
80
0.676259
4a239c3086210014d220d0f5e8b419535af9b862
11,856
py
Python
docs/conf.py
nhirschey/LightGBM
846e10c7a45a47434f19e5e2bab77891cfd97e69
[ "MIT" ]
1
2021-02-23T05:17:34.000Z
2021-02-23T05:17:34.000Z
docs/conf.py
nhirschey/LightGBM
846e10c7a45a47434f19e5e2bab77891cfd97e69
[ "MIT" ]
null
null
null
docs/conf.py
nhirschey/LightGBM
846e10c7a45a47434f19e5e2bab77891cfd97e69
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # LightGBM documentation build configuration file, created by # sphinx-quickstart on Thu May 4 14:30:58 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # a...
35.818731
110
0.654943
4a239dc99ad12f5659a260272159c5050532d577
7,172
py
Python
src/CLIENT/client.py
f0lg0/pyChat
abade1f8a99d7eb38634b59622726a401dbab575
[ "MIT" ]
13
2020-06-30T18:59:24.000Z
2022-03-09T17:57:49.000Z
src/CLIENT/client.py
f0lg0/pyChat
abade1f8a99d7eb38634b59622726a401dbab575
[ "MIT" ]
1
2021-01-18T19:58:50.000Z
2021-01-18T20:00:22.000Z
src/CLIENT/client.py
f0lg0/pyChat
abade1f8a99d7eb38634b59622726a401dbab575
[ "MIT" ]
5
2020-06-30T19:06:48.000Z
2022-03-12T21:47:29.000Z
import socket import json import threading import argparse import sys import os import time from datetime import datetime from message import Message from streaming import createMsg, streamData, initializeAES import pyDHE import eel # this is temporary, just for debuggining when you want to open two clients on one com...
32.899083
137
0.617262
4a239e754acf4d5bbc34d311139219b96cb65277
1,410
py
Python
opt/Ipxe/var/www/Kickstart/boot/module/prova.py
EarlRagnar78/LinuxAutomateDeploy
3d4e0ef89b3b80972e49ea48361e51a9622156d9
[ "Apache-2.0" ]
null
null
null
opt/Ipxe/var/www/Kickstart/boot/module/prova.py
EarlRagnar78/LinuxAutomateDeploy
3d4e0ef89b3b80972e49ea48361e51a9622156d9
[ "Apache-2.0" ]
null
null
null
opt/Ipxe/var/www/Kickstart/boot/module/prova.py
EarlRagnar78/LinuxAutomateDeploy
3d4e0ef89b3b80972e49ea48361e51a9622156d9
[ "Apache-2.0" ]
null
null
null
#script per testare l'import module via url di python: #!/usr/bin/python import urllib, sys def import_URL(URL): exec urllib.urlopen(URL).read() in globals() """ from urllib2 import urlopen r = urlopen('http://urlHere/fileHere') f = open('filenameToWrite', 'w') f.write(r.read()) f.close() import filenameWithout....
24.736842
61
0.692199
4a239f3b061348302cafc57bd6c26c78737ac053
633
py
Python
scripts/demo.py
filesmuggler/rl-physnet
b6d9886c15d6619df331866cf6a98c61da8413e9
[ "MIT" ]
null
null
null
scripts/demo.py
filesmuggler/rl-physnet
b6d9886c15d6619df331866cf6a98c61da8413e9
[ "MIT" ]
null
null
null
scripts/demo.py
filesmuggler/rl-physnet
b6d9886c15d6619df331866cf6a98c61da8413e9
[ "MIT" ]
null
null
null
import yaml import world from utils.text import TextFlag, log NUM_EPISODES = 10 NUM_ACTIONS = 10 ENV_CONFIG = yaml.safe_load(open("../config/demo.yaml", 'r')) if __name__ == "__main__": myenv = world.environment.pusher.PusherEnvDemo(ENV_CONFIG) myenv.rog.object_types = ['cube.obj'] myenv.reset() for...
26.375
72
0.674566
4a23a00203b8cec140b4b8c0b930fa33b38e28e0
968
py
Python
src/building_database/build_intervals.py
wrs28/safe_extubation
ad4e3e89867f6086736470a7a436bf25b8257318
[ "MIT" ]
2
2020-07-01T20:08:52.000Z
2020-07-03T14:51:41.000Z
src/building_database/build_intervals.py
wrs28/safe_extubation
ad4e3e89867f6086736470a7a436bf25b8257318
[ "MIT" ]
null
null
null
src/building_database/build_intervals.py
wrs28/safe_extubation
ad4e3e89867f6086736470a7a436bf25b8257318
[ "MIT" ]
null
null
null
import pandas as pd import sqlalchemy from directories import print_log, engine N_WINDOWS = 48 def main(): with engine.connect() as connection: vaso_episodes = pd.read_sql("pressors_by_icustay", con=connection, index_col="ICUSTAY_ID") print_log("building hour-long intervals for each icustay") ...
30.25
135
0.733471
4a23a255129dbb0b6bf903c9d385faa57c544ce0
1,635
py
Python
demos/Multiscale/adoption_funnel/model/run.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
56
2020-07-08T23:23:15.000Z
2022-03-11T20:43:09.000Z
demos/Multiscale/adoption_funnel/model/run.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
41
2020-07-11T23:24:06.000Z
2022-01-28T13:28:07.000Z
demos/Multiscale/adoption_funnel/model/run.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
39
2020-07-15T11:35:04.000Z
2022-02-01T16:02:51.000Z
import pandas as pd from .parts.utils import * from model import config from cadCAD.engine import ExecutionMode, ExecutionContext,Executor from cadCAD import configs def get_M(k, v): if k == 'sim_config': k, v = 'M', v['M'] return k, v config_ids = [ dict( get_M(k, v) for k, v in config...
26.803279
118
0.655046
4a23a2dc131f1763c135eedeb47017340b9f7f06
90
py
Python
params.py
roinaveiro/poisoning_hmms
2f695ad9d61756468e63028dbedf98c59368f29d
[ "MIT" ]
3
2022-02-01T03:42:33.000Z
2022-02-01T03:42:58.000Z
params.py
roinaveiro/poisoning_hmms
2f695ad9d61756468e63028dbedf98c59368f29d
[ "MIT" ]
6
2022-03-02T10:29:44.000Z
2022-03-31T23:33:40.000Z
params.py
roinaveiro/poisoning_hmms
2f695ad9d61756468e63028dbedf98c59368f29d
[ "MIT" ]
null
null
null
import numpy as np w1 = 0.7 w2 = 1 - w1 T = 10 theta = 1 epsilon = 2 zeta = 3 k = 1000
7.5
18
0.566667
4a23a37b8f88f7c060f5904861ba903a33b3f473
370
py
Python
musicdb-app/Backend-django/music_service/migrations/0003_auto_20210317_1535.py
comp-333-rad/hw-3
a52fcc4fd40a207783950a15fac89549b193d70d
[ "MIT" ]
null
null
null
musicdb-app/Backend-django/music_service/migrations/0003_auto_20210317_1535.py
comp-333-rad/hw-3
a52fcc4fd40a207783950a15fac89549b193d70d
[ "MIT" ]
4
2021-04-20T02:30:01.000Z
2021-04-21T06:03:51.000Z
musicdb-app/Backend-django/music_service/migrations/0003_auto_20210317_1535.py
comp-333-rad/hw-3
a52fcc4fd40a207783950a15fac89549b193d70d
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-03-17 15:35 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('music_service', '0002_auto_20210317_1358'), ] operations = [ migrations.RenameField( model_name='songdetail', old_name='genr...
19.473684
53
0.591892
4a23a453d1213c7f20e7f5b6c590fc4d79687eef
6,773
py
Python
pywikibot/logging.py
Phantom-42/pywikibot
9bf6568598377ec58215d841b51b52c6d9248348
[ "MIT" ]
3
2020-06-06T21:47:04.000Z
2021-09-08T18:22:59.000Z
pywikibot/logging.py
Phantom-42/pywikibot
9bf6568598377ec58215d841b51b52c6d9248348
[ "MIT" ]
null
null
null
pywikibot/logging.py
Phantom-42/pywikibot
9bf6568598377ec58215d841b51b52c6d9248348
[ "MIT" ]
1
2018-01-04T14:09:37.000Z
2018-01-04T14:09:37.000Z
# -*- coding: utf-8 -*- """Logging functions.""" # # (C) Pywikibot team, 2010-2016 # # Distributed under the terms of the MIT license. # from __future__ import absolute_import, unicode_literals __version__ = '$Id: 4a23a453d1213c7f20e7f5b6c590fc4d79687eef $' import logging import os import sys # logging levels from l...
33.039024
77
0.668242
4a23a4ed8df6d549e0f72cb0344c4a0b2c7d0312
18,258
py
Python
ros/src/tl_detector/tl_detector.py
redherring2141/CarND-Capstone
df230f902836923dbbc55065c3d4f12531c05cda
[ "MIT" ]
null
null
null
ros/src/tl_detector/tl_detector.py
redherring2141/CarND-Capstone
df230f902836923dbbc55065c3d4f12531c05cda
[ "MIT" ]
null
null
null
ros/src/tl_detector/tl_detector.py
redherring2141/CarND-Capstone
df230f902836923dbbc55065c3d4f12531c05cda
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy from std_msgs.msg import Int32 from geometry_msgs.msg import PoseStamped, Pose from styx_msgs.msg import TrafficLightArray, TrafficLight from styx_msgs.msg import Lane from sensor_msgs.msg import Image from cv_bridge import CvBridge from light_classification.tl_classifier import TLCla...
36.589178
136
0.638241
4a23a54c47fceb8517d072b44349840196f9596b
5,967
py
Python
localflavor/us/forms.py
torakses/django-localflavor
17ca87095d6f8c3f3888016085a2edb5951889f4
[ "BSD-3-Clause" ]
null
null
null
localflavor/us/forms.py
torakses/django-localflavor
17ca87095d6f8c3f3888016085a2edb5951889f4
[ "BSD-3-Clause" ]
null
null
null
localflavor/us/forms.py
torakses/django-localflavor
17ca87095d6f8c3f3888016085a2edb5951889f4
[ "BSD-3-Clause" ]
null
null
null
"""USA-specific Form helpers.""" from __future__ import unicode_literals import re from django.core.validators import EMPTY_VALUES from django.forms import ValidationError from django.forms.fields import CharField, Field, RegexField, Select from django.utils.encoding import force_text from django.utils.translation i...
34.69186
112
0.644042
4a23a631c21ef8c9216bbaf1408b6f644701863e
1,383
py
Python
examples/spu_comp.py
matthiaskramm/corepy
b2aad4e86adca10420e825fb65dcbd031cf44bb1
[ "BSD-3-Clause" ]
8
2016-02-20T03:52:58.000Z
2022-01-24T15:04:14.000Z
examples/spu_comp.py
matthiaskramm/corepy
b2aad4e86adca10420e825fb65dcbd031cf44bb1
[ "BSD-3-Clause" ]
null
null
null
examples/spu_comp.py
matthiaskramm/corepy
b2aad4e86adca10420e825fb65dcbd031cf44bb1
[ "BSD-3-Clause" ]
6
2015-12-11T05:21:15.000Z
2020-12-11T10:59:15.000Z
import corepy.lib.extarray as extarray import corepy.arch.spu.isa as spu import corepy.arch.spu.lib.util as util import corepy.arch.spu.platform as env prgm = env.Program() code = prgm.get_stream() proc = env.Processor() # Generate substream # Multiply gp_return by 2, add 1 subcode = prgm.get_stream() subcode.add(spu...
23.05
63
0.741142
4a23a6b27d6c2a12b5ca9c5c5c903ee739ec189d
421
py
Python
TWLight/users/serializers.py
nicole331/TWLight
fab9002e76868f8a2ef36f9279c777de34243b2c
[ "MIT" ]
67
2017-12-14T22:27:48.000Z
2022-03-13T18:21:31.000Z
TWLight/users/serializers.py
nicole331/TWLight
fab9002e76868f8a2ef36f9279c777de34243b2c
[ "MIT" ]
433
2017-03-24T22:51:23.000Z
2022-03-31T19:36:22.000Z
TWLight/users/serializers.py
Mahuton/TWLight
90b299d07b0479f21dc90e17b8d05f5a221b0de1
[ "MIT" ]
105
2017-06-23T03:53:41.000Z
2022-03-30T17:24:29.000Z
from django.contrib.auth.models import User from rest_framework import serializers class UserSerializer(serializers.ModelSerializer): wp_username = serializers.CharField(source="editor.wp_username") class Meta: model = User # Since we only care about one field we could probably return data in...
32.384615
84
0.726841
4a23a7bbd6134f50d60ec711492cbdd372c02885
8,220
py
Python
ppocr/modeling/heads/kie_sdmgr_head.py
ocr-translate/PaddleOCR-1
71e8ae072f8085e91db40d5e23dee60a30707542
[ "Apache-2.0" ]
null
null
null
ppocr/modeling/heads/kie_sdmgr_head.py
ocr-translate/PaddleOCR-1
71e8ae072f8085e91db40d5e23dee60a30707542
[ "Apache-2.0" ]
null
null
null
ppocr/modeling/heads/kie_sdmgr_head.py
ocr-translate/PaddleOCR-1
71e8ae072f8085e91db40d5e23dee60a30707542
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
39.330144
108
0.582968
4a23a9387a81b5b9200d3aed6345383650c4859e
11,720
py
Python
__init__.py
nmbr7/ctfd-category-scoreboard-plugin
5a9098061a2bd5c913e1af66da62fb7dea86d4d4
[ "MIT" ]
null
null
null
__init__.py
nmbr7/ctfd-category-scoreboard-plugin
5a9098061a2bd5c913e1af66da62fb7dea86d4d4
[ "MIT" ]
null
null
null
__init__.py
nmbr7/ctfd-category-scoreboard-plugin
5a9098061a2bd5c913e1af66da62fb7dea86d4d4
[ "MIT" ]
null
null
null
import os import datetime import stream_chat from flask import ( render_template, jsonify, Blueprint, url_for, session, redirect, request, escape ) from sqlalchemy.sql import or_ from CTFd.utils.helpers import get_errors, get_infos from CTFd import utils, scoreboard from CTFd.models imp...
36.17284
151
0.544454
4a23a95f5855c8879a9b7fde33b1a59776d6319d
3,701
py
Python
prediction/predictor.py
litosly/RankingOptimizationApprochtoLLC
b6b79fb1364fcc481aa84093a8e8399966b19d02
[ "MIT" ]
5
2020-10-10T02:11:16.000Z
2021-11-08T22:55:34.000Z
prediction/predictor.py
litosly/RankingOptimizationApprochtoLLC
b6b79fb1364fcc481aa84093a8e8399966b19d02
[ "MIT" ]
null
null
null
prediction/predictor.py
litosly/RankingOptimizationApprochtoLLC
b6b79fb1364fcc481aa84093a8e8399966b19d02
[ "MIT" ]
2
2020-10-22T14:50:43.000Z
2021-08-15T07:00:43.000Z
from tqdm import tqdm import numpy as np def predict_vector(rating_vector, train_vector, remove_train=True): dim = len(rating_vector) candidate_index = np.argpartition(-rating_vector, dim-1)[:dim] prediction_items = candidate_index[rating_vector[candidate_index].argsort()[::-1]] if remove_train: ...
34.268519
109
0.661443
4a23aa684c4a2cd142fc1eca9a75d77d43dfcf75
4,610
py
Python
bootstrapvz/plugins/prebootstrapped/tasks.py
zeridon/bootstrap-vz
fcdc6993f59e521567fb101302b02312e741b88c
[ "Apache-2.0" ]
207
2015-01-26T19:00:24.000Z
2021-12-16T10:05:58.000Z
bootstrapvz/plugins/prebootstrapped/tasks.py
zeridon/bootstrap-vz
fcdc6993f59e521567fb101302b02312e741b88c
[ "Apache-2.0" ]
346
2015-01-01T08:56:09.000Z
2019-06-10T08:03:05.000Z
bootstrapvz/plugins/prebootstrapped/tasks.py
zeridon/bootstrap-vz
fcdc6993f59e521567fb101302b02312e741b88c
[ "Apache-2.0" ]
124
2015-01-16T21:22:29.000Z
2022-02-25T17:36:10.000Z
from bootstrapvz.base import Task from bootstrapvz.common import phases from bootstrapvz.common.tasks import volume from bootstrapvz.common.tasks import packages from bootstrapvz.providers.virtualbox.tasks import guest_additions from bootstrapvz.providers.ec2.tasks import ebs from bootstrapvz.common.fs import unmounted...
37.177419
107
0.692191
4a23ab7ccd55e3884e4c3bf1103088fce8798c47
133
py
Python
python_scripts_youtube/desafio16_final.py
diegocarloni/python
232e3f40f8096854bfc8da0820808fbda8797387
[ "MIT" ]
null
null
null
python_scripts_youtube/desafio16_final.py
diegocarloni/python
232e3f40f8096854bfc8da0820808fbda8797387
[ "MIT" ]
null
null
null
python_scripts_youtube/desafio16_final.py
diegocarloni/python
232e3f40f8096854bfc8da0820808fbda8797387
[ "MIT" ]
null
null
null
from math import trunc num = float(input('Digite um número: ')) print('A parte inteira de {} é igual a {}'.format(num, trunc(num)))
26.6
67
0.676692
4a23abc7b1caa98c87389423c45b8238685787b9
24,170
py
Python
trac/wiki/tests/functional.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
trac/wiki/tests/functional.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
trac/wiki/tests/functional.py
mikiec84/trac
d51a7119b9fcb9061d7fe135c7d648fa671555dd
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2008-2020 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at https://trac.edgewall.org/wiki/TracLicense. ...
40.827703
83
0.612867
4a23abd4682dc93aa1cd54f91a6818897112a247
1,017
py
Python
maml/apps/pes/__init__.py
anooptp/maml
fdd95f3d60c9281d871d89b25b073e87b6ba4e52
[ "BSD-3-Clause" ]
161
2020-01-26T08:24:41.000Z
2022-03-29T06:42:42.000Z
maml/apps/pes/__init__.py
anooptp/maml
fdd95f3d60c9281d871d89b25b073e87b6ba4e52
[ "BSD-3-Clause" ]
195
2020-01-25T19:35:20.000Z
2022-03-28T13:14:30.000Z
maml/apps/pes/__init__.py
anooptp/maml
fdd95f3d60c9281d871d89b25b073e87b6ba4e52
[ "BSD-3-Clause" ]
46
2020-03-30T12:56:39.000Z
2022-03-27T12:53:23.000Z
# coding: utf-8 # Copyright (c) Materials Virtual Lab # Distributed under the terms of the BSD License. """This package contains PotentialMixin classes representing Interatomic Potentials.""" from ._base import PotentialMixin, Potential # noqa from ._gap import GAPotential # noqa from ._lammps import ( # noqa ...
25.425
87
0.714848
4a23abde83152b4a63c87ef307dfd2826521029c
3,632
py
Python
src/unicef_locations/admin.py
unicef/unicef-locations
4cfe80b6a1d8ac35b0fd243063d696ee7a132b3f
[ "Apache-2.0" ]
3
2018-07-26T11:11:43.000Z
2021-05-11T11:01:09.000Z
src/unicef_locations/admin.py
unicef/unicef-locations
4cfe80b6a1d8ac35b0fd243063d696ee7a132b3f
[ "Apache-2.0" ]
9
2018-07-26T15:33:41.000Z
2022-02-07T11:55:59.000Z
src/unicef_locations/admin.py
unicef/unicef-locations
4cfe80b6a1d8ac35b0fd243063d696ee7a132b3f
[ "Apache-2.0" ]
1
2018-05-14T18:14:54.000Z
2018-05-14T18:14:54.000Z
from admin_extra_urls.decorators import button from admin_extra_urls.mixins import ExtraUrlMixin from carto.sql import SQLClient from django import forms from django.contrib import admin as basic_admin, messages from django.contrib.admin.templatetags.admin_urls import admin_urlname from django.contrib.gis import admin ...
29.290323
111
0.675385
4a23acb07cd030a3911d69541ac56ff4fad02eb6
767
py
Python
settings/config.py
jammie080/Twitter-Bot
0c53bd667db92991ce1f0d0a14985265d505078f
[ "BSD-2-Clause" ]
null
null
null
settings/config.py
jammie080/Twitter-Bot
0c53bd667db92991ce1f0d0a14985265d505078f
[ "BSD-2-Clause" ]
null
null
null
settings/config.py
jammie080/Twitter-Bot
0c53bd667db92991ce1f0d0a14985265d505078f
[ "BSD-2-Clause" ]
null
null
null
from os.path import join, dirname,os from dotenv import load_dotenv,find_dotenv try: dotenv_path = join(dirname(__file__), '.env') if dotenv: load_dotenv(dotenv_path) TWITTER_USERNAME = os.environ.get('') TWITTER_PASSWORD = os.environ.get('') except: TWITTER_USERNAME = '' TWITTE...
21.914286
55
0.54498
4a23ad41e477ff894e5f778080a6c7cd3f164214
598
py
Python
tests/test_app.py
tbrlpld/logtweet
fdb1bcd4bdc4e7b4f08a52cd42654abcee390176
[ "MIT" ]
5
2020-01-07T20:58:40.000Z
2021-03-17T22:36:16.000Z
tests/test_app.py
tbrlpld/logtweet
fdb1bcd4bdc4e7b4f08a52cd42654abcee390176
[ "MIT" ]
null
null
null
tests/test_app.py
tbrlpld/logtweet
fdb1bcd4bdc4e7b4f08a52cd42654abcee390176
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # TEST: Before these tests can easily be created, I need to abstract everything # that is related to generating the tweet content to a separate function. # Once that is done, I only need to mock that one functions return value. # TEST: Main app functionality. def test_sending_cre...
35.176471
79
0.730769
4a23adf9e602d53aefba76091e516098f2f5efa4
13,200
py
Python
pysnmp-with-texts/ATROPOS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/ATROPOS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/ATROPOS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module ATROPOS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ATROPOS-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:31:41 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 0...
107.317073
812
0.7725
4a23aea9319d2ca2f7b9e745c0192ae2265ec7ed
625
py
Python
examples/vhdl/com/run.py
tyski34/vunit
cc0e0fd220ec6ce409f5c48301a78ca3decab5fd
[ "Artistic-2.0" ]
null
null
null
examples/vhdl/com/run.py
tyski34/vunit
cc0e0fd220ec6ce409f5c48301a78ca3decab5fd
[ "Artistic-2.0" ]
null
null
null
examples/vhdl/com/run.py
tyski34/vunit
cc0e0fd220ec6ce409f5c48301a78ca3decab5fd
[ "Artistic-2.0" ]
null
null
null
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. # # Copyright (c) 2014-2019, Lars Asplund lars.anders.asplund@gmail.com from os.path import join, dirname from vunit imp...
28.409091
75
0.736
4a23aefef0ef4866844467c6a3f5f7a061d7ce97
14,450
py
Python
opt/ros/kinetic/lib/python2.7/dist-packages/visualization_msgs/msg/_ImageMarker.py
Roboy/roboy_controlled_node_fpga
dbba4eff19ed04469a6196ba368cea231cad539d
[ "BSD-3-Clause" ]
2
2018-12-11T16:35:20.000Z
2019-01-23T16:42:17.000Z
opt/ros/kinetic/lib/python2.7/dist-packages/visualization_msgs/msg/_ImageMarker.py
Roboy/roboy_managing_node_fpga
64ffe5aec2f2c98a051bb1a881849c195b8d052c
[ "BSD-3-Clause" ]
1
2018-12-28T21:11:50.000Z
2018-12-28T21:11:50.000Z
opt/ros/kinetic/lib/python2.7/dist-packages/visualization_msgs/msg/_ImageMarker.py
Roboy/roboy_managing_node_fpga
64ffe5aec2f2c98a051bb1a881849c195b8d052c
[ "BSD-3-Clause" ]
3
2018-01-21T17:53:17.000Z
2021-09-08T10:22:05.000Z
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from visualization_msgs/ImageMarker.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import geometry_msgs.msg import genpy import std_msgs.msg class ImageMarker(genpy.Mess...
36.397985
336
0.634256
4a23af76ab44b1cf9daeed86e68088d0a735db0d
344
py
Python
electricity/forms.py
siddharth-143/Elektra
1534681e026b28a0233f6f69b3c726c7f34ceedb
[ "MIT" ]
49
2020-09-28T04:07:48.000Z
2022-03-02T00:49:55.000Z
electricity/forms.py
siddharth-143/Elektra
1534681e026b28a0233f6f69b3c726c7f34ceedb
[ "MIT" ]
232
2021-02-28T16:33:23.000Z
2021-10-04T16:37:58.000Z
electricity/forms.py
siddharth-143/Elektra
1534681e026b28a0233f6f69b3c726c7f34ceedb
[ "MIT" ]
122
2020-09-27T18:28:15.000Z
2021-11-04T15:51:34.000Z
from django import forms from django.contrib.auth.models import User from django.contrib.auth.forms import UserCreationForm class RegistrationForm(UserCreationForm): class Meta: model = User fields = ['username', 'email', 'first_name', 'last_na...
26.461538
54
0.578488
4a23afe16fad88f7fae7105c8c33d5ea3e10105a
919
py
Python
batch/batch/cloud/gcp/worker/credentials.py
jmartasek/hail
bc009191a6a159dc7d620e7f573199c0916141fa
[ "MIT" ]
null
null
null
batch/batch/cloud/gcp/worker/credentials.py
jmartasek/hail
bc009191a6a159dc7d620e7f573199c0916141fa
[ "MIT" ]
19
2022-03-03T20:11:41.000Z
2022-03-30T20:31:57.000Z
batch/batch/cloud/gcp/worker/credentials.py
pwc2/hail
edeb70bc789c881dffa0724ddd11fcb25e689b67
[ "MIT" ]
null
null
null
from typing import Dict import base64 from ....worker.credentials import CloudUserCredentials class GCPUserCredentials(CloudUserCredentials): def __init__(self, data: Dict[str, bytes]): self._data = data @property def secret_name(self) -> str: return 'gsa-key' @property def secr...
21.880952
70
0.647443
4a23b11ef7ebe20cea296ac72a2a2a5a978dceb0
625
py
Python
api/serializers.py
Emocial-NLP-Depression-Detection/Emocial-backend-API
23d8e7490d3dc87eab9b02c54e1d5710758200f1
[ "MIT" ]
null
null
null
api/serializers.py
Emocial-NLP-Depression-Detection/Emocial-backend-API
23d8e7490d3dc87eab9b02c54e1d5710758200f1
[ "MIT" ]
null
null
null
api/serializers.py
Emocial-NLP-Depression-Detection/Emocial-backend-API
23d8e7490d3dc87eab9b02c54e1d5710758200f1
[ "MIT" ]
null
null
null
from django.db.models import fields from api.models import Tweets from rest_framework import serializers from .models import * class TweetSerializer(serializers.ModelSerializer): class Meta: model = Tweets fields = '__all__' class TwitterUserSerializer(serializers.ModelSerializer): class Met...
24.038462
58
0.7088
4a23b282a84ac8364be412a4570feb2c1bd2741b
3,339
py
Python
src/visual_attention_base/scripts/visual_attention_base/markerClass.py
ahmohamed1/activeStereoVisionPlatform
6c928ca242e4de68c7b15a8748bff1d9f7fa1382
[ "MIT" ]
null
null
null
src/visual_attention_base/scripts/visual_attention_base/markerClass.py
ahmohamed1/activeStereoVisionPlatform
6c928ca242e4de68c7b15a8748bff1d9f7fa1382
[ "MIT" ]
null
null
null
src/visual_attention_base/scripts/visual_attention_base/markerClass.py
ahmohamed1/activeStereoVisionPlatform
6c928ca242e4de68c7b15a8748bff1d9f7fa1382
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy import numpy as np from visualization_msgs.msg import Marker, MarkerArray from geometry_msgs.msg import Quaternion, Pose, Point, Vector3 from std_msgs.msg import Header, ColorRGBA dummyList = [] for i in range(0,5): pose2D = np.random.randint(0,2000,(2)).tolist() pose3D =...
36.293478
172
0.631926
4a23b2e42ca2690778ca9980a65e6dc8554e9e08
4,552
py
Python
homeassistant/components/binary_sensor/ping.py
adolfoeliazat/voidhomecontrol
6d733253811c553912e46e24debec818b28b0688
[ "Apache-2.0" ]
1
2021-08-06T09:54:39.000Z
2021-08-06T09:54:39.000Z
homeassistant/components/binary_sensor/ping.py
adolfoeliazat/voidhomecontrol
6d733253811c553912e46e24debec818b28b0688
[ "Apache-2.0" ]
null
null
null
homeassistant/components/binary_sensor/ping.py
adolfoeliazat/voidhomecontrol
6d733253811c553912e46e24debec818b28b0688
[ "Apache-2.0" ]
1
2020-08-26T20:54:14.000Z
2020-08-26T20:54:14.000Z
""" Tracks the latency of a host by sending ICMP echo requests (ping). For more details about this platform, please refer to the documentation at https://home-assistant.io/components/binary_sensor.ping/ """ import logging import subprocess import re import sys from datetime import timedelta import voluptuous as vol ...
31.611111
79
0.61138
4a23b39493b074a48a78ab46eb1e60b71ac560fe
2,711
py
Python
service/group_dao.py
meyhane/azure-ad
69b047bc94afe7a9aa3b7899c7e4f3f2ecb002c3
[ "Apache-2.0" ]
null
null
null
service/group_dao.py
meyhane/azure-ad
69b047bc94afe7a9aa3b7899c7e4f3f2ecb002c3
[ "Apache-2.0" ]
null
null
null
service/group_dao.py
meyhane/azure-ad
69b047bc94afe7a9aa3b7899c7e4f3f2ecb002c3
[ "Apache-2.0" ]
null
null
null
import logging from dao_helper import get_all_objects, make_request, GRAPH_URL, is_object_already_exists_exception, \ clear_sesam_attributes, stream_as_json RESOURCE_PATH = '/groups/' def sync_group_array(group_data_array): def __try_create(group_data): """ Internal function to create a group...
37.136986
102
0.646625
4a23b492c746b071b85fe9afe864b6c19ecd905e
852
py
Python
misc/services/life_mngr/s5_trigger_linux.py
donsheng/acrn-hypervisor
79edf8ba08f3f6d11d1ccf464b208c80b5b0fd24
[ "BSD-3-Clause" ]
848
2018-03-06T01:20:35.000Z
2022-03-31T05:47:50.000Z
misc/services/life_mngr/s5_trigger_linux.py
donsheng/acrn-hypervisor
79edf8ba08f3f6d11d1ccf464b208c80b5b0fd24
[ "BSD-3-Clause" ]
6,483
2018-03-09T05:29:36.000Z
2022-03-31T20:39:35.000Z
misc/services/life_mngr/s5_trigger_linux.py
donsheng/acrn-hypervisor
79edf8ba08f3f6d11d1ccf464b208c80b5b0fd24
[ "BSD-3-Clause" ]
593
2018-03-06T07:04:42.000Z
2022-03-29T15:39:27.000Z
#!/usr/bin/env python3 # # Copyright (C) 2021 Intel Corporation. # # SPDX-License-Identifier: BSD-3-Clause # import socket class SocketClient: def __init__(self): pass def connect_to_server(self): SOKET_ADDR = '/var/lib/life_mngr/monitor.sock' SHUTDOWN_REQ = 'req_sys_shutdown' B...
26.625
61
0.65493
4a23b4b8442bdb4e16f09933801eb515b899d978
691
py
Python
test_pypass.py
tsitsiflora/pypass
18d8e70caf112f3feae8d7b5d7956d46f9c64916
[ "Apache-2.0" ]
6
2019-02-14T06:43:24.000Z
2021-11-15T20:26:23.000Z
test_pypass.py
tsitsiflora/pypass
18d8e70caf112f3feae8d7b5d7956d46f9c64916
[ "Apache-2.0" ]
1
2019-03-04T08:07:46.000Z
2019-03-04T22:09:05.000Z
test_pypass.py
tsitsiflora/pypass
18d8e70caf112f3feae8d7b5d7956d46f9c64916
[ "Apache-2.0" ]
2
2019-02-23T08:36:17.000Z
2019-03-15T18:48:18.000Z
import pytest from pypass import clean_input, reverser def test_clean(): assert clean_input('bob') == 'bob' assert clean_input('Mary-Jane') == 'maryjane' assert clean_input('#$%tsitsi&') == 'tsitsi' assert clean_input(' sarah ') == 'sarah' assert clean_input('JOHN') == 'john' assert clean_input...
34.55
49
0.635311
4a23b58f7bb3baa89061bff21a00d058c618069d
3,662
py
Python
pymbt/analysis/_structure/structure_windows.py
klavinslab/pymbt-legacy
d638aecd954664e416ed28b30cdbbcfcb176bae5
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
pymbt/analysis/_structure/structure_windows.py
klavinslab/pymbt-legacy
d638aecd954664e416ed28b30cdbbcfcb176bae5
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
pymbt/analysis/_structure/structure_windows.py
klavinslab/pymbt-legacy
d638aecd954664e416ed28b30cdbbcfcb176bae5
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
'''Evaluate windows of a sequence for in-context structure.''' try: from matplotlib import pylab except ImportError: print "Failed to import matplotlib. Plotting structures won't work." import pymbt.analysis class StructureWindows(object): '''Evaluate windows of structure and plot the results.''' def ...
37.752577
79
0.643091
4a23b5cbca807e0974da77f66d9fdfd82a5206d6
1,991
py
Python
test/Decider/Environment.py
Valkatraz/scons
5e70c65f633dcecc035751c9f0c6f894088df8a0
[ "MIT" ]
1,403
2017-11-23T14:24:01.000Z
2022-03-30T20:59:39.000Z
test/Decider/Environment.py
Valkatraz/scons
5e70c65f633dcecc035751c9f0c6f894088df8a0
[ "MIT" ]
3,708
2017-11-27T13:47:12.000Z
2022-03-29T17:21:17.000Z
test/Decider/Environment.py
Valkatraz/scons
5e70c65f633dcecc035751c9f0c6f894088df8a0
[ "MIT" ]
281
2017-12-01T23:48:38.000Z
2022-03-31T15:25:44.000Z
#!/usr/bin/env python # # __COPYRIGHT__ # # 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 rights to use, copy, modify, merge, publish, ...
28.855072
73
0.746359
4a23b5d649d9a14cfb43aac454a4690f9c8e4b95
1,718
py
Python
scripts/pressure_node.py
smithjoana/zoidberg_ros
134be309b9ce9f63de107a8ae64db304bb833ee9
[ "MIT" ]
6
2018-09-15T19:16:57.000Z
2019-07-29T19:22:12.000Z
scripts/pressure_node.py
smithjoana/zoidberg_ros
134be309b9ce9f63de107a8ae64db304bb833ee9
[ "MIT" ]
null
null
null
scripts/pressure_node.py
smithjoana/zoidberg_ros
134be309b9ce9f63de107a8ae64db304bb833ee9
[ "MIT" ]
5
2018-10-19T01:49:46.000Z
2018-11-17T18:04:55.000Z
#!/usr/bin/env python """ ====================== Read pressure data ====================== read scaledpressure2 from the pyhawk """ from __future__ import print_function, division import rospy from pymavlink import mavutil from sensor_msgs.msg import FluidPressure from std_msgs.msg import Header device = "udpin:127.0...
28.633333
65
0.624563
4a23b774ac5c9b87d6f5225822615e937a9dbc48
4,508
py
Python
Lib/site-packages/psutil/tests/test_aix.py
edupyter/EDUPYTER38
396183cea72987506f1ef647c0272a2577c56218
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/psutil/tests/test_aix.py
edupyter/EDUPYTER38
396183cea72987506f1ef647c0272a2577c56218
[ "bzip2-1.0.6" ]
1
2017-01-11T10:12:46.000Z
2017-01-11T10:12:46.000Z
Lib/site-packages/psutil/tests/test_aix.py
edupyter/EDUPYTER38
396183cea72987506f1ef647c0272a2577c56218
[ "bzip2-1.0.6" ]
3
2017-01-10T13:50:05.000Z
2019-02-12T13:20:59.000Z
#!/usr/bin/env python3 # Copyright (c) 2009, Giampaolo Rodola' # Copyright (c) 2017, Arnon Yaari # All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """AIX specific tests.""" import re import unittest import psutil from psutil import AIX from ...
36.650407
77
0.614685
4a23b78bf693f8fa01ced8a35aa97a6d52464859
64
py
Python
src/models/util/backbone/__init__.py
shendu-sw/TFR-HSS-Benchmark
3fbc93ff548d924050e2de5070007197f04be7f4
[ "MIT" ]
7
2021-08-24T10:01:28.000Z
2021-12-29T07:13:17.000Z
src/models/util/backbone/__init__.py
idrl-lab/TFR-HSS-Benchmark
3fbc93ff548d924050e2de5070007197f04be7f4
[ "MIT" ]
null
null
null
src/models/util/backbone/__init__.py
idrl-lab/TFR-HSS-Benchmark
3fbc93ff548d924050e2de5070007197f04be7f4
[ "MIT" ]
1
2021-08-25T01:38:39.000Z
2021-08-25T01:38:39.000Z
from .alexnet import * from .resnet import * from .vgg import *
16
22
0.71875
4a23b7e2ac76be998e5e88822db9ab03bc7ddb0c
1,024
py
Python
examples/ur5e/sim/get_joint_info.py
weiqiao/airobot
5f9c6f239a16f31f8923131e144b360f71a89a93
[ "MIT" ]
null
null
null
examples/ur5e/sim/get_joint_info.py
weiqiao/airobot
5f9c6f239a16f31f8923131e144b360f71a89a93
[ "MIT" ]
null
null
null
examples/ur5e/sim/get_joint_info.py
weiqiao/airobot
5f9c6f239a16f31f8923131e144b360f71a89a93
[ "MIT" ]
null
null
null
import numpy as np from airobot import Robot from airobot import log_info def main(): """ This function demonstrates how to get joint information such as joint positions/velocities/torques. """ robot = Robot('ur5e_2f140', pb_cfg={'gui': True}) robot.arm.go_home() log_info('\nJoint position...
31.030303
75
0.665039
4a23b822089469006c2b42af4a5dbc1e1ad1ea59
2,506
py
Python
setup.py
gabrieldechichi/auto-editor
375f5f8612749f314002aa6420683543bac1318e
[ "Unlicense" ]
1
2021-08-18T14:09:07.000Z
2021-08-18T14:09:07.000Z
setup.py
gabrieldechichi/auto-editor
375f5f8612749f314002aa6420683543bac1318e
[ "Unlicense" ]
null
null
null
setup.py
gabrieldechichi/auto-editor
375f5f8612749f314002aa6420683543bac1318e
[ "Unlicense" ]
null
null
null
'''setup.py''' """ Create a build for pip This code should only be executed by developers, not users. """ import os import re import sys from setuptools import setup, find_packages def pip_version(): with open(os.path.abspath('auto_editor/__init__.py')) as f: version_content = f.read() version_matc...
29.482353
81
0.630487
4a23b8a6a4a7c303a2be0503c8310bbb13bd91b9
1,823
py
Python
src/tox_ansible/matrix/__init__.py
strider/tox-ansible
e5963fac18b788d450c0b827538b54354e261fce
[ "MIT" ]
7
2020-10-10T13:58:39.000Z
2021-04-17T14:57:59.000Z
src/tox_ansible/matrix/__init__.py
strider/tox-ansible
e5963fac18b788d450c0b827538b54354e261fce
[ "MIT" ]
52
2020-08-19T16:44:08.000Z
2021-08-31T13:34:02.000Z
src/tox_ansible/matrix/__init__.py
strider/tox-ansible
e5963fac18b788d450c0b827538b54354e261fce
[ "MIT" ]
5
2020-08-19T19:02:03.000Z
2021-04-14T04:17:44.000Z
class Matrix(object): def __init__(self): self.axes = [] def add_axis(self, axis): """Add an extension axis to this matrix. Axes can be found in the axes.py file and are subclasses of the MatrixAxisBase class. :param axis: An expansion axis to add to this matrix.""" sel...
33.759259
77
0.645639
4a23b9a94aaa4b8863f1f8a812356490d6cdacbc
1,105
py
Python
kafka_consumer/managers.py
innovationinit/django-kafka-consumer
c401db135315496f5386330ad67b13aa889e2bb5
[ "BSD-2-Clause" ]
null
null
null
kafka_consumer/managers.py
innovationinit/django-kafka-consumer
c401db135315496f5386330ad67b13aa889e2bb5
[ "BSD-2-Clause" ]
null
null
null
kafka_consumer/managers.py
innovationinit/django-kafka-consumer
c401db135315496f5386330ad67b13aa889e2bb5
[ "BSD-2-Clause" ]
null
null
null
from django.db.models import Manager from .utils import get_class_path class JunkMessageManager(Manager): def handle_junk_message(self, subscriber, raw_message, exception, topic_key): """Store kafka message in original form for further process :param subscriber: Message subscriber, processes giv...
36.833333
119
0.696833
4a23baa22d5e5314ffb6ffe89dcf7ee8b3efb167
3,008
py
Python
blamepipeline/preprocess/match_entity_article.py
Shuailong/BlamePipeline
bbd508dd0afc2e2c579f6afea5a3acd4c5c47956
[ "MIT" ]
5
2019-02-12T14:47:40.000Z
2021-10-24T00:39:05.000Z
blamepipeline/preprocess/match_entity_article.py
Shuailong/BlamePipeline
bbd508dd0afc2e2c579f6afea5a3acd4c5c47956
[ "MIT" ]
1
2020-08-10T10:16:29.000Z
2020-08-10T10:16:29.000Z
blamepipeline/preprocess/match_entity_article.py
Shuailong/BlamePipeline
bbd508dd0afc2e2c579f6afea5a3acd4c5c47956
[ "MIT" ]
3
2019-02-12T14:48:01.000Z
2022-02-07T15:27:09.000Z
# encoding: utf-8 ''' Match articles with annotated blame entities. ''' import argparse from collections import defaultdict from .match_article_entry import match_data sources = ['USA', 'NYT', 'WSJ'] cases = defaultdict(int) def filter_data(pairs, source=None, ignore_claim=False): valid_pairs = [] articl...
28.923077
97
0.539561
4a23be5c8284c77c4558f258a0b6e16abe32a7c1
412
py
Python
bigraph/preprocessing/pd_to_list.py
jake-b12/bigraph
1b7b1e0ecb73ff7a800c706831ab3d19675e8c49
[ "BSD-3-Clause" ]
73
2021-01-09T16:25:15.000Z
2022-03-19T14:03:58.000Z
bigraph/preprocessing/pd_to_list.py
jake-b12/bigraph
1b7b1e0ecb73ff7a800c706831ab3d19675e8c49
[ "BSD-3-Clause" ]
3
2019-10-20T00:44:30.000Z
2019-10-20T00:44:30.000Z
bigraph/preprocessing/pd_to_list.py
jake-b12/bigraph
1b7b1e0ecb73ff7a800c706831ab3d19675e8c49
[ "BSD-3-Clause" ]
22
2021-01-12T02:15:47.000Z
2022-03-16T20:54:32.000Z
def _add_to_list(dataframe: dict) -> list: """ Generate link tuples and append them to a list :param dataframe: Dataframe containing links :return: Edge list """ edge_list = [] for edge_row in dataframe.iterrows(): # if not str(df_nodes[edge_row[1][1]]).__contains__('.'): tu...
29.428571
65
0.633495
4a23be5d1ce7d5f6b8e8be54db6ffd7d10ee8c0f
650
py
Python
app/shop/urls.py
duboisR/django-stripe
add707f91ca43522ca19b7b735196ddc16aad651
[ "MIT" ]
null
null
null
app/shop/urls.py
duboisR/django-stripe
add707f91ca43522ca19b7b735196ddc16aad651
[ "MIT" ]
null
null
null
app/shop/urls.py
duboisR/django-stripe
add707f91ca43522ca19b7b735196ddc16aad651
[ "MIT" ]
null
null
null
from django.urls import path, include import shop.views urlpatterns = [ # Shop path('', shop.views.ShopView.as_view(), name="shop"), path('item/<int:pk>/', shop.views.ShopItemView.as_view(), name="shop_item"), # Payment path('cart/', shop.views.CartView.as_view(), name="cart"), path('checkout...
34.210526
105
0.687692
4a23bee168895676364e2387acef3f5837f5cabe
1,242
py
Python
lang/py/pylib/code/filecmp/filecmp_mkexamples.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
13
2020-01-04T07:37:38.000Z
2021-08-31T05:19:58.000Z
lang/py/pylib/code/filecmp/filecmp_mkexamples.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
3
2020-06-05T22:42:53.000Z
2020-08-24T07:18:54.000Z
lang/py/pylib/code/filecmp/filecmp_mkexamples.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
9
2020-10-19T04:53:06.000Z
2021-08-31T05:20:01.000Z
#!/usr/bin/env python # encoding: utf-8 # # Copyright (c) 2008 Doug Hellmann All rights reserved. # """This script creates the example directory and its contents. """ __version__ = "$Id$" #end_pymotw_header import os def mkfile(filename, body=None): with open(filename, 'w') as f: f.write(body or filename...
22.581818
62
0.669082
4a23c1039b04095ad13180f7966459e9868a0aa5
2,073
py
Python
src/python/tests/core/local/butler/scripts/batcher_test.py
mi-ac/clusterfuzz
0b5c023eca9e3aac41faba17da8f341c0ca2ddc7
[ "Apache-2.0" ]
1
2020-12-23T02:49:09.000Z
2020-12-23T02:49:09.000Z
src/python/tests/core/local/butler/scripts/batcher_test.py
mi-ac/clusterfuzz
0b5c023eca9e3aac41faba17da8f341c0ca2ddc7
[ "Apache-2.0" ]
2
2021-03-31T19:59:19.000Z
2021-05-20T22:08:07.000Z
src/python/tests/core/local/butler/scripts/batcher_test.py
henryzz0/clusterfuzz
0427ed8328d6bd6e18540087793a41531bbaafea
[ "Apache-2.0" ]
1
2021-11-06T06:22:00.000Z
2021-11-06T06:22:00.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
32.904762
76
0.721659
4a23c288b9fe71b040c951fe5bc1bf2b90730675
377
py
Python
chatette/log.py
SimGus/Chatette
fd22b6c2e4a27b222071c93772c2ae99387aa5c3
[ "MIT" ]
263
2018-09-06T14:46:29.000Z
2022-03-31T08:40:19.000Z
chatette/log.py
IspML/Chatette
fd22b6c2e4a27b222071c93772c2ae99387aa5c3
[ "MIT" ]
50
2018-09-06T14:50:18.000Z
2021-11-16T03:54:27.000Z
chatette/log.py
IspML/Chatette
fd22b6c2e4a27b222071c93772c2ae99387aa5c3
[ "MIT" ]
49
2018-09-18T23:15:09.000Z
2022-03-02T11:23:08.000Z
#!/usr/bin/env python3 # coding: utf-8 """ Module `chatette.log` Contains logging functions used throughout the project. """ import sys # pylint: disable=invalid-name def print_DBG(txt): """Prints debug information on stdout.""" print("[DBG] " + txt) def print_warn(txt): """Warns the user using stdout....
18.85
55
0.65252
4a23c2c7f072ca3b2dea167396c403809e130d93
3,420
py
Python
tests/test_conversion.py
cihai/cihai
6a9764e5b3c47b28f4a4dce27234ff99b2ee45c5
[ "MIT" ]
41
2017-05-03T12:31:19.000Z
2022-03-25T06:41:59.000Z
tests/test_conversion.py
cihai/cihai
6a9764e5b3c47b28f4a4dce27234ff99b2ee45c5
[ "MIT" ]
300
2017-04-23T20:50:04.000Z
2022-03-05T20:24:36.000Z
tests/test_conversion.py
cihai/cihai
6a9764e5b3c47b28f4a4dce27234ff99b2ee45c5
[ "MIT" ]
10
2017-06-01T11:26:45.000Z
2022-03-11T06:04:34.000Z
"""Tests for cihai. test.conversion ~~~~~~~~~~~~~~~ """ from cihai import conversion from cihai._compat import string_types, text_type def test_text_type(): c1 = '(same as U+7A69 穩) firm; stable; secure' c2 = text_type() assert isinstance(c1, string_types) assert isinstance(c2, text_type) """Retu...
24.428571
85
0.71462
4a23c41fff305e1370241de1770ecf8dd20ef8d8
3,535
py
Python
gym_minigrid/envs/keycorridor.py
DamienLopez1/WM-GEP
8b858cf8d221d58cd4ff945ae6c1270c290768c4
[ "Apache-2.0" ]
null
null
null
gym_minigrid/envs/keycorridor.py
DamienLopez1/WM-GEP
8b858cf8d221d58cd4ff945ae6c1270c290768c4
[ "Apache-2.0" ]
null
null
null
gym_minigrid/envs/keycorridor.py
DamienLopez1/WM-GEP
8b858cf8d221d58cd4ff945ae6c1270c290768c4
[ "Apache-2.0" ]
null
null
null
from gym_minigrid.roomgrid import RoomGrid from gym_minigrid.register import register class KeyCorridor(RoomGrid): """ A ball is behind a locked door, the key is placed in a random room. """ def __init__( self, num_rows=3, obj_type="ball", room_size=6, ...
25.615942
80
0.571994
4a23c43f95ae4e7c54b40ace2fdff94b04251b77
388
py
Python
resteasycli/lib/saved_request.py
rapidstack/RESTEasyCLI
f65fc86163c25f843a94341f09b20db28c1511d7
[ "MIT" ]
null
null
null
resteasycli/lib/saved_request.py
rapidstack/RESTEasyCLI
f65fc86163c25f843a94341f09b20db28c1511d7
[ "MIT" ]
55
2019-01-01T12:03:58.000Z
2019-05-23T16:36:30.000Z
resteasycli/lib/saved_request.py
sayanarijit/RESTEasyCLI
f65fc86163c25f843a94341f09b20db28c1511d7
[ "MIT" ]
5
2019-01-01T17:04:37.000Z
2019-03-02T17:59:49.000Z
from resteasycli.lib.request import Request class SavedRequest(Request): '''Saved requests for reuse and lazyness''' def __init__(self, request_id, workspace): data = workspace.saved_requests[request_id] Request.__init__(self, workspace=workspace, site_id=data['site'], endpoint...
32.333333
73
0.690722
4a23c468f12ac0737b7e752e73463aca3d2c175c
2,297
py
Python
scripts/addCols.py
amlalejini/GECCO-2018-cohort-lexicase
da36586714a5322af37548348958dc9e3aa7938d
[ "MIT" ]
1
2019-04-08T18:44:59.000Z
2019-04-08T18:44:59.000Z
scripts/addCols.py
amlalejini/GECCO-2018-cohort-lexicase
da36586714a5322af37548348958dc9e3aa7938d
[ "MIT" ]
5
2019-03-22T16:29:26.000Z
2019-04-01T13:57:55.000Z
scripts/addCols.py
amlalejini/GECCO-2019-cohort-lexicase
da36586714a5322af37548348958dc9e3aa7938d
[ "MIT" ]
null
null
null
import argparse, os, copy, errno, csv cohort_configs = { "CN_128__CS_4": "cn128:cs4", "CN_16__CS_32": "cn16:cs32", "CN_1__CS_512": "cn1:cs512", "CN_256__CS_2": "cn256:cs2", "CN_2__CS_256": "cn2:cs256", "CN_32__CS_16": "cn32:cs16", "CN_4__CS_128": "cn4:cs128", "CN_64__CS_8": "cn64:cs8",...
37.048387
438
0.681323
4a23c5984c2d093e2f53e93aec71418f84b65928
6,418
py
Python
src/test/python/apache/aurora/client/cli/test_inspect.py
pikselpalette/aurora
65cd3ee9a574e3f711628125362a1fda1a8e82ae
[ "Apache-2.0" ]
null
null
null
src/test/python/apache/aurora/client/cli/test_inspect.py
pikselpalette/aurora
65cd3ee9a574e3f711628125362a1fda1a8e82ae
[ "Apache-2.0" ]
null
null
null
src/test/python/apache/aurora/client/cli/test_inspect.py
pikselpalette/aurora
65cd3ee9a574e3f711628125362a1fda1a8e82ae
[ "Apache-2.0" ]
1
2022-02-27T10:41:45.000Z
2022-02-27T10:41:45.000Z
# # 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 ...
36.05618
99
0.608601
4a23c59a17962d1ed8f237c0185c22c684006fbe
8,475
py
Python
t2t_bert/distributed_single_sentence_classification/model_relation_distillation.py
yyht/bert
480c909e0835a455606e829310ff949c9dd23549
[ "Apache-2.0" ]
34
2018-12-19T01:00:57.000Z
2021-03-26T09:36:37.000Z
t2t_bert/distributed_single_sentence_classification/model_relation_distillation.py
yyht/bert
480c909e0835a455606e829310ff949c9dd23549
[ "Apache-2.0" ]
11
2018-12-25T03:37:59.000Z
2021-08-25T14:43:58.000Z
t2t_bert/distributed_single_sentence_classification/model_relation_distillation.py
yyht/bert
480c909e0835a455606e829310ff949c9dd23549
[ "Apache-2.0" ]
9
2018-12-27T08:00:44.000Z
2020-06-08T03:05:14.000Z
try: from .model_interface import model_zoo except: from model_interface import model_zoo import tensorflow as tf import numpy as np from bunch import Bunch from model_io import model_io from task_module import classifier import tensorflow as tf from metric import tf_metrics from optimizer import distributed_optim...
31.158088
122
0.662655
4a23c5bd3129dfd2a52fad2d299506a875748262
956
py
Python
daily-coding-problem/036.py
0x8b/HackerRank
45e1a0e2be68950505c0a75218715bd3132a428b
[ "MIT" ]
3
2019-12-04T01:22:34.000Z
2020-12-10T15:31:00.000Z
daily-coding-problem/036.py
0x8b/HackerRank
45e1a0e2be68950505c0a75218715bd3132a428b
[ "MIT" ]
null
null
null
daily-coding-problem/036.py
0x8b/HackerRank
45e1a0e2be68950505c0a75218715bd3132a428b
[ "MIT" ]
1
2019-12-04T01:24:01.000Z
2019-12-04T01:24:01.000Z
#!/usr/bin/env python """ Given the root to a binary search tree, find the second largest node in the tree. """ from collections import namedtuple Node = namedtuple("Node", ["v", "l", "r"]) a = Node(1, None, None) b = Node(0, None, None) c = Node(0, None, None) d = Node(6, None, None) e = Node(5, None, None) f = N...
16.77193
68
0.616109
4a23c68519465cefc2612ef87bdd76afd5c73d25
6,159
py
Python
Project_Plagiarism_Detection/.ipynb_checkpoints/problem_unittests-checkpoint.py
benjaminlees/ML_SageMaker_Studies
6e523d40e406ce5a4b6d440bd7ab5c96a6c9fc5e
[ "MIT" ]
null
null
null
Project_Plagiarism_Detection/.ipynb_checkpoints/problem_unittests-checkpoint.py
benjaminlees/ML_SageMaker_Studies
6e523d40e406ce5a4b6d440bd7ab5c96a6c9fc5e
[ "MIT" ]
null
null
null
Project_Plagiarism_Detection/.ipynb_checkpoints/problem_unittests-checkpoint.py
benjaminlees/ML_SageMaker_Studies
6e523d40e406ce5a4b6d440bd7ab5c96a6c9fc5e
[ "MIT" ]
null
null
null
from unittest.mock import MagicMock, patch import sklearn.naive_bayes import numpy as np import pandas as pd import re # test csv file TEST_CSV = 'data/test_info.csv' class AssertTest(object): '''Defines general test behavior.''' def __init__(self, params): self.assert_param_message = '\n'.join([str(k...
39.735484
119
0.656113
4a23c6edce1e56f15b8f826fca8aedc89900ce83
1,017
py
Python
Examples/MakingStructures/s01-GaAs.py
jonahhaber/BGWpy
03ae0df2c7ddad833f679a69908abcb7b4adf9a2
[ "BSD-3-Clause-LBNL" ]
27
2015-11-19T06:14:56.000Z
2022-02-11T18:03:26.000Z
Examples/MakingStructures/s01-GaAs.py
jonahhaber/BGWpy
03ae0df2c7ddad833f679a69908abcb7b4adf9a2
[ "BSD-3-Clause-LBNL" ]
5
2020-08-31T14:27:08.000Z
2021-04-08T15:28:44.000Z
Examples/MakingStructures/s01-GaAs.py
jonahhaber/BGWpy
03ae0df2c7ddad833f679a69908abcb7b4adf9a2
[ "BSD-3-Clause-LBNL" ]
13
2016-02-10T05:36:25.000Z
2021-11-02T01:52:09.000Z
""" Construct a Structure object and write the structure file. BGWpy relies on pymatgen.Structure objects to construct the primitive cells for all calculations. See http://pymatgen.org/ for more information. """ import os import numpy as np import pymatgen # Construct the structure object. acell_angstrom = 5.6535 r...
29.057143
72
0.726647
4a23c8472ab1fee1b05d68fc9aabe1658658f6a4
259
py
Python
lib/py/src/transport/__init__.py
wmorgan/thrift
d9ba3d7a3e25f0f88766c344b2e937422858320b
[ "BSL-1.0" ]
1
2016-05-08T06:29:55.000Z
2016-05-08T06:29:55.000Z
lib/py/src/transport/__init__.py
KirinDave/powerset_thrift
283603cce87e6da4117af1d3c91570e7466846c2
[ "BSL-1.0" ]
null
null
null
lib/py/src/transport/__init__.py
KirinDave/powerset_thrift
283603cce87e6da4117af1d3c91570e7466846c2
[ "BSL-1.0" ]
1
2021-07-13T19:20:37.000Z
2021-07-13T19:20:37.000Z
#!/usr/bin/env python # # Copyright (c) 2006- Facebook # Distributed under the Thrift Software License # # See accompanying file LICENSE or visit the Thrift site at: # http://developers.facebook.com/thrift/ __all__ = ['TTransport', 'TSocket', 'THttpClient']
25.9
60
0.737452
4a23c85065342c0188550d226dce1ce1bd820f18
14,613
py
Python
app/libs/smartsearchLib.py
Psychoanalytic-Electronic-Publishing/OpenPubArchive-Content-Server
031b79b8e0dd5e1c22e2a51394cab846763a451a
[ "Apache-2.0" ]
null
null
null
app/libs/smartsearchLib.py
Psychoanalytic-Electronic-Publishing/OpenPubArchive-Content-Server
031b79b8e0dd5e1c22e2a51394cab846763a451a
[ "Apache-2.0" ]
115
2020-09-02T20:01:26.000Z
2022-03-30T11:47:23.000Z
app/libs/smartsearchLib.py
Psychoanalytic-Electronic-Publishing/OpenPubArchive-Content-Server
031b79b8e0dd5e1c22e2a51394cab846763a451a
[ "Apache-2.0" ]
2
2020-10-15T13:52:10.000Z
2020-10-20T13:42:51.000Z
import re import sys from datetime import datetime from optparse import OptionParser import logging import opasGenSupportLib as opasgenlib from configLib.opasCoreConfig import solr_docs2, CORES # solr_authors2, solr_gloss2, solr_docs_term_search, solr_authors_term_search import opasConfig logger = logging.getLogger(...
33.439359
133
0.585506
4a23ca03885242484e23fe6367045a05988c0803
8,651
py
Python
qurator/sbb_ner/webapp/app.py
stweil/sbb_ner
319c29fc96667937f85d2cba111902386c95ba23
[ "Apache-2.0" ]
null
null
null
qurator/sbb_ner/webapp/app.py
stweil/sbb_ner
319c29fc96667937f85d2cba111902386c95ba23
[ "Apache-2.0" ]
null
null
null
qurator/sbb_ner/webapp/app.py
stweil/sbb_ner
319c29fc96667937f85d2cba111902386c95ba23
[ "Apache-2.0" ]
null
null
null
import os import logging from flask import Flask, send_from_directory, redirect, jsonify, request import html import json import torch from somajo import Tokenizer, SentenceSplitter from qurator.sbb_ner.models.bert import get_device, model_predict from qurator.sbb_ner.ground_truth.data_processor import NerProcessor, c...
31.572993
118
0.604901
4a23ca69c7eda9dcf1520e7eb55e5e67b3e49e40
14,099
py
Python
pixelpainter/code.py
mscosti/PixelPainter
8fe151bcf3260e7b23c6632ea374a58e0ddc4619
[ "MIT" ]
null
null
null
pixelpainter/code.py
mscosti/PixelPainter
8fe151bcf3260e7b23c6632ea374a58e0ddc4619
[ "MIT" ]
1
2022-02-10T18:47:40.000Z
2022-02-10T18:47:40.000Z
pixelpainter/code.py
mscosti/PixelPainter
8fe151bcf3260e7b23c6632ea374a58e0ddc4619
[ "MIT" ]
null
null
null
import board import busio import time import os import gc from digitalio import DigitalInOut from struct import * import neopixel import adafruit_fancyled.adafruit_fancyled as fancy from adafruit_esp32spi import adafruit_esp32spi import adafruit_esp32spi.adafruit_esp32spi_wifimanager as wifimanager import adafruit_esp...
38.416894
149
0.59451
4a23caf4484f2680f1caea248a47a18fdadf02fd
430
py
Python
80-89/89_Gray Code.py
yanchdh/LeetCode
ec60364082ad246390cf3292090d23f1c7dd08b4
[ "BSD-2-Clause" ]
2
2018-01-12T08:45:08.000Z
2018-01-15T13:29:56.000Z
80-89/89_Gray Code.py
yanchdh/LeetCode
ec60364082ad246390cf3292090d23f1c7dd08b4
[ "BSD-2-Clause" ]
null
null
null
80-89/89_Gray Code.py
yanchdh/LeetCode
ec60364082ad246390cf3292090d23f1c7dd08b4
[ "BSD-2-Clause" ]
null
null
null
# -*- coding:utf-8 -*- # https://leetcode.com/problems/gray-code/description/ class Solution(object): def grayCode(self, n): """ :type n: int :rtype: List[int] """ if n <= 0: return [0] ret = [0, 1] for i in xrange(1, n): m = len(ret) ...
23.888889
54
0.427907
4a23cd3110afaf6e04d53bb24963fae486de8b18
84,240
py
Python
test/expected/python.asyncio/variety/f_Foo.py
dustyholmes-wf/frugal
915ccfc58fcc9baabc4549c522e3acd2975a2e0b
[ "Apache-2.0" ]
null
null
null
test/expected/python.asyncio/variety/f_Foo.py
dustyholmes-wf/frugal
915ccfc58fcc9baabc4549c522e3acd2975a2e0b
[ "Apache-2.0" ]
null
null
null
test/expected/python.asyncio/variety/f_Foo.py
dustyholmes-wf/frugal
915ccfc58fcc9baabc4549c522e3acd2975a2e0b
[ "Apache-2.0" ]
null
null
null
# # Autogenerated by Frugal Compiler (3.4.7) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # import asyncio from datetime import timedelta import inspect from frugal.aio.processor import FBaseProcessor from frugal.aio.processor import FProcessorFunction from frugal.exceptions import TApplicat...
34.538745
182
0.584651
4a23cd56716eef949f34d3e0f2b017f24c0aa5ce
937
py
Python
MyFTP_Server/modules/Config_Read.py
AlanProject/day08
8d7e0ebcfa5f6939253a99bf99cf7cd4f80a7ed3
[ "Apache-2.0" ]
null
null
null
MyFTP_Server/modules/Config_Read.py
AlanProject/day08
8d7e0ebcfa5f6939253a99bf99cf7cd4f80a7ed3
[ "Apache-2.0" ]
null
null
null
MyFTP_Server/modules/Config_Read.py
AlanProject/day08
8d7e0ebcfa5f6939253a99bf99cf7cd4f80a7ed3
[ "Apache-2.0" ]
null
null
null
#-*- coding:utf-8 -*- #/usr/bin/env python import os,sys import ConfigParser class ConfigRead(object): def __init__(self): self.base_dir=os.path.dirname(os.path.dirname(os.path.abspath(__file__)))+'/config/' self.config_file = self.base_dir+'MyFTP.conf' self.config = ConfigParser.ConfigParse...
40.73913
92
0.681964
4a23cecb126abf7d94d4e32df1c5790a457241ee
8,299
py
Python
docs/conf.py
TrentScholl/aquarium-wise-controller
49ef5088e3e9f8d03f436388843038b138efb066
[ "MIT" ]
5
2015-07-27T13:20:54.000Z
2021-01-17T12:22:54.000Z
docs/conf.py
TrentScholl/aquarium-wise-controller
49ef5088e3e9f8d03f436388843038b138efb066
[ "MIT" ]
null
null
null
docs/conf.py
TrentScholl/aquarium-wise-controller
49ef5088e3e9f8d03f436388843038b138efb066
[ "MIT" ]
1
2015-08-02T18:05:00.000Z
2015-08-02T18:05:00.000Z
# -*- coding: utf-8 -*- # # Aquarium Wise Controller documentation build configuration file, created by # sphinx-quickstart on Wed Sep 03 15:35:59 2014. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogene...
32.042471
84
0.721774
4a23cecc1ce5bfdda1b43b97fb670ecbaf4d6ca7
1,668
py
Python
kf_book/nonlinear_internal.py
VladPodilnyk/Kalman-and-Bayesian-Filters-in-Python
1b47e2c27ea0a007e8c36d9f6d453c47402b3615
[ "CC-BY-4.0" ]
12,315
2015-01-07T12:06:26.000Z
2022-03-31T11:03:03.000Z
kf_book/nonlinear_internal.py
VladPodilnyk/Kalman-and-Bayesian-Filters-in-Python
1b47e2c27ea0a007e8c36d9f6d453c47402b3615
[ "CC-BY-4.0" ]
356
2015-01-09T18:53:02.000Z
2022-03-14T20:21:06.000Z
kf_book/nonlinear_internal.py
VladPodilnyk/Kalman-and-Bayesian-Filters-in-Python
1b47e2c27ea0a007e8c36d9f6d453c47402b3615
[ "CC-BY-4.0" ]
3,419
2015-01-02T20:47:47.000Z
2022-03-31T18:07:33.000Z
# -*- coding: utf-8 -*- """Copyright 2015 Roger R Labbe Jr. Code supporting the book Kalman and Bayesian Filters in Python https://github.com/rlabbe/Kalman-and-Bayesian-Filters-in-Python This is licensed under an MIT license. See the LICENSE.txt file for more information. """ from __future__ import (absolute_imp...
27.8
81
0.615707
4a23ceeb6cc88b54a90ec0d9eba1dbc93b2acf50
1,195
py
Python
Python/AdvancedHelloWorld.py
proxyanon/Hello-world
686de4360ed9811b87e9e18cfedb862693ed913f
[ "MIT" ]
null
null
null
Python/AdvancedHelloWorld.py
proxyanon/Hello-world
686de4360ed9811b87e9e18cfedb862693ed913f
[ "MIT" ]
1
2019-10-29T17:48:30.000Z
2019-10-29T17:48:30.000Z
Python/AdvancedHelloWorld.py
proxyanon/Hello-world
686de4360ed9811b87e9e18cfedb862693ed913f
[ "MIT" ]
1
2019-10-24T03:13:42.000Z
2019-10-24T03:13:42.000Z
import datetime now = datetime.datetime.now() print ('Hello, World!') person = input('What is your name? ') print ('Hello,', person) age = int(input('How old are you? ')) year = now.year - age print ('So, you were born in', year) the_password = 1234 password = ['1234', '4321', '1342'] while True: my_password = int...
27.159091
115
0.598326
4a23cefb84698d07daa06cdee2c63ea959beca27
251
py
Python
pagey/defaults.py
Flaconi/slackbot-pagey
4bbac86965cf13c27fcd5410bbc6c397e321b873
[ "MIT" ]
null
null
null
pagey/defaults.py
Flaconi/slackbot-pagey
4bbac86965cf13c27fcd5410bbc6c397e321b873
[ "MIT" ]
1
2021-06-21T10:47:02.000Z
2021-06-21T10:47:02.000Z
pagey/defaults.py
Flaconi/slackbot-pagey
4bbac86965cf13c27fcd5410bbc6c397e321b873
[ "MIT" ]
null
null
null
"""This file defines all module wide default values.""" # Credits DEF_BIN = "pagey" DEF_NAME = "pagey" DEF_DESC = "Pagey is a Pagerduty slack bot." DEF_VERSION = "0.0.3" DEF_AUTHOR = "cytopia" DEF_GITHUB = "https://github.com/Flaconi/slackbot-pagey"
25.1
56
0.721116
4a23cf81dbbea9ee923fa6ea2c20ceeec866e87a
49
py
Python
action_tracker/__init__.py
jham20x6/turbo-octo-broccoli
cb510d8b37b4870be7c0ce3117b12aba15bfbc39
[ "MIT" ]
null
null
null
action_tracker/__init__.py
jham20x6/turbo-octo-broccoli
cb510d8b37b4870be7c0ce3117b12aba15bfbc39
[ "MIT" ]
null
null
null
action_tracker/__init__.py
jham20x6/turbo-octo-broccoli
cb510d8b37b4870be7c0ce3117b12aba15bfbc39
[ "MIT" ]
null
null
null
from action_tracker.tracker import ActionTracker
24.5
48
0.897959
4a23cf84b7310bf83607057332abc5af43680f08
4,525
py
Python
vendor/github.com/elastic/beats/packetbeat/tests/system/test_0041_memcache_udp_bin_basic.py
psadmin-io/ps-tuxbeat
1ccaa89ea9c4fc16ac572e26179719e5c16e9685
[ "Apache-2.0" ]
115
2015-11-30T13:42:27.000Z
2021-10-14T15:41:31.000Z
vendor/github.com/elastic/beats/packetbeat/tests/system/test_0041_memcache_udp_bin_basic.py
psadmin-io/ps-tuxbeat
1ccaa89ea9c4fc16ac572e26179719e5c16e9685
[ "Apache-2.0" ]
35
2016-02-14T18:47:27.000Z
2021-01-17T20:12:38.000Z
vendor/github.com/elastic/beats/packetbeat/tests/system/test_0041_memcache_udp_bin_basic.py
psadmin-io/ps-tuxbeat
1ccaa89ea9c4fc16ac572e26179719e5c16e9685
[ "Apache-2.0" ]
50
2015-11-28T18:43:19.000Z
2021-07-21T03:58:10.000Z
from packetbeat import BaseTest import pprint pp = pprint.PrettyPrinter() def pretty(*k, **kw): pp.pprint(*k, **kw) class Test(BaseTest): def _run(self, pcap): self.render_config_template( memcache_udp_transaction_timeout=10 ) self.run_packetbeat(pcap=pcap, ...
36.788618
79
0.59116
4a23cf953d2b0b4fda62e586a01c7302f3a3e6c6
454
py
Python
data/scripts/templates/object/static/item/shared_item_tech_console_sectional_c.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/static/item/shared_item_tech_console_sectional_c.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/static/item/shared_item_tech_console_sectional_c.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Static() result.template = "object/static/item/shared_item_tech_console_sectional_c.iff" result.attribute_templat...
26.705882
80
0.731278
4a23d164f62bb14cf29531ee1dca9897c1e4cc7f
20,230
py
Python
test/functional/test_framework/test_framework.py
xlkulu/SHTcoin
e8e50991583a3530211025cd48191bf274798555
[ "MIT" ]
1
2019-08-25T13:07:02.000Z
2019-08-25T13:07:02.000Z
test/functional/test_framework/test_framework.py
xlkulu/SHTcoin
e8e50991583a3530211025cd48191bf274798555
[ "MIT" ]
1
2019-08-25T13:11:54.000Z
2019-08-25T13:11:54.000Z
test/functional/test_framework/test_framework.py
xlkulu/SHTcoin
e8e50991583a3530211025cd48191bf274798555
[ "MIT" ]
1
2019-08-25T13:07:25.000Z
2019-08-25T13:07:25.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Base class for RPC testing.""" from enum import Enum import logging import optparse import os import p...
42.058212
310
0.621256
4a23d1662e1f0ae8a94f483a659eda226fe5ecfd
753
py
Python
quarty/setup.py
quartictech/platform
d9f535f21d38fa836ec691d86ea2b2c610320757
[ "BSD-3-Clause" ]
3
2017-11-07T21:49:39.000Z
2019-08-08T20:59:02.000Z
quarty/setup.py
quartictech/platform
d9f535f21d38fa836ec691d86ea2b2c610320757
[ "BSD-3-Clause" ]
1
2021-06-05T08:00:37.000Z
2021-06-05T08:00:37.000Z
quarty/setup.py
quartictech/platform
d9f535f21d38fa836ec691d86ea2b2c610320757
[ "BSD-3-Clause" ]
2
2018-01-09T10:49:48.000Z
2019-11-27T09:18:17.000Z
import os from setuptools import setup, find_packages test_deps = [ "mock==2.0.0", "pytest==3.0.7", "pylint==1.7.1", "pylint-quotes==0.1.5", "pytest-runner==2.11.1", "setuptools-lint==0.5.2" ] setup(name="quarty", version=os.environ.get("CIRCLE_BUILD_NUM", "0"), description="Quarti...
22.818182
54
0.559097