hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 130 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 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 251 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 251 | max_forks_repo_name stringlengths 4 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ff83eb9a77537e2ab8fa2e7059f2473c401773ef | 955 | py | Python | CodeChef/KAVGMAT.py | PROxZIMA/Competitive-Coding | ba6b365ea130b6fcaa15c5537b530ed363bab793 | [
"MIT"
] | 1 | 2021-01-10T13:29:21.000Z | 2021-01-10T13:29:21.000Z | CodeChef/KAVGMAT.py | PROxZIMA/Competitive-Coding | ba6b365ea130b6fcaa15c5537b530ed363bab793 | [
"MIT"
] | null | null | null | CodeChef/KAVGMAT.py | PROxZIMA/Competitive-Coding | ba6b365ea130b6fcaa15c5537b530ed363bab793 | [
"MIT"
] | null | null | null | # https://www.codechef.com/viewsolution/44674409
from itertools import accumulate
for _ in range(int(input())):
n, m, k = map(int, input().split())
a = (0,) * (m + 1)
arr = (a,) + tuple(update([0] + input().split()) for _ in range(n))
ans = 0
for leng in range(1, min(n, m) + 1):
for row ... | 28.939394 | 92 | 0.489005 |
ff84bc8bc1a66d6322c20e43d9ff178f6a164a04 | 3,074 | py | Python | solver.py | koffes/professorspillet | 735b460c4757fe9dbc5f12e25dd3c808a8fe3d1f | [
"MIT"
] | null | null | null | solver.py | koffes/professorspillet | 735b460c4757fe9dbc5f12e25dd3c808a8fe3d1f | [
"MIT"
] | null | null | null | solver.py | koffes/professorspillet | 735b460c4757fe9dbc5f12e25dd3c808a8fe3d1f | [
"MIT"
] | null | null | null | """Professor game solver."""
from deck import Deck
import tiles
from display import Display
from board import Board
import argparse
def main():
"""Run solver based on cmd line args."""
parser = argparse.ArgumentParser(description='Professor game solver')
parser.add_argument('-d', '--destination',
... | 34.155556 | 79 | 0.559857 |
ff8661954cbb2044fab53dc99ce42a19a19a7154 | 720 | py | Python | main.py | henry2ee/danmu | 997c8a89caf24fb8735516208b79bd7353577818 | [
"MIT"
] | null | null | null | main.py | henry2ee/danmu | 997c8a89caf24fb8735516208b79bd7353577818 | [
"MIT"
] | null | null | null | main.py | henry2ee/danmu | 997c8a89caf24fb8735516208b79bd7353577818 | [
"MIT"
] | null | null | null | import time
import asyncio
from examples.test_bili_danmu import test_tcp_v2_danmu_client as bi_danmu
from examples.test_huya_danmu import test_ws_danmu_client as hy_danmu
from examples.test_douyu_danmu import test_ws_danmu_client as dy_danmu
# loop.run_until_complete(test_tcp_v2_danmu_client())
print(' 1.B 2. 3. ... | 24.827586 | 73 | 0.791667 |
ff8706b5a00742ca3207eda1bc2ad47956aa1b90 | 40 | py | Python | tributary/lazy/calculations/utils.py | ceball/tributary | 5e30f90d1a5cc176c0f231f525d9dc5a81353925 | [
"Apache-2.0"
] | 357 | 2018-09-13T19:58:46.000Z | 2022-03-31T17:22:20.000Z | tributary/lazy/calculations/utils.py | ceball/tributary | 5e30f90d1a5cc176c0f231f525d9dc5a81353925 | [
"Apache-2.0"
] | 109 | 2018-09-13T18:37:00.000Z | 2022-03-27T00:59:49.000Z | tributary/lazy/calculations/utils.py | ceball/tributary | 5e30f90d1a5cc176c0f231f525d9dc5a81353925 | [
"Apache-2.0"
] | 36 | 2018-09-17T21:01:05.000Z | 2022-03-26T02:41:37.000Z | _CALCULATIONS_GRAPHVIZSHAPE = "ellipse"
| 20 | 39 | 0.85 |
ff873ce57d71d33d7d0aa04efbb17bf2b6287acb | 394 | py | Python | Fundamentals/Exer.035.py | thiagokanagushiku/Python-Exercises | e536ff3c64911d3f25d4b1441c4ef070faab1764 | [
"MIT"
] | null | null | null | Fundamentals/Exer.035.py | thiagokanagushiku/Python-Exercises | e536ff3c64911d3f25d4b1441c4ef070faab1764 | [
"MIT"
] | null | null | null | Fundamentals/Exer.035.py | thiagokanagushiku/Python-Exercises | e536ff3c64911d3f25d4b1441c4ef070faab1764 | [
"MIT"
] | null | null | null | print('\033[31m-=\033[m'*20)
print('Analisador de Tringulos')
print('\033[31m-=\033[m'*20)
PS = float(input('Primeiro segmento:'))
SS = float(input('Segundo segmento:'))
TS = float(input('Terceiro segmento'))
if PS < (SS + TS) and SS < (PS + TS) and TS < (PS + SS):
print('Os segmentos acima PODEM FORMAR um tringulo... | 39.4 | 62 | 0.667513 |
ff89c28a62c2b3ce0f84616a879b1b818bbc1672 | 653 | py | Python | dynamic_rest/renderers.py | reinert/dynamic-rest | aaf3973f69b53ed317b9c8468942523715814fa8 | [
"MIT"
] | 690 | 2016-02-05T22:46:03.000Z | 2022-03-28T18:59:49.000Z | dynamic_rest/renderers.py | reinert/dynamic-rest | aaf3973f69b53ed317b9c8468942523715814fa8 | [
"MIT"
] | 190 | 2015-03-06T16:57:21.000Z | 2022-02-02T21:56:07.000Z | dynamic_rest/renderers.py | reinert/dynamic-rest | aaf3973f69b53ed317b9c8468942523715814fa8 | [
"MIT"
] | 117 | 2016-05-05T13:51:07.000Z | 2022-02-28T18:25:56.000Z | """This module contains custom renderer classes."""
from rest_framework.renderers import BrowsableAPIRenderer
| 31.095238 | 74 | 0.690658 |
ff89e4fe7cb73dbb2c2951c31c1b4e05b345c9ee | 521 | py | Python | sqlstrainer/__init__.py | MoebiusSolutions/sqlstrainer | 1be8442deb00971bea17cc676fdfe270552966cf | [
"MIT"
] | null | null | null | sqlstrainer/__init__.py | MoebiusSolutions/sqlstrainer | 1be8442deb00971bea17cc676fdfe270552966cf | [
"MIT"
] | null | null | null | sqlstrainer/__init__.py | MoebiusSolutions/sqlstrainer | 1be8442deb00971bea17cc676fdfe270552966cf | [
"MIT"
] | null | null | null | """SQLStrainer filters SQLAlchemy Query objects based any column or hybrid property of a related model.
.. code::
from sqlstrainer import strainer
strainer = sqlstrainer(mydb)
query.filter(strainer.strain(request.args))
mapper
------
.. automodule:: sqlstrainer.mapper
strainer
--------
.. automodule... | 15.323529 | 103 | 0.702495 |
ff8ad2742f44d16038167e00c4e49b630ac94e9f | 745 | py | Python | pylayers/gis/test/test_taoffice.py | usmanwardag/pylayers | 2e8a9bdc993b2aacc92610a9c7edf875c6c7b24a | [
"MIT"
] | 143 | 2015-01-09T07:50:20.000Z | 2022-03-02T11:26:53.000Z | pylayers/gis/test/test_taoffice.py | usmanwardag/pylayers | 2e8a9bdc993b2aacc92610a9c7edf875c6c7b24a | [
"MIT"
] | 148 | 2015-01-13T04:19:34.000Z | 2022-03-11T23:48:25.000Z | pylayers/gis/test/test_taoffice.py | usmanwardag/pylayers | 2e8a9bdc993b2aacc92610a9c7edf875c6c7b24a | [
"MIT"
] | 95 | 2015-05-01T13:22:42.000Z | 2022-03-15T11:22:28.000Z | from pylayers.gis.layout import *
from pylayers.simul.link import *
L = Layout('TA-Office.ini',force=True)
##L.build()
#plt.ion()
##L.showG('st',aw=True,labels=True,nodelist=L.ldiffout)
#f,lax= plt.subplots(2,2)
#L.showG('s',aw=True,labels=True,fig=f,ax=lax[0][0])
#lax[0][0].set_title('Gs',fontsize=18)
#L.showG('st',a... | 32.391304 | 75 | 0.651007 |
ff8bd9285a91afad46966a1aacbf71a2f7a0647a | 4,839 | py | Python | pdffitx/tests/modeling/test_running.py | st3107/pdffitx | c746f6dfaf5656e9bb62508a9847c00567b34bbe | [
"BSD-3-Clause"
] | null | null | null | pdffitx/tests/modeling/test_running.py | st3107/pdffitx | c746f6dfaf5656e9bb62508a9847c00567b34bbe | [
"BSD-3-Clause"
] | null | null | null | pdffitx/tests/modeling/test_running.py | st3107/pdffitx | c746f6dfaf5656e9bb62508a9847c00567b34bbe | [
"BSD-3-Clause"
] | null | null | null | import pytest
from matplotlib import pyplot as plt
from pdffitx.modeling import F, multi_phase, optimize, fit_calib, MyParser
def test_fit_calib(db):
parser = MyParser()
parser.parseFile(db['Ni_gr_file'])
fit_calib(db['Ni_stru'], parser, fit_range=(2., 8., .1))
plt.clf()
| 32.695946 | 107 | 0.468899 |
ff8ce990defadd7ba91067f5390a302defb75739 | 4,608 | py | Python | pyFolderLock/pyFolderLockCli.py | Writ3r/pyFolderLock | 0cb4eac3c91fc0095b5bda9794eaff62c38000b7 | [
"MIT"
] | 1 | 2021-02-08T20:03:39.000Z | 2021-02-08T20:03:39.000Z | pyFolderLock/pyFolderLockCli.py | Writ3r/pyFolderLock | 0cb4eac3c91fc0095b5bda9794eaff62c38000b7 | [
"MIT"
] | null | null | null | pyFolderLock/pyFolderLockCli.py | Writ3r/pyFolderLock | 0cb4eac3c91fc0095b5bda9794eaff62c38000b7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import logging
import argparse
import multiprocessing
from pathlib import Path
from pyFolderLock import MultiFolderEncryptor, InvalidPasswordError, InvalidArgumentError
# ================================================================
#
# Program specific part... | 33.151079 | 100 | 0.532986 |
ff8cf0a690ddb21019a081d81240d10700344897 | 1,032 | py | Python | geo.py | biliarski/Geo | 3eb8f3073f734ed13d8fa508a2fa29828e13cd11 | [
"MIT"
] | null | null | null | geo.py | biliarski/Geo | 3eb8f3073f734ed13d8fa508a2fa29828e13cd11 | [
"MIT"
] | null | null | null | geo.py | biliarski/Geo | 3eb8f3073f734ed13d8fa508a2fa29828e13cd11 | [
"MIT"
] | null | null | null | from segpy.reader import create_reader
from segpy.writer import write_segy
import numpy as np
"""
Docs:
Segpy https://segpy.readthedocs.io/en/latest/
NumPy https://docs.scipy.org/doc/numpy-1.13.0/reference/index.html
"""
if __name__ == '__main__':
with open('data/CUTE.sgy', 'rb') as segy_in_file:... | 31.272727 | 95 | 0.655039 |
ff8da5b6c055840eb2495a1ff2b0ff2da60c7317 | 5,405 | py | Python | cogs/rng.py | AbstractUmbra/Okayu | 0a96ee4acbb82dd19302f90e49b6b7f550b1f8fc | [
"MIT"
] | 6 | 2020-05-05T14:46:45.000Z | 2020-08-07T21:48:48.000Z | cogs/rng.py | AbstractUmbra/Okayu | 0a96ee4acbb82dd19302f90e49b6b7f550b1f8fc | [
"MIT"
] | 1 | 2020-10-01T18:50:15.000Z | 2020-10-01T18:51:12.000Z | cogs/rng.py | AbstractUmbra/Robo-Hz | 0a96ee4acbb82dd19302f90e49b6b7f550b1f8fc | [
"MIT"
] | 4 | 2020-10-01T18:30:30.000Z | 2020-10-02T00:35:02.000Z | """
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/.
"""
from __future__ import annotations
import random
import re
from collections import Counter
from typing imp... | 33.364198 | 111 | 0.595745 |
ff8ef7348f50df3b9ddae02489685e3cf3e047f9 | 28,928 | py | Python | lib/silfont/scripts/psfrenameglyphs.py | silnrsi/pysilfont | 3c7855d21426590a3c0e235c965e8f90b76eccbb | [
"MIT"
] | 41 | 2015-05-21T21:12:26.000Z | 2022-02-17T17:23:14.000Z | lib/silfont/scripts/psfrenameglyphs.py | silnrsi/pysilfont | 3c7855d21426590a3c0e235c965e8f90b76eccbb | [
"MIT"
] | 63 | 2015-05-15T10:25:55.000Z | 2021-02-23T04:51:17.000Z | lib/silfont/scripts/psfrenameglyphs.py | silnrsi/pysilfont | 3c7855d21426590a3c0e235c965e8f90b76eccbb | [
"MIT"
] | 12 | 2015-06-12T11:52:08.000Z | 2020-09-23T10:40:59.000Z | #!/usr/bin/env python
__doc__ = '''Assign new working names to glyphs based on csv input file
- csv format oldname,newname'''
__url__ = 'http://github.com/silnrsi/pysilfont'
__copyright__ = 'Copyright (c) 2017 SIL International (http://www.sil.org)'
__license__ = 'Released under the MIT License (http://opensource.org/l... | 49.197279 | 154 | 0.565715 |
ff8fc1feea52ac13e885aa0cfdc3793215a7e44b | 2,963 | py | Python | firefox.py | G4ryDave/GoogleMapsSightsManager | 651899bf29960d68e5023b0b215cb068e16f21c9 | [
"MIT"
] | 2 | 2018-12-15T17:56:16.000Z | 2021-08-05T12:17:16.000Z | firefox.py | G4ryDave/GoogleMapsSightsManager | 651899bf29960d68e5023b0b215cb068e16f21c9 | [
"MIT"
] | null | null | null | firefox.py | G4ryDave/GoogleMapsSightsManager | 651899bf29960d68e5023b0b215cb068e16f21c9 | [
"MIT"
] | null | null | null | import getpass
import os
import sys
import time
from selenium import webdriver
from selenium.common.exceptions import NoSuchWindowException
from selenium.webdriver.firefox.options import Options as FirefoxOptions
import savePlace
if __name__ == "__main__":
try:
main()
except KeyboardInterrupt:
... | 36.134146 | 123 | 0.687479 |
ff915cb80b4b2c60c7c3e4a9792e6477f9f90875 | 272 | py | Python | apiclients/client.py | Crossing-Minds/reco-api-benchmarks | f740072a23e88270632a1acda468854e457d5086 | [
"MIT"
] | 3 | 2021-07-21T04:56:10.000Z | 2022-01-24T21:14:45.000Z | apiclients/client.py | Crossing-Minds/reco-api-benchmarks | f740072a23e88270632a1acda468854e457d5086 | [
"MIT"
] | null | null | null | apiclients/client.py | Crossing-Minds/reco-api-benchmarks | f740072a23e88270632a1acda468854e457d5086 | [
"MIT"
] | 1 | 2021-07-21T04:56:11.000Z | 2021-07-21T04:56:11.000Z | from xminds.api.client import CrossingMindsApiClient
from .config import ENVS_HOST
| 22.666667 | 52 | 0.731618 |
ff92af82c1277e2754f71f08f643c5cda12eaa1e | 184 | py | Python | packages/auto-nlp-deployment/src/trainings/runtimes/docker/__init__.py | fhswf/tagflip-autonlp | f94abb35ed06198567e5d9cbb7abb7e112149d6c | [
"MIT"
] | 4 | 2021-10-05T17:34:02.000Z | 2022-03-23T07:33:19.000Z | packages/auto-nlp-deployment/src/trainings/runtimes/docker/__init__.py | fhswf/tagflip-autonlp | f94abb35ed06198567e5d9cbb7abb7e112149d6c | [
"MIT"
] | 11 | 2022-03-01T14:37:52.000Z | 2022-03-31T05:11:23.000Z | packages/auto-nlp-deployment/src/trainings/runtimes/docker/__init__.py | fhswf/tagflip-autonlp | f94abb35ed06198567e5d9cbb7abb7e112149d6c | [
"MIT"
] | 1 | 2022-01-29T13:32:22.000Z | 2022-01-29T13:32:22.000Z | from .docker_training_runtime import DockerTrainingRuntime
from .docker_training_runtime_config import DockerTrainingRuntimeConfig
from .docker_training_task import DockerTrainingTask
| 46 | 71 | 0.918478 |
ff92ec13ffa6d364097db1db2973673b5c2e828a | 4,763 | py | Python | rebiber/arxiv.py | EntilZha/rebiber | 88c9fbef12cae73e2ed6f67ee6f32f39040f8299 | [
"MIT"
] | null | null | null | rebiber/arxiv.py | EntilZha/rebiber | 88c9fbef12cae73e2ed6f67ee6f32f39040f8299 | [
"MIT"
] | null | null | null | rebiber/arxiv.py | EntilZha/rebiber | 88c9fbef12cae73e2ed6f67ee6f32f39040f8299 | [
"MIT"
] | null | null | null | import json
import os
import pickle
from typing import Dict
import bibtexparser
import typer
from functional import pseq
from rich.console import Console
from rebiber.bib2json import normalize_title
console = Console()
app = typer.Typer()
if __name__ == "__main__":
app()
| 35.022059 | 118 | 0.617258 |
ff9338deaed1eba967366384f655b50234bb3c45 | 1,315 | py | Python | tests/base/sdk/python/tdldk/v1_0/garoot.py | edwinfeener/monolithe | 0f024b2ec7d4c5a2229612280e5e559bf2667ba5 | [
"BSD-3-Clause"
] | 18 | 2015-06-24T18:35:20.000Z | 2022-01-19T19:04:00.000Z | tests/base/sdk/python/tdldk/v1_0/garoot.py | edwinfeener/monolithe | 0f024b2ec7d4c5a2229612280e5e559bf2667ba5 | [
"BSD-3-Clause"
] | 63 | 2015-11-03T18:57:12.000Z | 2020-09-30T02:54:49.000Z | tests/base/sdk/python/tdldk/v1_0/garoot.py | edwinfeener/monolithe | 0f024b2ec7d4c5a2229612280e5e559bf2667ba5 | [
"BSD-3-Clause"
] | 38 | 2015-10-23T19:04:44.000Z | 2021-06-04T08:13:33.000Z | # -*- coding: utf-8 -*-
#
# __code_header example
# put your license header here
# it will be added to all the generated files
#
from .fetchers import GAListsFetcher
from .fetchers import GAUsersFetcher
from bambou import NURESTRootObject
| 20.546875 | 96 | 0.58327 |
ff95a3fe8666b382ddbf8286ef3f8e3b236470ab | 389 | py | Python | qxtoolkit/__init__.py | QixuanAI/qxtoolkit | 044e4316b8b890ce83d56ea52d735af1655f5dda | [
"BSD-3-Clause"
] | null | null | null | qxtoolkit/__init__.py | QixuanAI/qxtoolkit | 044e4316b8b890ce83d56ea52d735af1655f5dda | [
"BSD-3-Clause"
] | null | null | null | qxtoolkit/__init__.py | QixuanAI/qxtoolkit | 044e4316b8b890ce83d56ea52d735af1655f5dda | [
"BSD-3-Clause"
] | null | null | null | #! /usr/bin/env python
'''
Description :
FilePath : /qxtoolkit/qxtoolkit/__init__.py
Author : qxsoftware@163.com
Date : 2020-12-14 16:04:47
LastEditTime: 2021-07-14 10:27:10
Refer to : https://github.com/QixuanAI/qxtoolkit
'''
from .imgetter import *
from .gen_samples import *
from .graffiti import ... | 21.611111 | 51 | 0.694087 |
ff9604cd6caf292e5456cb41ef1485210012e577 | 335 | py | Python | projects/python exceptions/exceptions.py | singularity-bit/univ | 88fab22ecab47293ca27d149dcee4f2c0f1c347b | [
"MIT"
] | null | null | null | projects/python exceptions/exceptions.py | singularity-bit/univ | 88fab22ecab47293ca27d149dcee4f2c0f1c347b | [
"MIT"
] | null | null | null | projects/python exceptions/exceptions.py | singularity-bit/univ | 88fab22ecab47293ca27d149dcee4f2c0f1c347b | [
"MIT"
] | null | null | null | while True:
user_input=input("introduceti un sir de caractere: ")
try:
if num_there(user_input):
raise exception
break
except exception:
print("introduceti un doar caractere")
print(user_input) | 25.769231 | 57 | 0.653731 |
ff960735fdb34528546506bb607e3faee741a1e4 | 927 | py | Python | tests/schema/parser/test_parse_string.py | george-fry/statham-schema | 19aa64de8750001cbc24f2775e0684f2298f840f | [
"MIT"
] | 23 | 2020-06-25T15:55:29.000Z | 2022-03-31T16:51:40.000Z | tests/schema/parser/test_parse_string.py | george-fry/statham-schema | 19aa64de8750001cbc24f2775e0684f2298f840f | [
"MIT"
] | 25 | 2020-02-29T15:32:35.000Z | 2022-03-03T17:22:45.000Z | tests/schema/parser/test_parse_string.py | george-fry/statham-schema | 19aa64de8750001cbc24f2775e0684f2298f840f | [
"MIT"
] | 5 | 2020-10-18T19:14:32.000Z | 2022-03-09T10:40:41.000Z | from typing import Any, Dict
import pytest
from statham.schema.elements import Element, String
from statham.schema.parser import parse_element
| 25.054054 | 74 | 0.499461 |
ff968ae04edbff3d50de711811fb00ace4d24f74 | 789 | py | Python | linkedList/445 add two numbers||.py | windowssocket/py_leetcode | 241dbf8d7dab7db5215c2526321fcdb378b45492 | [
"Apache-2.0"
] | 3 | 2018-05-29T02:29:40.000Z | 2020-02-05T03:28:16.000Z | linkedList/445 add two numbers||.py | xidongc/py_leetcode | 241dbf8d7dab7db5215c2526321fcdb378b45492 | [
"Apache-2.0"
] | 1 | 2019-03-08T13:22:32.000Z | 2019-03-08T13:22:32.000Z | linkedList/445 add two numbers||.py | xidongc/py_leetcode | 241dbf8d7dab7db5215c2526321fcdb378b45492 | [
"Apache-2.0"
] | 3 | 2018-05-29T11:50:24.000Z | 2018-11-27T12:31:01.000Z | # Definition for singly-linked list.
#
| 22.542857 | 66 | 0.439797 |
ff96bcbff2c0f2f668c7a304aea3d86e2f5859c9 | 5,461 | py | Python | xrdinfo/xrd_all_methods.py | JyrgenSuvalov/X-Road-scripts | 42ec7279fc1404f7e37fbc0676f55f4b83052157 | [
"MIT"
] | 11 | 2017-11-10T14:24:30.000Z | 2021-12-17T08:23:46.000Z | xrdinfo/xrd_all_methods.py | JyrgenSuvalov/X-Road-scripts | 42ec7279fc1404f7e37fbc0676f55f4b83052157 | [
"MIT"
] | 5 | 2017-11-10T11:50:46.000Z | 2021-04-14T10:28:21.000Z | xrdinfo/xrd_all_methods.py | JyrgenSuvalov/X-Road-scripts | 42ec7279fc1404f7e37fbc0676f55f4b83052157 | [
"MIT"
] | 8 | 2017-10-04T13:37:39.000Z | 2020-04-28T13:35:31.000Z | #!/usr/bin/python3
from threading import Thread, Event
import argparse
import xrdinfo
import queue
import sys
# By default return listMethods
DEFAULT_METHOD = 'listMethods'
# Default timeout for HTTP requests
DEFAULT_TIMEOUT = 5.0
# Do not use threading by default
DEFAULT_THREAD_COUNT = 1
def print_error(content)... | 33.919255 | 100 | 0.600256 |
ff98472de29779514bd38ec9ab5d58884f067f9e | 3,013 | py | Python | web/handlers_public_api.py | PCNI/homeless-helper | 2216199da2e4b41be6eb5c287d9c1a054fec3945 | [
"MIT"
] | 3 | 2015-05-04T14:52:10.000Z | 2020-02-22T07:03:20.000Z | web/handlers_public_api.py | PCNI/homeless-helper | 2216199da2e4b41be6eb5c287d9c1a054fec3945 | [
"MIT"
] | 1 | 2015-01-12T18:25:03.000Z | 2015-01-12T18:53:33.000Z | web/handlers_public_api.py | PCNI/homeless-helper | 2216199da2e4b41be6eb5c287d9c1a054fec3945 | [
"MIT"
] | null | null | null | import os
import sys
import time
import random
import string
import json
import hashlib
import socket
import urllib
import urllib2
from pprint import pprint
import tornado.web
import handlers_base
BaseHandler = handlers_base.BaseHandler
import twilio.twiml
from HomelessHelper.config import Config
from HomelessHelpe... | 33.853933 | 170 | 0.699303 |
ff9927cca6dd5850053f49e3edbc6473af7f6bc7 | 587 | py | Python | falcon/web.py | irr/python-labs | 43bb3a528c151653b2be832c7ff13240a10e18a4 | [
"Apache-2.0"
] | 4 | 2015-11-25T09:06:44.000Z | 2019-12-11T21:35:21.000Z | falcon/web.py | irr/python-labs | 43bb3a528c151653b2be832c7ff13240a10e18a4 | [
"Apache-2.0"
] | null | null | null | falcon/web.py | irr/python-labs | 43bb3a528c151653b2be832c7ff13240a10e18a4 | [
"Apache-2.0"
] | 2 | 2015-11-25T09:19:38.000Z | 2016-02-26T03:54:06.000Z | import falcon
# falcon.API instances are callable WSGI apps
app = falcon.API()
# Resources are represented by long-lived class instances
web = WebResource()
# things will handle all requests to the '/' URL path
app.add_route('/', web)
# gunicorn -w 4 -k eventlet --threads 100 --worker-connections 100 -b localhost:1... | 32.611111 | 159 | 0.688245 |
ff9a5956d10a9a6fb72dea22176041ce89b5315d | 8,803 | py | Python | services/Autocorrect/inc/wikipedia_correction.py | muhammad-abbady/JenTab | df7b1450cb14e64edade30ea7de49d05a7d7dbf2 | [
"Apache-2.0"
] | 9 | 2021-03-23T11:32:40.000Z | 2022-03-31T13:58:41.000Z | services/Autocorrect/inc/wikipedia_correction.py | muhammad-abbady/JenTab | df7b1450cb14e64edade30ea7de49d05a7d7dbf2 | [
"Apache-2.0"
] | null | null | null | services/Autocorrect/inc/wikipedia_correction.py | muhammad-abbady/JenTab | df7b1450cb14e64edade30ea7de49d05a7d7dbf2 | [
"Apache-2.0"
] | 1 | 2021-04-29T21:27:08.000Z | 2021-04-29T21:27:08.000Z | from collections import Counter
import re
from os.path import join
from config import ASSET_PATH
if __name__ == '__main__':
print("==============================Test 1=========================================")
wikiCorrect = WikipediaCorrection()
tmp_word = "at"
tmp_edit_one_set = wikiCorrect.edit_on... | 47.074866 | 852 | 0.564239 |
ff9b138f03c8da437646fca20eb6180ca1f35e5b | 347 | py | Python | finorch/sessions/cit/wrapper.py | ADACS-Australia/SS2021B-DBrown | 67b93b316e6f9ab09e3bd5105edbbc71108e0723 | [
"MIT"
] | null | null | null | finorch/sessions/cit/wrapper.py | ADACS-Australia/SS2021B-DBrown | 67b93b316e6f9ab09e3bd5105edbbc71108e0723 | [
"MIT"
] | null | null | null | finorch/sessions/cit/wrapper.py | ADACS-Australia/SS2021B-DBrown | 67b93b316e6f9ab09e3bd5105edbbc71108e0723 | [
"MIT"
] | null | null | null | from pathlib import Path
import finesse
from finorch.sessions.abstract_wrapper import AbstractWrapper
| 21.6875 | 61 | 0.654179 |
ff9b480b8efa2a0703a1bdaca93521ce030786a1 | 1,048 | py | Python | app/api/tokens.py | simal1717/Backend_Airbnb_237 | d155882cb1e779e648629dd41a1c2e7c83436a90 | [
"MIT"
] | null | null | null | app/api/tokens.py | simal1717/Backend_Airbnb_237 | d155882cb1e779e648629dd41a1c2e7c83436a90 | [
"MIT"
] | null | null | null | app/api/tokens.py | simal1717/Backend_Airbnb_237 | d155882cb1e779e648629dd41a1c2e7c83436a90 | [
"MIT"
] | null | null | null | from flask import jsonify, g, session
from app import db
from app.api import bp
from app.api.auth import basic_auth, token_auth
#? Not GET ?
| 29.111111 | 77 | 0.660305 |
ff9c5b74ed756cbecfa296d7af1c79400ca156ad | 4,869 | py | Python | source-code/rupol/dumb25519.py | b-g-goodell/lab-mirror | 5b994284677f556e30d189377a4c7a40705afc73 | [
"Unlicense"
] | 6 | 2018-08-30T19:17:00.000Z | 2021-06-12T06:26:36.000Z | source-code/rupol/dumb25519.py | b-g-goodell/lab-mirror | 5b994284677f556e30d189377a4c7a40705afc73 | [
"Unlicense"
] | null | null | null | source-code/rupol/dumb25519.py | b-g-goodell/lab-mirror | 5b994284677f556e30d189377a4c7a40705afc73 | [
"Unlicense"
] | 3 | 2018-08-30T19:49:48.000Z | 2020-04-23T18:01:35.000Z | # Dumb25519: a stupid implementation of ed25519
#
# Use this code only for prototyping
# -- putting this code into production would be dumb
# -- assuming this code is secure would also be dumb
import random
import hashlib
# curve parameters
b = 256
q = 2**255 - 19
l = 2**252 + 27742317777372353535851937790883648493
... | 23.635922 | 61 | 0.556788 |
ff9e05c2ec37c37c723574b5d5401eb33290ab98 | 1,608 | py | Python | bsbolt/Utils/MatrixIterator.py | HarryZhang1224/BSBolt | a5df4db8497d7c0274f5f12041c87472c06ff78e | [
"MIT"
] | 10 | 2020-04-05T00:44:44.000Z | 2022-02-11T15:11:00.000Z | bsbolt/Utils/MatrixIterator.py | HarryZhang1224/BSBolt | a5df4db8497d7c0274f5f12041c87472c06ff78e | [
"MIT"
] | 7 | 2019-01-25T22:14:40.000Z | 2022-01-17T18:58:05.000Z | bsbolt/Utils/MatrixIterator.py | HarryZhang1224/BSBolt | a5df4db8497d7c0274f5f12041c87472c06ff78e | [
"MIT"
] | 5 | 2019-07-19T22:57:36.000Z | 2021-11-12T14:57:37.000Z | #! /usr/env python3
import gzip
import io
from typing import List, Tuple, Union
import numpy as np
| 31.529412 | 108 | 0.548507 |
ffa0775e71e040481abc339f4098a4d9e15eabd9 | 10,989 | py | Python | devro/env/components.py | abnvar/devro | 25a9e996e73494728595d3135451c9fceb5f0324 | [
"MIT"
] | 8 | 2020-04-19T17:03:44.000Z | 2021-04-30T20:22:14.000Z | devro/env/components.py | abnvar/SLAM-devTools | 25a9e996e73494728595d3135451c9fceb5f0324 | [
"MIT"
] | 4 | 2020-04-22T17:25:18.000Z | 2020-04-29T15:43:36.000Z | devro/env/components.py | abnvar/SLAM-devTools | 25a9e996e73494728595d3135451c9fceb5f0324 | [
"MIT"
] | null | null | null | import cv2
import time
import simpy
import random
import threading
import numpy as np
from math import sin, cos
from devro.visualization import display
| 33.099398 | 183 | 0.57867 |
ffa0e0f715feda807329cdccf259e6d38c71faf0 | 537 | py | Python | examples/random_walk_test.py | AkillesAILimited/CompilerGym | 34c0933ba26b385ebd2cd67f5d8edbb046c6bf02 | [
"MIT"
] | null | null | null | examples/random_walk_test.py | AkillesAILimited/CompilerGym | 34c0933ba26b385ebd2cd67f5d8edbb046c6bf02 | [
"MIT"
] | null | null | null | examples/random_walk_test.py | AkillesAILimited/CompilerGym | 34c0933ba26b385ebd2cd67f5d8edbb046c6bf02 | [
"MIT"
] | 1 | 2021-10-01T05:52:34.000Z | 2021-10-01T05:52:34.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""Unit tests for //compiler_gym/bin:random_walk."""
import gym
from absl.flags import FLAGS
from random_walk import run_random_walk
| 31.588235 | 65 | 0.731844 |
ffa1c51a918aeb4c248717083899dd625abcf68f | 145 | py | Python | print_linux.py | bicubico/neuralprinter | 62abb0149d99e85c011e49d5b3b18cfd685b5057 | [
"MIT"
] | 1 | 2017-12-28T16:49:07.000Z | 2017-12-28T16:49:07.000Z | print_linux.py | bicubico/neuralprinter | 62abb0149d99e85c011e49d5b3b18cfd685b5057 | [
"MIT"
] | null | null | null | print_linux.py | bicubico/neuralprinter | 62abb0149d99e85c011e49d5b3b18cfd685b5057 | [
"MIT"
] | null | null | null | #/usr/bin/python3
import os
| 16.111111 | 47 | 0.662069 |
ffa2c887adb04c58cc89f60669feffde0c12086e | 567 | py | Python | diff_ops.py | cetmann/robustness-interpretability | 6da6a28c101a0763f3ca59c51f2913eb0525f5c3 | [
"MIT"
] | 15 | 2019-06-23T10:27:42.000Z | 2021-12-02T13:10:46.000Z | diff_ops.py | cetmann/robustness-interpretability | 6da6a28c101a0763f3ca59c51f2913eb0525f5c3 | [
"MIT"
] | null | null | null | diff_ops.py | cetmann/robustness-interpretability | 6da6a28c101a0763f3ca59c51f2913eb0525f5c3 | [
"MIT"
] | 1 | 2019-08-11T23:04:19.000Z | 2019-08-11T23:04:19.000Z | """
This file defines the L-Op and R-Op, based on https://j-towns.github.io/2017/06/12/A-new-trick.html
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
| 23.625 | 99 | 0.677249 |
ffa6f74f43f47f17e2e67712e39ba72803e3ef7d | 4,177 | py | Python | seqsearch/search/hmmer.py | xapple/seqsearch | cf3a7691285d245829bc9c6d18354e01e631fc12 | [
"MIT"
] | null | null | null | seqsearch/search/hmmer.py | xapple/seqsearch | cf3a7691285d245829bc9c6d18354e01e631fc12 | [
"MIT"
] | null | null | null | seqsearch/search/hmmer.py | xapple/seqsearch | cf3a7691285d245829bc9c6d18354e01e631fc12 | [
"MIT"
] | 1 | 2015-01-21T14:38:46.000Z | 2015-01-21T14:38:46.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Written by Lucas Sinclair.
MIT Licensed.
Contact at www.sinclair.bio
"""
# Built-in modules #
import warnings, multiprocessing
# Internal modules #
from seqsearch.databases.pfam import pfam
from seqsearch.databases.tigrfam import tigrfam
# First party modules #
... | 37.294643 | 99 | 0.547043 |
ffa705ad0694eff49275d52588a266e77c3b8d06 | 2,290 | py | Python | tests/test_solve.py | Sen-R/dynamic-programming | cfb6cada511dcef4b442841cf95159d8deb55616 | [
"MIT"
] | null | null | null | tests/test_solve.py | Sen-R/dynamic-programming | cfb6cada511dcef4b442841cf95159d8deb55616 | [
"MIT"
] | null | null | null | tests/test_solve.py | Sen-R/dynamic-programming | cfb6cada511dcef4b442841cf95159d8deb55616 | [
"MIT"
] | null | null | null | from typing import Dict
import pytest
from numpy.testing import assert_almost_equal
import numpy as np
from dp._types import Policy
from dp import FiniteMDP
from dp.solve import (
backup_optimal_values,
policy_evaluation,
policy_evaluation_affine_operator,
)
from .conftest import SimpleMDP, TState, TAction
... | 30.131579 | 75 | 0.634498 |
ffa7ea79eec8298d7bcdbef4fe9e8d9ea1a8557e | 109 | py | Python | messenger/health_check/__init__.py | EducationalTestingService/halef-messenger | 59eccdbf021a5a1e8290b4f61fdc2b1d74947993 | [
"Apache-2.0"
] | null | null | null | messenger/health_check/__init__.py | EducationalTestingService/halef-messenger | 59eccdbf021a5a1e8290b4f61fdc2b1d74947993 | [
"Apache-2.0"
] | 1 | 2017-06-05T22:57:47.000Z | 2017-06-05T22:58:45.000Z | messenger/health_check/__init__.py | EducationalTestingService/halef-messenger | 59eccdbf021a5a1e8290b4f61fdc2b1d74947993 | [
"Apache-2.0"
] | null | null | null | from flask import Blueprint
health_check = Blueprint('health_check', __name__)
from . import health # noqa | 21.8 | 50 | 0.779817 |
ffa9885e7671ec6782e68cccef479cdd2f9ce49e | 8,192 | py | Python | python/paddle/fluid/tests/unittests/test_logspace.py | RangeKing/Paddle | 2d87300809ae75d76f5b0b457d8112cb88dc3e27 | [
"Apache-2.0"
] | 8 | 2016-08-15T07:02:27.000Z | 2016-08-24T09:34:00.000Z | python/paddle/fluid/tests/unittests/test_logspace.py | RangeKing/Paddle | 2d87300809ae75d76f5b0b457d8112cb88dc3e27 | [
"Apache-2.0"
] | 1 | 2022-01-28T07:23:22.000Z | 2022-01-28T07:23:22.000Z | python/paddle/fluid/tests/unittests/test_logspace.py | RangeKing/Paddle | 2d87300809ae75d76f5b0b457d8112cb88dc3e27 | [
"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 app... | 35.310345 | 80 | 0.586426 |
ffaa3706e807f3b2ff19ebdc4ddab83d08ac4319 | 719 | py | Python | kwis/urls.py | Navisence/kwispel | cc93f345d3b53040ef1ec4b9e022040dca376173 | [
"MIT"
] | 1 | 2016-06-14T18:42:55.000Z | 2016-06-14T18:42:55.000Z | kwis/urls.py | Navisence/kwispel | cc93f345d3b53040ef1ec4b9e022040dca376173 | [
"MIT"
] | 1 | 2020-02-12T00:33:01.000Z | 2020-02-12T00:33:01.000Z | kwis/urls.py | Navisence/kwispel | cc93f345d3b53040ef1ec4b9e022040dca376173 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^team_overview.png$', views.team_overview),
url(r'^rnd_overview.png$', views.rnd_overview),
url(r'^ranking/$', views.ranking, name='ranking'),
url(r'^ranking/overview.png$', views.rank... | 42.294118 | 84 | 0.628651 |
ffac01add95f30509a3513e66d50a6bca1ffa573 | 6,608 | py | Python | networks/SRM_SE_GE/resnet.py | eepgxxy/Paddle_Attention_CNNs | a1e102afd03eab4c2839ed8df58ae2640edd5955 | [
"Apache-2.0"
] | 2 | 2021-06-21T08:14:25.000Z | 2021-09-08T08:24:18.000Z | networks/SRM_SE_GE/resnet.py | eepgxxy/Paddle_Attention_CNNs | a1e102afd03eab4c2839ed8df58ae2640edd5955 | [
"Apache-2.0"
] | null | null | null | networks/SRM_SE_GE/resnet.py | eepgxxy/Paddle_Attention_CNNs | a1e102afd03eab4c2839ed8df58ae2640edd5955 | [
"Apache-2.0"
] | 1 | 2021-09-08T08:25:15.000Z | 2021-09-08T08:25:15.000Z | import paddle
import paddle.nn as nn
import math
def conv3x3(in_planes, out_planes, stride=1):
"3x3 convolution with padding"
return nn.Conv2D(in_planes, out_planes, kernel_size=3, stride=stride,
padding=1, bias=False)
def resnet(depth, **kwargs):
if depth == 18:
model = Res... | 33.543147 | 138 | 0.585805 |
ffac6d1ba809686f7d15e2cebadcb98e9286540c | 497 | py | Python | django_reports/python_jasper.py | empty/django-reports | 14b00db4350d159470befc4a6edc48a28c7d4375 | [
"MIT"
] | null | null | null | django_reports/python_jasper.py | empty/django-reports | 14b00db4350d159470befc4a6edc48a28c7d4375 | [
"MIT"
] | null | null | null | django_reports/python_jasper.py | empty/django-reports | 14b00db4350d159470befc4a6edc48a28c7d4375 | [
"MIT"
] | null | null | null |
import requests
| 26.157895 | 72 | 0.617706 |
ffafa132bf34854b4b313ea5ff73b935c4ed677f | 531 | py | Python | addons/blender-addon-fbx-bundle/platform_obj.py | V-Sekai/game-tools-V-Sekai | 74eb79e9b97bb1954e647ed2f909f4f326189cb5 | [
"MIT"
] | 2 | 2021-12-21T16:38:58.000Z | 2022-01-08T00:56:35.000Z | addons/blender-addon-fbx-bundle/platform_obj.py | V-Sekai/game-tools-V-Sekai | 74eb79e9b97bb1954e647ed2f909f4f326189cb5 | [
"MIT"
] | 1 | 2022-01-29T05:46:50.000Z | 2022-01-29T05:46:50.000Z | addons/blender-addon-fbx-bundle/platform_obj.py | V-Sekai/game-tools-V-Sekai | 74eb79e9b97bb1954e647ed2f909f4f326189cb5 | [
"MIT"
] | 1 | 2021-11-07T19:41:34.000Z | 2021-11-07T19:41:34.000Z | import bpy
import bmesh
import operator
import mathutils
import addon_utils
from . import platform
| 14.351351 | 34 | 0.704331 |
ffb02da15a5c9b5c682022debb4e2f6e16aa0d87 | 1,684 | py | Python | tests/test_converters.py | kotofos/beaker | ea924dc67713012d4759e84ede619fbe979d34bf | [
"BSD-3-Clause"
] | 387 | 2015-01-08T00:59:09.000Z | 2022-03-17T13:12:56.000Z | tests/test_converters.py | kotofos/beaker | ea924dc67713012d4759e84ede619fbe979d34bf | [
"BSD-3-Clause"
] | 138 | 2015-01-02T22:34:35.000Z | 2021-12-07T19:23:30.000Z | tests/test_converters.py | kotofos/beaker | ea924dc67713012d4759e84ede619fbe979d34bf | [
"BSD-3-Clause"
] | 123 | 2015-01-21T18:03:18.000Z | 2022-01-18T13:56:11.000Z | from beaker._compat import u_
import unittest
from beaker.converters import asbool, aslist
if __name__ == '__main__':
unittest.main()
| 30.071429 | 77 | 0.583729 |
ffb28ac34185b8f470f18a82ae88db3fd1ffb636 | 8,774 | py | Python | dashboard_loader/air_pollution_loader/loader.py | data61/Openboard | aaf7ef49e05c0771094efc6be811c6ae88055252 | [
"Apache-2.0"
] | 2 | 2017-08-29T23:05:51.000Z | 2019-04-02T21:11:35.000Z | dashboard_loader/air_pollution_loader/loader.py | data61/Openboard | aaf7ef49e05c0771094efc6be811c6ae88055252 | [
"Apache-2.0"
] | 1 | 2019-04-02T21:11:26.000Z | 2019-04-03T15:12:57.000Z | dashboard_loader/air_pollution_loader/loader.py | data61/Openboard | aaf7ef49e05c0771094efc6be811c6ae88055252 | [
"Apache-2.0"
] | null | null | null | # Copyright 2015,2016 NICTA
#
# 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... | 45.226804 | 206 | 0.617734 |
ffb2e8312b0f715809945721f9f90a0a3d3d55b1 | 4,166 | py | Python | 4-bandit/code/multithreadedPolicyLinUCB.py | lukaselmer/ethz-data-mining | cb4215c202efc37f3626a25c8301a4ac36813493 | [
"MIT"
] | 2 | 2015-01-24T18:22:33.000Z | 2019-08-14T06:30:58.000Z | 4-bandit/code/multithreadedPolicyLinUCB.py | lukaselmer/ethz-data-mining | cb4215c202efc37f3626a25c8301a4ac36813493 | [
"MIT"
] | null | null | null | 4-bandit/code/multithreadedPolicyLinUCB.py | lukaselmer/ethz-data-mining | cb4215c202efc37f3626a25c8301a4ac36813493 | [
"MIT"
] | 2 | 2016-01-15T21:12:32.000Z | 2019-08-14T06:30:59.000Z | # !/usr/bin/env python2.7
import threading
import numpy as np
# TODO: recommend most uncertain article in case of 2 very similar articles
# TODO: use timestamp to lower ucb score over time
# Implementation of Linear UCB
linucb = LinUCB()
# Evaluator will call this function and pass the article features.
# Check... | 30.188406 | 92 | 0.628661 |
ffb3122f5b526c403a537fc7e2d88fda76411dec | 13,767 | py | Python | gpMgmt/test/behave_utils/PgHba.py | rodel-talampas/gpdb | 9c955e350334abbd922102f289f782697eb52069 | [
"PostgreSQL",
"Apache-2.0"
] | 9 | 2018-04-20T03:31:01.000Z | 2020-05-13T14:10:53.000Z | gpMgmt/test/behave_utils/PgHba.py | rodel-talampas/gpdb | 9c955e350334abbd922102f289f782697eb52069 | [
"PostgreSQL",
"Apache-2.0"
] | 36 | 2017-09-21T09:12:27.000Z | 2020-06-17T16:40:48.000Z | gpMgmt/test/behave_utils/PgHba.py | rodel-talampas/gpdb | 9c955e350334abbd922102f289f782697eb52069 | [
"PostgreSQL",
"Apache-2.0"
] | 32 | 2017-08-31T12:50:52.000Z | 2022-03-01T07:34:53.000Z | #!python
"""
Copyright (C) 2004-2017 Pivotal Software, Inc. All rights reserved.
This program and the accompanying materials are made available under
the terms of the 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 Li... | 36.324538 | 189 | 0.567008 |
ffb4497f2f29a25b74cf38005f97667ed3b3d835 | 7,964 | py | Python | roboskeeter/math/test_math_sorcery.py | crypdick/RoboSkeeter | c905a69c4f7ecf1e1c3e950f36200610a903b6a5 | [
"MIT"
] | null | null | null | roboskeeter/math/test_math_sorcery.py | crypdick/RoboSkeeter | c905a69c4f7ecf1e1c3e950f36200610a903b6a5 | [
"MIT"
] | null | null | null | roboskeeter/math/test_math_sorcery.py | crypdick/RoboSkeeter | c905a69c4f7ecf1e1c3e950f36200610a903b6a5 | [
"MIT"
] | null | null | null | """
Unit tests for kinematics calculations.
"""
from __future__ import print_function, division
import unittest
import numpy as np
from kinematic_math import math_toolbox
if __name__ == '__main__':
unittest.main()
| 41.696335 | 98 | 0.540181 |
ffb52d18ba01244fe0a111aa498702d1a5db89c0 | 7,096 | py | Python | trustpayments/models/refund_create.py | TrustPayments/python-sdk | 6fde6eb8cfce270c3612a2903a845c13018c3bb9 | [
"Apache-2.0"
] | 2 | 2020-01-16T13:24:06.000Z | 2020-11-21T17:40:17.000Z | postfinancecheckout/models/refund_create.py | pfpayments/python-sdk | b8ef159ea3c843a8d0361d1e0b122a9958adbcb4 | [
"Apache-2.0"
] | 4 | 2019-10-14T17:33:23.000Z | 2021-10-01T14:49:11.000Z | postfinancecheckout/models/refund_create.py | pfpayments/python-sdk | b8ef159ea3c843a8d0361d1e0b122a9958adbcb4 | [
"Apache-2.0"
] | 2 | 2019-10-15T14:17:10.000Z | 2021-09-17T13:07:09.000Z | # coding: utf-8
import pprint
import six
from enum import Enum
| 26.980989 | 195 | 0.584977 |
ffb567f0688a716f16f90345a882a5dc8d44737d | 4,025 | py | Python | language/xsp/data_preprocessing/language_utils.py | Xtuden-com/language | 70c0328968d5ffa1201c6fdecde45bbc4fec19fc | [
"Apache-2.0"
] | 1,199 | 2018-10-16T01:30:18.000Z | 2022-03-31T21:05:24.000Z | language/xsp/data_preprocessing/language_utils.py | Xtuden-com/language | 70c0328968d5ffa1201c6fdecde45bbc4fec19fc | [
"Apache-2.0"
] | 116 | 2018-10-18T03:31:46.000Z | 2022-03-24T13:40:50.000Z | language/xsp/data_preprocessing/language_utils.py | Xtuden-com/language | 70c0328968d5ffa1201c6fdecde45bbc4fec19fc | [
"Apache-2.0"
] | 303 | 2018-10-22T12:35:12.000Z | 2022-03-27T17:38:17.000Z | # coding=utf-8
# Copyright 2018 The Google AI Language Team 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 ... | 35.619469 | 77 | 0.704596 |
ffb64699aee68caa91b512adb859b23ae28d1500 | 13,270 | py | Python | back/api/tests/test_pricing.py | maltaesousa/geoshop2 | 624c6d79b5a29b39a898e0d1332fb8de23bd96e4 | [
"BSD-3-Clause"
] | null | null | null | back/api/tests/test_pricing.py | maltaesousa/geoshop2 | 624c6d79b5a29b39a898e0d1332fb8de23bd96e4 | [
"BSD-3-Clause"
] | 155 | 2020-01-06T09:32:32.000Z | 2022-03-31T09:21:39.000Z | back/api/tests/test_pricing.py | maltaesousa/geoshop2 | 624c6d79b5a29b39a898e0d1332fb8de23bd96e4 | [
"BSD-3-Clause"
] | 3 | 2020-01-29T15:48:02.000Z | 2020-06-04T12:50:24.000Z | from itertools import islice
from django.core import mail
from django.contrib.auth import get_user_model
from django.contrib.gis.geos import Polygon, Point
from djmoney.money import Money
from rest_framework.test import APITestCase
from api.models import Contact, Pricing, Product, PricingGeometry, Order, OrderItem, Ord... | 39.029412 | 115 | 0.595554 |
ffb6752c3d7ef436cdbb18c7ac65218d10fde812 | 1,080 | py | Python | platforms/views.py | lunamagic1978/DQP | 5ca135f56a25f79d27436dc9ea844cb5b6a6b4a2 | [
"Apache-2.0"
] | null | null | null | platforms/views.py | lunamagic1978/DQP | 5ca135f56a25f79d27436dc9ea844cb5b6a6b4a2 | [
"Apache-2.0"
] | null | null | null | platforms/views.py | lunamagic1978/DQP | 5ca135f56a25f79d27436dc9ea844cb5b6a6b4a2 | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponseRedirect
from django.contrib.auth.decorators import login_required
from django.contrib import auth
| 29.189189 | 70 | 0.669444 |
ffb9d19110d417666cdbb685244d2f511866f9ea | 2,442 | py | Python | app/searchtweet/searchtweet.py | winsb/SearchTweet | fe5e2760fda8fd563210d71293aef16d2cc90d7e | [
"MIT"
] | null | null | null | app/searchtweet/searchtweet.py | winsb/SearchTweet | fe5e2760fda8fd563210d71293aef16d2cc90d7e | [
"MIT"
] | null | null | null | app/searchtweet/searchtweet.py | winsb/SearchTweet | fe5e2760fda8fd563210d71293aef16d2cc90d7e | [
"MIT"
] | null | null | null | # searchtweet.py
import json
from requests_oauthlib import OAuth1Session
from . import tweetdata
# const
TWITTER_API_URL_PREFIX = "https://api.twitter.com/1.1/"
# SearchTweet class
| 34.394366 | 109 | 0.601556 |
ffba2f9fa76e114d9b8e5bc7903f58d0d6e6f1e3 | 183 | py | Python | 27 Body Mass Index.py | L0ganhowlett/Python_workbook-Ben_Stephenson | ab711257bd2da9b34c6001a8e09d20bfc0114a3f | [
"MIT"
] | null | null | null | 27 Body Mass Index.py | L0ganhowlett/Python_workbook-Ben_Stephenson | ab711257bd2da9b34c6001a8e09d20bfc0114a3f | [
"MIT"
] | null | null | null | 27 Body Mass Index.py | L0ganhowlett/Python_workbook-Ben_Stephenson | ab711257bd2da9b34c6001a8e09d20bfc0114a3f | [
"MIT"
] | null | null | null | # 27 Body mass Index
#Asking for height and weight of user
h = float(input("Enter the height = "))
m = float(input("Enter the mass = "))
print("Body Mass Index = ",m / (h * h))
| 30.5 | 40 | 0.622951 |
ffbb65836c12223fe2223ac56eec4039adb97ac9 | 4,221 | py | Python | xueshu/xueshu/settings.py | fsocietyjack/google_xueshu | b20293c865a8d3075b416543eea53adce00540a1 | [
"Apache-2.0"
] | null | null | null | xueshu/xueshu/settings.py | fsocietyjack/google_xueshu | b20293c865a8d3075b416543eea53adce00540a1 | [
"Apache-2.0"
] | null | null | null | xueshu/xueshu/settings.py | fsocietyjack/google_xueshu | b20293c865a8d3075b416543eea53adce00540a1 | [
"Apache-2.0"
] | null | null | null | # Scrapy settings for xueshu project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://docs.scrapy.org/en/latest/topics/settings.html
# https://docs.scrapy.org/en/latest/topics/downloader-middleware.... | 45.880435 | 906 | 0.800284 |
ffbb948d728f4e1e40d9f713346c629fba3183e5 | 143 | py | Python | weaviate/gql/__init__.py | ooxoo-bv/weaviate-python-client | f646a5c16b1c0cc7940b3ffa17a71efb6e96063a | [
"BSD-3-Clause"
] | 14 | 2019-11-04T14:18:21.000Z | 2022-03-31T09:11:51.000Z | weaviate/gql/__init__.py | ooxoo-bv/weaviate-python-client | f646a5c16b1c0cc7940b3ffa17a71efb6e96063a | [
"BSD-3-Clause"
] | 91 | 2019-11-04T11:26:42.000Z | 2022-03-22T10:22:44.000Z | weaviate/gql/__init__.py | ooxoo-bv/weaviate-python-client | f646a5c16b1c0cc7940b3ffa17a71efb6e96063a | [
"BSD-3-Clause"
] | 7 | 2021-05-14T14:53:42.000Z | 2022-03-31T15:09:55.000Z | """
GraphQL module used to create `get` and/or `aggregate` GraphQL requests from Weaviate.
"""
__all__ = ['Query']
from .query import Query
| 17.875 | 87 | 0.706294 |
4401734f9b9049dfaf10b947e8ca78dc704dd051 | 1,329 | py | Python | core/realm_cmd.py | pg83/mix | 1aa964214a239bb80b3a2fa408551929b6b77acc | [
"MIT"
] | 12 | 2021-12-04T09:38:50.000Z | 2022-03-22T16:27:30.000Z | core/realm_cmd.py | apatrushev/mix | 754fb2f7f308ad8285953aab9c4eba218968c0d4 | [
"MIT"
] | 1 | 2022-02-15T23:16:32.000Z | 2022-02-15T23:16:32.000Z | core/realm_cmd.py | apatrushev/mix | 754fb2f7f308ad8285953aab9c4eba218968c0d4 | [
"MIT"
] | 1 | 2022-02-08T18:57:50.000Z | 2022-02-08T18:57:50.000Z | import core.utils as cu
import core.manager as cm
import core.cmd_line as cc
| 22.15 | 80 | 0.598194 |
4401e3beac1ac62391add8303cda7c0a7de04f42 | 476 | py | Python | hash_table/0500_keyboard_row/0500_keyboard_row.py | zdyxry/LeetCode | 33371285d0f3302158230f46e8b1b63b9f4639c4 | [
"Xnet",
"X11"
] | 6 | 2019-09-16T01:50:44.000Z | 2020-09-17T08:52:25.000Z | hash_table/0500_keyboard_row/0500_keyboard_row.py | zdyxry/LeetCode | 33371285d0f3302158230f46e8b1b63b9f4639c4 | [
"Xnet",
"X11"
] | null | null | null | hash_table/0500_keyboard_row/0500_keyboard_row.py | zdyxry/LeetCode | 33371285d0f3302158230f46e8b1b63b9f4639c4 | [
"Xnet",
"X11"
] | 4 | 2020-02-07T12:43:16.000Z | 2021-04-11T06:38:55.000Z | from typing import List
words = ["Hello","Alaska","Dad","Peace"]
res = Solution().findWords(words)
print(res) | 25.052632 | 55 | 0.52521 |
44020d41699d56cd4a9aa0050d5ffab5eb3750ee | 340 | py | Python | PythonServer/scripts/mongo_viewer.py | watfordxp/Hologram | 903d81713a609b7529074c0fed5add39ec2c491f | [
"Apache-2.0"
] | null | null | null | PythonServer/scripts/mongo_viewer.py | watfordxp/Hologram | 903d81713a609b7529074c0fed5add39ec2c491f | [
"Apache-2.0"
] | null | null | null | PythonServer/scripts/mongo_viewer.py | watfordxp/Hologram | 903d81713a609b7529074c0fed5add39ec2c491f | [
"Apache-2.0"
] | null | null | null | import pymongo
from pymongo.database import Database
__author__ = 'pryormic'
if __name__ == '__main__':
mongoClient = pymongo.MongoClient("localhost", 27017)
for item in mongoClient.db.matcher.find():
try:
del item['profile_picture']
except KeyError:
pass
prin... | 21.25 | 57 | 0.632353 |
44055cc8dd4a7b7cba19e2a5900454c473e4c188 | 52 | py | Python | goodok_mlu/trackers/visualize/__init__.py | roma-goodok/ml_utils | c1d6630021a519102b5c4e029cecccdd8a0da946 | [
"MIT"
] | null | null | null | goodok_mlu/trackers/visualize/__init__.py | roma-goodok/ml_utils | c1d6630021a519102b5c4e029cecccdd8a0da946 | [
"MIT"
] | null | null | null | goodok_mlu/trackers/visualize/__init__.py | roma-goodok/ml_utils | c1d6630021a519102b5c4e029cecccdd8a0da946 | [
"MIT"
] | 1 | 2021-03-29T13:15:02.000Z | 2021-03-29T13:15:02.000Z | ""
from .utils import (plot_lr_loss, plot_metrics)
| 13 | 47 | 0.75 |
4408550e2698b3c69c89d360e4d3811ead5179c0 | 307 | py | Python | ramda/path.py | jakobkolb/ramda.py | 982b2172f4bb95b9a5b09eff8077362d6f2f0920 | [
"MIT"
] | null | null | null | ramda/path.py | jakobkolb/ramda.py | 982b2172f4bb95b9a5b09eff8077362d6f2f0920 | [
"MIT"
] | null | null | null | ramda/path.py | jakobkolb/ramda.py | 982b2172f4bb95b9a5b09eff8077362d6f2f0920 | [
"MIT"
] | null | null | null | from toolz import curry
| 23.615385 | 75 | 0.664495 |
440897e459f198c3b14d3d46c61083b908043a45 | 547 | py | Python | common/data_refinery_common/constants.py | erflynn/refinebio | 4ead4082a6b98f7fc8cffdc62c4394338a577f3d | [
"BSD-3-Clause"
] | 106 | 2018-03-05T16:24:47.000Z | 2022-03-19T19:12:25.000Z | common/data_refinery_common/constants.py | erflynn/refinebio | 4ead4082a6b98f7fc8cffdc62c4394338a577f3d | [
"BSD-3-Clause"
] | 1,494 | 2018-02-27T17:02:21.000Z | 2022-03-24T15:10:30.000Z | common/data_refinery_common/constants.py | erflynn/refinebio | 4ead4082a6b98f7fc8cffdc62c4394338a577f3d | [
"BSD-3-Clause"
] | 15 | 2019-02-03T01:34:59.000Z | 2022-03-29T01:59:13.000Z | from data_refinery_common.utils import get_env_variable
LOCAL_ROOT_DIR = get_env_variable("LOCAL_ROOT_DIR", "/home/user/data_store")
# We store what salmon ouptuts as its version, therefore for
# comparisions or defaults we shouldn't just store the version string,
# we need something with the pattern: 'salmon X.X.X'
C... | 49.727273 | 81 | 0.789762 |
4409126fcb48835e2b94769b277223312da2de0b | 4,680 | py | Python | db.py | seasidefm/botsuro-twitch | de87be41c0ea3b57816eda89cc3fea1169778343 | [
"Apache-2.0"
] | null | null | null | db.py | seasidefm/botsuro-twitch | de87be41c0ea3b57816eda89cc3fea1169778343 | [
"Apache-2.0"
] | null | null | null | db.py | seasidefm/botsuro-twitch | de87be41c0ea3b57816eda89cc3fea1169778343 | [
"Apache-2.0"
] | null | null | null | import datetime
import os
import string
import time
from bson.json_util import dumps
from json import loads
from pymongo import MongoClient
from utils import SongRequest, UserPayload
TEMP_MOVIE_DETAILS = """
Title: Maison Ikkoku |
Synopsis: Maison Ikkoku is a bitter-sweet romantic comedy involving a group of
madcap ... | 34.666667 | 100 | 0.577564 |
440a2c6ef802e9a82756a1ade4c76fb4a056e3ee | 20,200 | py | Python | hw2/train_pg_v2.py | HuanjunWang/rl_homework | 4c387fa7016e980fe1f72824e6ed5b980bf8e717 | [
"MIT"
] | null | null | null | hw2/train_pg_v2.py | HuanjunWang/rl_homework | 4c387fa7016e980fe1f72824e6ed5b980bf8e717 | [
"MIT"
] | null | null | null | hw2/train_pg_v2.py | HuanjunWang/rl_homework | 4c387fa7016e980fe1f72824e6ed5b980bf8e717 | [
"MIT"
] | null | null | null | import numpy as np
import tensorflow as tf
import gym
import logz
import scipy.signal
import os
import time
from multiprocessing import Process
import shutil
def discount_reward(paths, gamma, reward_to_go):
if reward_to_go:
discounted_reward = []
for path in paths:
path_len = len(p... | 44.789357 | 120 | 0.536188 |
440afa545bf83412add26954940014f4b8250c80 | 664 | py | Python | lab1_python_intro/ex5_SOLUTION_conditional_number.py | ggruszczynski/CFDPython | 1662ede061fb899d6ed3f89c17877e65f65e521c | [
"CC-BY-3.0"
] | null | null | null | lab1_python_intro/ex5_SOLUTION_conditional_number.py | ggruszczynski/CFDPython | 1662ede061fb899d6ed3f89c17877e65f65e521c | [
"CC-BY-3.0"
] | null | null | null | lab1_python_intro/ex5_SOLUTION_conditional_number.py | ggruszczynski/CFDPython | 1662ede061fb899d6ed3f89c17877e65f65e521c | [
"CC-BY-3.0"
] | 1 | 2021-02-05T08:00:02.000Z | 2021-02-05T08:00:02.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Nov 4 19:05:22 2020
@author: ggruszczynski
"""
import numpy as np
from numpy import linalg as LA
x0 = np.array([1, 2, 3])
x1 = np.array([2, 6, -5])
dx = 0.02 * x0
# dx = np.array([0.02, 0.04, -0.04])
c = calc_condition_number_naive(dot_product, x0,... | 20.75 | 67 | 0.614458 |
440cd41dd7edeb177805774fe5728b8235f5028b | 891 | py | Python | heltour/tournament/migrations/0182_auto_20180728_2344.py | zbidwell/heltour | 3895142695096a81cc65c3fefb7d4501ed796f46 | [
"MIT"
] | 41 | 2016-08-17T19:58:42.000Z | 2021-11-08T10:52:07.000Z | heltour/tournament/migrations/0182_auto_20180728_2344.py | zbidwell/heltour | 3895142695096a81cc65c3fefb7d4501ed796f46 | [
"MIT"
] | 257 | 2016-08-17T22:29:05.000Z | 2022-01-13T00:42:05.000Z | heltour/tournament/migrations/0182_auto_20180728_2344.py | zbidwell/heltour | 3895142695096a81cc65c3fefb7d4501ed796f46 | [
"MIT"
] | 31 | 2016-09-23T23:36:14.000Z | 2022-01-14T17:05:08.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2018-07-28 23:44
from django.db import migrations, models
| 42.428571 | 525 | 0.662177 |
4410ba355da46d3266d0b93f07bb597a2d073c21 | 1,000 | py | Python | paramak/parametric_shapes/rotate_spline_shape.py | billingsley-john/paramak | 127d064f7bc0fd26305b4d83776d66b0e12aeeb0 | [
"MIT"
] | null | null | null | paramak/parametric_shapes/rotate_spline_shape.py | billingsley-john/paramak | 127d064f7bc0fd26305b4d83776d66b0e12aeeb0 | [
"MIT"
] | null | null | null | paramak/parametric_shapes/rotate_spline_shape.py | billingsley-john/paramak | 127d064f7bc0fd26305b4d83776d66b0e12aeeb0 | [
"MIT"
] | null | null | null |
from typing import Optional, Tuple
from paramak import RotateMixedShape
| 29.411765 | 93 | 0.633 |
441277bbdeb2f71476a9501404fc0d74022c981a | 1,212 | py | Python | Implementations/content/various/Python3.py | maheshschand/USACO | 52890a77f66f8b779ba2b1da0460b85dd9f38013 | [
"CC0-1.0"
] | 1,760 | 2017-05-21T21:07:06.000Z | 2022-03-29T13:15:08.000Z | Implementations/content/various/Python3.py | maheshschand/USACO | 52890a77f66f8b779ba2b1da0460b85dd9f38013 | [
"CC0-1.0"
] | 12 | 2018-01-24T02:41:53.000Z | 2022-03-17T13:09:26.000Z | Implementations/content/various/Python3.py | maheshschand/USACO | 52890a77f66f8b779ba2b1da0460b85dd9f38013 | [
"CC0-1.0"
] | 473 | 2017-07-06T04:53:41.000Z | 2022-03-28T13:03:28.000Z | /**
* Description: not PyPy3, solves CF Factorisation Collaboration
* Source: own
* Verification:
* https://codeforces.com/contest/1091/problem/G
* https://open.kattis.com/problems/catalansquare
*/
from math import *
import sys, random
n = nextInt()
v = [n]
for i in range(50):
x = random.randint(0,n-1)
if g... | 22.036364 | 64 | 0.632013 |
44130381bb4278ab02d62ff66252d0c7a113341f | 1,908 | py | Python | src/observer/observer_test.py | LeRyc/Robust-Robotic-Manipulation | 0463c55bd689081c119f1fc024f4c22704f91c6f | [
"MIT"
] | 1 | 2020-12-07T08:39:52.000Z | 2020-12-07T08:39:52.000Z | src/observer/observer_test.py | LeRyc/Robust-Robotic-Manipulation | 0463c55bd689081c119f1fc024f4c22704f91c6f | [
"MIT"
] | null | null | null | src/observer/observer_test.py | LeRyc/Robust-Robotic-Manipulation | 0463c55bd689081c119f1fc024f4c22704f91c6f | [
"MIT"
] | null | null | null | import unittest
import numpy as np
from src.commons import Box
from src.observer.base_observer import BaseObserver
from src.observer.noise_observer import NoiseObserver
from src.observer.shift_observer import ShiftObserver
if __name__ == '__main__':
unittest.main()
| 36.692308 | 117 | 0.66457 |
4414b94db096b9792beb0261cd50cbcc79200424 | 3,352 | py | Python | applications/fatigue_w_proxy/container4/app/predict.py | Dumpkin1996/clipper | 1a08bbdde846c3cfe76236c68548a848f71605e0 | [
"Apache-2.0"
] | 2 | 2019-04-24T13:46:28.000Z | 2019-05-28T06:59:26.000Z | applications/fatigue_w_proxy/container4/app/predict.py | SimonZsx/clipper | 457088be2ebe68c68b94d90389d1308e35b4c844 | [
"Apache-2.0"
] | null | null | null | applications/fatigue_w_proxy/container4/app/predict.py | SimonZsx/clipper | 457088be2ebe68c68b94d90389d1308e35b4c844 | [
"Apache-2.0"
] | 4 | 2019-04-03T11:03:57.000Z | 2019-06-26T08:22:38.000Z | import cv2
import numpy as np
import os
import json
import time
from datetime import datetime
protoFile = "/container/pose_deploy_linevec.prototxt"
weightsFile = "/container/pose_iter_440000.caffemodel"
net = cv2.dnn.readNetFromCaffe(protoFile, weightsFile)
nPoints = 18
POSE_PAIRS = [ [1,0],[1,2],[1,5],[2,3],[3,4],[5... | 28.649573 | 135 | 0.579356 |
4415e071d9ad66aaae324d50f83edc703e23afa3 | 95,661 | py | Python | Widget_Resources_rc.py | Prx001/Qt-Login-UI | e895c8714cfdde37d2ec3e56df9f0e7da121199a | [
"MIT"
] | 2 | 2021-09-25T18:53:31.000Z | 2021-09-26T00:37:09.000Z | Widget_Resources_rc.py | Prx001/Qt-Login-UI | e895c8714cfdde37d2ec3e56df9f0e7da121199a | [
"MIT"
] | null | null | null | Widget_Resources_rc.py | Prx001/Qt-Login-UI | e895c8714cfdde37d2ec3e56df9f0e7da121199a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Resource object code
#
# Created by: The Resource Compiler for PyQt5 (Qt v5.15.2)
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore
qt_resource_data = b"\
\x00\x00\x11\xc6\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
\x00\x01\xc0\x... | 63.901804 | 129 | 0.727067 |
4415e55d3bc9a15e470e4e72ba5fcd50a40432b6 | 1,544 | py | Python | examples/data_expl/stan_data.py | itsens/stan | 1632a55bf752bba09f3459e333f2a6970e1148c4 | [
"MIT"
] | null | null | null | examples/data_expl/stan_data.py | itsens/stan | 1632a55bf752bba09f3459e333f2a6970e1148c4 | [
"MIT"
] | null | null | null | examples/data_expl/stan_data.py | itsens/stan | 1632a55bf752bba09f3459e333f2a6970e1148c4 | [
"MIT"
] | null | null | null | from stan import StanData, StanDict
from pprint import pprint
if __name__ == '__main__':
data_1 = StanData()
data_1[1499763761] = StanDict(metric_1=1) # TODO: Double indexing if adding as StanDict
data_1[1499763761]['metric_2'] = 2
data_1[1499763761]['metric_3'] = 3
data_1.append(1499763762, Stan... | 31.510204 | 92 | 0.591969 |
441a6673a2780d5bb40a0a9b50d127826accc76e | 701 | py | Python | utils/image_utils.py | sciforce/phones-las | f95523fbbdf1dd7f1acce5b25c37b620f3eb8e9b | [
"Apache-2.0"
] | 35 | 2019-07-04T10:13:29.000Z | 2022-02-22T03:41:39.000Z | utils/image_utils.py | sciforce/phones-las | f95523fbbdf1dd7f1acce5b25c37b620f3eb8e9b | [
"Apache-2.0"
] | 7 | 2019-11-04T15:34:03.000Z | 2020-06-21T04:30:22.000Z | utils/image_utils.py | sciforce/phones-las | f95523fbbdf1dd7f1acce5b25c37b620f3eb8e9b | [
"Apache-2.0"
] | 5 | 2019-07-15T20:09:46.000Z | 2021-08-05T09:55:29.000Z | import tensorflow as tf
__all__ = [
'create_attention_images',
]
"""Reference: https://github.com/tensorflow/nmt/blob/master/nmt/attention_model.py"""
| 29.208333 | 85 | 0.724679 |
441af188b0e77d5b4cb9c854158c2c022f4de46b | 2,604 | py | Python | cryptofeed_werks/exchanges/bitfinex/base.py | globophobe/crypto-tick-data | 7ec5d1e136b9bc27ae936f55cf6ab7fe5e37bda4 | [
"MIT"
] | null | null | null | cryptofeed_werks/exchanges/bitfinex/base.py | globophobe/crypto-tick-data | 7ec5d1e136b9bc27ae936f55cf6ab7fe5e37bda4 | [
"MIT"
] | null | null | null | cryptofeed_werks/exchanges/bitfinex/base.py | globophobe/crypto-tick-data | 7ec5d1e136b9bc27ae936f55cf6ab7fe5e37bda4 | [
"MIT"
] | null | null | null | from datetime import datetime
from decimal import Decimal
from typing import Optional
import numpy as np
from cryptofeed_werks.controllers import NonSequentialIntegerMixin
from cryptofeed_werks.models import Symbol
from .api import get_bitfinex_api_timestamp, get_trades
| 33.384615 | 86 | 0.665515 |
441d5ab56b037273d32e259b53e92f350b0a92db | 893 | py | Python | stubbs/constants.py | holy-crust/reclaimer | 0aa693da3866ce7999c68d5f71f31a9c932cdb2c | [
"MIT"
] | null | null | null | stubbs/constants.py | holy-crust/reclaimer | 0aa693da3866ce7999c68d5f71f31a9c932cdb2c | [
"MIT"
] | null | null | null | stubbs/constants.py | holy-crust/reclaimer | 0aa693da3866ce7999c68d5f71f31a9c932cdb2c | [
"MIT"
] | null | null | null | from reclaimer.constants import *
from reclaimer.util import fourcc_to_int
# maps tag class four character codes(fccs) in
# their string encoding to their int encoding.
stubbs_tag_class_fcc_to_be_int = {}
stubbs_tag_class_fcc_to_le_int = {}
# maps tag class four character codes(fccs) in
# their int encoding to... | 34.346154 | 69 | 0.771557 |
441fce3d830865a276e3f3d84345a049156d47c8 | 185 | py | Python | app/__init__.py | MaggieChege/Panda- | a23ac528170c22335c0c2f1da98c440331931358 | [
"MIT"
] | null | null | null | app/__init__.py | MaggieChege/Panda- | a23ac528170c22335c0c2f1da98c440331931358 | [
"MIT"
] | null | null | null | app/__init__.py | MaggieChege/Panda- | a23ac528170c22335c0c2f1da98c440331931358 | [
"MIT"
] | null | null | null | from flask import Flask,Blueprint
| 13.214286 | 37 | 0.686486 |
441ff495ccacaddb8703705c1a18f78f8327fb5b | 3,276 | py | Python | inheritors.py | master9robot/python_lesson | d50466ebde95529ac2b4011d671b4ccebf121dc3 | [
"MIT"
] | null | null | null | inheritors.py | master9robot/python_lesson | d50466ebde95529ac2b4011d671b4ccebf121dc3 | [
"MIT"
] | null | null | null | inheritors.py | master9robot/python_lesson | d50466ebde95529ac2b4011d671b4ccebf121dc3 | [
"MIT"
] | null | null | null |
#An iterator is an object that contains a countable number of values.
#An iterator is an object that can be iterated upon, meaning that you can traverse through all the values.
#Technically, in Python, an iterator is an object which implements the iterator protocol, which consist of the methods __iter__() and __next... | 28.486957 | 181 | 0.728632 |
442337ece147504cb1df39981a0b29a4670fe631 | 530 | py | Python | PDF/pymupdf_get_bookmarks.py | MartinThoma/algorithms | 4347a9b7bf54ef378d16d26ef9e357ddc710664b | [
"MIT"
] | 209 | 2015-01-02T03:47:12.000Z | 2022-03-06T16:54:47.000Z | PDF/pymupdf_get_bookmarks.py | Kerwin-Xie/algorithms | 4347a9b7bf54ef378d16d26ef9e357ddc710664b | [
"MIT"
] | 3 | 2015-12-06T14:40:34.000Z | 2021-03-22T17:40:24.000Z | PDF/pymupdf_get_bookmarks.py | Kerwin-Xie/algorithms | 4347a9b7bf54ef378d16d26ef9e357ddc710664b | [
"MIT"
] | 114 | 2015-01-31T08:37:10.000Z | 2022-02-23T04:42:28.000Z | # Type annotations are pretty awesome:
# https://medium.com/analytics-vidhya/type-annotations-in-python-3-8-3b401384403d
from typing import Dict
import fitz # pip install pymupdf
print(get_bookmarks("my.pdf"))
| 27.894737 | 81 | 0.669811 |
4423695274e7e7ebd5ce1d2a0f4802ad2c73958f | 8,346 | py | Python | mcnf_do_test.py | SuReLI/Dynamic_mcnf_paper_code | 86a07ac31feac725d02ec55d553d20f12bb355c5 | [
"CNRI-Python"
] | null | null | null | mcnf_do_test.py | SuReLI/Dynamic_mcnf_paper_code | 86a07ac31feac725d02ec55d553d20f12bb355c5 | [
"CNRI-Python"
] | null | null | null | mcnf_do_test.py | SuReLI/Dynamic_mcnf_paper_code | 86a07ac31feac725d02ec55d553d20f12bb355c5 | [
"CNRI-Python"
] | 1 | 2022-03-01T09:53:20.000Z | 2022-03-01T09:53:20.000Z | import random
import time
from mcnf_dynamic import *
from instance_mcnf import generate_instance, mutate_instance
from k_shortest_path import k_shortest_path_all_destination
from launch_dataset_dynamic import analyse_results_list
temp = time.time()
# # First timestep generation
# size = 5
# graph_type, graph_gener... | 57.958333 | 320 | 0.775222 |
44252fea2299758e673934a1ecda9362f2441cf3 | 2,058 | py | Python | muddery/commands/player.py | MarsZone/DreamLand | 87455f421c1ba09cb6efd5fc0882fbc2a29ea1a5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | muddery/commands/player.py | MarsZone/DreamLand | 87455f421c1ba09cb6efd5fc0882fbc2a29ea1a5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | muddery/commands/player.py | MarsZone/DreamLand | 87455f421c1ba09cb6efd5fc0882fbc2a29ea1a5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | """
This is adapt from evennia/evennia/commands/default/player.py.
The licence of Evennia can be found in evennia/LICENSE.txt.
"""
import time
from django.conf import settings
from evennia.server.sessionhandler import SESSIONS
from evennia.commands.command import Command
from evennia.utils import utils, create, search... | 32.15625 | 90 | 0.64723 |
442618fc9c28b2ce42e414759738c3f72d214758 | 20,002 | py | Python | python_utilities/parallel.py | sdaxen/python_utilities | 7b9d6cc21bfc31be83629d2ac02b27e886ebc2bb | [
"MIT"
] | 2 | 2020-04-13T20:17:36.000Z | 2020-05-12T01:13:12.000Z | python_utilities/parallel.py | sethaxen/python_utilities | 7b9d6cc21bfc31be83629d2ac02b27e886ebc2bb | [
"MIT"
] | 5 | 2015-10-20T22:57:51.000Z | 2017-09-07T01:10:23.000Z | python_utilities/parallel.py | sethaxen/python_utilities | 7b9d6cc21bfc31be83629d2ac02b27e886ebc2bb | [
"MIT"
] | 3 | 2015-08-17T17:55:41.000Z | 2018-09-19T13:56:42.000Z | """Tools to aid in parallelizing a function call.
Default method is MPI, if available. Fallback is concurrent.futures. If all
else fails, final fallback is serial.
Author: Seth Axen
Email: seth.axen@gmail.com
"""
import os
import sys
import logging
from copy import copy
import multiprocessing
try:
from itertools ... | 38.026616 | 114 | 0.545945 |
44270b1635eefee664fb5fb4985c764d1d994824 | 187 | py | Python | AT_Basic/AT_readexternalfile.py | huertatipografica/huertatipografica-fl-scripts | f048705c217132b3f103a773aaf20033874f6579 | [
"Apache-2.0"
] | 1 | 2020-02-06T22:18:07.000Z | 2020-02-06T22:18:07.000Z | AT_Basic/AT_readexternalfile.py | huertatipografica/huertatipografica-fl-scripts | f048705c217132b3f103a773aaf20033874f6579 | [
"Apache-2.0"
] | null | null | null | AT_Basic/AT_readexternalfile.py | huertatipografica/huertatipografica-fl-scripts | f048705c217132b3f103a773aaf20033874f6579 | [
"Apache-2.0"
] | null | null | null | #FLM: AT URL file
import urllib
f = urllib.urlopen('http://www.andrestorresi.com.ar/test.txt')
readdata = f.read()
readdata2 = unicode( readdata, "iso-8859-1" )
f.close()
print readdata2
| 23.375 | 62 | 0.721925 |
44274d06c13806c20cb7ccbcad1c6195b3fdd749 | 405 | py | Python | Algorithm/coding_interviews/Python/sword-for-offer/43_num_of_one.py | ck76/awesome-cs | 48cba4081dc5290f07e305850b9a3a7e8a590b64 | [
"Apache-2.0"
] | 1 | 2021-11-16T13:37:41.000Z | 2021-11-16T13:37:41.000Z | Algorithm/coding_interviews/Python/sword-for-offer/43_num_of_one.py | ck76/awesome-cs | 48cba4081dc5290f07e305850b9a3a7e8a590b64 | [
"Apache-2.0"
] | null | null | null | Algorithm/coding_interviews/Python/sword-for-offer/43_num_of_one.py | ck76/awesome-cs | 48cba4081dc5290f07e305850b9a3a7e8a590b64 | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/python3
# -*- coding: utf-8 -*-
# @Time : 2019/3/10 5:21 PM
# @Author : xiaoliji
# @Email : yutian9527@gmail.com
"""
1~n1
>>> countDigitOne(12)
5
"""
| 19.285714 | 75 | 0.501235 |
4428f0e65f1454c8ca62ff07f9d8c0d8f778e7d4 | 22,957 | py | Python | CoMPILE_github/test_ranking.py | TmacMai/CoMPILE_Inductive_Knowledge_Graph | 072885012893a50b47cdee17f2e47f671e33bc00 | [
"MIT"
] | 14 | 2020-12-07T16:36:30.000Z | 2022-03-05T12:31:30.000Z | CoMPILE_github/test_ranking.py | TmacMai/CoMPILE_Inductive_Knowledge_Graph | 072885012893a50b47cdee17f2e47f671e33bc00 | [
"MIT"
] | 3 | 2021-04-06T01:22:32.000Z | 2022-03-12T01:39:12.000Z | CoMPILE_github/test_ranking.py | TmacMai/CoMPILE_Inductive_Knowledge_Graph | 072885012893a50b47cdee17f2e47f671e33bc00 | [
"MIT"
] | 4 | 2021-03-10T05:10:05.000Z | 2022-03-05T12:32:45.000Z | import os
import random
import argparse
import logging
import json
import time
import multiprocessing as mp
import scipy.sparse as ssp
from tqdm import tqdm
import networkx as nx
import torch
import numpy as np
import dgl
#os.environ["CUDA_VISIBLE_DEVICES"]="1"
def process_files(files, saved_relation2id, add_traspose... | 42.200368 | 200 | 0.660191 |
4428fa67a48dd401185f9736e5599509b0b9fc95 | 652 | py | Python | scheduler/scheduler.py | ericlearning/General-I2I | ba7c5d6a582bdf2e7b53c0e20c31e9097b1883a9 | [
"MIT"
] | 1 | 2019-12-20T15:08:18.000Z | 2019-12-20T15:08:18.000Z | scheduler/scheduler.py | ericlearning/General-I2I | ba7c5d6a582bdf2e7b53c0e20c31e9097b1883a9 | [
"MIT"
] | null | null | null | scheduler/scheduler.py | ericlearning/General-I2I | ba7c5d6a582bdf2e7b53c0e20c31e9097b1883a9 | [
"MIT"
] | null | null | null | import math | 25.076923 | 81 | 0.662577 |
4429767250a51905f861cf7049625276399f4004 | 23,698 | py | Python | pm.py | oscarmonllor99/dark_matter_study | b301cc2a4aa33d8b044b99da6310483814df55f1 | [
"MIT"
] | null | null | null | pm.py | oscarmonllor99/dark_matter_study | b301cc2a4aa33d8b044b99da6310483814df55f1 | [
"MIT"
] | null | null | null | pm.py | oscarmonllor99/dark_matter_study | b301cc2a4aa33d8b044b99da6310483814df55f1 | [
"MIT"
] | null | null | null | import numpy as np
from numba import jit
import random
import time
import argparse
##############################################
######### PARMETROS FSICOS ################
##############################################
Q = 1.3
NUM_PARTICLES = 100000 #Nmero de partculas
NUM_PARTICLES_BULGE = int(0.14 * NU... | 34.85 | 113 | 0.433243 |
4429e980a041daa0f6ae5470ca29efeec75f048a | 1,526 | py | Python | 08_apples_and_bananas/apples.py | trev-f/tiny_python_projects | 20b05f1def834bc9deda58ebdb5cb1d7fe647e45 | [
"MIT"
] | null | null | null | 08_apples_and_bananas/apples.py | trev-f/tiny_python_projects | 20b05f1def834bc9deda58ebdb5cb1d7fe647e45 | [
"MIT"
] | null | null | null | 08_apples_and_bananas/apples.py | trev-f/tiny_python_projects | 20b05f1def834bc9deda58ebdb5cb1d7fe647e45 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
Author : treevooor <treevooor@localhost>
Date : 2021-11-09
Purpose: Apples and bananas
"""
import argparse
import os
# --------------------------------------------------
def get_args():
"""Get command-line arguments"""
parser = argparse.ArgumentParser(
description='Apple... | 24.222222 | 70 | 0.467235 |
442b111ca91187ce9c255240e5dfebe65f40b89f | 348 | py | Python | configs/siam_hrnet/siam_hr18_512x512_40k_s2looking_backsplit.py | slchenchn/rsaicp_CD | 08723b6da125b4ebe7f4777be8ef14a1b5746523 | [
"Apache-2.0"
] | null | null | null | configs/siam_hrnet/siam_hr18_512x512_40k_s2looking_backsplit.py | slchenchn/rsaicp_CD | 08723b6da125b4ebe7f4777be8ef14a1b5746523 | [
"Apache-2.0"
] | null | null | null | configs/siam_hrnet/siam_hr18_512x512_40k_s2looking_backsplit.py | slchenchn/rsaicp_CD | 08723b6da125b4ebe7f4777be8ef14a1b5746523 | [
"Apache-2.0"
] | 1 | 2022-03-21T07:37:24.000Z | 2022-03-21T07:37:24.000Z | '''
Author: Shuailin Chen
Created Date: 2021-07-06
Last Modified: 2021-08-18
content: siamese HR18 with background splitting
'''
_base_ = [
'./siam_hr18_512x512_40k_s2looking.py'
]
model = dict(
decode_head=dict(
post_process=dict(
type='SetConstValue',
position=0,
... | 18.315789 | 48 | 0.603448 |
442b854ea63b2f9922fd81c1650309f6e282398b | 221 | py | Python | nsd1806/python/day05/mydict.py | MrWangwf/nsd1806 | 069e993b0bb64cb21adc2a25aa56f6da674453bc | [
"Apache-2.0"
] | null | null | null | nsd1806/python/day05/mydict.py | MrWangwf/nsd1806 | 069e993b0bb64cb21adc2a25aa56f6da674453bc | [
"Apache-2.0"
] | null | null | null | nsd1806/python/day05/mydict.py | MrWangwf/nsd1806 | 069e993b0bb64cb21adc2a25aa56f6da674453bc | [
"Apache-2.0"
] | null | null | null | adict = {'name': 'bob', 'age': 23}
print('bob' in adict) # bobkey
print('name' in adict) # True
print(len(adict)) # 2
for key in adict:
print('%s: %s' % (key, adict[key]))
print('%(name)s: %(age)s' % adict)
| 24.555556 | 39 | 0.574661 |
442c17486ddf7abefd979fe9ad65f0fda830f7ae | 1,774 | py | Python | examples/streak/plot.py | bjornaa/ladim2 | f6c1be9028ca54370ce33dde25b005d5b0bb4677 | [
"MIT"
] | null | null | null | examples/streak/plot.py | bjornaa/ladim2 | f6c1be9028ca54370ce33dde25b005d5b0bb4677 | [
"MIT"
] | null | null | null | examples/streak/plot.py | bjornaa/ladim2 | f6c1be9028ca54370ce33dde25b005d5b0bb4677 | [
"MIT"
] | null | null | null | """Plot a snapshot of the particle distribution"""
# --------------------------------
# Bjrn dlandsvik <bjorn@ho.no>
# Institute of Marine Research
# November 2020
# --------------------------------
import numpy as np
import matplotlib.pyplot as plt
from netCDF4 import Dataset
from postladim import ParticleFile
# -... | 22.74359 | 84 | 0.620068 |
442dae1169b8f000e9fec9855121b98524da0cb8 | 1,945 | py | Python | tests/test-data/mock.py | mr-c/CTDConverter | 84c58674405d24cc21e765367fa089fa31a5df0f | [
"MIT"
] | null | null | null | tests/test-data/mock.py | mr-c/CTDConverter | 84c58674405d24cc21e765367fa089fa31a5df0f | [
"MIT"
] | null | null | null | tests/test-data/mock.py | mr-c/CTDConverter | 84c58674405d24cc21e765367fa089fa31a5df0f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# little mock app to handle ouput file parameters
# i.e. to create them
import os
import shutil
import sys
from CTDopts.CTDopts import CTDModel, _InFile, _OutFile
# from argparse import ArgumentParser
# parser = ArgumentParser(prog="mock.py", description="MOCK", add_help=True)
# parser.add_arg... | 35.363636 | 105 | 0.560925 |
442e571ab100fe4f8465f2178b6129b91ab30a27 | 1,323 | py | Python | cubes_lite/sql/request.py | notexistence/cubes_lite | 2cbc54509e6dc8a529c9f33fd39d0f659d6a5647 | [
"MIT"
] | null | null | null | cubes_lite/sql/request.py | notexistence/cubes_lite | 2cbc54509e6dc8a529c9f33fd39d0f659d6a5647 | [
"MIT"
] | null | null | null | cubes_lite/sql/request.py | notexistence/cubes_lite | 2cbc54509e6dc8a529c9f33fd39d0f659d6a5647 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import collections
from cubes_lite.query import Request, Response
__all__ = (
'ListSQLRequest',
'ListSQLResponse',
'OneRowSQLRequest',
'OneRowSQLResponse',
)
| 21.33871 | 62 | 0.59486 |
443047ead0ffbfc30ef88ed167c3c08722403b2c | 1,166 | py | Python | render.py | 22preich/BlenderNetworkRender | 53b4f036c3adea31d947d64aa1ed0983a29c8e07 | [
"MIT"
] | 1 | 2021-09-12T06:48:50.000Z | 2021-09-12T06:48:50.000Z | render.py | 22preich/BlenderNetworkRender | 53b4f036c3adea31d947d64aa1ed0983a29c8e07 | [
"MIT"
] | null | null | null | render.py | 22preich/BlenderNetworkRender | 53b4f036c3adea31d947d64aa1ed0983a29c8e07 | [
"MIT"
] | null | null | null | import bpy
import sys
dir = "C:/Users/foggy/Appdata/roaming/python37/site-packages"
sys.path.append(dir)
from flask import Flask, request, render_template
from werkzeug.utils import secure_filename
import eventlet
from eventlet import wsgi
app = Flask(__name__)
def render(filepath="tmp/alley.blend"):
bpy.ops.w... | 27.761905 | 126 | 0.704117 |
4431c29408229b2b646051a0283bc112013465f4 | 2,292 | py | Python | tests/test_docker_stats.py | KristobalJunta/docker-stats-graph | 724d6d71d420bf2e03a1e5ae2bf604ff5d40f69f | [
"MIT"
] | 8 | 2021-02-19T23:08:49.000Z | 2022-02-09T14:25:21.000Z | tests/test_docker_stats.py | KristobalJunta/docker-stats-graph | 724d6d71d420bf2e03a1e5ae2bf604ff5d40f69f | [
"MIT"
] | null | null | null | tests/test_docker_stats.py | KristobalJunta/docker-stats-graph | 724d6d71d420bf2e03a1e5ae2bf604ff5d40f69f | [
"MIT"
] | 2 | 2021-02-19T07:48:01.000Z | 2021-06-01T14:20:34.000Z | import os
import unittest
import warnings
from src import ROOT_PATH
from src.dockerstats import DockerStats
if __name__ == "__main__":
unittest.main()
| 35.261538 | 73 | 0.652269 |
4433556a7cfa388b2c20801fb5e687c8efe75005 | 3,889 | py | Python | lab6/main_romain_claret_and_sylvain_robert-nicoud_lab6.py | RomainClaret/msc.ml.labs | 4e6b8e1c1ab841ab8ebbaee13f6ae43e9a1c44a5 | [
"MIT"
] | null | null | null | lab6/main_romain_claret_and_sylvain_robert-nicoud_lab6.py | RomainClaret/msc.ml.labs | 4e6b8e1c1ab841ab8ebbaee13f6ae43e9a1c44a5 | [
"MIT"
] | null | null | null | lab6/main_romain_claret_and_sylvain_robert-nicoud_lab6.py | RomainClaret/msc.ml.labs | 4e6b8e1c1ab841ab8ebbaee13f6ae43e9a1c44a5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# 26.04.21
# Assignment lab 06
# Master Class: Machine Learning (5MI2018)
# Faculty of Economic Science
# University of Neuchatel (Switzerland)
# Lab 6, see ML21_Exercise_6.pdf for more information
# https://github.com/RomainClaret/msc.ml.labs
# Authors:
# - Romain Claret @RomainClaret
# - Sy... | 31.877049 | 109 | 0.735665 |
44339024d54ca9de139f09917b4ba6a7b238c654 | 17,294 | py | Python | plot_residuals_location.py | chriskjou/opennmt-inspection | c70e1f3665ed29b20abcf464e4c73aa7e228a046 | [
"MIT"
] | 2 | 2019-03-18T15:54:32.000Z | 2019-03-22T02:21:38.000Z | plot_residuals_location.py | chriskjou/opennmt-inspection | c70e1f3665ed29b20abcf464e4c73aa7e228a046 | [
"MIT"
] | 6 | 2020-01-28T22:48:37.000Z | 2020-08-17T16:09:03.000Z | plot_residuals_location.py | chriskjou/opennmt-inspection | c70e1f3665ed29b20abcf464e4c73aa7e228a046 | [
"MIT"
] | 1 | 2019-08-04T17:36:22.000Z | 2019-08-04T17:36:22.000Z | import numpy as np
import pickle
import sys
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
plt.switch_backend('agg')
import argparse
import os
from tqdm import tqdm
import math
import helper
map_dict = {
'avg': "Average",
'min': "Minimum",
'max': "Maximum",
'last': "Last",
"spanish": "... | 48.853107 | 237 | 0.6966 |
44348a202532b675204c5d619a14b8c76d684034 | 3,061 | py | Python | 13_week/pr12_1 .py | WoojaeJang/AppliedOptimization-Gurobi | 067e4e5a0391de74f673f935b0ba765b037a4149 | [
"AFL-1.1"
] | null | null | null | 13_week/pr12_1 .py | WoojaeJang/AppliedOptimization-Gurobi | 067e4e5a0391de74f673f935b0ba765b037a4149 | [
"AFL-1.1"
] | null | null | null | 13_week/pr12_1 .py | WoojaeJang/AppliedOptimization-Gurobi | 067e4e5a0391de74f673f935b0ba765b037a4149 | [
"AFL-1.1"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed May 26 10:28:54 2021
@author: woojae-macbook13
"""
from pandas import*
import pandas as pd
import numpy as np
# path = ".\\"
filename = "pr1.xlsx"
# dataset = pd.read_excel(path+filename)
dataset = pd.read_excel(filename)
order = ""
itemcode = "item... | 20.965753 | 100 | 0.601764 |
4434c59b9a9448ef9ebd0ccd1c34428d0cf3497c | 879 | py | Python | admin/migrations/0005_auto_20180416_1045.py | adelsonllima/djangoplus | a4ce50bf8231a0d9a4a40751f0d076c2e9931f44 | [
"BSD-3-Clause"
] | 21 | 2017-10-08T23:19:47.000Z | 2020-01-16T20:02:08.000Z | admin/migrations/0005_auto_20180416_1045.py | adelsonllima/djangoplus | a4ce50bf8231a0d9a4a40751f0d076c2e9931f44 | [
"BSD-3-Clause"
] | 6 | 2020-06-03T05:30:52.000Z | 2022-01-13T00:44:26.000Z | admin/migrations/0005_auto_20180416_1045.py | adelsonllima/djangoplus | a4ce50bf8231a0d9a4a40751f0d076c2e9931f44 | [
"BSD-3-Clause"
] | 9 | 2017-10-09T22:58:31.000Z | 2021-11-20T15:20:18.000Z | # Generated by Django 2.0.3 on 2018-04-16 10:45
from django.db import migrations
| 22.538462 | 47 | 0.523322 |
443586b918e80fa19a7a9248966f3748b23543dc | 468 | py | Python | loso/util.py | fangpenlin/loso | 8677ed754c793887dde10feb9a13dce25ea09f58 | [
"BSD-3-Clause"
] | 28 | 2017-03-21T09:04:41.000Z | 2021-06-13T06:19:51.000Z | loso/util.py | JoyCTsai/loso | 8677ed754c793887dde10feb9a13dce25ea09f58 | [
"BSD-3-Clause"
] | null | null | null | loso/util.py | JoyCTsai/loso | 8677ed754c793887dde10feb9a13dce25ea09f58 | [
"BSD-3-Clause"
] | 8 | 2017-07-23T06:04:49.000Z | 2021-12-25T02:27:45.000Z |
if __name__ == "__main__":
import doctest
doctest.testmod() | 29.25 | 71 | 0.472222 |
44360d34265fd7e06496bfa898e736b2d0b350b2 | 52,494 | py | Python | test_main.py | zlijingtao/DAC20_reconstruction | c928cda1c8e492c05110d6c219c1ed529924e127 | [
"Apache-2.0"
] | 2 | 2021-03-13T19:27:04.000Z | 2021-11-17T17:14:19.000Z | test_main.py | zlijingtao/DAC20_reconstruction | c928cda1c8e492c05110d6c219c1ed529924e127 | [
"Apache-2.0"
] | null | null | null | test_main.py | zlijingtao/DAC20_reconstruction | c928cda1c8e492c05110d6c219c1ed529924e127 | [
"Apache-2.0"
] | null | null | null | from __future__ import division
from __future__ import absolute_import
import os
import sys
import shutil
import time
import random
import argparse
import torch
import torch.backends.cudnn as cudnn
import torchvision.datasets as dset
import torchvision.transforms as transforms
import matplotlib.pyplot as plt
from torc... | 48.560592 | 364 | 0.600792 |
443700d8d4a4dfd52eed31c8fee8a0bf946c135c | 6,753 | py | Python | fbnet/command_runner/device_info.py | singhaditya28/FCR | d582cc38a87940f799186e1a35637343b4ced3bd | [
"MIT"
] | null | null | null | fbnet/command_runner/device_info.py | singhaditya28/FCR | d582cc38a87940f799186e1a35637343b4ced3bd | [
"MIT"
] | null | null | null | fbnet/command_runner/device_info.py | singhaditya28/FCR | d582cc38a87940f799186e1a35637343b4ced3bd | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import itertools
import re
from collections import namedtuple
from .base_service import Servi... | 28.858974 | 79 | 0.606101 |