hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
3a01c28b45e4e5b7760d701e2863c33e43872dba
8,694
py
Python
group_agnostic_fairness/baseline_model_test.py
egonrian/google-research
8177adbe9ca0d7e5a9463b54581fe6dd27be0974
[ "Apache-2.0" ]
3
2021-01-18T04:46:49.000Z
2021-03-05T09:21:40.000Z
group_agnostic_fairness/baseline_model_test.py
Alfaxad/google-research
2c0043ecd507e75e2df9973a3015daf9253e1467
[ "Apache-2.0" ]
25
2020-07-25T08:53:09.000Z
2022-03-12T00:43:02.000Z
group_agnostic_fairness/baseline_model_test.py
Alfaxad/google-research
2c0043ecd507e75e2df9973a3015daf9253e1467
[ "Apache-2.0" ]
4
2021-02-08T10:25:45.000Z
2021-04-17T14:46:26.000Z
# coding=utf-8 # Copyright 2020 The Google Research Authors. # # 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 applicab...
45.28125
155
0.727513
ca3689e5fb228d0075f1b8febc9322af833e5db9
610
py
Python
Day23/Possible_Words_Using_Given_Characters.py
tushartrip1010/100_days_code_py
ee74b429e98cdd8bdf8661cf987da67c9fee5a3e
[ "Apache-2.0" ]
null
null
null
Day23/Possible_Words_Using_Given_Characters.py
tushartrip1010/100_days_code_py
ee74b429e98cdd8bdf8661cf987da67c9fee5a3e
[ "Apache-2.0" ]
null
null
null
Day23/Possible_Words_Using_Given_Characters.py
tushartrip1010/100_days_code_py
ee74b429e98cdd8bdf8661cf987da67c9fee5a3e
[ "Apache-2.0" ]
null
null
null
from collections import Counter def Possible_Words(Test_list, Test_chars): for words in Test_list: count = 1 Char = dict(Counter(words)) for key in words: if key not in Test_chars: count = 0 else: if Test_chars.count(key) !...
27.727273
65
0.491803
5cc4d657191f95e0b6efcba3cd56b3f840ea7450
1,085
py
Python
storages/tests/hashpath.py
chalkchisel/django-storages
333839a4a1851890ab81479e8f610e2f84b7ed8b
[ "BSD-3-Clause" ]
1
2018-04-29T17:25:07.000Z
2018-04-29T17:25:07.000Z
storages/tests/hashpath.py
chalkchisel/django-storages
333839a4a1851890ab81479e8f610e2f84b7ed8b
[ "BSD-3-Clause" ]
8
2021-03-31T20:09:47.000Z
2022-03-29T22:03:38.000Z
storages/tests/hashpath.py
chalkchisel/django-storages
333839a4a1851890ab81479e8f610e2f84b7ed8b
[ "BSD-3-Clause" ]
3
2019-01-14T04:53:40.000Z
2019-01-22T01:46:31.000Z
import os import shutil from django.test import TestCase from django.core.files.base import ContentFile from django.conf import settings from storages.backends.hashpath import HashPathStorage TEST_PATH_PREFIX = 'django-storages-test' class HashPathStorageTest(TestCase): def setUp(self): self.test_path...
30.138889
76
0.691244
d5b5b7815ea984cc2b1a741afaf014c39a497162
357
py
Python
src/swimport/tests/39_operators/usage.py
talos-gis/swimport
e8f0fcf02b0c9751b199f750f1f8bc57c8ff54b3
[ "MIT" ]
1
2019-03-07T20:43:42.000Z
2019-03-07T20:43:42.000Z
src/swimport/tests/39_operators/usage.py
talos-gis/swimport
e8f0fcf02b0c9751b199f750f1f8bc57c8ff54b3
[ "MIT" ]
null
null
null
src/swimport/tests/39_operators/usage.py
talos-gis/swimport
e8f0fcf02b0c9751b199f750f1f8bc57c8ff54b3
[ "MIT" ]
null
null
null
import example from swimport.tests.resources import * p = example.Polynomial(5) assert_eq(p(-1), 5) x = example.x assert_eq(x(-2), -2) sq = x*x assert_eq(sq(12), 144) root_2 = x * x - example.Polynomial(2) assert_eq(root_2(2), 2) assert_isclose(root_2(2 ** 0.5), 0) with AssertError(TypeError): poly = x*3 as...
16.227273
39
0.666667
20e5dab9e557756057c0a69aa470ea1a7e805466
2,073
py
Python
supersql/engines/postgres.py
rayattack/supersql
0a592e7f303ac18b8df7bebac226b26f38f6d192
[ "MIT" ]
2
2019-11-04T00:19:30.000Z
2020-10-04T01:24:04.000Z
supersql/engines/postgres.py
rayattack/supersql
0a592e7f303ac18b8df7bebac226b26f38f6d192
[ "MIT" ]
2
2021-03-31T14:07:04.000Z
2021-03-31T14:07:20.000Z
supersql/engines/postgres.py
rayattack/supersql
0a592e7f303ac18b8df7bebac226b26f38f6d192
[ "MIT" ]
2
2021-03-30T21:40:14.000Z
2022-03-17T20:52:25.000Z
import typing import inspect from functools import wraps from typing import TYPE_CHECKING import asyncpg from supersql.engines.connection import IConnection, IEngine if(TYPE_CHECKING): from supersql.core.query import Query CONNECTED_MESSAGE = "A connection already exists" DISCONNECTED_MESSAGE = "Not connection...
27.64
89
0.650748
fc712b467bb80aec418d24a49787c989083234b4
7,962
py
Python
simple_solver.py
Luffles/CCrush-Bot
b714f09326d5ef20d6d9a140e073a7b3ad3d9492
[ "MIT" ]
null
null
null
simple_solver.py
Luffles/CCrush-Bot
b714f09326d5ef20d6d9a140e073a7b3ad3d9492
[ "MIT" ]
null
null
null
simple_solver.py
Luffles/CCrush-Bot
b714f09326d5ef20d6d9a140e073a7b3ad3d9492
[ "MIT" ]
null
null
null
import debug_utils as dbg from copy import deepcopy class SimpleSolver: def __init__(self): self.board_size = 9 self.match_list = [(0, 1, 13, 19), (2, 3, 14, 20), (4, 5, 15, 21), (6, 7, 18, 22), (8, 9, 16, 23), (10, 11, 17, 24)] self.special_candies = [1, 3, 5, 7, 9, 11, 12, 13, 14, 15, 1...
38.839024
124
0.535418
5e5b8df597bbcd360165158cabc82c30d382af53
10,423
py
Python
tools/manifest/vcs.py
chasephillips/wpt
a1e86d4025ded83e7142df51492d6f43eeda615e
[ "BSD-3-Clause" ]
null
null
null
tools/manifest/vcs.py
chasephillips/wpt
a1e86d4025ded83e7142df51492d6f43eeda615e
[ "BSD-3-Clause" ]
null
null
null
tools/manifest/vcs.py
chasephillips/wpt
a1e86d4025ded83e7142df51492d6f43eeda615e
[ "BSD-3-Clause" ]
null
null
null
import json import os import platform import stat import subprocess from collections import deque from .sourcefile import SourceFile def get_tree(tests_root, manifest, manifest_path, cache_root, working_copy=False, rebuild=False): tree = None if cache_root is None: cache_root = os.path.j...
34.39934
101
0.567015
03981b0042eac9c3776a02fadeed3cb16adaa8ea
1,987
py
Python
pytorch_lightning/utilities/__init__.py
shnela/pytorch-lightning
583fcf281c69e9d2fea76d19eb5574f03c7ba8ee
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/utilities/__init__.py
shnela/pytorch-lightning
583fcf281c69e9d2fea76d19eb5574f03c7ba8ee
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/utilities/__init__.py
shnela/pytorch-lightning
583fcf281c69e9d2fea76d19eb5574f03c7ba8ee
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # 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 i...
34.859649
111
0.784097
19e0a6adb3ca9eb4fbffcbe436bbe600f25aa129
163
py
Python
Desktop BLE Client/main.py
Tom-Goring/IoT-Challenge-3
3aaa3abe64d6af62ed99f815a36aad75ba24d89b
[ "MIT" ]
1
2019-03-24T18:56:19.000Z
2019-03-24T18:56:19.000Z
Desktop BLE Client/main.py
Tom-Goring/IoT-Challenge-3
3aaa3abe64d6af62ed99f815a36aad75ba24d89b
[ "MIT" ]
null
null
null
Desktop BLE Client/main.py
Tom-Goring/IoT-Challenge-3
3aaa3abe64d6af62ed99f815a36aad75ba24d89b
[ "MIT" ]
null
null
null
from MicroBit.GUI import * app = Challenge3() app.geometry("1280x720") ani = animation.FuncAnimation(f, animate, fargs=(x, y, z, t), interval=100) app.mainloop()
23.285714
75
0.717791
1356eafa3bbee7e48cec5667de2fa14989c02b0d
2,439
py
Python
desktop/libs/hadoop/src/hadoop/yarn/clients.py
mapr/hue
84390cf8649feb34d74c574e771ea19410ecb970
[ "Apache-2.0" ]
null
null
null
desktop/libs/hadoop/src/hadoop/yarn/clients.py
mapr/hue
84390cf8649feb34d74c574e771ea19410ecb970
[ "Apache-2.0" ]
null
null
null
desktop/libs/hadoop/src/hadoop/yarn/clients.py
mapr/hue
84390cf8649feb34d74c574e771ea19410ecb970
[ "Apache-2.0" ]
4
2015-02-23T23:59:52.000Z
2018-01-03T06:59:26.000Z
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
30.4875
95
0.731857
8f9809f32982eeb89baa139c32ed68e605ab69a3
12,959
py
Python
app/views/module/modules/anitAV/PS.py
lengjibo/Rosemary
9258af2a724b4a8bcc233f98499e6a8f09754bf8
[ "Apache-2.0" ]
3
2021-08-13T11:18:26.000Z
2021-08-16T10:41:28.000Z
app/views/module/modules/anitAV/PS.py
lengjibo/Rosemary
9258af2a724b4a8bcc233f98499e6a8f09754bf8
[ "Apache-2.0" ]
null
null
null
app/views/module/modules/anitAV/PS.py
lengjibo/Rosemary
9258af2a724b4a8bcc233f98499e6a8f09754bf8
[ "Apache-2.0" ]
2
2021-08-16T07:05:35.000Z
2022-01-26T07:46:18.000Z
# version 7 - 02272019 import random, sys, math,os predefined = ['home', 'profile', 'pshome', 'host', 'psversiontable'] predefined.extend(['true', 'false', 'null', '_', 'env', 'erroractionpreference']) predefined.extend(['args', 'myinvocation', 'input', 'pwd']) predefined.extend(['foreach', 'matches', 'lastexitcode',...
34.649733
137
0.474651
2e3fb03e2123e939e552da944c020ad664bb1c25
6,244
py
Python
reviewboard/settings.py
asterisk/reviewboard
34eed26d1c2122e1b05953a40c6f4cd1e8caa70b
[ "MIT" ]
1
2018-10-14T15:12:19.000Z
2018-10-14T15:12:19.000Z
reviewboard/settings.py
asterisk/reviewboard
34eed26d1c2122e1b05953a40c6f4cd1e8caa70b
[ "MIT" ]
null
null
null
reviewboard/settings.py
asterisk/reviewboard
34eed26d1c2122e1b05953a40c6f4cd1e8caa70b
[ "MIT" ]
null
null
null
# Django settings for reviewboard project. import os import sys # Can't import django.utils.translation yet _ = lambda s: s DEBUG = True ADMINS = ( ('Example Joe', 'admin@example.com') ) MANAGERS = ADMINS # Local time zone for this installation. All choices can be found here: # http://www.postgresql.org/docs...
32.185567
98
0.73927
6c9f791e3bd988e34645c15a0e8b737efc688010
6,616
py
Python
core/recc/argparse/config/global_config.py
bogonets/answer
57f892a9841980bcbc35fa1e27521b34cd94bc25
[ "MIT" ]
3
2021-06-20T02:24:10.000Z
2022-01-26T23:55:33.000Z
core/recc/argparse/config/global_config.py
bogonets/answer
57f892a9841980bcbc35fa1e27521b34cd94bc25
[ "MIT" ]
null
null
null
core/recc/argparse/config/global_config.py
bogonets/answer
57f892a9841980bcbc35fa1e27521b34cd94bc25
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys from argparse import ArgumentParser, Namespace from typing import Iterable, Tuple, List, Optional, Any, get_type_hints from recc.argparse.argument import Shortcut, Argument from recc.log.logging import ( SEVERITY_NAME_CRITICAL, SEVERITY_NAME_ERROR, SEVERITY_NAME_WARNING, ...
23.544484
78
0.684704
3e1ebdf4a8eaad58aefb358da2ba7e46c5df17aa
7,540
py
Python
t_speech_assisstant/venv/lib/python3.7/site-packages/PhotosUI/_metadata.py
TEgo17/SpeechAssistant
0e16dd4757f1b05f08ecbb4f4956b2ccd1a63c10
[ "MIT" ]
1
2020-09-01T16:24:50.000Z
2020-09-01T16:24:50.000Z
t_speech_assisstant/venv/lib/python3.7/site-packages/PhotosUI/_metadata.py
TEgo17/SpeechAssistant
0e16dd4757f1b05f08ecbb4f4956b2ccd1a63c10
[ "MIT" ]
1
2021-01-28T20:40:19.000Z
2021-01-28T20:40:19.000Z
t_speech_assisstant/venv/lib/python3.7/site-packages/PhotosUI/_metadata.py
TEgo17/SpeechAssistant
0e16dd4757f1b05f08ecbb4f4956b2ccd1a63c10
[ "MIT" ]
null
null
null
# This file is generated by objective.metadata # # Last update: Sun Feb 10 12:08:33 2019 import objc, sys if sys.maxsize > 2 ** 32: def sel32or64(a, b): return b else: def sel32or64(a, b): return a if sys.byteorder == "little": def littleOrBig(a, b): return a else: de...
33.070175
873
0.502255
fb18b63f55aa5f1185973a7c4402d4874cfac660
1,188
py
Python
passgen/passgen_unnitests.py
marcin96/passgen
9f8e5cb2323ef5fd5680b8c6fface30ced3b0d12
[ "MIT" ]
1
2016-08-16T18:19:08.000Z
2016-08-16T18:19:08.000Z
passgen/passgen_unnitests.py
marcin96/passgen
9f8e5cb2323ef5fd5680b8c6fface30ced3b0d12
[ "MIT" ]
null
null
null
passgen/passgen_unnitests.py
marcin96/passgen
9f8e5cb2323ef5fd5680b8c6fface30ced3b0d12
[ "MIT" ]
null
null
null
#!/usr/bin/python #Author Marcin Cherek #Language: Python 3.4 #Version 1.0 #License: MIT """ The tests for the passgen module """ import unnittest import dokumentator import evaluator import importer import listgen import listgenerator import passgen import passgenerator import person import pattern import tag class...
14.487805
44
0.616162
d36abceae8c29059f93822bebd90db94356cede5
558
py
Python
checkpoint_program/longestConsecutiveSequence.py
jainanisha90/codepath_interviewBit
3d7448fee80ee7bbc1f667db7e57ee698948a845
[ "MIT" ]
null
null
null
checkpoint_program/longestConsecutiveSequence.py
jainanisha90/codepath_interviewBit
3d7448fee80ee7bbc1f667db7e57ee698948a845
[ "MIT" ]
null
null
null
checkpoint_program/longestConsecutiveSequence.py
jainanisha90/codepath_interviewBit
3d7448fee80ee7bbc1f667db7e57ee698948a845
[ "MIT" ]
null
null
null
class Solution: # @param A : tuple of integers # @return an integer def longestConsecutive(self, A): result, lengths = 1, {key: 0 for key in A} for i in A: if lengths[i] == 0: lengths[i] = 1 left, right = lengths.get(i - 1, 0), lengths.get(i + 1, 0...
37.2
99
0.53405
c9a47bdbf77ca5c1a5487224ab3b66f56d27130c
1,520
py
Python
pycket/test/test_json.py
namin/pycket
e143667d044290277868484c0a9ffe0cc559c688
[ "MIT" ]
129
2016-08-01T11:02:05.000Z
2022-02-14T13:23:55.000Z
pycket/test/test_json.py
namin/pycket
e143667d044290277868484c0a9ffe0cc559c688
[ "MIT" ]
127
2016-07-28T04:19:06.000Z
2021-08-08T17:02:16.000Z
pycket/test/test_json.py
namin/pycket
e143667d044290277868484c0a9ffe0cc559c688
[ "MIT" ]
12
2016-11-10T10:25:06.000Z
2021-08-08T16:00:17.000Z
import pytest from pycket.pycket_json import loads import json as pyjson def _compare(string, expected): json = loads(string) val = json._unpack_deep() assert val == expected #assert val == pyjson.loads(string) def test_simple(): _compare("1", 1) _compare("\"abc\"", "abc") _compare("1.2",...
32.340426
148
0.494079
caef3e36c9a057358274c28245bf13c1c94b985f
7,892
py
Python
v2020.0/MissionControl.py
beepbeeptechnologies/CafeBeepV2020.0
61b3b5299c06ff9a94692b424c032a47675d9e4d
[ "CC-BY-3.0", "MIT" ]
1
2020-07-03T13:40:37.000Z
2020-07-03T13:40:37.000Z
v2020.0/MissionControl.py
beepbeeptechnologies/CafeBeepV2020.0
61b3b5299c06ff9a94692b424c032a47675d9e4d
[ "CC-BY-3.0", "MIT" ]
null
null
null
v2020.0/MissionControl.py
beepbeeptechnologies/CafeBeepV2020.0
61b3b5299c06ff9a94692b424c032a47675d9e4d
[ "CC-BY-3.0", "MIT" ]
null
null
null
#!/usr/bin/env python3 """ __author__ = "Blaze Sanders" __email__ = "blaze.d.a.sanders@gmail.com" __company__ = "Robotic Beverage Technologies, Inc" __status__ = "Development" __date__ = "Late Updated: 2020-07-08" __doc__ = "Class to define OTA commuications architecture for 30K+ Tapomatic kiosk" """ # Allo...
26.752542
150
0.626711
b26ba37985f2057650724b1991efc20141b36caf
552
py
Python
testing/test-vscode.py
jkpubsrc/python-module-jk-appmonitoring
3445115b2bc5d7cfa7e0f73a31435c1dc1394fea
[ "Apache-1.1" ]
null
null
null
testing/test-vscode.py
jkpubsrc/python-module-jk-appmonitoring
3445115b2bc5d7cfa7e0f73a31435c1dc1394fea
[ "Apache-1.1" ]
null
null
null
testing/test-vscode.py
jkpubsrc/python-module-jk-appmonitoring
3445115b2bc5d7cfa7e0f73a31435c1dc1394fea
[ "Apache-1.1" ]
null
null
null
#!/usr/bin/python3 import typing import os import sys import time import jk_json import jk_sysinfo import jk_utils from jk_appmonitoring import * UID = os.getuid() rpList = RProcessList() rpList.update() rpList2 = rpList.filter(RProcessFilter(uid=UID, cmd="/usr/share/code/code")) rpList2.enrichWithMoreData(...
12.266667
76
0.706522
b318d34d1c2271e4157360193bbcfe6fa3386111
12,989
bzl
Python
packages/react-native-codegen/DEFS.bzl
A-da-m/react-native
0aecbf6c91d752a44f525348c8875787e82f5779
[ "CC-BY-4.0", "MIT" ]
3
2020-03-19T11:05:30.000Z
2020-03-19T11:05:33.000Z
packages/react-native-codegen/DEFS.bzl
truonglam66/react-native
44618c80edfacd0ae843f32ba9ef3a0f6c4e0f16
[ "CC-BY-4.0", "MIT" ]
7
2020-07-19T20:12:32.000Z
2021-05-11T06:06:00.000Z
packages/react-native-codegen/DEFS.bzl
truonglam66/react-native
44618c80edfacd0ae843f32ba9ef3a0f6c4e0f16
[ "CC-BY-4.0", "MIT" ]
1
2020-03-16T06:41:52.000Z
2020-03-16T06:41:52.000Z
load("@fbsource//tools/build_defs:fb_native_wrapper.bzl", "fb_native") load("@fbsource//tools/build_defs:platform_defs.bzl", "IOS", "MACOSX") load("@fbsource//tools/build_defs/apple:flag_defs.bzl", "get_preprocessor_flags_for_build_mode") load( "//tools/build_defs/oss:rn_defs.bzl", "ANDROID", "APPLE", "...
37.868805
182
0.611902
69dd9a7ccd40cde02673d362097137e88484329f
747
py
Python
paddlers/models/ppdet/data/__init__.py
huilin16/PaddleRS
ca0d6223d8e56cd3bd3cbd3a033c89f1718ce26a
[ "Apache-2.0" ]
40
2022-02-28T02:07:28.000Z
2022-03-31T09:54:29.000Z
paddlers/models/ppdet/data/__init__.py
wondering516/PaddleRS
b6f7033f3c0ca7bc6952456c0a0f53eef6c1c07f
[ "Apache-2.0" ]
5
2022-03-15T12:13:33.000Z
2022-03-31T15:54:08.000Z
paddlers/models/ppdet/data/__init__.py
wondering516/PaddleRS
b6f7033f3c0ca7bc6952456c0a0f53eef6c1c07f
[ "Apache-2.0" ]
20
2022-02-28T02:07:31.000Z
2022-03-31T11:40:40.000Z
# 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...
33.954545
74
0.760375
ba3281c215ee2df5c5824be90de6eee54a8c981d
958
py
Python
9-B/otpor.py
ugoertz/l19contest
f157944074b493fe20166e3bc68899b64fe25400
[ "CC0-1.0" ]
null
null
null
9-B/otpor.py
ugoertz/l19contest
f157944074b493fe20166e3bc68899b64fe25400
[ "CC0-1.0" ]
null
null
null
9-B/otpor.py
ugoertz/l19contest
f157944074b493fe20166e3bc68899b64fe25400
[ "CC0-1.0" ]
null
null
null
def matching_par(c, n): '''Find parenthesis in c matching the open parenthesis at position n.''' ctr = n+1 i = 1 while ctr < len(c): if c[ctr] == ')': i -= 1 elif c[ctr] == '(': i += 1 if i == 0: return ctr ctr += 1 def evaluate_circ...
20.826087
76
0.425887
a9ad5da610d96947fb9f3e7ebd1fd72872fbd95a
16,631
py
Python
consoleme/lib/redis.py
shyovn/consoleme
471592b718b22f83244609ab47d5bf3f9a715a4d
[ "Apache-2.0" ]
2,835
2020-12-09T19:07:24.000Z
2022-03-31T06:38:44.000Z
consoleme/lib/redis.py
shyovn/consoleme
471592b718b22f83244609ab47d5bf3f9a715a4d
[ "Apache-2.0" ]
179
2020-12-10T01:51:25.000Z
2022-03-31T02:06:06.000Z
consoleme/lib/redis.py
shyovn/consoleme
471592b718b22f83244609ab47d5bf3f9a715a4d
[ "Apache-2.0" ]
219
2020-12-09T21:30:56.000Z
2022-03-31T05:57:36.000Z
import os import sys import threading import time from typing import Any, Optional import boto3 import redis import ujson as json from asgiref.sync import sync_to_async from redis.client import Redis from consoleme.config import config from consoleme.lib.plugins import get_plugin_by_name if config.get("redis.use_red...
34.792887
118
0.505863
0e62a5a4e0003258da5e12005f53aaa18c8219c3
2,927
py
Python
testing/data_handler.py
Fizzics/desCluster
43a8cff54619f85e837afd2f78aa9be8ec6ac8c6
[ "MIT" ]
2
2020-02-21T16:13:37.000Z
2020-02-21T16:26:03.000Z
testing/data_handler.py
boada/HETDEXCluster
43a8cff54619f85e837afd2f78aa9be8ec6ac8c6
[ "MIT" ]
null
null
null
testing/data_handler.py
boada/HETDEXCluster
43a8cff54619f85e837afd2f78aa9be8ec6ac8c6
[ "MIT" ]
null
null
null
import h5py as hdf import numpy as np from numpy.lib import recfunctions #data_dir = '../data/truth/' data_dir = '/home/boada/scratch/truth/' def find_tile(RAmin, DECmin, RAmax, DECmax, data=False): ''' Returns the name of the tile(s) that the current pointing is located inside of. The pointing is a box define...
31.815217
79
0.594807
fd26ba5041d3e365bbbbc64bda8a081a1fa3fd92
1,353
py
Python
youtube.py
Jugalcody/youtube-app
23aa50c93515059cd6da57ff84999d4b5c6eddab
[ "Apache-2.0" ]
null
null
null
youtube.py
Jugalcody/youtube-app
23aa50c93515059cd6da57ff84999d4b5c6eddab
[ "Apache-2.0" ]
null
null
null
youtube.py
Jugalcody/youtube-app
23aa50c93515059cd6da57ff84999d4b5c6eddab
[ "Apache-2.0" ]
null
null
null
import tkinter as tk import webbrowser as wb,re,os class Youtube: #Youtube class will create a youtube front page def __init__(self): self.root=tk.Tk() self.root.title("Youtube") self.root.resizable(False,False) self.root.geometry('1199x600+70+70') ...
28.1875
94
0.456763
626afdd8e70c1c75ee289dcdaf454f6df222577f
10,024
py
Python
qiskit/opflow/state_fns/vector_state_fn.py
WiFisunset/qiskit-terra
e122c9c0cef78d1ba4ac57442cd03fb0363ba93c
[ "Apache-2.0" ]
1
2021-06-09T11:22:21.000Z
2021-06-09T11:22:21.000Z
qiskit/opflow/state_fns/vector_state_fn.py
WiFisunset/qiskit-terra
e122c9c0cef78d1ba4ac57442cd03fb0363ba93c
[ "Apache-2.0" ]
1
2019-10-03T12:22:41.000Z
2019-10-03T12:22:41.000Z
qiskit/opflow/state_fns/vector_state_fn.py
nonhermitian/qiskit-terra
6a2602a9ecf9b1a3345de1516b873ac7b3da587f
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2020, 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
39.309804
100
0.634477
2da1d3d78ece814f7e20b9def6babeeafed40570
2,401
py
Python
lesson_08/05.py
alexartwww/geekbrains
f58720dc1d29bc94201b8b9c9239813c0d14ed64
[ "MIT" ]
null
null
null
lesson_08/05.py
alexartwww/geekbrains
f58720dc1d29bc94201b8b9c9239813c0d14ed64
[ "MIT" ]
null
null
null
lesson_08/05.py
alexartwww/geekbrains
f58720dc1d29bc94201b8b9c9239813c0d14ed64
[ "MIT" ]
null
null
null
task = ''' Продолжить работу над первым заданием. Разработать методы, отвечающие за приём оргтехники на склад и передачу в определенное подразделение компании. Для хранения данных о наименовании и количестве единиц оргтехники, а также других данных, можно использовать любую подходящую структуру, например словарь. ''' ...
27.597701
107
0.615993
fb7de73052c11b467ab402348336a7d9a952bed7
488
py
Python
django_client_framework/api/urls.py
cozybearca/django_client_framework
5056012714ff461f1f420ce9b7e47b4ee2d5167a
[ "MIT" ]
1
2021-01-13T22:11:29.000Z
2021-01-13T22:11:29.000Z
django_client_framework/api/urls.py
cozybearca/django_client_framework
5056012714ff461f1f420ce9b7e47b4ee2d5167a
[ "MIT" ]
1
2021-04-12T02:04:59.000Z
2021-04-12T02:04:59.000Z
django_client_framework/api/urls.py
cozybearca/django_client_framework
5056012714ff461f1f420ce9b7e47b4ee2d5167a
[ "MIT" ]
1
2021-05-20T05:25:06.000Z
2021-05-20T05:25:06.000Z
from django.urls import path from .model_collection_api import ModelCollectionAPI from .model_object_api import ModelObjectAPI from .related_model_api import RelatedModelAPI urlpatterns = [ path("<str:model>", ModelCollectionAPI.as_view(), name="model_collection"), path("<str:model>/<int:pk>", ModelObjectAPI....
30.5
80
0.711066
d02a9cacc207a441394dc95d592d533b9531e0d1
14,933
py
Python
python_modules/dagster-graphql/dagster_graphql_tests/test_multiprocessing.py
shahvineet98/dagster
2471d39c52f660e23e8c0d8e8ded873ddc3df036
[ "Apache-2.0" ]
null
null
null
python_modules/dagster-graphql/dagster_graphql_tests/test_multiprocessing.py
shahvineet98/dagster
2471d39c52f660e23e8c0d8e8ded873ddc3df036
[ "Apache-2.0" ]
null
null
null
python_modules/dagster-graphql/dagster_graphql_tests/test_multiprocessing.py
shahvineet98/dagster
2471d39c52f660e23e8c0d8e8ded873ddc3df036
[ "Apache-2.0" ]
null
null
null
import csv import os import time from collections import OrderedDict from copy import deepcopy from dagster_graphql.implementation.pipeline_execution_manager import SubprocessExecutionManager from dagster import ( ExecutionTargetHandle, Field, InputDefinition, Int, Materialization, OutputDefin...
31.504219
98
0.681243
3ef1149766211995dcace9be1af32b4ffdf1f9e7
1,710
py
Python
backend/data_export/tests/test_writer.py
arcada-uas/doccano
c29aece3dd4504eeaaa3466af0663bfe18b90dc1
[ "MIT" ]
2,082
2018-05-09T07:16:21.000Z
2019-12-01T16:41:50.000Z
backend/data_export/tests/test_writer.py
arcada-uas/doccano
c29aece3dd4504eeaaa3466af0663bfe18b90dc1
[ "MIT" ]
365
2018-07-31T13:49:05.000Z
2019-11-29T11:25:17.000Z
backend/data_export/tests/test_writer.py
arcada-uas/doccano
c29aece3dd4504eeaaa3466af0663bfe18b90dc1
[ "MIT" ]
476
2018-08-17T06:43:57.000Z
2019-12-01T09:47:08.000Z
import os import unittest import pandas as pd from pandas.testing import assert_frame_equal from ..pipeline.writers import CsvWriter, FastTextWriter, JsonlWriter, JsonWriter class TestWriter(unittest.TestCase): def setUp(self): self.dataset = pd.DataFrame( [ {"id": 0, "text":...
28.5
81
0.636257
ab06ac77f6f5efe903501b2060d7cc886184c11a
1,087
py
Python
batch/log.py
BoostryJP/ibet-Wallet-API
da7323a298bdb746e93da8a9b57a5da1dd6f14ac
[ "Apache-2.0" ]
6
2021-06-16T02:06:21.000Z
2021-09-20T09:50:56.000Z
batch/log.py
BoostryJP/ibet-Wallet-API
da7323a298bdb746e93da8a9b57a5da1dd6f14ac
[ "Apache-2.0" ]
68
2021-04-06T03:44:54.000Z
2022-03-29T02:00:02.000Z
batch/log.py
BoostryJP/ibet-Wallet-API
da7323a298bdb746e93da8a9b57a5da1dd6f14ac
[ "Apache-2.0" ]
null
null
null
""" Copyright BOOSTRY Co., Ltd. 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 distr...
29.378378
92
0.74517
6b017a2c6e52f497addb70ed14b2986a6d629ba9
1,462
py
Python
app/handlers/admins/broadcast.py
Arkosh744/telega-bot-mongo
3a24a3b571a383b1bca3518455f95f6ee899464e
[ "MIT" ]
7
2022-01-23T15:28:01.000Z
2022-03-14T18:21:41.000Z
app/handlers/admins/broadcast.py
Arkosh744/telega-bot-mongo
3a24a3b571a383b1bca3518455f95f6ee899464e
[ "MIT" ]
null
null
null
app/handlers/admins/broadcast.py
Arkosh744/telega-bot-mongo
3a24a3b571a383b1bca3518455f95f6ee899464e
[ "MIT" ]
null
null
null
import asyncio import logging from aiogram import Dispatcher, types from aiogram.dispatcher import FSMContext from aiogram.types import Message from aiogram.utils.exceptions import RetryAfter from app.keyboards.admin.inline import CancelKb from app.models import UserModel from app.states.admin_states import Broadcast...
31.782609
98
0.682627
0a7a40d15523d061596039cea1f99c732e660ece
134
py
Python
exercises/for_loops.py
amit19-meet/y2s18-python_review
c8ab3bfc6de1f0f7303ae4a6a85dc5c4fe220542
[ "MIT" ]
null
null
null
exercises/for_loops.py
amit19-meet/y2s18-python_review
c8ab3bfc6de1f0f7303ae4a6a85dc5c4fe220542
[ "MIT" ]
null
null
null
exercises/for_loops.py
amit19-meet/y2s18-python_review
c8ab3bfc6de1f0f7303ae4a6a85dc5c4fe220542
[ "MIT" ]
null
null
null
# Write your solution for 1.1 here! a=0 for i in range (101): a= a+ i print(a) s= 0 for i in range(2, 101, 2 ): s=s+i print(s)
10.307692
35
0.58209
50d792b82bc9fed9dec57ed5eed71b422d4fe433
1,130
bzl
Python
rules_python_gapic/py_gapic.bzl
lidizheng/gapic-generator-python
e3c079bab907ac183628d8805e6966af9ca2083f
[ "Apache-2.0" ]
null
null
null
rules_python_gapic/py_gapic.bzl
lidizheng/gapic-generator-python
e3c079bab907ac183628d8805e6966af9ca2083f
[ "Apache-2.0" ]
null
null
null
rules_python_gapic/py_gapic.bzl
lidizheng/gapic-generator-python
e3c079bab907ac183628d8805e6966af9ca2083f
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
35.3125
78
0.70708
7da17da4d215719a76c84307a19ab633dabb593b
2,731
py
Python
scripts/run_all_em.py
achen353/dacon
07859492297457d6913166dcf4ec4627af2584ee
[ "BSD-3-Clause" ]
null
null
null
scripts/run_all_em.py
achen353/dacon
07859492297457d6913166dcf4ec4627af2584ee
[ "BSD-3-Clause" ]
null
null
null
scripts/run_all_em.py
achen353/dacon
07859492297457d6913166dcf4ec4627af2584ee
[ "BSD-3-Clause" ]
null
null
null
datasets = """em_Amazon-Google em_DBLP-ACM em_DBLP-GoogleScholar em_Walmart-Amazon em_Abt-Buy em_DBLP-ACM-dirty em_DBLP-GoogleScholar-dirty em_Walmart-Amazon-dirty""".split( "\n" ) result_path = "results_em/" sizes = [300, 450, 600, 750] lm = "roberta" batch_size = 32 n_epochs_list = [20, 20, 20, 20] import os f...
24.168142
110
0.462834
747dcfa76b369c81925cc5c3fe3f855bcfa041fc
6,510
py
Python
neko/modules/sql/blacklist_sql.py
itzrexmodz/Carla-1
c775063a0ef0d144649ace6f428c37e6e8d2c092
[ "MIT" ]
4
2021-12-26T11:42:45.000Z
2021-12-27T05:18:17.000Z
neko/modules/sql/blacklist_sql.py
itzrexmodz/Carla-1
c775063a0ef0d144649ace6f428c37e6e8d2c092
[ "MIT" ]
null
null
null
neko/modules/sql/blacklist_sql.py
itzrexmodz/Carla-1
c775063a0ef0d144649ace6f428c37e6e8d2c092
[ "MIT" ]
7
2021-12-26T14:49:37.000Z
2022-01-31T09:32:07.000Z
import threading from sqlalchemy import Column, Integer, String, UnicodeText, distinct, func from . import BASE, SESSION class BlackListFilters(BASE): __tablename__ = "sl" chat_id = Column(String(14), primary_key=True) trigger = Column(UnicodeText, primary_key=True, nullable=False) def __init__(sel...
27.584746
85
0.647465
aabc099cedefee376844732bd0ba22f76b02e353
11,253
py
Python
epitope_mapping.py
victorfica/utils
b61935a860838a0e70afde7c9ecf2c68f51a2c4b
[ "MIT" ]
5
2015-12-16T01:23:07.000Z
2020-04-27T11:41:43.000Z
epitope_mapping.py
victorfica/utils
b61935a860838a0e70afde7c9ecf2c68f51a2c4b
[ "MIT" ]
1
2021-05-06T23:47:20.000Z
2021-05-06T23:48:33.000Z
epitope_mapping.py
victorfica/utils
b61935a860838a0e70afde7c9ecf2c68f51a2c4b
[ "MIT" ]
6
2016-04-29T14:04:22.000Z
2021-05-06T23:49:34.000Z
import pandas as pd import numpy as np from copy import deepcopy import argparse import itertools import operator from functools import partial # from HLAPredCache import * __all__ = ['responseClass', 'epitopeClass', 'hamming', 'overlap', 'sharedCoords', '...
36.067308
110
0.598152
1587ede6c0f10cd3439ac26dbd1176dd3bf829dc
1,036
py
Python
src/apps/list/views/update_list.py
avibn/todovib
4052da86e27825c60be618e986c2c16a23002e3c
[ "MIT" ]
8
2021-06-27T10:39:36.000Z
2022-01-22T19:47:35.000Z
src/apps/list/views/update_list.py
avibn/todovib
4052da86e27825c60be618e986c2c16a23002e3c
[ "MIT" ]
null
null
null
src/apps/list/views/update_list.py
avibn/todovib
4052da86e27825c60be618e986c2c16a23002e3c
[ "MIT" ]
null
null
null
from django.http.response import HttpResponseBadRequest from django.shortcuts import get_object_or_404, redirect, render from django.urls import reverse from django.views import View from src.apps.home.forms import CreateListForm from ..models import TodoList class UpdateListView(View): def get(self, request, l...
37
82
0.702703
6e9089477b953566a24e67adf7c4ad4078b643d8
4,064
py
Python
45.py
sukirt01/Python-for-Beginners-Solve-50-Exercises-Live
bb26f0aea6c07e91c011614faf180f4361fbabdc
[ "MIT" ]
13
2015-12-12T07:01:03.000Z
2021-12-27T06:20:56.000Z
45.py
sukirt01/Python-for-Beginners-Solve-50-Exercises-Live
bb26f0aea6c07e91c011614faf180f4361fbabdc
[ "MIT" ]
null
null
null
45.py
sukirt01/Python-for-Beginners-Solve-50-Exercises-Live
bb26f0aea6c07e91c011614faf180f4361fbabdc
[ "MIT" ]
11
2015-12-05T13:12:34.000Z
2021-12-27T03:40:38.000Z
''' A certain childrens game involves starting with a word in a particular category. Each participant in turn says a word, but that word must begin with the final letter of the previous word. Once a word has been given, it cannot be repeated. If an opponent cannot give a word in the category, they fall out of the gam...
28.822695
102
0.716781
356ca7562d3305928a49df6b52bb287a7abeae57
1,003
py
Python
src/ralph/lib/custom_fields/api/fields.py
DoNnMyTh/ralph
97b91639fa68965ad3fd9d0d2652a6545a2a5b72
[ "Apache-2.0" ]
1,668
2015-01-01T12:51:20.000Z
2022-03-29T09:05:35.000Z
src/ralph/lib/custom_fields/api/fields.py
hq-git/ralph
e2448caf02d6e5abfd81da2cff92aefe0a534883
[ "Apache-2.0" ]
2,314
2015-01-02T13:26:26.000Z
2022-03-29T04:06:03.000Z
src/ralph/lib/custom_fields/api/fields.py
hq-git/ralph
e2448caf02d6e5abfd81da2cff92aefe0a534883
[ "Apache-2.0" ]
534
2015-01-05T12:40:28.000Z
2022-03-29T21:10:12.000Z
from rest_framework import serializers class CustomFieldValueHyperlinkedIdentityField( serializers.HyperlinkedIdentityField ): """ Hyperlink field to custom field value in context of particular object, ex. /api/somemodel/<object_pk>/customfields/<pk> """ related_model_lookup_field = 'object_pk...
34.586207
80
0.657029
7a2b15ce5412fdfbfc07691b4e9f921d32f4b512
833
py
Python
setup.py
longubu/itsne
cc33363b0d0f93b9c3b8f0212c32e6954efa236a
[ "MIT" ]
9
2017-03-20T16:39:49.000Z
2021-08-16T01:47:24.000Z
setup.py
longubu/itsne
cc33363b0d0f93b9c3b8f0212c32e6954efa236a
[ "MIT" ]
null
null
null
setup.py
longubu/itsne
cc33363b0d0f93b9c3b8f0212c32e6954efa236a
[ "MIT" ]
6
2016-04-13T22:04:26.000Z
2022-03-12T08:14:23.000Z
import os import re from setuptools import setup from setuptools import find_packages here = os.path.abspath(os.path.dirname(__file__)) try: # obtain version string from __init__.py # Read ASCII file with builtin open() so __version__ is str with open(os.path.join(here, 'itsne', '__init__.py'), 'r') as f: ...
29.75
89
0.645858
d3be41e07446d0268bfb6ab0d45d6fc744b1f5a8
22,962
py
Python
maskrcnn_benchmark/structures/bounding_box.py
Shualite/UBNet
898d259b33ee2872182dbfd974dab736a64c308b
[ "BSD-2-Clause" ]
2
2021-06-25T13:30:03.000Z
2021-06-25T16:25:06.000Z
maskrcnn_benchmark/structures/bounding_box.py
Shualite/UBNet
898d259b33ee2872182dbfd974dab736a64c308b
[ "BSD-2-Clause" ]
null
null
null
maskrcnn_benchmark/structures/bounding_box.py
Shualite/UBNet
898d259b33ee2872182dbfd974dab736a64c308b
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import torch import numpy as np # transpose FLIP_LEFT_RIGHT = 0 FLIP_TOP_BOTTOM = 1 class RBoxList(object): """ This class represents a set of bounding boxes. The bounding boxes are represented as a Nx4 Tensor. In order to uniquel...
36.563694
118
0.549125
497e5034c7907348bd9e73a8c089189a87515c18
5,641
py
Python
0. Search/degrees/degrees.py
smpace/IntroductionToArtificialIntelligence
3afb40b6fd6926e2745c0252b80c35f838532079
[ "MIT" ]
null
null
null
0. Search/degrees/degrees.py
smpace/IntroductionToArtificialIntelligence
3afb40b6fd6926e2745c0252b80c35f838532079
[ "MIT" ]
null
null
null
0. Search/degrees/degrees.py
smpace/IntroductionToArtificialIntelligence
3afb40b6fd6926e2745c0252b80c35f838532079
[ "MIT" ]
null
null
null
import csv import sys from util import Node, StackFrontier, QueueFrontier # Maps names to a set of corresponding person_ids names = {} # Maps person_ids to a dictionary of: name, birth, movies (a set of movie_ids) people = {} # Maps movie_ids to a dictionary of: title, year, stars (a set of person_ids) movies = {} ...
30.994505
98
0.568693
6a3b7b79f8992d058bd73e38d7e2980ae4b6792e
863
py
Python
tests/test_news.py
Njoro410/the-fourth-estate
fe5b297c4993592ee2c3ab03ad78d0c68cece16c
[ "Apache-2.0", "MIT" ]
null
null
null
tests/test_news.py
Njoro410/the-fourth-estate
fe5b297c4993592ee2c3ab03ad78d0c68cece16c
[ "Apache-2.0", "MIT" ]
null
null
null
tests/test_news.py
Njoro410/the-fourth-estate
fe5b297c4993592ee2c3ab03ad78d0c68cece16c
[ "Apache-2.0", "MIT" ]
null
null
null
import unittest from app.models import Sources,Articles,Top class SourceTest(unittest.TestCase): def setUp(self): self.new_source = Sources('123','cnn','best news','https://blabla.com','blabla','en','us') def test_instance(self): self.assertTrue(isinstance(self.new_source, Sources)) c...
26.96875
121
0.673233
a37a892b5941e2340f9255e6f2edb1af7af638e4
6,621
py
Python
src/mr_estimate.py
ypar/treqtl
7c8ab7310edd83bc7f7950b45d4338341da07ce2
[ "MIT" ]
null
null
null
src/mr_estimate.py
ypar/treqtl
7c8ab7310edd83bc7f7950b45d4338341da07ce2
[ "MIT" ]
null
null
null
src/mr_estimate.py
ypar/treqtl
7c8ab7310edd83bc7f7950b45d4338341da07ce2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ### # ypar # @ treqtl/mr_estimate.py # core calculations ### import sys, os import pandas as pd import numpy as np from sys import argv from math import sqrt from scipy import log10 from scipy.stats import chisqprob import treqtl_input import treqtl_analyze from run_mp import * def prep_ivs...
26.16996
321
0.641746
b97c9e8ba6460557d93a7a82d290998b3ff87227
1,330
py
Python
tools/make_raw_list.py
hicliff/wenet
858d6359fe5a307e068c4d06bfb27fe1ea1bb3ec
[ "Apache-2.0" ]
null
null
null
tools/make_raw_list.py
hicliff/wenet
858d6359fe5a307e068c4d06bfb27fe1ea1bb3ec
[ "Apache-2.0" ]
null
null
null
tools/make_raw_list.py
hicliff/wenet
858d6359fe5a307e068c4d06bfb27fe1ea1bb3ec
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2021 Mobvoi Inc. (authors: Binbin Zhang) # # 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 ...
30.930233
74
0.666165
433f5a49798677828ad2f39e50624840b9fb9ec6
399
py
Python
src/reviews/migrations/0006_auto_20150908_1151.py
PhaseDMS/phase
4f776d0b1b5e7916a3e26aee890b3c2b9454ef0e
[ "MIT" ]
2
2021-09-10T19:40:30.000Z
2022-01-31T07:15:51.000Z
src/reviews/migrations/0006_auto_20150908_1151.py
PhaseDMS/phase
4f776d0b1b5e7916a3e26aee890b3c2b9454ef0e
[ "MIT" ]
null
null
null
src/reviews/migrations/0006_auto_20150908_1151.py
PhaseDMS/phase
4f776d0b1b5e7916a3e26aee890b3c2b9454ef0e
[ "MIT" ]
1
2021-09-10T19:40:42.000Z
2021-09-10T19:40:42.000Z
from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('reviews', '0005_save_review_close_date'), ] operations = [ migrations.RemoveField( model_name='review', name='closed', ), migrations.RemoveField( ...
19.95
51
0.556391
6f4a80fd54d0956a895c9a579408f0c439c0ed1f
396
py
Python
kindlerWeb/shelf/migrations/0010_auto_20200520_0848.py
ssanjaysubramaniam/OpenKindlerWeb
973fd05ddcee1c5c3cd9bf88353c6623dd69f57a
[ "MIT" ]
1
2022-02-07T05:42:02.000Z
2022-02-07T05:42:02.000Z
kindlerWeb/shelf/migrations/0010_auto_20200520_0848.py
ssanjaysubramaniam/OpenKindlerWeb
973fd05ddcee1c5c3cd9bf88353c6623dd69f57a
[ "MIT" ]
5
2021-03-19T10:20:49.000Z
2021-09-22T19:31:12.000Z
kindlerWeb/shelf/migrations/0010_auto_20200520_0848.py
sanjaymaniam/OpenKindlerWeb
973fd05ddcee1c5c3cd9bf88353c6623dd69f57a
[ "MIT" ]
null
null
null
# Generated by Django 3.0.6 on 2020-05-20 08:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('shelf', '0009_book_exceeded_number_of_clippings'), ] operations = [ migrations.AlterField( model_name='book', name='...
20.842105
60
0.608586
fc68d958edca679d8a58be3e3809ee0c01941775
7,745
py
Python
src/twisted/internet/_resolver.py
moshez/twisted
5178c338caa95fd5ded1f4b0455fb75e22d99ab7
[ "MIT", "Unlicense" ]
null
null
null
src/twisted/internet/_resolver.py
moshez/twisted
5178c338caa95fd5ded1f4b0455fb75e22d99ab7
[ "MIT", "Unlicense" ]
1
2017-08-25T05:54:27.000Z
2017-08-25T05:54:27.000Z
src/twisted/internet/_resolver.py
moshez/twisted
5178c338caa95fd5ded1f4b0455fb75e22d99ab7
[ "MIT", "Unlicense" ]
null
null
null
# -*- test-case-name: twisted.internet.test.test_resolver -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ IPv6-aware hostname resolution. @see: L{IHostnameResolver} """ from __future__ import division, absolute_import __metaclass__ = type from socket import (getaddrinfo, AF_INET, AF...
29.337121
79
0.641446
3576f419fe3ad13eecfecfce450541468b8548a5
8,694
py
Python
build/auto/build_openmpt_release_packages.py
generalwave/openmpt
55ad77a995531ecddc51579a989759d8fafe7a74
[ "BSD-3-Clause" ]
1
2021-06-07T03:14:29.000Z
2021-06-07T03:14:29.000Z
build/auto/build_openmpt_release_packages.py
generalwave/openmpt
55ad77a995531ecddc51579a989759d8fafe7a74
[ "BSD-3-Clause" ]
null
null
null
build/auto/build_openmpt_release_packages.py
generalwave/openmpt
55ad77a995531ecddc51579a989759d8fafe7a74
[ "BSD-3-Clause" ]
1
2021-06-07T03:14:59.000Z
2021-06-07T03:14:59.000Z
#!/usr/bin/env python3 # OpenMPT packaging script by Saga Musix # https://openmpt.org/ from pathlib import Path from subprocess import Popen from sys import executable import os, shutil, hashlib import sys path7z = "C:\\Program Files\\7-Zip\\7z.exe" pathISCC = "C:\\Program Files (x86)\\Inno Setup\\ISCC.exe" singleThr...
41.009434
168
0.715896
cfdd32a7f6334133a45f33381ba6f452b7e29cba
4,315
py
Python
ctpn_model.py
opconty/pytorch_ctpn
89ea784d7776a08962c6d5bc5591730e15156d07
[ "MIT" ]
297
2019-01-01T06:38:48.000Z
2022-03-27T13:44:50.000Z
ctpn_model.py
phybrain/pytorch_ctpn
89ea784d7776a08962c6d5bc5591730e15156d07
[ "MIT" ]
43
2019-01-16T13:17:46.000Z
2022-02-05T16:23:21.000Z
ctpn_model.py
phybrain/pytorch_ctpn
89ea784d7776a08962c6d5bc5591730e15156d07
[ "MIT" ]
144
2018-12-28T15:09:22.000Z
2022-03-23T18:03:55.000Z
#-*- coding:utf-8 -*- #''' # Created on 18-12-11 上午10:01 # # @Author: Greg Gao(laygin) #''' import os import torch import torch.nn as nn import torch.nn.functional as F import torchvision.models as models class RPN_REGR_Loss(nn.Module): def __init__(self, device, sigma=9.0): super(RPN_REGR_Loss, self).__i...
33.449612
154
0.562225
3d5c0dec1d43b6d13cff8b06f5fca642cb4e64f7
1,031
py
Python
src/server/endpoints/ght.py
lee14257/delphi-epidata
b007d778321e68be5526ca9ce1113b13d24d6fe8
[ "MIT" ]
null
null
null
src/server/endpoints/ght.py
lee14257/delphi-epidata
b007d778321e68be5526ca9ce1113b13d24d6fe8
[ "MIT" ]
1
2020-07-14T15:35:15.000Z
2020-07-16T17:56:30.000Z
src/server/endpoints/ght.py
lee14257/delphi-epidata
b007d778321e68be5526ca9ce1113b13d24d6fe8
[ "MIT" ]
4
2020-09-17T13:47:02.000Z
2020-10-27T19:40:11.000Z
from flask import Blueprint, request from .._config import AUTH from .._query import execute_query, QueryBuilder from .._validate import check_auth_token, extract_integers, extract_strings, require_all # first argument is the endpoint name bp = Blueprint("ght", __name__) alias = None @bp.route("/", methods=("GET", ...
27.131579
88
0.701261
9258fbb8f8f63a946bb00441554e469033d53afa
929
py
Python
lib/_enums.py
kuco23/PokerPlayerPatterns
8ee91b966a5922e42f706322dd98b5ba9dd08bf0
[ "MIT" ]
null
null
null
lib/_enums.py
kuco23/PokerPlayerPatterns
8ee91b966a5922e42f706322dd98b5ba9dd08bf0
[ "MIT" ]
null
null
null
lib/_enums.py
kuco23/PokerPlayerPatterns
8ee91b966a5922e42f706322dd98b5ba9dd08bf0
[ "MIT" ]
null
null
null
from enum import IntEnum class OutId(IntEnum): RoundStart = 0 RoundEnd = 1 RoundId = 2 SeatJoined = 3 SeatButton = 4 PlayerBlind = 5 PlayerReceivedCard = 6 PlayerShowCards = 7 PlayerAction = 8 NewTurn = 9 PotSize = 10 BoardShow = 11 class ActionId(IntEnum): FOLD = 0...
14.983871
26
0.543595
e16794581bd446e2683f7d3c0e806d8e95ba28b3
5,633
py
Python
anchore_engine/services/apiext/api/controllers/subscriptions.py
Talanor/anchore-engine
5e809db1eb681f89670655c5bf9933eba50cf403
[ "Apache-2.0" ]
null
null
null
anchore_engine/services/apiext/api/controllers/subscriptions.py
Talanor/anchore-engine
5e809db1eb681f89670655c5bf9933eba50cf403
[ "Apache-2.0" ]
null
null
null
anchore_engine/services/apiext/api/controllers/subscriptions.py
Talanor/anchore-engine
5e809db1eb681f89670655c5bf9933eba50cf403
[ "Apache-2.0" ]
null
null
null
# anchore modules import json from connexion import request # anchore modules from anchore_engine.clients import catalog import anchore_engine.services.common def make_response_subscription(user_auth, subscription_record, params): """ Marshall a json subscription object from db to msg format. :param us...
31.646067
101
0.703533
e50616de89514569e428dbbd0f1670f4ed2bdee6
798
py
Python
tests/journal.pkg/firewall_inject.py
PyreFramework/pyre
345c7449a3416eea1c1affa74fb32faff30a6aaa
[ "BSD-3-Clause" ]
null
null
null
tests/journal.pkg/firewall_inject.py
PyreFramework/pyre
345c7449a3416eea1c1affa74fb32faff30a6aaa
[ "BSD-3-Clause" ]
null
null
null
tests/journal.pkg/firewall_inject.py
PyreFramework/pyre
345c7449a3416eea1c1affa74fb32faff30a6aaa
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # # michael a.g. aïvázis <michael.aivazis@para-sim.com> # (c) 1998-2022 all rights reserved def test(): """ Verify that message injection is handled properly """ # get the trash can from journal.Trash import Trash as trash # and the channel f...
19.95
53
0.649123
5627ce9650af3e884292e176296eb0f62f564682
3,896
py
Python
data_loader.py
vijuSR/NeuralNet
89c04a134d48853c546e881ccb4c2e3b048ba1c8
[ "MIT" ]
null
null
null
data_loader.py
vijuSR/NeuralNet
89c04a134d48853c546e881ccb4c2e3b048ba1c8
[ "MIT" ]
null
null
null
data_loader.py
vijuSR/NeuralNet
89c04a134d48853c546e881ccb4c2e3b048ba1c8
[ "MIT" ]
null
null
null
""" mnist_loader ~~~~~~~~~~~~ # YOU MAY USE THIS SCRIPT AFTER CHANGING SOME VALUES SPECIFIC TO YOUR DATA-SET, # TO LOAD DATA FROM '.gz' FILE. # THIS SCRIPT SHOWS AN EXAMPLE OF LOADING THE MNIST DATASET. A library to load the MNIST image data. For details of the data structures that are returned, see the doc strings f...
41.010526
79
0.702772
d10c2740f02a6ea9e3fcb1e82fa97e5f36b34055
563
py
Python
views.py
cartologic/cartoview_feature_editor
498e441f44d00b235defbda16c358bd497a438d4
[ "BSD-2-Clause" ]
1
2018-04-30T16:07:13.000Z
2018-04-30T16:07:13.000Z
views.py
cartologic/cartoview_feature_editor
498e441f44d00b235defbda16c358bd497a438d4
[ "BSD-2-Clause" ]
null
null
null
views.py
cartologic/cartoview_feature_editor
498e441f44d00b235defbda16c358bd497a438d4
[ "BSD-2-Clause" ]
null
null
null
import json import random import string import requests from django.shortcuts import render, HttpResponse from django.contrib.auth.decorators import login_required from . import APP_NAME, __version__ from geonode.layers.views import _resolve_layer, _PERMISSION_MSG_MODIFY from geonode.geoserver.helpers import ogc_serve...
28.15
71
0.801066
ae9f0fa1f55c2e1fe415b39e4db2641425836dbd
597
py
Python
week3/opcionais/bhaskara_root.py
jotavev/usp-computer-science-python
82aaa410f245e339c25e4a2b1a61e410259d0f8c
[ "MIT" ]
1
2020-06-10T03:39:07.000Z
2020-06-10T03:39:07.000Z
week3/opcionais/bhaskara_root.py
jotavev/usp-computer-science-python
82aaa410f245e339c25e4a2b1a61e410259d0f8c
[ "MIT" ]
null
null
null
week3/opcionais/bhaskara_root.py
jotavev/usp-computer-science-python
82aaa410f245e339c25e4a2b1a61e410259d0f8c
[ "MIT" ]
null
null
null
valorA = float(input('Qual o valor de a? ')) valorB = float(input('Qual o valor de b? ')) valorC = float(input('Qual o valor de c? ')) Delta = valorB**2 - 4 * valorA * valorC bask1 = ((-valorB) + (Delta**0.5)) / (2 * valorA) bask2 = ((-valorB) - (Delta**0.5)) / (2 * valorA) if Delta == 0: print(f'a raiz desta eq...
29.85
64
0.572864
d1e7d8a80427f3229a6c006123c592be2ca66c10
4,396
py
Python
example_application/ExampleApplication.py
drolsonibm/Spectrum_Discover_App_Catalog
a5e79f470e5b5e6cf0f288cce160bd4da6129a7f
[ "MIT" ]
null
null
null
example_application/ExampleApplication.py
drolsonibm/Spectrum_Discover_App_Catalog
a5e79f470e5b5e6cf0f288cce160bd4da6129a7f
[ "MIT" ]
null
null
null
example_application/ExampleApplication.py
drolsonibm/Spectrum_Discover_App_Catalog
a5e79f470e5b5e6cf0f288cce160bd4da6129a7f
[ "MIT" ]
null
null
null
#!/usr/bin/python -W ignore ########################################################## {COPYRIGHT-TOP} ### # Licensed Materials - Property of IBM # 5737-I32 # # (C) Copyright IBM Corp. 2019 # # US Government Users Restricted Rights - Use, duplication, or # disclosure restricted by GSA ADP Schedule Contract with IBM Cor...
43.098039
120
0.538672
fe827302b510e9510fd13eb11cf29e1f09f19c16
14,829
py
Python
openshift/client/models/v1_o_auth_access_token.py
flaper87/openshift-restclient-python
13d5d86ca89035b9f596032e7a34f3cc33bf8f18
[ "Apache-2.0" ]
null
null
null
openshift/client/models/v1_o_auth_access_token.py
flaper87/openshift-restclient-python
13d5d86ca89035b9f596032e7a34f3cc33bf8f18
[ "Apache-2.0" ]
null
null
null
openshift/client/models/v1_o_auth_access_token.py
flaper87/openshift-restclient-python
13d5d86ca89035b9f596032e7a34f3cc33bf8f18
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ OpenShift API (with Kubernetes) OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is...
39.230159
3,330
0.656619
35dc2a1bcd84afc2de81584378d63a7812b45c68
25,995
py
Python
sdk/python/pulumi_vault/aws/secret_backend.py
pulumi/pulumi-vault
1682875f4a5d7d508f36e166529ad2b8aec34090
[ "ECL-2.0", "Apache-2.0" ]
10
2019-10-07T17:44:18.000Z
2022-03-30T20:46:33.000Z
sdk/python/pulumi_vault/aws/secret_backend.py
pulumi/pulumi-vault
1682875f4a5d7d508f36e166529ad2b8aec34090
[ "ECL-2.0", "Apache-2.0" ]
79
2019-10-11T18:13:07.000Z
2022-03-31T21:09:41.000Z
sdk/python/pulumi_vault/aws/secret_backend.py
pulumi/pulumi-vault
1682875f4a5d7d508f36e166529ad2b8aec34090
[ "ECL-2.0", "Apache-2.0" ]
2
2019-10-28T10:08:40.000Z
2020-03-17T14:20:55.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
45.525394
204
0.653203
12287c59d02ad6e0e84b636f4a039ed9b27a26b8
8,977
py
Python
mindspore/nn/optim/proximal_ada_grad.py
Joejiong/mindspore
083fd6565cab1aa1d3114feeacccf1cba0d55e80
[ "Apache-2.0" ]
1
2021-04-23T06:35:18.000Z
2021-04-23T06:35:18.000Z
mindspore/nn/optim/proximal_ada_grad.py
Joejiong/mindspore
083fd6565cab1aa1d3114feeacccf1cba0d55e80
[ "Apache-2.0" ]
null
null
null
mindspore/nn/optim/proximal_ada_grad.py
Joejiong/mindspore
083fd6565cab1aa1d3114feeacccf1cba0d55e80
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # 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...
57.916129
121
0.670157
ad2f3b191f06f9402e12b21d56f73ef5edc496b4
3,713
py
Python
totp/cli.py
mortn/totp-cli
291ad9bc893e2d475de4b626af5a94f4e6c1230e
[ "ISC" ]
81
2017-10-08T08:14:50.000Z
2022-03-07T08:41:17.000Z
totp/cli.py
mortn/totp-cli
291ad9bc893e2d475de4b626af5a94f4e6c1230e
[ "ISC" ]
11
2018-06-06T17:49:29.000Z
2022-03-16T09:52:29.000Z
totp/cli.py
mortn/totp-cli
291ad9bc893e2d475de4b626af5a94f4e6c1230e
[ "ISC" ]
10
2018-02-10T17:43:11.000Z
2021-07-22T08:59:50.000Z
import argparse import getpass import sys from base64 import b32decode from collections import OrderedDict, defaultdict, namedtuple from functools import reduce import totp _subcommands = {} _argument = namedtuple('argument', ['args', 'kwargs']) def argument(*args, **kwargs): return _argument(args, kwargs) def ...
29.704
99
0.640452
ef579aca0141845a86eb0412c9d59058e69052c0
8,948
py
Python
frappe/automation/doctype/assignment_rule/assignment_rule.py
ssuda777/frappe
d3f3df2ce15154aecc1d9d6d07d947e72c2e8c6e
[ "MIT" ]
1
2021-06-03T07:04:48.000Z
2021-06-03T07:04:48.000Z
frappe/automation/doctype/assignment_rule/assignment_rule.py
JMBodz/frappe
eb218a06d1cbfc3a8f1cc00ba8dac2c927d2f71d
[ "MIT" ]
3
2021-02-27T11:50:14.000Z
2021-05-03T06:48:49.000Z
frappe/automation/doctype/assignment_rule/assignment_rule.py
JMBodz/frappe
eb218a06d1cbfc3a8f1cc00ba8dac2c927d2f71d
[ "MIT" ]
2
2021-09-02T09:51:55.000Z
2021-09-07T04:55:42.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2019, Frappe Technologies and contributors # For license information, please see license.txt import frappe from frappe.model.document import Document from frappe.desk.form import assign_to import frappe.cache_manager from frappe import _ from frappe.model import log_types class...
29.629139
125
0.726308
396b5f7ce670daade10d7fd4c26885c9e1f07972
6,820
py
Python
electrum_mona/tests/test_network.py
david4neblio/electrum-mona
2d13b066be2d6205aeaa7ca859884c3ec1b92e83
[ "MIT" ]
null
null
null
electrum_mona/tests/test_network.py
david4neblio/electrum-mona
2d13b066be2d6205aeaa7ca859884c3ec1b92e83
[ "MIT" ]
null
null
null
electrum_mona/tests/test_network.py
david4neblio/electrum-mona
2d13b066be2d6205aeaa7ca859884c3ec1b92e83
[ "MIT" ]
null
null
null
import asyncio import tempfile import unittest from electrum_mona import constants from electrum_mona.simple_config import SimpleConfig from electrum_mona import blockchain from electrum_mona.interface import Interface from electrum_mona.crypto import sha256 from electrum_mona.util import bh2u class MockTaskGroup: ...
56.833333
155
0.654985
46c314bb50cd7e8aca0231016c90b9a3c5a904bd
2,430
py
Python
search.py
nzukie-b/emokou
db1791724918bebc24435139dd189a5bdd19e3be
[ "MIT" ]
null
null
null
search.py
nzukie-b/emokou
db1791724918bebc24435139dd189a5bdd19e3be
[ "MIT" ]
null
null
null
search.py
nzukie-b/emokou
db1791724918bebc24435139dd189a5bdd19e3be
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import re import random import logging import db from models import ImageData from translate import Translator from PIL import Image found_images = set() # db.remote_connect() db.local_connect() #TODO: Change the way that the seach works to allow usage of map #NOTE: I pro...
32.837838
90
0.65144
92613347c7a30571da6e97e101862845c1aad2f5
873
py
Python
code/tmp_rtrip/encodings/utf_7.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
24
2018-01-23T05:28:40.000Z
2021-04-13T20:52:59.000Z
code/tmp_rtrip/encodings/utf_7.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
17
2017-12-21T18:32:31.000Z
2018-12-18T17:09:50.000Z
code/tmp_rtrip/encodings/utf_7.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
null
null
null
""" Python 'utf-7' Codec Written by Brian Quinlan (brian@sweetapp.com). """ import codecs encode = codecs.utf_7_encode def decode(input, errors='strict'): return codecs.utf_7_decode(input, errors, True) class IncrementalEncoder(codecs.IncrementalEncoder): def encode(self, input, final=False): retu...
24.25
71
0.756014
68e64a7b87653d073d4cc5035e258188f0e85b52
5,423
py
Python
congressionalrecord/pg_run/pg_cr_bulkwrite.py
EricMa206/congressional-record
7c72483130ab6781c476578d8713da075c6e577d
[ "BSD-3-Clause" ]
1
2019-07-02T13:20:13.000Z
2019-07-02T13:20:13.000Z
congressionalrecord/pg_run/pg_cr_bulkwrite.py
EricMa206/congressional-record
7c72483130ab6781c476578d8713da075c6e577d
[ "BSD-3-Clause" ]
null
null
null
congressionalrecord/pg_run/pg_cr_bulkwrite.py
EricMa206/congressional-record
7c72483130ab6781c476578d8713da075c6e577d
[ "BSD-3-Clause" ]
1
2019-07-02T13:20:33.000Z
2019-07-02T13:20:33.000Z
from builtins import str from builtins import object import psycopg2 as pc from psycopg2.extras import RealDictCursor as rdc from ..govinfo.downloader import Downloader as dl from collections import OrderedDict import logging import unicodecsv as csv import os def if_exists(key,store): if key in list(store.keys())...
35.677632
84
0.534206
f8be37464e31a3fe21fea6495c32f0c3f2cab45c
3,078
py
Python
apps/develop/api.py
Visualway/Vitary
c7db9a25837fa7390b2177b9db48e73c6f1ab3c8
[ "BSD-3-Clause" ]
4
2021-12-24T16:07:44.000Z
2022-03-04T02:30:20.000Z
apps/develop/api.py
Visualway/Vitary
c7db9a25837fa7390b2177b9db48e73c6f1ab3c8
[ "BSD-3-Clause" ]
4
2021-12-30T13:32:56.000Z
2022-03-15T03:58:48.000Z
apps/develop/api.py
Visualway/Vitary
c7db9a25837fa7390b2177b9db48e73c6f1ab3c8
[ "BSD-3-Clause" ]
null
null
null
import json from django.http import JsonResponse from .models import DevProfile import secrets def generate_api_key(request): if request.user.is_authenticated: if DevProfile.objects.filter(user=request.user).exists(): devprofile = DevProfile.objects.get(user=request.user) if devp...
43.352113
119
0.642625
2bb0b7d2898e0a75d43e63a84eff83f184dfcb8d
7,883
py
Python
pgoapi/protos/pogoprotos/networking/responses/download_gm_templates_response_pb2.py
aroo135/pgoapi
47d384ffe54051363ba380f0cb14ec584feedab1
[ "MIT" ]
842
2016-08-07T00:07:26.000Z
2016-08-22T02:41:38.000Z
aiopogo/pogoprotos/networking/responses/download_gm_templates_response_pb2.py
ultrafunkamsterdam/aiopogo
43444c994a400bc9bc8fd1ccaa6a1f79ff5df1fe
[ "MIT" ]
102
2016-08-22T19:55:24.000Z
2018-10-28T12:06:33.000Z
aiopogo/pogoprotos/networking/responses/download_gm_templates_response_pb2.py
ultrafunkamsterdam/aiopogo
43444c994a400bc9bc8fd1ccaa6a1f79ff5df1fe
[ "MIT" ]
522
2016-08-07T00:06:05.000Z
2016-08-21T18:03:59.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: pogoprotos/networking/responses/download_gm_templates_response.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _m...
43.313187
887
0.78219
234c127335be3dce0186ab7f8dddac90f770c362
96
py
Python
office365/sharepoint/fields/fieldMultiLineText.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
office365/sharepoint/fields/fieldMultiLineText.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
office365/sharepoint/fields/fieldMultiLineText.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
from office365.sharepoint.fields.field import Field class FieldMultiLineText(Field): pass
16
51
0.802083
e7b53ecb4a1595dc09ac5227f1ee3ce4eb9caebd
6,983
py
Python
main.py
teamcodered/rubbletumbler
07c5147abfeb6341bbbf592899e541d8342322f7
[ "MIT" ]
null
null
null
main.py
teamcodered/rubbletumbler
07c5147abfeb6341bbbf592899e541d8342322f7
[ "MIT" ]
null
null
null
main.py
teamcodered/rubbletumbler
07c5147abfeb6341bbbf592899e541d8342322f7
[ "MIT" ]
null
null
null
from rubbletumbler.net import download_files, download_file, url_parts, root_content_dl_addr, get_csv_file_contents, get_csv_file_data, get_matching_files import argparse import re import os import sys import datetime fname = 'MOD03.A2019176.2225.061.NRT.hdf' def browse_action(args): if args.list: ctr = ...
41.814371
155
0.652728
88cbb507df72cacf0d4bf1902ba6ef939c648adf
972
py
Python
backend/solo_rog_api/serializers.py
Jaryt/solo
fd3b7e32942308509da0af1dc768fbf5059c554b
[ "MIT" ]
null
null
null
backend/solo_rog_api/serializers.py
Jaryt/solo
fd3b7e32942308509da0af1dc768fbf5059c554b
[ "MIT" ]
null
null
null
backend/solo_rog_api/serializers.py
Jaryt/solo
fd3b7e32942308509da0af1dc768fbf5059c554b
[ "MIT" ]
null
null
null
from typing import Dict, Any, Optional, cast from django.contrib.auth import authenticate from django.contrib.auth.models import AbstractUser from rest_framework import serializers, exceptions from rest_framework_simplejwt.tokens import RefreshToken from .models import Log class TokenObtainSerializer(serializers.Seri...
32.4
85
0.680041
9da58761c6f79979b2b2fa0b1e03a559d9f45061
2,210
py
Python
postimpressionism/Getimpressionism.py
AkiraDemenech/Postimpressionism
2a88ed95d2fb108bdddeb1803b4aad8ab6b7d0da
[ "MIT" ]
2
2020-10-05T17:31:24.000Z
2021-03-23T11:59:52.000Z
postimpressionism/Getimpressionism.py
AkiraDemenech/Postimpressionism
2a88ed95d2fb108bdddeb1803b4aad8ab6b7d0da
[ "MIT" ]
null
null
null
postimpressionism/Getimpressionism.py
AkiraDemenech/Postimpressionism
2a88ed95d2fb108bdddeb1803b4aad8ab6b7d0da
[ "MIT" ]
null
null
null
"""This module implements the main basic methods to Image Processing.""" try: from postimpressionism.Setimpressionism import * except ModuleNotFoundError: from Setimpressionism import * # If I am testing from the directory . . . img_path = "C:\\" def _path_ (p = None): """Setter and Getter for default path to t...
22.55102
95
0.644796
56f45b2a62cb6797f3817e4a64e4f3f78cb7569d
142
py
Python
tests/migrations/test_migrations_squashed_erroneous/1_auto.py
jpmallarino/django
659d2421c7adbbcd205604002d521d82d6b0b465
[ "BSD-3-Clause", "0BSD" ]
16
2019-08-10T12:24:06.000Z
2020-05-21T09:11:14.000Z
tests/migrations/test_migrations_squashed_erroneous/1_auto.py
jpmallarino/django
659d2421c7adbbcd205604002d521d82d6b0b465
[ "BSD-3-Clause", "0BSD" ]
12
2019-08-10T11:55:29.000Z
2020-05-21T04:46:30.000Z
tests/migrations/test_migrations_squashed_erroneous/1_auto.py
jpmallarino/django
659d2421c7adbbcd205604002d521d82d6b0b465
[ "BSD-3-Clause", "0BSD" ]
3
2019-08-20T13:29:34.000Z
2020-01-30T22:05:10.000Z
from django.db import migrations class Migration(migrations.Migration): operations = [migrations.RunPython(migrations.RunPython.noop)]
20.285714
66
0.795775
92362a5c18309c68ce711edf46c1c0a4a8653899
476
py
Python
backend/battles/migrations/0013_auto_20200317_1354.py
gabrielaleal/pokebattle
3259204eb34f27a5e79f2bbff57994f435b624c1
[ "MIT" ]
1
2020-03-02T18:15:29.000Z
2020-03-02T18:15:29.000Z
backend/battles/migrations/0013_auto_20200317_1354.py
gabrielaleal/pokebattle
3259204eb34f27a5e79f2bbff57994f435b624c1
[ "MIT" ]
12
2020-03-18T21:50:29.000Z
2022-02-19T00:30:14.000Z
backend/battles/migrations/0013_auto_20200317_1354.py
gabrielaleal/pokebattle
3259204eb34f27a5e79f2bbff57994f435b624c1
[ "MIT" ]
null
null
null
# Generated by Django 2.2.10 on 2020-03-17 13:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('battles', '0012_auto_20200316_2110'), ] operations = [ migrations.AlterField( model_name='battle', name='status', ...
25.052632
139
0.609244
d3f0c7e8b7c34dc106ce106aba3b1b482918b75b
19,558
py
Python
plot/plot_towr_plus_trajectory.py
MaxxWilson/ASE389Project
13c3c72887e27fbed2eef63c1e27b4a185036a39
[ "MIT" ]
17
2021-05-31T10:55:48.000Z
2022-03-30T10:09:37.000Z
plot/plot_towr_plus_trajectory.py
MaxxWilson/ASE389Project
13c3c72887e27fbed2eef63c1e27b4a185036a39
[ "MIT" ]
2
2021-10-01T22:11:43.000Z
2021-12-06T02:34:33.000Z
plot/plot_towr_plus_trajectory.py
MaxxWilson/ASE389Project
13c3c72887e27fbed2eef63c1e27b4a185036a39
[ "MIT" ]
3
2021-08-24T00:53:18.000Z
2022-03-31T17:29:07.000Z
import os import sys cwd = os.getcwd() sys.path.append(cwd) import pickle import itertools from ruamel.yaml import YAML import tensorflow as tf import numpy as np import matplotlib.pyplot as plt import matplotlib # matplotlib.use('TkAgg') plt.rcParams.update({ 'axes.grid': True, 'axes.titlesize': 16, 'axes...
38.5
98
0.482156
9ea6c83f9e819f95b942df2a1fa9a58fa7792a0e
540
py
Python
measure_mate/migrations/0012_auto_20160223_0649.py
niche-tester/measure-mate
c3acba57747bcb89fe0c6b9509ec90f04a581506
[ "MIT" ]
15
2015-12-14T02:20:31.000Z
2022-01-30T04:36:39.000Z
measure_mate/migrations/0012_auto_20160223_0649.py
rloomans/measure-mate
e89f9c8e1faa1920496f1c997f6d87ec0f9bd7c2
[ "MIT" ]
1,403
2017-02-16T01:00:04.000Z
2022-03-15T21:12:13.000Z
measure_mate/migrations/0012_auto_20160223_0649.py
rloomans/measure-mate
e89f9c8e1faa1920496f1c997f6d87ec0f9bd7c2
[ "MIT" ]
10
2015-12-18T01:30:46.000Z
2022-01-30T04:36:41.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.1 on 2016-02-23 06:49 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('measure_mate', '0011_team'), ] operations = [ ...
24.545455
116
0.646296
ef2eae68af96604e94621842b0b0c4ac6b07be57
285
py
Python
Python Fundamentals/Lists Basics/Lab/Task04.py
DonikaChervenkova/SoftUni
bff579c037ec48f39ed193b34bc3502a32e90732
[ "MIT" ]
null
null
null
Python Fundamentals/Lists Basics/Lab/Task04.py
DonikaChervenkova/SoftUni
bff579c037ec48f39ed193b34bc3502a32e90732
[ "MIT" ]
null
null
null
Python Fundamentals/Lists Basics/Lab/Task04.py
DonikaChervenkova/SoftUni
bff579c037ec48f39ed193b34bc3502a32e90732
[ "MIT" ]
1
2021-12-04T12:30:57.000Z
2021-12-04T12:30:57.000Z
n = int(input()) word = input() all_strings = [] filtered_strings = [] for current_str in range(n): string = input() all_strings.append(string) for item in all_strings: if word in item: filtered_strings.append(item) print(all_strings) print(filtered_strings)
15
37
0.687719
4f73410fd68ef85b6b3a4cc90699b0231d4aa66e
1,018
py
Python
crawler/column/spiders/column_spider.py
danielthank/japanese-column-reader
1d131fbf907f3975b5e300dec037edf925ea0a01
[ "MIT" ]
3
2020-09-05T13:19:50.000Z
2021-04-28T08:53:24.000Z
crawler/column/spiders/column_spider.py
danielthank/japanese-column-reader
1d131fbf907f3975b5e300dec037edf925ea0a01
[ "MIT" ]
3
2021-08-01T08:45:15.000Z
2022-02-27T16:16:00.000Z
crawler/column/spiders/column_spider.py
danielthank/japanese-column-reader
1d131fbf907f3975b5e300dec037edf925ea0a01
[ "MIT" ]
null
null
null
from newspaper import Article import json import scrapy import datetime class ColumnSpider(scrapy.Spider): name = "column" now = datetime.datetime.now() today = now.strftime("%Y%m%d") def start_requests(self): start_urls = ["https://www.47news.jp/news/column/47column"] for url in start_urls: yie...
28.277778
66
0.600196
81ba9319c7d4790d7b376d108478f279a4401b6e
790
py
Python
test/dom/html/test_a.py
jkloth/pyxml
de15b3ad0fe095f6ce36b1c5ad7438046aae8d3d
[ "MIT" ]
2
2018-05-28T23:01:20.000Z
2018-05-29T03:59:38.000Z
test/dom/html/test_a.py
jkloth/pyxml
de15b3ad0fe095f6ce36b1c5ad7438046aae8d3d
[ "MIT" ]
null
null
null
test/dom/html/test_a.py
jkloth/pyxml
de15b3ad0fe095f6ce36b1c5ad7438046aae8d3d
[ "MIT" ]
null
null
null
from util import testAttribute from util import testIntAttribute def test(): print 'testing source code syntax' from xml.dom.html import HTMLAnchorElement from xml.dom import implementation doc = implementation.createHTMLDocument('Title') a = doc.createElement('A') print 'testing get/set' ...
26.333333
52
0.673418
3ab8ef80641341c65a1ab66604de21246a430051
5,642
py
Python
tests/apps/tethysapp-test_app/tethysapp/test_app/app.py
ezrajrice/tethys
238271ebb09913f1f57b0d127fd5c81bb4780a0a
[ "BSD-2-Clause" ]
79
2015-10-05T13:13:28.000Z
2022-02-01T12:30:33.000Z
tests/apps/tethysapp-test_app/tethysapp/test_app/app.py
ezrajrice/tethys
238271ebb09913f1f57b0d127fd5c81bb4780a0a
[ "BSD-2-Clause" ]
542
2015-08-12T22:11:32.000Z
2022-03-29T22:18:08.000Z
tests/apps/tethysapp-test_app/tethysapp/test_app/app.py
Aquaveo/tethys
15f67c3fb9458d3af2733542be5ea6391f33b222
[ "BSD-2-Clause" ]
71
2016-01-16T01:03:41.000Z
2022-03-31T17:55:54.000Z
from tethys_sdk.base import TethysAppBase, url_map_maker from tethys_sdk.app_settings import CustomSetting, PersistentStoreDatabaseSetting, PersistentStoreConnectionSetting, \ DatasetServiceSetting, SpatialDatasetServiceSetting, WebProcessingServiceSetting from tethys_sdk.handoff import HandoffHandler class Test...
31
118
0.533676
b815d45b99fc1bc15d408cd5e64be426165abed6
6,082
py
Python
daemon/core/gui/dialogs/observers.py
alehmannFRA-UAS/core
bcf74297851e40e383c279f1f0a7eff3257c258b
[ "BSD-2-Clause" ]
463
2015-07-28T16:28:12.000Z
2022-03-31T16:11:29.000Z
daemon/core/gui/dialogs/observers.py
alehmannFRA-UAS/core
bcf74297851e40e383c279f1f0a7eff3257c258b
[ "BSD-2-Clause" ]
392
2015-08-07T09:14:40.000Z
2022-03-31T18:12:28.000Z
daemon/core/gui/dialogs/observers.py
alehmannFRA-UAS/core
bcf74297851e40e383c279f1f0a7eff3257c258b
[ "BSD-2-Clause" ]
163
2015-07-30T15:54:03.000Z
2022-03-21T22:54:03.000Z
import tkinter as tk from tkinter import messagebox, ttk from typing import TYPE_CHECKING, Optional from core.gui.appconfig import Observer from core.gui.dialogs.dialog import Dialog from core.gui.themes import PADX, PADY from core.gui.widgets import ListboxScroll if TYPE_CHECKING: from core.gui.app import Applic...
39.493506
79
0.634002
fdf0473d9e1ad6a54321c19242986ead2199020f
7,626
py
Python
timelapser/test_scheduler.py
thozza/timelapser
89c7550d40d6434b050c280b46773599f4ff3692
[ "MIT" ]
null
null
null
timelapser/test_scheduler.py
thozza/timelapser
89c7550d40d6434b050c280b46773599f4ff3692
[ "MIT" ]
null
null
null
timelapser/test_scheduler.py
thozza/timelapser
89c7550d40d6434b050c280b46773599f4ff3692
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2018 Tomas Hozza # # 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, modif...
53.704225
140
0.596512
bee3086900c9c8907c3651365200e4d1f147db83
20,651
py
Python
components/esptool_py/esptool/espressif/efuse/esp32c3/mem_definition.py
MagicInstall/esp-idf-NathanReeves-pio
b5efeeb5c00dff3f71f59db8849d399787f91c72
[ "Apache-2.0" ]
1
2022-01-05T13:22:24.000Z
2022-01-05T13:22:24.000Z
components/esptool_py/esptool/espressif/efuse/esp32c3/mem_definition.py
MagicInstall/esp-idf-NathanReeves-pio
b5efeeb5c00dff3f71f59db8849d399787f91c72
[ "Apache-2.0" ]
1
2021-09-16T13:57:16.000Z
2021-09-16T13:57:16.000Z
components/esptool_py/esptool/espressif/efuse/esp32c3/mem_definition.py
MagicInstall/esp-idf-NathanReeves-pio
b5efeeb5c00dff3f71f59db8849d399787f91c72
[ "Apache-2.0" ]
1
2022-01-17T07:07:05.000Z
2022-01-17T07:07:05.000Z
#!/usr/bin/env python # This file describes eFuses fields and registers for ESP32-C3 chip # # Copyright (C) 2020 Espressif Systems (Shanghai) PTE LTD # # 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 # Founda...
86.768908
160
0.492906
20eb5626e927789d546e0feb282ab13f9380b30c
1,086
py
Python
farmbeats-datastreamer/sensors/SoilMoistureSensor.py
pelikhan/farmbeatsforstudents
6034f83783b3b0f950c7ddbce222c1a7220a0093
[ "MIT" ]
7
2021-02-23T15:03:22.000Z
2022-02-02T01:05:51.000Z
farmbeats-datastreamer/sensors/SoilMoistureSensor.py
pelikhan/farmbeatsforstudents
6034f83783b3b0f950c7ddbce222c1a7220a0093
[ "MIT" ]
22
2021-11-23T05:42:34.000Z
2022-01-19T02:51:36.000Z
farmbeats-datastreamer/sensors/SoilMoistureSensor.py
pelikhan/farmbeatsforstudents
6034f83783b3b0f950c7ddbce222c1a7220a0093
[ "MIT" ]
9
2021-02-23T15:03:23.000Z
2022-03-16T22:19:09.000Z
from sensors.BaseSensor import BaseSensor from grove.adc import ADC class SoilMoistureSensor(BaseSensor): def __init__(self): BaseSensor.__init__(self) self.sensor = None self.soil_moisture_pin = 0 self.setup() def setup(self): try: self.sensor = ADC() ...
35.032258
94
0.599448
6eed743decf3148455532bd4e8029fda8916abad
10,699
py
Python
src/pecanpy/rw/sparse_rw.py
RemyLau/PecanPy
98b4860b58b44b4d2b01920251b5b4630724878f
[ "BSD-3-Clause" ]
null
null
null
src/pecanpy/rw/sparse_rw.py
RemyLau/PecanPy
98b4860b58b44b4d2b01920251b5b4630724878f
[ "BSD-3-Clause" ]
null
null
null
src/pecanpy/rw/sparse_rw.py
RemyLau/PecanPy
98b4860b58b44b4d2b01920251b5b4630724878f
[ "BSD-3-Clause" ]
null
null
null
"""Lite graph objects used by pecanpy.""" import numpy as np from numba import boolean, jit from pecanpy.graph import SparseGraph class SparseRWGraph(SparseGraph): """Sparse Graph object that stores graph as adjacency list. Note: By default the ``SparseGraph`` object converts the data to Compact ...
33.539185
85
0.580054
35e30df480ede67616666b1a5a896b5dbc37a9c3
2,974
py
Python
fluids/obs/birds_eye.py
efang96/Urban_Driving_Simulator
449d1cdef12d408ca783b8c01fd50d1104c01503
[ "MIT" ]
null
null
null
fluids/obs/birds_eye.py
efang96/Urban_Driving_Simulator
449d1cdef12d408ca783b8c01fd50d1104c01503
[ "MIT" ]
null
null
null
fluids/obs/birds_eye.py
efang96/Urban_Driving_Simulator
449d1cdef12d408ca783b8c01fd50d1104c01503
[ "MIT" ]
null
null
null
from six import iteritems import numpy as np import pygame from fluids.assets.shape import Shape from fluids.obs.obs import FluidsObs from fluids.utils import rotation_array class BirdsEyeObservation(FluidsObs): """ Bird's-eye 2D top-down image centered on the vehicle, similar to what is visualized. Mino...
42.485714
111
0.582381
38cda266078cd115e9713dfe4320b3340c7d8b16
5,912
py
Python
common/config.py
pi-plan/pidts
ddfd04b25d513be0b080712062b38338bbe92b47
[ "BSD-3-Clause" ]
1
2021-02-07T10:33:54.000Z
2021-02-07T10:33:54.000Z
common/config.py
pi-plan/pidts
ddfd04b25d513be0b080712062b38338bbe92b47
[ "BSD-3-Clause" ]
null
null
null
common/config.py
pi-plan/pidts
ddfd04b25d513be0b080712062b38338bbe92b47
[ "BSD-3-Clause" ]
null
null
null
import os from typing import Dict, List, Any, Optional, Tuple, MutableMapping, Union import toml class Config(object): """ 所有配置的factory,单例可以被修改 """ _instance: Optional['Config'] = None def __init__(self, current_zone_id: int, node: str, server_id: int): self.current_zone_id: int = int(...
30.95288
78
0.583897
5a11a08b035dc9ecf4b794fefb76f2b2d4177c27
799
py
Python
ray_data.py
DimitarSkripkin/SimplePythonRayTracer
7bcfa92d221199a51c08e9c3639bbea3f1f638b3
[ "MIT" ]
null
null
null
ray_data.py
DimitarSkripkin/SimplePythonRayTracer
7bcfa92d221199a51c08e9c3639bbea3f1f638b3
[ "MIT" ]
null
null
null
ray_data.py
DimitarSkripkin/SimplePythonRayTracer
7bcfa92d221199a51c08e9c3639bbea3f1f638b3
[ "MIT" ]
null
null
null
import math from math_extentions import * class IntersectionResult: def __init__(self, obj, world_position, ray_origin_offset, surface_normal): self.obj = obj self.world_position = world_position self.surface_normal = surface_normal self.ray_origin_offset = ray_origin_offset clas...
28.535714
79
0.664581
1cb5dde8548c827119fcfd8d75193e68a68a7c8e
7,069
py
Python
hit-gd-anomaly-detection/src/main/python/HTM/AnomalyDetection/test/test.py
wenwen195/hit-graduation-design-parent
750c2a4a94c2cc2a1609283a33a38c834537bcd9
[ "Unlicense" ]
null
null
null
hit-gd-anomaly-detection/src/main/python/HTM/AnomalyDetection/test/test.py
wenwen195/hit-graduation-design-parent
750c2a4a94c2cc2a1609283a33a38c834537bcd9
[ "Unlicense" ]
null
null
null
hit-gd-anomaly-detection/src/main/python/HTM/AnomalyDetection/test/test.py
wenwen195/hit-graduation-design-parent
750c2a4a94c2cc2a1609283a33a38c834537bcd9
[ "Unlicense" ]
null
null
null
#!flask/bin/python # # ! /usr/bin/python # import json import datetime import numpy as np from flask import jsonify from nupic.frameworks.opf.model_factory import ModelFactory from nupic.frameworks.opf.common_models.cluster_params import getScalarMetricWithTimeOfDayAnomalyParams class stream_anomaly_detect(): ...
29.210744
111
0.599378
06712f9190f440ae5c87f020f88f1e2e7a997973
22,820
py
Python
tests/test_sockets.py
coolwanglu/emscripten
ba813471568f05c97c59099a963bc35341d4dfb5
[ "MIT" ]
6
2015-07-27T13:03:22.000Z
2020-02-20T18:30:29.000Z
tests/test_sockets.py
gagern/emscripten
ba813471568f05c97c59099a963bc35341d4dfb5
[ "MIT" ]
null
null
null
tests/test_sockets.py
gagern/emscripten
ba813471568f05c97c59099a963bc35341d4dfb5
[ "MIT" ]
null
null
null
import os, multiprocessing, subprocess from runner import BrowserCore, path_from_root from tools.shared import * def clean_pids(pids): import signal, errno def pid_exists(pid): try: # NOTE: may just kill the process in Windows os.kill(pid, 0) except OSError, e: return e.errno == errno.EPE...
45.367793
272
0.646012
49b3f0f9016e64c1aa22e279a7d33ac633e71633
3,649
py
Python
build/lib/arglex/inconsistency/inconsistency.py
mhaugestad/spacy_arglex
8c70cdd5c79fbc0352399b21449efd6c096de66f
[ "MIT" ]
null
null
null
build/lib/arglex/inconsistency/inconsistency.py
mhaugestad/spacy_arglex
8c70cdd5c79fbc0352399b21449efd6c096de66f
[ "MIT" ]
null
null
null
build/lib/arglex/inconsistency/inconsistency.py
mhaugestad/spacy_arglex
8c70cdd5c79fbc0352399b21449efd6c096de66f
[ "MIT" ]
1
2020-07-02T18:18:23.000Z
2020-07-02T18:18:23.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- class Inconsistency(object): def __init__(self, nlp, object): self.object = object self.matcher = object.matcher.Matcher(nlp.vocab) self.matcher.add("Inconsistency", None, #except that [{'LOWER': 'excep...
28.960317
115
0.34256
89d22402ea98d8723ed229536b3eb4cefb704ef9
1,104
py
Python
experiments/xlm_ter/linear_regression.py
gcruzgar/trdiff
b38659227178d7e08de10c1347b5601b61ebe291
[ "MIT" ]
null
null
null
experiments/xlm_ter/linear_regression.py
gcruzgar/trdiff
b38659227178d7e08de10c1347b5601b61ebe291
[ "MIT" ]
null
null
null
experiments/xlm_ter/linear_regression.py
gcruzgar/trdiff
b38659227178d7e08de10c1347b5601b61ebe291
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import torch from sklearn.metrics import mean_squared_error from scripts.utils import load_embeddings, remove_outliers, linear_regression import scipy.stats as stats import matplotlib.pyplot as plt ter = pd.read_csv("data/en-fr-100/en-fr-100-mt_score.txt", sep='\n', header=N...
30.666667
88
0.751812
54d7ed0ea50002cd4af8ee8744212a9b2c03b702
92,925
py
Python
neutron/tests/unit/scheduler/test_l3_agent_scheduler.py
brandonlogan/neutron
57364544aa8b0e7cd9d73550f287bcad574ba08c
[ "Apache-2.0" ]
1
2017-09-10T09:57:35.000Z
2017-09-10T09:57:35.000Z
neutron/tests/unit/scheduler/test_l3_agent_scheduler.py
brandonlogan/neutron
57364544aa8b0e7cd9d73550f287bcad574ba08c
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/scheduler/test_l3_agent_scheduler.py
brandonlogan/neutron
57364544aa8b0e7cd9d73550f287bcad574ba08c
[ "Apache-2.0" ]
1
2015-05-05T14:41:11.000Z
2015-05-05T14:41:11.000Z
# Copyright (c) 2013 OpenStack Foundation # 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 ...
43.281323
79
0.596298
a35b7af532e2677e6b9dbef6d2f4cef5b1fda0ec
373
py
Python
_ext/nonlocalimages.py
sustechgem/eosc350website
2fe80afc5d1ed56057b9f391a9b91ee854413669
[ "MIT" ]
3
2017-08-16T23:51:27.000Z
2018-09-05T16:09:47.000Z
_ext/nonlocalimages.py
sustechgem/eosc350website
2fe80afc5d1ed56057b9f391a9b91ee854413669
[ "MIT" ]
13
2016-09-02T23:16:44.000Z
2018-09-07T22:02:03.000Z
_ext/nonlocalimages.py
geoscixyz/eosc350website
3a7c0064e08dc2c168d68cfb60d1b1d08d01c714
[ "MIT" ]
4
2019-02-14T15:25:10.000Z
2020-05-21T17:50:30.000Z
def supress_nonlocal_image_warn(): import sphinx.environment sphinx.environment.BuildEnvironment.warn_node = _supress_nonlocal_image_warn def _supress_nonlocal_image_warn(self, msg, node, **kwargs): from docutils.utils import get_source_line if not msg.startswith('nonlocal image URI found:'): ...
37.3
80
0.764075
e4ea666e929c55757fbf9b317c5fa609fd83aed9
811
py
Python
Chapter-7 Numpy/operation_np_array.py
jaiswalIT02/pythonprograms
bc94e52121202b04c3e9112d9786f93ed6707f7a
[ "MIT" ]
null
null
null
Chapter-7 Numpy/operation_np_array.py
jaiswalIT02/pythonprograms
bc94e52121202b04c3e9112d9786f93ed6707f7a
[ "MIT" ]
null
null
null
Chapter-7 Numpy/operation_np_array.py
jaiswalIT02/pythonprograms
bc94e52121202b04c3e9112d9786f93ed6707f7a
[ "MIT" ]
null
null
null
import numpy as np print(3**2) d11=np.array([1,2,3,4,5,6]) d12=np.array([3,4,5,6,7,8]) d21=np.array([[1,2,3],[4,5,6]]) d22=np.array([[3,4,5],[6,7,8]]) result = np.add(d11, d12) print("Sum {0} + {1} = {2} ".format(d11,d12,result)) result=d11*d12 print("Product {0} X {1} = {2} ".format(d11,d12,result)) result=d11/d12 pri...
28.964286
58
0.604192
54571699af3ce09ea4916e727c4420ed97ea9905
140
py
Python
toucan_connectors/install_scripts/__init__.py
CharlesRngrd/toucan-connectors
906481c6f4bbead406efcd0879d1ac21a3071b6e
[ "BSD-3-Clause" ]
15
2018-04-24T08:14:19.000Z
2021-08-01T17:48:56.000Z
toucan_connectors/install_scripts/__init__.py
CharlesRngrd/toucan-connectors
906481c6f4bbead406efcd0879d1ac21a3071b6e
[ "BSD-3-Clause" ]
281
2018-03-29T23:11:26.000Z
2022-02-15T17:29:11.000Z
toucan_connectors/install_scripts/__init__.py
CharlesRngrd/toucan-connectors
906481c6f4bbead406efcd0879d1ac21a3071b6e
[ "BSD-3-Clause" ]
14
2019-02-07T14:55:22.000Z
2021-11-25T09:12:23.000Z
from pathlib import Path def get_install_script_path(connector_name): return Path(__file__).parent.resolve() / f'{connector_name}.sh'
23.333333
67
0.778571
787b7671108741e35263fceb5220a663bb35326f
17,366
py
Python
google/cloud/dialogflow_v2beta1/services/contexts/transports/grpc_asyncio.py
galz10/python-dialogflow
652e2e8d860f369b62e7866d6cf220204740ade8
[ "Apache-2.0" ]
80
2020-05-19T20:54:47.000Z
2022-03-27T01:35:30.000Z
google/cloud/dialogflow_v2beta1/services/contexts/transports/grpc_asyncio.py
galz10/python-dialogflow
652e2e8d860f369b62e7866d6cf220204740ade8
[ "Apache-2.0" ]
135
2020-12-10T00:33:13.000Z
2022-03-27T16:14:25.000Z
google/cloud/dialogflow_v2beta1/services/contexts/transports/grpc_asyncio.py
galz10/python-dialogflow
652e2e8d860f369b62e7866d6cf220204740ade8
[ "Apache-2.0" ]
37
2020-12-12T15:09:15.000Z
2022-03-08T02:25:28.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
43.415
87
0.634688
6817798f6e26cfe9db733283e1904b624e1d89db
1,000
py
Python
PytorchRouting/DecisionLayers/ReinforcementLearning/SARSA.py
oleksost/RoutingNetworks
7e3e9219b7389d5af2a832a4882bc9fda0e7fd21
[ "Apache-2.0" ]
63
2018-07-19T20:12:55.000Z
2022-03-31T14:59:37.000Z
PytorchRouting/DecisionLayers/ReinforcementLearning/SARSA.py
oleksost/RoutingNetworks
7e3e9219b7389d5af2a832a4882bc9fda0e7fd21
[ "Apache-2.0" ]
2
2019-08-08T18:28:13.000Z
2019-09-24T16:46:22.000Z
PytorchRouting/DecisionLayers/ReinforcementLearning/SARSA.py
oleksost/RoutingNetworks
7e3e9219b7389d5af2a832a4882bc9fda0e7fd21
[ "Apache-2.0" ]
16
2018-07-25T05:56:51.000Z
2021-01-09T02:47:05.000Z
""" This file defines class REINFORCE. @author: Clemens Rosenbaum :: cgbr@cs.umass.edu @created: 6/7/18 """ import torch import torch.nn.functional as F from .QLearning import QLearning class SARSA(QLearning): """ SARSA on-policy q-function learning. """ # target = torch.where(is_terminal, reward, n...
35.714286
107
0.603