hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
c0008a22baca00584adf6ac2a3f849b58fa45823
2,147
py
Python
lib/rucio/db/sqla/migrate_repo/versions/22d887e4ec0a_create_sources_table.py
brianv0/rucio
127a36fd53e5b4d9eb14ab02fe6c36443d78bfd0
[ "Apache-2.0" ]
null
null
null
lib/rucio/db/sqla/migrate_repo/versions/22d887e4ec0a_create_sources_table.py
brianv0/rucio
127a36fd53e5b4d9eb14ab02fe6c36443d78bfd0
[ "Apache-2.0" ]
null
null
null
lib/rucio/db/sqla/migrate_repo/versions/22d887e4ec0a_create_sources_table.py
brianv0/rucio
127a36fd53e5b4d9eb14ab02fe6c36443d78bfd0
[ "Apache-2.0" ]
null
null
null
# Copyright European Organization for Nuclear Research (CERN) # # 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 # # Authors: # - Vincent Garonne, <vin...
39.759259
133
0.633442
0
0
0
0
0
0
0
0
1,086
0.505822
c000ce6357216e513a1258f8b804cf4a615522f7
4,024
py
Python
algorithms/FdGars/FdGars_main.py
ss1004124654/DGFraud-TF2
18c2bcc03e850afb7d9b507464b366cad30d675f
[ "Apache-2.0" ]
51
2021-05-24T08:38:52.000Z
2022-03-28T13:14:21.000Z
algorithms/FdGars/FdGars_main.py
aqeelferoze/DGFraud-TF2
18c2bcc03e850afb7d9b507464b366cad30d675f
[ "Apache-2.0" ]
6
2021-06-20T05:21:19.000Z
2022-02-26T21:58:25.000Z
algorithms/FdGars/FdGars_main.py
aqeelferoze/DGFraud-TF2
18c2bcc03e850afb7d9b507464b366cad30d675f
[ "Apache-2.0" ]
18
2021-06-01T12:36:51.000Z
2022-03-30T15:18:34.000Z
""" This code is attributed to Yingtong Dou (@YingtongDou) and UIC BDSC Lab DGFraud (A Deep Graph-based Toolbox for Fraud Detection in TensorFlow 2.X) https://github.com/safe-graph/DGFraud-TF2 """ import argparse import numpy as np from tqdm import tqdm import tensorflow as tf from tensorflow.keras import optimizers ...
36.917431
79
0.671223
0
0
0
0
0
0
0
0
1,194
0.29672
c0014ae28f168834414c0db2df301fe99732fb5d
849
py
Python
problem3a.py
mvignoul/phys218_example
de40ca54ecaa493c171a7f032bcc2c50ad929a64
[ "MIT" ]
null
null
null
problem3a.py
mvignoul/phys218_example
de40ca54ecaa493c171a7f032bcc2c50ad929a64
[ "MIT" ]
null
null
null
problem3a.py
mvignoul/phys218_example
de40ca54ecaa493c171a7f032bcc2c50ad929a64
[ "MIT" ]
null
null
null
""" find the Schwarzschild radius of the Sun in m using pint""" import pint class Sun: """ Class to describe a star based on its mass in terms of solar masses """ def __init__(self, mass): self.ureg = pint.UnitRegistry() self.ureg.define("Msolar = 1.98855*10**30 * kilogram") self.mass ...
29.275862
79
0.63722
537
0.632509
0
0
0
0
0
0
285
0.335689
c00233a09c18a5f027b1634d9d3dd63a23d04cbb
1,009
py
Python
morpfw/authn/pas/user/rulesprovider.py
morpframework/morpfw
b867e5809d6c52e8839586670a29fcd179ce64c7
[ "Apache-2.0" ]
8
2018-12-08T01:41:58.000Z
2020-12-21T15:30:12.000Z
morpfw/authn/pas/user/rulesprovider.py
morpframework/morpfw
b867e5809d6c52e8839586670a29fcd179ce64c7
[ "Apache-2.0" ]
17
2019-02-05T15:01:32.000Z
2020-04-28T16:17:42.000Z
morpfw/authn/pas/user/rulesprovider.py
morpframework/morpfw
b867e5809d6c52e8839586670a29fcd179ce64c7
[ "Apache-2.0" ]
2
2018-12-08T05:03:37.000Z
2019-03-20T07:15:21.000Z
from ....crud.rulesprovider.base import RulesProvider from .. import exc from ..app import App from ..utils import has_role from .model import UserCollection, UserModel class UserRulesProvider(RulesProvider): context: UserModel def change_password(self, password: str, new_password: str, secure: bool = True)...
34.793103
87
0.718533
724
0.717542
0
0
110
0.109019
0
0
30
0.029732
c003ee8ec790d27dd3cd5b33bab3613edcd51ffa
1,523
py
Python
dsa_extras/library/codec_code/huffman.py
palette-swapped-serra/dsa-extras
99544453da510b886b2a4c47cf2eceabee329cd2
[ "Unlicense" ]
1
2020-08-24T00:26:08.000Z
2020-08-24T00:26:08.000Z
dsa_extras/library/codec_code/huffman.py
palette-swapped-serra/dsa-extras
99544453da510b886b2a4c47cf2eceabee329cd2
[ "Unlicense" ]
null
null
null
dsa_extras/library/codec_code/huffman.py
palette-swapped-serra/dsa-extras
99544453da510b886b2a4c47cf2eceabee329cd2
[ "Unlicense" ]
null
null
null
from dsa.parsing.line_parsing import line_parser from dsa.parsing.token_parsing import make_parser _parser = line_parser( 'Huffman table entry', make_parser( 'Huffman table entry data', ('integer', 'encoded bit sequence'), ('hexdump', 'decoded bytes') ) ) class Huff...
26.258621
67
0.54432
1,205
0.791202
625
0.410374
0
0
0
0
165
0.108339
c005b37d484c98345b8c20c5521de817a98327d9
891
py
Python
src/fake_news_detector/core/data_process/exploration.py
elena20ruiz/FNC
163cabc245a645e4b39fc328e988cfc765082a22
[ "Apache-2.0" ]
4
2018-10-04T13:10:40.000Z
2020-10-02T09:12:50.000Z
src/fake_news_detector/core/data_process/exploration.py
elena20ruiz/FNC
163cabc245a645e4b39fc328e988cfc765082a22
[ "Apache-2.0" ]
15
2018-12-14T20:08:28.000Z
2019-01-07T22:52:43.000Z
src/fake_news_detector/core/data_process/exploration.py
FNClassificator/FNC
163cabc245a645e4b39fc328e988cfc765082a22
[ "Apache-2.0" ]
null
null
null
def split_in_three(data_real, data_fake): min_v = min(data_fake.min(), data_real.min()) max_v = max(data_fake.max(), data_real.max()) tercio = (max_v - min_v) / 3 # Calculate 1/3 th_one = min_v + tercio # Calculate 2/3 th_two = max_v - tercio first_f, second_f, third_f = split_data(th_...
28.741935
70
0.613917
0
0
0
0
0
0
0
0
30
0.03367
c006629acd80aec892cca41444a68366c027a55b
6,486
py
Python
evap/evaluation/tests/test_auth.py
Sohn123/EvaP
8b0ba8365cb673ef59829cf8db5ab829472a9c58
[ "MIT" ]
null
null
null
evap/evaluation/tests/test_auth.py
Sohn123/EvaP
8b0ba8365cb673ef59829cf8db5ab829472a9c58
[ "MIT" ]
null
null
null
evap/evaluation/tests/test_auth.py
Sohn123/EvaP
8b0ba8365cb673ef59829cf8db5ab829472a9c58
[ "MIT" ]
null
null
null
from unittest.mock import patch import urllib from django.urls import reverse from django.core import mail from django.conf import settings from django.test import override_settings from model_bakery import baker from evap.evaluation import auth from evap.evaluation.models import Contribution, Evaluation, UserProfil...
47
130
0.707216
6,113
0.942492
0
0
3,310
0.51033
0
0
1,534
0.236509
c006bcd2ec1c5a47b7a93378891b836502179c96
1,827
py
Python
gwd/converters/spike2kaggle.py
kazakh-shai/kaggle-global-wheat-detection
b26295ea257f73089f1a067b70b4a7ee638f6b83
[ "Apache-2.0" ]
136
2020-08-24T08:18:16.000Z
2022-03-31T13:45:12.000Z
gwd/converters/spike2kaggle.py
kazakh-shai/kaggle-global-wheat-detection
b26295ea257f73089f1a067b70b4a7ee638f6b83
[ "Apache-2.0" ]
5
2020-10-07T08:44:36.000Z
2021-12-17T06:00:57.000Z
gwd/converters/spike2kaggle.py
kazakh-shai/kaggle-global-wheat-detection
b26295ea257f73089f1a067b70b4a7ee638f6b83
[ "Apache-2.0" ]
28
2020-08-24T11:07:07.000Z
2022-01-01T13:07:54.000Z
import argparse import os.path as osp from glob import glob import cv2 import pandas as pd from tqdm import tqdm from gwd.converters import kaggle2coco def parse_args(): parser = argparse.ArgumentParser() parser.add_argument("--image-pattern", default="/data/SPIKE_images/*jpg") parser.add_argument("--an...
38.0625
111
0.642036
0
0
0
0
0
0
0
0
488
0.267105
c008713b35128a47b245f9ad063e4cc7dcc2e046
5,090
py
Python
shuttl/tests/test_views/test_organization.py
shuttl-io/shuttl-cms
50c85db0de42e901c371561270be6425cc65eccc
[ "MIT" ]
2
2017-06-26T18:06:58.000Z
2017-10-11T21:45:29.000Z
shuttl/tests/test_views/test_organization.py
shuttl-io/shuttl-cms
50c85db0de42e901c371561270be6425cc65eccc
[ "MIT" ]
null
null
null
shuttl/tests/test_views/test_organization.py
shuttl-io/shuttl-cms
50c85db0de42e901c371561270be6425cc65eccc
[ "MIT" ]
null
null
null
import json from shuttl import app from shuttl.tests import testbase from shuttl.Models.Reseller import Reseller from shuttl.Models.organization import Organization, OrganizationDoesNotExistException class OrganizationViewTest(testbase.BaseTest): def _setUp(self): pass def test_index(self): #...
40.72
117
0.621022
4,881
0.958939
0
0
0
0
0
0
760
0.149312
c00b0d921904cae0f3219c2a2df1410ec3c0ae18
3,477
py
Python
emissary/controllers/load.py
LukeB42/Emissary
31629a8baedc91a9b60c551a01b2b45372b9a8c7
[ "MIT" ]
193
2015-06-20T23:46:05.000Z
2021-02-16T14:04:29.000Z
emissary/controllers/load.py
LukeB42/Emissary
31629a8baedc91a9b60c551a01b2b45372b9a8c7
[ "MIT" ]
4
2015-08-23T15:25:55.000Z
2016-01-06T11:29:20.000Z
emissary/controllers/load.py
LukeB42/Emissary
31629a8baedc91a9b60c551a01b2b45372b9a8c7
[ "MIT" ]
21
2015-07-05T12:20:06.000Z
2019-07-12T08:07:46.000Z
# This file contains functions designed for # loading cron tables and storing new feeds. from emissary import db from sqlalchemy import and_ from emissary.controllers.utils import spaceparse from emissary.controllers.cron import parse_timings from emissary.models import APIKey, Feed, FeedGroup def create_feed(log, db...
27.816
91
0.6543
0
0
0
0
0
0
0
0
1,288
0.370434
c00f497cdfab4a0df082b81815ffb6293fc4eaf2
7,661
py
Python
vodgen/main.py
Oveof/Vodgen
3e4b9a715f385b76dc34d82ac188b6d3db170957
[ "MIT" ]
null
null
null
vodgen/main.py
Oveof/Vodgen
3e4b9a715f385b76dc34d82ac188b6d3db170957
[ "MIT" ]
10
2021-11-30T22:01:30.000Z
2022-03-18T14:50:08.000Z
vodgen/main.py
Oveof/Vodgen
3e4b9a715f385b76dc34d82ac188b6d3db170957
[ "MIT" ]
null
null
null
"""Vodgen app""" from msilib.schema import Directory import sys import json import re from PyQt5.QtWidgets import (QApplication, QCheckBox, QComboBox, QFileDialog, QLabel, QLineEdit, QMainWindow, QPlainTextEdit, QPushButton, QVBoxLayout, QWidget) from videocutter import create_video from thumbnail import Thumbnail,...
38.497487
150
0.638951
5,109
0.666623
0
0
0
0
0
0
1,250
0.1631
c01048af256422693f245a8c170084866f81cf42
1,733
py
Python
bin/plpproject.py
stefanct/pulp-tools
63a05d59908534ad01133d0111e181fa69d00ce3
[ "Apache-2.0" ]
2
2018-02-09T08:12:34.000Z
2020-06-16T17:45:33.000Z
bin/plpproject.py
stefanct/pulp-tools
63a05d59908534ad01133d0111e181fa69d00ce3
[ "Apache-2.0" ]
2
2018-02-09T07:54:32.000Z
2018-03-09T08:51:31.000Z
bin/plpproject.py
stefanct/pulp-tools
63a05d59908534ad01133d0111e181fa69d00ce3
[ "Apache-2.0" ]
6
2018-03-08T11:12:22.000Z
2019-12-05T12:36:47.000Z
# # Copyright (C) 2018 ETH Zurich and University of Bologna # # 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...
23.739726
74
0.705713
1,078
0.622043
0
0
0
0
0
0
593
0.342181
c011388324be1ffe30d4e8f33cf11884af58be55
300
py
Python
leetcode/268_missing_number/268_missing_number.py
ryangillard/misc
d1f9919400636e6b988fa933493b94829a73331e
[ "Apache-2.0" ]
null
null
null
leetcode/268_missing_number/268_missing_number.py
ryangillard/misc
d1f9919400636e6b988fa933493b94829a73331e
[ "Apache-2.0" ]
null
null
null
leetcode/268_missing_number/268_missing_number.py
ryangillard/misc
d1f9919400636e6b988fa933493b94829a73331e
[ "Apache-2.0" ]
null
null
null
class Solution(object): def missingNumber(self, nums): """ :type nums: List[int] :rtype: int """ nums_set = set(nums) full_length = len(nums) + 1 for num in range(full_length): if num not in nums_set: return num
25
38
0.503333
300
1
0
0
0
0
0
0
65
0.216667
c0115ad71776b57663adb5064185c84d654f136a
5,177
py
Python
tests/shell/test_console.py
svidoso/ipopo
1d4b81207e67890dfccc8f562336c7104f194c17
[ "Apache-2.0" ]
65
2015-04-21T10:41:18.000Z
2022-01-02T16:25:40.000Z
tests/shell/test_console.py
svidoso/ipopo
1d4b81207e67890dfccc8f562336c7104f194c17
[ "Apache-2.0" ]
85
2015-01-20T14:23:52.000Z
2022-02-19T17:08:46.000Z
tests/shell/test_console.py
svidoso/ipopo
1d4b81207e67890dfccc8f562336c7104f194c17
[ "Apache-2.0" ]
32
2015-03-13T07:43:05.000Z
2020-04-24T07:56:53.000Z
#!/usr/bin/env python # -- Content-Encoding: UTF-8 -- """ Tests the shell console :author: Thomas Calmant """ # Pelix from pelix.utilities import to_str, to_bytes # Standard library import random import string import sys import threading import time # Tests try: import unittest2 as unittest except ImportError: ...
30.633136
80
0.459533
4,388
0.847595
0
0
259
0.050029
0
0
1,398
0.270041
c01227c807be8c1f87a3e23c71237c6860b77b30
708
py
Python
src/util/utils.py
5agado/intro-ai
dfb7cd636ad8f8ac2d88053f9d3f279730b8608a
[ "Apache-2.0" ]
3
2015-11-07T14:45:20.000Z
2018-01-27T13:06:25.000Z
src/util/utils.py
5agado/intro-ai
dfb7cd636ad8f8ac2d88053f9d3f279730b8608a
[ "Apache-2.0" ]
null
null
null
src/util/utils.py
5agado/intro-ai
dfb7cd636ad8f8ac2d88053f9d3f279730b8608a
[ "Apache-2.0" ]
null
null
null
import os import math def dotProduct(v1, v2): return sum(x * y for x, y in zip(v1, v2)) def sigmoid(x): return 1.0 / (1.0 + math.exp(-x)) def getResourcesPath(): return os.path.abspath(os.path.join(os.path.dirname( __file__ ), os.pardir, 'resources')) def readTrainModel(filePath, num...
27.230769
94
0.577684
0
0
0
0
0
0
0
0
23
0.032486
c0126570af4c13122b92f578f7e7cd7fb226531b
3,530
py
Python
scripts/models/xgboost/test-xgboost_tuning3.py
jmquintana79/utilsDS
1693810b6f10024542b30fdfedbfcd0518f32945
[ "MIT" ]
null
null
null
scripts/models/xgboost/test-xgboost_tuning3.py
jmquintana79/utilsDS
1693810b6f10024542b30fdfedbfcd0518f32945
[ "MIT" ]
null
null
null
scripts/models/xgboost/test-xgboost_tuning3.py
jmquintana79/utilsDS
1693810b6f10024542b30fdfedbfcd0518f32945
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Author: Juan Quintana # @Date: 2018-09-26 10:01:02 # @Last Modified by: Juan Quintana # @Last Modified time: 2018-09-26 16:04:24 """ XGBOOST Regressor with Bayesian tuning: OPTION 3 In this case it will be used hyperopt-sklearn and his native algorithm "xgboost_regression". NOTE: sciki...
32.990654
113
0.654958
0
0
0
0
0
0
0
0
1,200
0.339943
c0128df7aa9cde7c55a1d29edac835d168b71fd9
719
py
Python
EstruturaDeRepeticao/exercicio32.py
Nicolas-Wursthorn/exercicios-python-brasil
b2b564d48b519be04643636033ec0815e6d99ea1
[ "MIT" ]
null
null
null
EstruturaDeRepeticao/exercicio32.py
Nicolas-Wursthorn/exercicios-python-brasil
b2b564d48b519be04643636033ec0815e6d99ea1
[ "MIT" ]
null
null
null
EstruturaDeRepeticao/exercicio32.py
Nicolas-Wursthorn/exercicios-python-brasil
b2b564d48b519be04643636033ec0815e6d99ea1
[ "MIT" ]
null
null
null
# O Departamento Estadual de Meteorologia lhe contratou para desenvolver um programa que leia as um conjunto indeterminado de temperaturas, e informe ao final a menor e a maior temperaturas informadas, bem como a média das temperaturas. temperaturas = [] while True: graus = float(input("Digite a temperatura em gr...
47.933333
236
0.709318
0
0
0
0
0
0
0
0
409
0.564917
c012b837e3e30a6eafa5b481e3b7199fb7fec744
369
py
Python
src/utils/tools.py
Xuenew/2c
2e6ada011bcc8bbe19d2e745fcc9eff1fc31a520
[ "Apache-2.0" ]
null
null
null
src/utils/tools.py
Xuenew/2c
2e6ada011bcc8bbe19d2e745fcc9eff1fc31a520
[ "Apache-2.0" ]
null
null
null
src/utils/tools.py
Xuenew/2c
2e6ada011bcc8bbe19d2e745fcc9eff1fc31a520
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Created by howie.hu at 2021/4/7. Description:通用函数 Changelog: all notable changes to this file will be documented """ import hashlib def md5_encryption(string: str) -> str: """ 对字符串进行md5加密 :param string: 加密目标字符串 :return: """ m = hashlib.md5() m.update(...
18.45
66
0.631436
0
0
0
0
0
0
0
0
267
0.652812
c0145129a570eee9c990a840954e93502103b3c8
14,612
py
Python
anaconda-mode/0.1.13/jedi-0.15.1-py3.7.egg/jedi/evaluate/gradual/annotation.py
space-scl/emacs.d
6285c38714023b72a023fe24cbcb5e4fcdcdb949
[ "Apache-2.0" ]
2
2020-09-30T00:11:09.000Z
2021-10-04T13:00:38.000Z
anaconda-mode/0.1.13/jedi-0.15.1-py3.7.egg/jedi/evaluate/gradual/annotation.py
space-scl/emacs.d
6285c38714023b72a023fe24cbcb5e4fcdcdb949
[ "Apache-2.0" ]
10
2020-05-11T20:29:28.000Z
2022-01-13T01:41:27.000Z
anaconda-mode/0.1.13/jedi-0.15.1-py3.7.egg/jedi/evaluate/gradual/annotation.py
space-scl/emacs.d
6285c38714023b72a023fe24cbcb5e4fcdcdb949
[ "Apache-2.0" ]
1
2020-01-25T20:08:59.000Z
2020-01-25T20:08:59.000Z
""" PEP 0484 ( https://www.python.org/dev/peps/pep-0484/ ) describes type hints through function annotations. There is a strong suggestion in this document that only the type of type hinting defined in PEP0484 should be allowed as annotations in future python versions. """ import re from parso import ParserSyntaxErro...
35.990148
94
0.638653
0
0
307
0.02101
2,289
0.156652
0
0
2,797
0.191418
c01466f2b1b58f8291be4e054c30cb12aa407427
326
py
Python
string_30.py
Technicoryx/python_strings_inbuilt_functions
78892d043c6c6d65affe3bd4906ba0162c5d6604
[ "MIT" ]
null
null
null
string_30.py
Technicoryx/python_strings_inbuilt_functions
78892d043c6c6d65affe3bd4906ba0162c5d6604
[ "MIT" ]
null
null
null
string_30.py
Technicoryx/python_strings_inbuilt_functions
78892d043c6c6d65affe3bd4906ba0162c5d6604
[ "MIT" ]
null
null
null
"""Below Python Programme demonstrate rpartition functions in a string""" string = "Python is fun" # 'is' separator is found print(string.rpartition('is ')) # 'not' separator is not found print(string.rpartition('not ')) string = "Python is fun, isn't it" # splits at last occurence of 'is' print(string.rpartition('...
21.733333
48
0.717791
0
0
0
0
0
0
0
0
217
0.665644
c014e0fef503433734848ae3b6b9307338d2ae08
4,583
py
Python
env/lib/python3.8/site-packages/unidecode/x054.py
avdhari/enigma
b7e965a91ca5f0e929c4c719d695f15ccb8b5a2c
[ "MIT" ]
48
2021-11-20T08:17:53.000Z
2022-03-19T13:57:15.000Z
venv/lib/python3.6/site-packages/unidecode/x054.py
mrsaicharan1/iiita-updates
a22a0157b90d29b946d0f020e5f76744f73a6bff
[ "Apache-2.0" ]
392
2015-07-30T14:37:05.000Z
2022-03-21T16:56:09.000Z
venv/lib/python3.6/site-packages/unidecode/x054.py
mrsaicharan1/iiita-updates
a22a0157b90d29b946d0f020e5f76744f73a6bff
[ "Apache-2.0" ]
15
2015-10-01T21:31:08.000Z
2020-05-05T00:03:27.000Z
data = ( 'Mie ', # 0x00 'Xu ', # 0x01 'Mang ', # 0x02 'Chi ', # 0x03 'Ge ', # 0x04 'Xuan ', # 0x05 'Yao ', # 0x06 'Zi ', # 0x07 'He ', # 0x08 'Ji ', # 0x09 'Diao ', # 0x0a 'Cun ', # 0x0b 'Tong ', # 0x0c 'Ming ', # 0x0d 'Hou ', # 0x0e 'Li ', # 0x0f 'Tu ', # 0x10 'Xiang ...
17.694981
19
0.382064
0
0
0
0
0
0
0
0
3,036
0.662448
c0176451a4af477e1653a56580ea468230721ad1
2,023
py
Python
merge_sort.py
BCLaird/refreshers
135e21fdb4396d7b2c558cb08b7e9abf9db7c768
[ "Unlicense" ]
null
null
null
merge_sort.py
BCLaird/refreshers
135e21fdb4396d7b2c558cb08b7e9abf9db7c768
[ "Unlicense" ]
null
null
null
merge_sort.py
BCLaird/refreshers
135e21fdb4396d7b2c558cb08b7e9abf9db7c768
[ "Unlicense" ]
null
null
null
import sys import unittest def merge(nums1, nums2): """ :param nums1: Sorted list of numbers. :param nums2: Sorted list of numbers. :return: Combined sorted list of numbers. """ merged = list() while len(nums1) != 0 and len(nums2) != 0: if nums1[0] <= nums2[0]: merged...
25.2875
68
0.565991
955
0.472071
0
0
0
0
0
0
327
0.161641
c017dec4951ea873a5632989e93e1321faa87a5d
1,548
py
Python
tests/test_utils/test_textio.py
hongxuenong/mmocr
e8e3a059f8f2e4fca96af37751c33563fc48e2ba
[ "Apache-2.0" ]
2,261
2021-04-08T03:45:41.000Z
2022-03-31T23:37:46.000Z
tests/test_utils/test_textio.py
hongxuenong/mmocr
e8e3a059f8f2e4fca96af37751c33563fc48e2ba
[ "Apache-2.0" ]
789
2021-04-08T05:40:13.000Z
2022-03-31T09:42:39.000Z
tests/test_utils/test_textio.py
hongxuenong/mmocr
e8e3a059f8f2e4fca96af37751c33563fc48e2ba
[ "Apache-2.0" ]
432
2021-04-08T03:56:16.000Z
2022-03-30T18:44:43.000Z
# Copyright (c) OpenMMLab. All rights reserved. import tempfile from mmocr.utils import list_from_file, list_to_file lists = [ [], [' '], ['\t'], ['a'], [1], [1.], ['a', 'b'], ['a', 1, 1.], [1, 1., 'a'], ['啊', '啊啊'], ['選択', 'noël', 'Информацией', 'ÄÆä'], ] def test_list_t...
32.25
77
0.505168
0
0
0
0
0
0
0
0
240
0.152575
c01a0bc60c407d254aecde1ca9086a30bc750870
2,638
py
Python
License Plate Detection.py
jairajsahgal/License_Plate_and_Face_Recognition
6a9762f2ca90730e828b3d256418b073b9e80cb0
[ "Apache-2.0" ]
null
null
null
License Plate Detection.py
jairajsahgal/License_Plate_and_Face_Recognition
6a9762f2ca90730e828b3d256418b073b9e80cb0
[ "Apache-2.0" ]
null
null
null
License Plate Detection.py
jairajsahgal/License_Plate_and_Face_Recognition
6a9762f2ca90730e828b3d256418b073b9e80cb0
[ "Apache-2.0" ]
null
null
null
import cv2 from Text_Detection import detect_characters, detect_string, detect_words import re from live_recognition import facial_recognition # def rescale_frame(frame, percent=75): width = int(frame.shape[1] * percent/ 100) height = int(frame.shape[0] * percent/ 100) dim = (width, height) ret...
41.873016
338
0.559515
0
0
0
0
0
0
0
0
692
0.26232
c01a696f221a5d8d2da0a1df4899941c79bacd5a
17,268
py
Python
LogParser/LTEV2.py
a22057916w/python_advance
c964ad3237b503f5ef83e1add12d8007113690b1
[ "MIT" ]
null
null
null
LogParser/LTEV2.py
a22057916w/python_advance
c964ad3237b503f5ef83e1add12d8007113690b1
[ "MIT" ]
null
null
null
LogParser/LTEV2.py
a22057916w/python_advance
c964ad3237b503f5ef83e1add12d8007113690b1
[ "MIT" ]
null
null
null
##! python3 ##============================================================================== ## Copyright (c) 2021 COMPAL Electronic Inc. All rights reserved. ## This program contains proprietary and confidential information. ## All rights reserved except as may be permitted by prior written consent. ## ## ...
47.180328
154
0.527044
14,502
0.83943
0
0
0
0
0
0
6,085
0.352223
c01a9c714b265a55e25bf66dffd00ac40d13d9db
1,504
py
Python
cnn/test2.py
INFINITSY/darts
684f97e407ee044a14c375f4a3078398a4b802bc
[ "Apache-2.0" ]
null
null
null
cnn/test2.py
INFINITSY/darts
684f97e407ee044a14c375f4a3078398a4b802bc
[ "Apache-2.0" ]
null
null
null
cnn/test2.py
INFINITSY/darts
684f97e407ee044a14c375f4a3078398a4b802bc
[ "Apache-2.0" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np # darts_025 = [0, 0, 0, 0, 2, 5, 6, 7, 8] darts_025 = [0, 0, 0, 2, 3, 5, 7, 8] darts_05 = [0, 0, 3, 3, 4, 4, 5, 7, 7] adas_025_9 = [0, 0, 0, 0, 3, 5, 7] adas_05_9 = [0, 0, 1, 4, 5, 6, 6, 7, 7, 7, 7] adas_05_95 = [] adas_05_97 = [0, 0, 0, 2, 4, 4, 4, 4, 4, 6, 8] mile ...
44.235294
108
0.571809
0
0
0
0
0
0
0
0
610
0.405585
c01b7158b50aafc1ed3b64cfb1feeaebd488a0fb
21,040
py
Python
great_international/panels/capital_invest.py
uktrade/directory-cms
8c8d13ce29ea74ddce7a40f3dd29c8847145d549
[ "MIT" ]
6
2018-03-20T11:19:07.000Z
2021-10-05T07:53:11.000Z
great_international/panels/capital_invest.py
uktrade/directory-cms
8c8d13ce29ea74ddce7a40f3dd29c8847145d549
[ "MIT" ]
802
2018-02-05T14:16:13.000Z
2022-02-10T10:59:21.000Z
great_international/panels/capital_invest.py
uktrade/directory-cms
8c8d13ce29ea74ddce7a40f3dd29c8847145d549
[ "MIT" ]
6
2019-01-22T13:19:37.000Z
2019-07-01T10:35:26.000Z
from wagtail.admin.edit_handlers import ( InlinePanel, HelpPanel, FieldPanel, FieldRowPanel, MultiFieldPanel, PageChooserPanel, ) from wagtail.documents.edit_handlers import DocumentChooserPanel from wagtail.images.edit_handlers import ImageChooserPanel from core.helpers import make_translated_interface from c...
37.841727
117
0.506369
20,654
0.981654
0
0
0
0
0
0
6,469
0.307462
c01b9112e0f0afc9d0edfc412d08f777b3d1b9d7
137
py
Python
_6_EXERCISE_BASIC SYNTAX, CONDITIONAL STATEMENTS AND LOOPS/_7_Maximum_Multiple.py
YordanPetrovDS/Python_Fundamentals
81163054cd3ac780697eaa43f099cc455f253a0c
[ "MIT" ]
null
null
null
_6_EXERCISE_BASIC SYNTAX, CONDITIONAL STATEMENTS AND LOOPS/_7_Maximum_Multiple.py
YordanPetrovDS/Python_Fundamentals
81163054cd3ac780697eaa43f099cc455f253a0c
[ "MIT" ]
null
null
null
_6_EXERCISE_BASIC SYNTAX, CONDITIONAL STATEMENTS AND LOOPS/_7_Maximum_Multiple.py
YordanPetrovDS/Python_Fundamentals
81163054cd3ac780697eaa43f099cc455f253a0c
[ "MIT" ]
null
null
null
divisor = int(input()) bound = int(input()) for num in range(bound, 0, -1): if num % divisor == 0: print(num) break
17.125
31
0.540146
0
0
0
0
0
0
0
0
0
0
c01c83fcecb0cd27f766c4572561b04ffed5866c
595
py
Python
Task1C.py
benkw26/IA-Flood-Warning-Project
ded20ebd52f4d328d7437682cffebf6843d26aa3
[ "MIT" ]
null
null
null
Task1C.py
benkw26/IA-Flood-Warning-Project
ded20ebd52f4d328d7437682cffebf6843d26aa3
[ "MIT" ]
null
null
null
Task1C.py
benkw26/IA-Flood-Warning-Project
ded20ebd52f4d328d7437682cffebf6843d26aa3
[ "MIT" ]
null
null
null
from floodsystem.geo import stations_within_radius from floodsystem.stationdata import build_station_list def run(): """Requirements for Task 1C""" # Build list of stations stations = build_station_list() # Store the coordinates of Cambridge City Centre CambCoord = (52.2053, 0.1218) #store the...
31.315789
75
0.719328
0
0
0
0
0
0
0
0
187
0.314286
c01ee7097d54131caabca59efa7cd0ede8253fd5
2,072
py
Python
fixture/project.py
Sashatq/bugtrack
ce8bcac2b9041b5ea34de30a10a3431fc62ec21a
[ "Apache-2.0" ]
null
null
null
fixture/project.py
Sashatq/bugtrack
ce8bcac2b9041b5ea34de30a10a3431fc62ec21a
[ "Apache-2.0" ]
null
null
null
fixture/project.py
Sashatq/bugtrack
ce8bcac2b9041b5ea34de30a10a3431fc62ec21a
[ "Apache-2.0" ]
null
null
null
from model.objects import Objects import time class ProjectHelper: def __init__(self, app): self.app = app project_cache = None def get_project_list(self): if self.project_cache is None: wd = self.app.wd self.open_manage_project_page() self.project_ca...
37
95
0.639479
2,023
0.976351
0
0
0
0
0
0
289
0.139479
c0200d7fd7135bdc552ee8dcbd7eedcc4a90fd2d
4,597
py
Python
john_doe/cities/hungary.py
xioren/JohnDoe
4bd16f394709cac246438c8ffd650b4b301cb2b7
[ "MIT" ]
null
null
null
john_doe/cities/hungary.py
xioren/JohnDoe
4bd16f394709cac246438c8ffd650b4b301cb2b7
[ "MIT" ]
null
null
null
john_doe/cities/hungary.py
xioren/JohnDoe
4bd16f394709cac246438c8ffd650b4b301cb2b7
[ "MIT" ]
null
null
null
cities = [ 'Budapest', 'Debrecen', 'Miskolc', 'Szeged', 'Pecs', 'Zuglo', 'Gyor', 'Nyiregyhaza', 'Kecskemet', 'Szekesfehervar', 'Szombathely', 'Jozsefvaros', 'Paradsasvar', 'Szolnok', 'Tatabanya', 'Kaposvar', 'Bekescsaba', 'Erd', 'Veszprem', ...
16.301418
24
0.513161
0
0
0
0
0
0
0
0
2,911
0.633239
c02010efda9ce4c421135232fa4f140efb168b1f
969
py
Python
carbon0/carbon_quiz/migrations/0010_auto_20200909_0853.py
Carbon0-Games/carbon0-web-app
068a7223b2717d602944ec561adcde39930cba85
[ "MIT" ]
2
2020-10-30T15:07:28.000Z
2020-12-22T04:29:50.000Z
carbon0/carbon_quiz/migrations/0010_auto_20200909_0853.py
Carbon0-Games/carbon0-web-app
068a7223b2717d602944ec561adcde39930cba85
[ "MIT" ]
45
2020-09-22T12:47:55.000Z
2022-03-12T00:48:18.000Z
carbon0/carbon_quiz/migrations/0010_auto_20200909_0853.py
Carbon0-Games/carbon0-web-app
068a7223b2717d602944ec561adcde39930cba85
[ "MIT" ]
1
2020-09-08T15:48:13.000Z
2020-09-08T15:48:13.000Z
# Generated by Django 3.1.1 on 2020-09-09 12:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("carbon_quiz", "0009_auto_20200908_2201"), ] operations = [ migrations.RemoveField( model_name="mission", name="descr...
25.5
79
0.522188
876
0.904025
0
0
0
0
0
0
245
0.252838
c02051ed0ef783ea63f4159e47ac37ce14107e5a
353
py
Python
wstack/cli/input.py
CCSGroupInternational/wstack
3b6d75cc6897a0e33d9a3ebb20a2f1642205d51e
[ "Apache-2.0" ]
null
null
null
wstack/cli/input.py
CCSGroupInternational/wstack
3b6d75cc6897a0e33d9a3ebb20a2f1642205d51e
[ "Apache-2.0" ]
null
null
null
wstack/cli/input.py
CCSGroupInternational/wstack
3b6d75cc6897a0e33d9a3ebb20a2f1642205d51e
[ "Apache-2.0" ]
null
null
null
import json from ..webstack import run as webstack_run def process(json_file_list): for json_filename in json_file_list: with open(json_filename) as json_file: json_data = json.load(json_file) webstack_data = json_data.get('webstack', None) if webstack_data: ...
29.416667
59
0.668555
0
0
0
0
0
0
0
0
10
0.028329
c02268e8d6e0cd77362adcfa474291e89d12f983
4,396
py
Python
imgtags.py
Donearm/scripts
ad3429dc4b69e6108f538bf1656216c7a192c9fd
[ "OML" ]
25
2015-02-23T00:07:14.000Z
2022-03-27T01:57:41.000Z
imgtags.py
Donearm/scripts
ad3429dc4b69e6108f538bf1656216c7a192c9fd
[ "OML" ]
null
null
null
imgtags.py
Donearm/scripts
ad3429dc4b69e6108f538bf1656216c7a192c9fd
[ "OML" ]
7
2015-11-25T22:04:37.000Z
2020-02-18T22:11:09.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # Copyright (c) 2011-2019, Gianluca Fiore # # 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 # ...
33.30303
110
0.526615
0
0
0
0
0
0
0
0
1,841
0.41879
c024a36ba5d1c4863b44768937e8d76c18a7d61a
4,344
py
Python
notes-to-self/trace.py
guilledk/trio
d09c21df3ffe401ee4314d869d82a886bd776e3c
[ "Apache-2.0", "MIT" ]
4,681
2017-03-10T22:38:41.000Z
2022-03-31T11:47:44.000Z
notes-to-self/trace.py
guilledk/trio
d09c21df3ffe401ee4314d869d82a886bd776e3c
[ "Apache-2.0", "MIT" ]
2,143
2017-03-11T05:58:32.000Z
2022-03-31T10:29:00.000Z
notes-to-self/trace.py
guilledk/trio
d09c21df3ffe401ee4314d869d82a886bd776e3c
[ "Apache-2.0", "MIT" ]
313
2017-03-11T05:24:33.000Z
2022-03-23T18:26:02.000Z
import trio import os import json from itertools import count # Experiment with generating Chrome Event Trace format, which can be browsed # through chrome://tracing or other mechanisms. # # Screenshot: https://files.gitter.im/python-trio/general/fp6w/image.png # # Trace format docs: https://docs.google.com/document/d...
29.154362
109
0.570672
2,170
0.49931
0
0
0
0
639
0.147032
1,876
0.431661
c024d083863172cd08c0e34544cc15c4d39eca0b
345
py
Python
common/data_refinery_common/models/__init__.py
dongbohu/ccdl_test
be50b7ca35fba28676b594ba3f003b0b581abcb7
[ "BSD-3-Clause" ]
null
null
null
common/data_refinery_common/models/__init__.py
dongbohu/ccdl_test
be50b7ca35fba28676b594ba3f003b0b581abcb7
[ "BSD-3-Clause" ]
3
2020-06-05T17:18:10.000Z
2021-06-10T20:55:12.000Z
common/data_refinery_common/models/__init__.py
dongbohu/ccdl_test
be50b7ca35fba28676b594ba3f003b0b581abcb7
[ "BSD-3-Clause" ]
null
null
null
from data_refinery_common.models.surveys import SurveyJob, SurveyJobKeyValue from data_refinery_common.models.batches import ( BatchStatuses, Batch, BatchKeyValue, File ) from data_refinery_common.models.jobs import ( WorkerJob, DownloaderJob, ProcessorJob ) from data_refinery_common.models....
24.642857
76
0.791304
0
0
0
0
0
0
0
0
0
0
c0263e8b4a30de418c75ebe0717861acba376145
1,144
py
Python
src/client_sample.py
ryoutoku/gunicorn-soap
5b7c6bedb7fda1486eb4402114276bdc7fd0e77c
[ "MIT" ]
null
null
null
src/client_sample.py
ryoutoku/gunicorn-soap
5b7c6bedb7fda1486eb4402114276bdc7fd0e77c
[ "MIT" ]
null
null
null
src/client_sample.py
ryoutoku/gunicorn-soap
5b7c6bedb7fda1486eb4402114276bdc7fd0e77c
[ "MIT" ]
null
null
null
from zeep import Client from models import RequestParameter class Caller: def __init__(self): wsdl_url = "http://0.0.0.0:8080/?wsdl" self._name = "dummy_name" self._times = 3 self._client = Client(wsdl_url) def call_say_hello_1(self): result = self._client.service.say...
22
66
0.532343
808
0.706294
0
0
0
0
0
0
131
0.11451
c028333a0436a3c88c477f3244b6bd0fca21d64d
1,600
py
Python
rest_api/views.py
vikash98k/django-rest-api
51c83a5d9c65f03b4b790ac965cd2222c6326752
[ "MIT" ]
1
2021-11-15T03:29:24.000Z
2021-11-15T03:29:24.000Z
rest_api/views.py
vikash98k/django-rest-api
51c83a5d9c65f03b4b790ac965cd2222c6326752
[ "MIT" ]
null
null
null
rest_api/views.py
vikash98k/django-rest-api
51c83a5d9c65f03b4b790ac965cd2222c6326752
[ "MIT" ]
null
null
null
from rest_framework import generics from .permissions import IsOwner from .serializers import BucketlistSerializer, UserSerializer from .models import Bucketlist from django.contrib.auth.models import User from rest_framework.permissions import IsAuthenticated from rest_framework.authentication import SessionAuthentica...
39.02439
71
0.775625
1,267
0.791875
0
0
0
0
0
0
260
0.1625
c028ccbb3fd75e9d2a67753c98bec97a1ad49fb6
7,113
py
Python
darling_ansible/python_venv/lib/python3.7/site-packages/oci/core/models/create_ip_sec_tunnel_bgp_session_details.py
revnav/sandbox
f9c8422233d093b76821686b6c249417502cf61d
[ "Apache-2.0" ]
null
null
null
darling_ansible/python_venv/lib/python3.7/site-packages/oci/core/models/create_ip_sec_tunnel_bgp_session_details.py
revnav/sandbox
f9c8422233d093b76821686b6c249417502cf61d
[ "Apache-2.0" ]
null
null
null
darling_ansible/python_venv/lib/python3.7/site-packages/oci/core/models/create_ip_sec_tunnel_bgp_session_details.py
revnav/sandbox
f9c8422233d093b76821686b6c249417502cf61d
[ "Apache-2.0" ]
1
2020-06-25T03:12:58.000Z
2020-06-25T03:12:58.000Z
# coding: utf-8 # Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
37.240838
245
0.679882
6,573
0.924083
0
0
6,603
0.9283
0
0
5,513
0.77506
c029732da347682368446ad63ee588078d4cc569
752
py
Python
server_django/prikmeter/views.py
ttencate/smartmetertap
c768a5818766f897cb5dcd223286b173b31a3a65
[ "BSD-3-Clause" ]
1
2017-10-26T05:28:08.000Z
2017-10-26T05:28:08.000Z
server_django/prikmeter/views.py
ttencate/smartmetertap
c768a5818766f897cb5dcd223286b173b31a3a65
[ "BSD-3-Clause" ]
9
2017-10-16T07:15:51.000Z
2021-09-11T07:39:40.000Z
server_django/prikmeter/views.py
ttencate/smartmetertap
c768a5818766f897cb5dcd223286b173b31a3a65
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import auth, messages from django.shortcuts import redirect, render from django.views.decorators.http import require_POST, require_safe @require_safe def index(request): context = {} return render(request, 'prikmeter/index.html', context) @require_POST def login(request): email = req...
26.857143
69
0.720745
0
0
0
0
587
0.780585
0
0
116
0.154255
c02a0889807a2eb0056cc9fc59fcd71cd6dcb6b8
146
py
Python
scenarios/order_show/executable.py
trenton42/txbalanced
9ee1b906d75b4b2fc3d2f5424dc3bbb9886c2b14
[ "MIT" ]
null
null
null
scenarios/order_show/executable.py
trenton42/txbalanced
9ee1b906d75b4b2fc3d2f5424dc3bbb9886c2b14
[ "MIT" ]
null
null
null
scenarios/order_show/executable.py
trenton42/txbalanced
9ee1b906d75b4b2fc3d2f5424dc3bbb9886c2b14
[ "MIT" ]
null
null
null
import balanced balanced.configure('ak-test-1o9QKwUCrwstHWO5sGxICtIJdQXFTjnrV') order = balanced.Order.fetch('/orders/OR7qAh5x1cFzX0U9hD628LPa')
29.2
64
0.842466
0
0
0
0
0
0
0
0
77
0.527397
c02a0ebb0ba3ca2e51b79708e03d7785c34ec44d
490
py
Python
python/array/leetcode/move_zero.py
googege/algo-learn
054d05e8037005c5810906d837de889108dad107
[ "MIT" ]
153
2020-09-24T12:46:51.000Z
2022-03-31T21:30:44.000Z
python/array/leetcode/move_zero.py
googege/algo-learn
054d05e8037005c5810906d837de889108dad107
[ "MIT" ]
null
null
null
python/array/leetcode/move_zero.py
googege/algo-learn
054d05e8037005c5810906d837de889108dad107
[ "MIT" ]
35
2020-12-22T11:07:06.000Z
2022-03-09T03:25:08.000Z
from typing import List # 移动零 class Solution: # 新开一个数组 def moveZeroes1(self, nums: List[int]) -> None: temp, k = [0] * len(nums), 0 for n in nums: if n != 0: temp[k] = n k += 1 nums[:] = temp[:] # 双指针解法 def moveZeroes2(self, nums:...
19.6
51
0.418367
477
0.920849
0
0
0
0
0
0
48
0.092664
c02a3ab8ab4ad9227b45abfaa1e75b75d929e0e8
6,368
py
Python
make_tfrecords.py
ssarfjoo/improvedsegan
df74761ed6404189ba26ccef40c38dddec334684
[ "MIT" ]
36
2017-10-26T04:15:48.000Z
2021-08-10T02:10:18.000Z
make_tfrecords.py
ssarfjoo/improvedsegan
df74761ed6404189ba26ccef40c38dddec334684
[ "MIT" ]
4
2020-01-28T21:34:47.000Z
2022-02-09T23:26:49.000Z
make_tfrecords.py
ssarfjoo/improvedsegan
df74761ed6404189ba26ccef40c38dddec334684
[ "MIT" ]
5
2018-09-03T11:50:41.000Z
2021-12-25T08:58:45.000Z
from __future__ import print_function import tensorflow as tf import numpy as np from collections import namedtuple, OrderedDict from subprocess import call import scipy.io.wavfile as wavfile import argparse import codecs import timeit import struct import toml import re import sys import os def _int64_feature(value)...
43.319728
89
0.617619
0
0
0
0
0
0
0
0
1,194
0.1875
c02a8e075173d16d5fa606436bcb12e60ab69d67
1,684
py
Python
software.py
schamberg97/bullshitMgimoProj
1577e7a2b0256b98f259a2cc6667194abd689ec8
[ "Unlicense" ]
null
null
null
software.py
schamberg97/bullshitMgimoProj
1577e7a2b0256b98f259a2cc6667194abd689ec8
[ "Unlicense" ]
null
null
null
software.py
schamberg97/bullshitMgimoProj
1577e7a2b0256b98f259a2cc6667194abd689ec8
[ "Unlicense" ]
null
null
null
from myShop import MyShop from myBot import MYBOT from sMenu import Menu class software: @staticmethod def runShowTables(): #подключаем библиотеку import xml.dom.minidom as minidom from sMenu import Menu #читаем XML из файла dom = minidom.parse("myShop.xml") dom.normalize() #Читаем таблицу def ...
29.034483
127
0.71734
1,970
0.963796
0
0
1,947
0.952544
0
0
1,008
0.493151
c02b02d3a9106d7127a9a094f2f01f8ba90e6fb6
22,963
py
Python
app/src/main/Python/Translate.py
tangcan1600/XuMiJie
2e47d519c1c62ec3eabb576d80f783dd62052f44
[ "MIT" ]
null
null
null
app/src/main/Python/Translate.py
tangcan1600/XuMiJie
2e47d519c1c62ec3eabb576d80f783dd62052f44
[ "MIT" ]
null
null
null
app/src/main/Python/Translate.py
tangcan1600/XuMiJie
2e47d519c1c62ec3eabb576d80f783dd62052f44
[ "MIT" ]
null
null
null
import time, sys, os, hashlib, json, re import requests, random, js2py import urllib.request import urllib.parse # 检验是否含有中文字符 def language(strs): for char in strs: if (u'\u4e00' <= char and char <= u'\u9fff'): return 'zh', 'en' # 含有中文 return 'en', 'zh' # 不含有中文 class Baidu(): def __...
36.276461
1,459
0.512041
20,415
0.836372
0
0
268
0.01098
0
0
13,104
0.536851
c02c417a57c64011bc9f7af79d7ad7b2fc564c8d
132
py
Python
examples/basic.py
EmbarkStudios/Python-xNormal
a4f005220d31d1e9085a7cbcc1ef46e70cff2753
[ "BSD-2-Clause" ]
52
2015-04-26T19:46:37.000Z
2021-12-23T01:45:16.000Z
examples/basic.py
EmbarkStudios/Python-xNormal
a4f005220d31d1e9085a7cbcc1ef46e70cff2753
[ "BSD-2-Clause" ]
3
2015-10-22T08:07:38.000Z
2019-08-02T18:13:59.000Z
examples/basic.py
EmbarkStudios/Python-xNormal
a4f005220d31d1e9085a7cbcc1ef46e70cff2753
[ "BSD-2-Clause" ]
10
2016-08-24T14:02:07.000Z
2021-11-10T02:40:47.000Z
import xNormal xNormal.run("piano_high.obj", "piano_low.obj", "piano.png", width=256, height=256, gen_normals = True, gen_ao = True)
66
117
0.742424
0
0
0
0
0
0
0
0
42
0.318182
c02c5be917c2e7c70614350c8ed104d79b0759b4
1,266
py
Python
jina/executors/evaluators/rank/recall.py
yk/jina
ab66e233e74b956390f266881ff5dc4e0110d3ff
[ "Apache-2.0" ]
null
null
null
jina/executors/evaluators/rank/recall.py
yk/jina
ab66e233e74b956390f266881ff5dc4e0110d3ff
[ "Apache-2.0" ]
null
null
null
jina/executors/evaluators/rank/recall.py
yk/jina
ab66e233e74b956390f266881ff5dc4e0110d3ff
[ "Apache-2.0" ]
null
null
null
from typing import Sequence, Any, Optional from . import BaseRankingEvaluator class RecallEvaluator(BaseRankingEvaluator): """A :class:`RecallEvaluator` evaluates the Precision of the search. It computes how many of the first given `eval_at` groundtruth are found in the matches """ metric = 'Reca...
38.363636
120
0.648499
1,184
0.935229
0
0
0
0
0
0
602
0.475513
c02c896bba97da4b352ffab0bd4675b7575d7153
7,995
py
Python
tests/tests_main.py
insilications/tqdm-clr
b09a24af7ffe5c85ed0e8e64b33059b43b1be020
[ "MIT" ]
22,617
2015-06-03T20:26:05.000Z
2022-03-31T22:25:42.000Z
tests/tests_main.py
insilications/tqdm-clr
b09a24af7ffe5c85ed0e8e64b33059b43b1be020
[ "MIT" ]
1,230
2015-06-03T13:56:41.000Z
2022-03-30T06:03:12.000Z
tests/tests_main.py
insilications/tqdm-clr
b09a24af7ffe5c85ed0e8e64b33059b43b1be020
[ "MIT" ]
1,445
2015-06-03T14:01:33.000Z
2022-03-29T14:41:52.000Z
"""Test CLI usage.""" import logging import subprocess # nosec import sys from functools import wraps from os import linesep from tqdm.cli import TqdmKeyError, TqdmTypeError, main from tqdm.utils import IS_WIN from .tests_tqdm import BytesIO, _range, closing, mark, raises def restore_sys(func): """Decorates `f...
32.632653
86
0.591245
0
0
0
0
6,887
0.861413
0
0
2,023
0.253033
c02ddc618f6444651370434e959eed89c5b43ed2
2,881
py
Python
plugins/commands.py
Kalpesh0/Project01
42383a3aa4a3f17ab69dd01357bfbb0740ba965b
[ "MIT" ]
null
null
null
plugins/commands.py
Kalpesh0/Project01
42383a3aa4a3f17ab69dd01357bfbb0740ba965b
[ "MIT" ]
null
null
null
plugins/commands.py
Kalpesh0/Project01
42383a3aa4a3f17ab69dd01357bfbb0740ba965b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @REQUEST_M0viz from pyrogram import Client, filters from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton from script import script @Client.on_message(filters.command(["start"]) & filters.private) async def start(client, message): try: awa...
36.468354
373
0.532107
0
0
0
0
2,702
0.929161
2,508
0.862448
646
0.222146
c02e20b826436ffe36a314fe9b02b8f0b79df9d5
3,583
py
Python
gpjax/utils.py
thomaspinder/GPJax
929fcb88d13d15bb10e1175491dbc3e79622325a
[ "Apache-2.0" ]
44
2020-12-03T14:07:39.000Z
2022-03-14T17:45:34.000Z
gpjax/utils.py
thomaspinder/GPJax
929fcb88d13d15bb10e1175491dbc3e79622325a
[ "Apache-2.0" ]
28
2020-12-05T08:54:45.000Z
2022-03-01T09:56:50.000Z
gpjax/utils.py
thomaspinder/GPJax
929fcb88d13d15bb10e1175491dbc3e79622325a
[ "Apache-2.0" ]
7
2021-02-05T12:37:57.000Z
2022-03-13T13:00:20.000Z
from copy import deepcopy from typing import Tuple import jax.numpy as jnp from jax.scipy.linalg import cho_factor, cho_solve from multipledispatch import dispatch from .types import Array def I(n: int) -> Array: """ Compute an n x n identity matrix. :param n: The size of of the matrix. :return: An ...
33.485981
117
0.706391
0
0
0
0
1,112
0.310354
0
0
2,109
0.588613
c02f4130e68bf1161bbd1638142bdd926a75ebe7
999
py
Python
tools/replace_version.py
jasmcaus/image-deep-learning-keras
11ff37867c2cb86a92aceb0ac24accb3607e3635
[ "MIT" ]
681
2020-08-13T09:34:41.000Z
2022-03-19T15:38:04.000Z
tools/replace_version.py
jasmcaus/image-deep-learning-keras
11ff37867c2cb86a92aceb0ac24accb3607e3635
[ "MIT" ]
30
2020-11-03T19:23:14.000Z
2021-10-13T17:19:34.000Z
tools/replace_version.py
jasmcaus/image-deep-learning-keras
11ff37867c2cb86a92aceb0ac24accb3607e3635
[ "MIT" ]
127
2020-11-03T19:14:30.000Z
2022-03-17T12:01:32.000Z
import os def replace_version(old_version, new_version): if not isinstance(old_version, tuple) or not isinstance(new_version, tuple): raise ValueError("`old_version` and `new_version` must be a version tuple. Eg: (1.2.3)") major, minor, micro = old_version[:3] old_version = f'{major}.{minor}.{mic...
39.96
99
0.585586
0
0
0
0
0
0
0
0
212
0.212212
c03051f9b68bca498dcb3a06e10906ed145e2649
10,625
py
Python
DashExperiments/make_plot.py
magruener/reconstructing-proprietary-video-streaming-algorithms
29917b64e25a81561db7629fbd97e4a935146825
[ "MIT" ]
9
2020-09-07T17:24:13.000Z
2022-03-12T23:41:47.000Z
DashExperiments/make_plot.py
magruener/reconstructing-proprietary-video-streaming-algorithms
29917b64e25a81561db7629fbd97e4a935146825
[ "MIT" ]
null
null
null
DashExperiments/make_plot.py
magruener/reconstructing-proprietary-video-streaming-algorithms
29917b64e25a81561db7629fbd97e4a935146825
[ "MIT" ]
2
2020-11-13T06:49:54.000Z
2021-01-28T12:24:20.000Z
import argparse import math import matplotlib.pyplot as plt import os import numpy as np import shutil import pandas as pd import seaborn as sns sns.set() sns.set_context("talk") NUM_BINS = 100 path = '../Data/Video_Info/Pensieve_Info/PenieveVideo_video_info' video_mappings = {} video_mappings['300'] = '320x180x30_v...
34.836066
174
0.609318
0
0
0
0
0
0
0
0
2,216
0.208565
c0319cff4f20f991c3fca5acb4a16d11e559fce4
936
py
Python
aiopoke/objects/utility/common_models/encounter.py
beastmatser/aiopokeapi
6ffe10bf8db0b6349cabf5b5b01b738214f805d0
[ "MIT" ]
3
2021-10-03T13:49:47.000Z
2022-03-31T03:12:30.000Z
aiopoke/objects/utility/common_models/encounter.py
beastmatser/aiopokeapi
6ffe10bf8db0b6349cabf5b5b01b738214f805d0
[ "MIT" ]
3
2022-01-18T07:31:08.000Z
2022-01-18T07:32:09.000Z
aiopoke/objects/utility/common_models/encounter.py
beastmatser/aiopokeapi
6ffe10bf8db0b6349cabf5b5b01b738214f805d0
[ "MIT" ]
1
2022-01-19T12:35:09.000Z
2022-01-19T12:35:09.000Z
from typing import TYPE_CHECKING, Any, Dict, List from aiopoke.utils.minimal_resources import MinimalResource from aiopoke.utils.resource import Resource if TYPE_CHECKING: from aiopoke.objects.resources import EncounterConditionValue, EncounterMethod class Encounter(Resource): min_level: int max_level: ...
28.363636
86
0.681624
676
0.722222
0
0
0
0
0
0
42
0.044872
c03228b2ca7a1e5710fd3d833f2457053dd2e585
834
py
Python
2015/solutions/day1.py
rsizem2/aoc_2020
aa2dbf72a4c44930755bd9cc132ad7854f742f09
[ "MIT" ]
null
null
null
2015/solutions/day1.py
rsizem2/aoc_2020
aa2dbf72a4c44930755bd9cc132ad7854f742f09
[ "MIT" ]
null
null
null
2015/solutions/day1.py
rsizem2/aoc_2020
aa2dbf72a4c44930755bd9cc132ad7854f742f09
[ "MIT" ]
null
null
null
def read_file(test = True): if test: filename = '../tests/day1.txt' else: filename = '../input/day1.txt' with open(filename) as file: temp = list() for line in file: temp.append(line.strip()) return temp def puzzle1(): temp = read_file(False)[0] floo...
20.85
46
0.464029
0
0
0
0
0
0
0
0
50
0.059952
c032d43f5d12902206b5df36fccb87158ca21d3e
466
py
Python
setup.py
Kamuish/StarSearch
63e5f6ee544ab1d48ae5b0d8e9067cedccc40d1e
[ "MIT" ]
null
null
null
setup.py
Kamuish/StarSearch
63e5f6ee544ab1d48ae5b0d8e9067cedccc40d1e
[ "MIT" ]
null
null
null
setup.py
Kamuish/StarSearch
63e5f6ee544ab1d48ae5b0d8e9067cedccc40d1e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from setuptools import setup setup(name='starsearch', version='0.3', description='Package to dig into the ESO archives', author='João Camacho', author_email='[email protected]', license='MIT', url='https://github.com/jdavidrcamac...
24.526316
57
0.592275
0
0
0
0
0
0
0
0
232
0.496788
c033f2c7fd8a3e95e76135943dd54b89791b98ca
4,192
py
Python
test/integration/test_genomes.py
beatrizserrano/galaxy
e149d9d32e1bca6c07c38b1a9cdabfee60323610
[ "CC-BY-3.0" ]
null
null
null
test/integration/test_genomes.py
beatrizserrano/galaxy
e149d9d32e1bca6c07c38b1a9cdabfee60323610
[ "CC-BY-3.0" ]
6
2021-11-11T20:57:49.000Z
2021-12-10T15:30:33.000Z
test/integration/test_genomes.py
beatrizserrano/galaxy
e149d9d32e1bca6c07c38b1a9cdabfee60323610
[ "CC-BY-3.0" ]
null
null
null
import os import tempfile from unittest.mock import patch from galaxy.exceptions import ( ObjectNotFound, ReferenceDataError, ) from galaxy_test.driver import integration_util BUILDS_DATA = ( "?\tunspecified (?)", "hg_test\tdescription of hg_test", "hg_test_nolen\tdescription of hg_test_nolen", ) ...
37.765766
105
0.659351
3,672
0.875954
0
0
947
0.225906
0
0
796
0.189885
c034484825d157d2b2d547cd6cfeff947673d5f5
2,310
py
Python
examples/exersice2DimRed.py
s2812135/Data_Challenges_WiSe2122
a55372f444e7344af4e2e1f04e4244fb8cefeefe
[ "MIT" ]
null
null
null
examples/exersice2DimRed.py
s2812135/Data_Challenges_WiSe2122
a55372f444e7344af4e2e1f04e4244fb8cefeefe
[ "MIT" ]
null
null
null
examples/exersice2DimRed.py
s2812135/Data_Challenges_WiSe2122
a55372f444e7344af4e2e1f04e4244fb8cefeefe
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import os from tqdm import tqdm import pacmap import matplotlib.pyplot as plt from sklearn.manifold import TSNE import umap def darius1(numberDirectory): path = "" if(numberDirectory == 1): directorys = [ ['training_setA/training/', 'p0'] ] ...
29.615385
98
0.587446
0
0
0
0
0
0
0
0
754
0.326407
c0347d378ceb67aeed162b5a86aeec563c7f0a79
5,757
py
Python
release.py
jhofmann/yubiauth
724feb45b54db196af406edf87f2bfcc2e849842
[ "BSD-2-Clause" ]
17
2015-01-06T16:28:55.000Z
2021-11-21T15:26:01.000Z
release.py
DalavanCloud/yubiauth
42292de043f8e106384796ff233be0b2dc930f60
[ "BSD-2-Clause" ]
4
2015-09-11T14:00:14.000Z
2017-05-25T15:00:17.000Z
release.py
DalavanCloud/yubiauth
42292de043f8e106384796ff233be0b2dc930f60
[ "BSD-2-Clause" ]
9
2015-03-11T22:37:47.000Z
2022-03-01T21:17:35.000Z
# Copyright (c) 2013 Yubico AB # All rights reserved. # # Redistribution and use in source and binary forms, with or # without modification, are permitted provided that the following # conditions are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditi...
38.125828
78
0.605176
4,226
0.734063
0
0
0
0
0
0
2,399
0.41671
c034cf5f5c4b3712b5f752c6874beaede0ef7f49
10,949
py
Python
fabfile.py
8081594571/bgtools_web
f99389788f6e8db0d1b7781f41af819efd7e9dc2
[ "MIT" ]
1
2020-10-01T15:56:12.000Z
2020-10-01T15:56:12.000Z
fabfile.py
Arvindvishwakarma/bgtools_web
82b03c49e00a6ffcc563289c68bcf2a7a6985633
[ "MIT" ]
null
null
null
fabfile.py
Arvindvishwakarma/bgtools_web
82b03c49e00a6ffcc563289c68bcf2a7a6985633
[ "MIT" ]
1
2020-10-01T06:53:41.000Z
2020-10-01T06:53:41.000Z
# Credit goes to https://bitbucket.org/spookylukey/django-fabfile-starter/src import os import datetime as dt from io import StringIO import json import posixpath import fabric import requests from fabsettings import (USER, HOST, DJANGO_APP_NAME, DJANGO_APPS_DIR, LOGS_ROOT_DIR, ...
38.017361
115
0.574664
0
0
0
0
1,223
0.1117
0
0
2,810
0.256644
c034fca0ee726969b9b040225228ff287755ee94
5,273
py
Python
Deep Thumbnail Face Classification and Verification/models/ShuffleNetV2.py
roycechan/portfolio
5e6a916031d2a3c60d2757483fc4765941d6f1f0
[ "MIT" ]
1
2022-03-14T04:59:54.000Z
2022-03-14T04:59:54.000Z
Deep Thumbnail Face Classification and Verification/models/ShuffleNetV2.py
roycechan/portfolio
5e6a916031d2a3c60d2757483fc4765941d6f1f0
[ "MIT" ]
null
null
null
Deep Thumbnail Face Classification and Verification/models/ShuffleNetV2.py
roycechan/portfolio
5e6a916031d2a3c60d2757483fc4765941d6f1f0
[ "MIT" ]
null
null
null
import torch from torch import nn from torch.autograd import Variable import config def init_weights(self): for m in self.modules(): if isinstance(m, nn.Conv2d): nn.init.xavier_normal_(m.weight) if m.bias is not None: nn.init.constant_(m.bias, 0) def conv(in_chann...
36.365517
120
0.616537
4,323
0.819837
0
0
0
0
0
0
211
0.040015
c036324f468e909b938249cc16b70ee9b1588b7d
6,264
py
Python
warhorn_api.py
jagerkin/warbot
d30851a454b9eef45d5d4d095ae63e846229153d
[ "Apache-2.0" ]
1
2021-12-23T05:09:01.000Z
2021-12-23T05:09:01.000Z
warhorn_api.py
jagerkin/warbot
d30851a454b9eef45d5d4d095ae63e846229153d
[ "Apache-2.0" ]
1
2021-12-23T05:00:24.000Z
2021-12-23T05:00:24.000Z
warhorn_api.py
jagerkin/warbot
d30851a454b9eef45d5d4d095ae63e846229153d
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Michael Olson # # 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 wri...
32.968421
98
0.608397
4,729
0.754949
995
0.158844
650
0.103768
995
0.158844
3,059
0.488346
c036c5b85abcd0ef620f9e8bbff718b557b0b6ee
13,750
py
Python
regnerf/internal/models.py
gunpowder78/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-13T21:48:52.000Z
2022-03-13T21:48:52.000Z
regnerf/internal/models.py
gunpowder78/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
null
null
null
regnerf/internal/models.py
gunpowder78/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-30T07:20:29.000Z
2022-03-30T07:20:29.000Z
# coding=utf-8 # Copyright 2022 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...
38.300836
84
0.663273
8,196
0.596073
0
0
8,232
0.598691
0
0
5,349
0.389018
c03730c3fe56f310fa37ff5662b46d4ef0a1326f
13,948
py
Python
Gems/AtomLyIntegration/TechnicalArt/DccScriptingInterface/Tools/DCC/Maya/constants.py
prophetl33t/o3de
eaeeb883eee1594b1b93327f6909eebd1a826caf
[ "Apache-2.0", "MIT" ]
null
null
null
Gems/AtomLyIntegration/TechnicalArt/DccScriptingInterface/Tools/DCC/Maya/constants.py
prophetl33t/o3de
eaeeb883eee1594b1b93327f6909eebd1a826caf
[ "Apache-2.0", "MIT" ]
null
null
null
Gems/AtomLyIntegration/TechnicalArt/DccScriptingInterface/Tools/DCC/Maya/constants.py
prophetl33t/o3de
eaeeb883eee1594b1b93327f6909eebd1a826caf
[ "Apache-2.0", "MIT" ]
null
null
null
# coding:utf-8 #!/usr/bin/python # # Copyright (c) Contributors to the Open 3D Engine Project. # For complete copyright and license terms please see the LICENSE at the root of this distribution. # # SPDX-License-Identifier: Apache-2.0 OR MIT # # # ------------------------------------------------------------------------...
41.144543
99
0.674649
0
0
99
0.007098
0
0
0
0
6,743
0.483438
c03733662ac655fa4e1af62db62b069a9399ac49
1,958
py
Python
lib/data/finetune_imagenet.py
liqi17thu/Stand-Alone-Self-Attention
43c016ca14a9f5ce7ab59eefe2c41d96df04d151
[ "MIT" ]
1
2020-11-29T15:59:07.000Z
2020-11-29T15:59:07.000Z
lib/data/finetune_imagenet.py
liqi17thu/Stand-Alone-Self-Attention
43c016ca14a9f5ce7ab59eefe2c41d96df04d151
[ "MIT" ]
null
null
null
lib/data/finetune_imagenet.py
liqi17thu/Stand-Alone-Self-Attention
43c016ca14a9f5ce7ab59eefe2c41d96df04d151
[ "MIT" ]
null
null
null
import torch import torchvision.datasets as datasets import torchvision.transforms as transforms from lib.data.data_util import ImageNetPolicy, ToBGRTensor from lib.config import cfg from lib.data.transformer_v2 import get_transforms def finetune_imagenet(): transformation = get_transforms(input_size=cfg.dataset...
35.6
110
0.689479
0
0
0
0
0
0
0
0
39
0.019918
c03974668d2a1ee4545cf6fd342d588c2d650bb4
6,519
py
Python
test/acceptance/test_kamma.py
marceljanerfont/kamma
a1dfaf06475ebb2feb50ac1e6fd8eb79b2beda68
[ "MIT" ]
1
2017-06-05T04:40:01.000Z
2017-06-05T04:40:01.000Z
test/acceptance/test_kamma.py
marceljanerfont/kamma
a1dfaf06475ebb2feb50ac1e6fd8eb79b2beda68
[ "MIT" ]
2
2017-06-29T14:23:59.000Z
2017-06-29T14:24:58.000Z
test/acceptance/test_kamma.py
marceljanerfont/kamma
a1dfaf06475ebb2feb50ac1e6fd8eb79b2beda68
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- try: import unittest2 as unittest except ImportError: import unittest from multiprocessing import Manager from random import randint import logging import sys import os import copy import shutil # add kamma path sys.path.insert(0, os.path.abspath(os.path.join(os.path.dir...
33.953125
144
0.666973
5,157
0.791072
0
0
0
0
0
0
689
0.105691
c03a48434d8a8fb57465d077a992cea579fd3c43
855
py
Python
wrappers/python/demo_mp_sync.py
Qworg/libfreenect
4cca607b37debdd006c3e693954292da11402a7e
[ "Apache-2.0" ]
10
2020-03-09T02:31:01.000Z
2021-12-14T18:29:27.000Z
wrappers/python/demo_mp_sync.py
Qworg/libfreenect
4cca607b37debdd006c3e693954292da11402a7e
[ "Apache-2.0" ]
null
null
null
wrappers/python/demo_mp_sync.py
Qworg/libfreenect
4cca607b37debdd006c3e693954292da11402a7e
[ "Apache-2.0" ]
1
2018-06-23T04:58:30.000Z
2018-06-23T04:58:30.000Z
#!/usr/bin/env python import freenect import matplotlib.pyplot as mp import frame_convert import signal keep_running = True def get_depth(): return frame_convert.pretty_depth(freenect.sync_get_depth()[0]) def get_video(): return freenect.sync_get_video()[0] def handler(signum, frame): """Sets up the ...
21.375
76
0.730994
0
0
0
0
0
0
0
0
119
0.139181
c03ae4d1c246454dbef54627c8b2804bc08c11f8
1,189
py
Python
codes/models/modules/LPIPS/compute_dists.py
DinJerr/BasicSR
b992a386e63daed5193b775080b9066ff2421d85
[ "Apache-2.0" ]
5
2020-06-07T18:07:45.000Z
2020-09-06T02:13:52.000Z
codes/models/modules/LPIPS/compute_dists.py
DinJerr/BasicSR
b992a386e63daed5193b775080b9066ff2421d85
[ "Apache-2.0" ]
null
null
null
codes/models/modules/LPIPS/compute_dists.py
DinJerr/BasicSR
b992a386e63daed5193b775080b9066ff2421d85
[ "Apache-2.0" ]
1
2020-06-28T05:55:41.000Z
2020-06-28T05:55:41.000Z
#import models from models.modules.LPIPS import perceptual_loss as models #################### # metric #################### model = None def calculate_lpips(img1_im, img2_im, use_gpu=False, net='squeeze', spatial=False): '''calculate Perceptual Metric using LPIPS img1_im, img2_im: BGR image from [0,255] ...
27.651163
94
0.612279
0
0
0
0
0
0
0
0
486
0.408747
c03b78905f8ecc14f0212e38dfa62f635acd9408
59,338
py
Python
msgraph-cli-extensions/v1_0/sites_v1_0/azext_sites_v1_0/vendored_sdks/sites/models/_sites_enums.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
msgraph-cli-extensions/v1_0/sites_v1_0/azext_sites_v1_0/vendored_sdks/sites/models/_sites_enums.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
msgraph-cli-extensions/v1_0/sites_v1_0/azext_sites_v1_0/vendored_sdks/sites/models/_sites_enums.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
30.259052
119
0.701945
58,532
0.986417
0
0
0
0
0
0
19,069
0.321362
c03be9166bd151ec0d6a3cb24a69aeb0b4160c8e
456
py
Python
evntbus/decorators.py
jmwri/eventbus
fe91ab2486b99bffb0232c23d45d0c5dedce1b42
[ "MIT" ]
null
null
null
evntbus/decorators.py
jmwri/eventbus
fe91ab2486b99bffb0232c23d45d0c5dedce1b42
[ "MIT" ]
null
null
null
evntbus/decorators.py
jmwri/eventbus
fe91ab2486b99bffb0232c23d45d0c5dedce1b42
[ "MIT" ]
null
null
null
import typing if typing.TYPE_CHECKING: from evntbus.bus import Bus def listen_decorator(evntbus: 'Bus'): class ListenDecorator(object): def __init__(self, event: typing.Type, priority: int = 5): self.event = event self.priority = priority def __call__(self, f: typing....
25.333333
66
0.644737
311
0.682018
0
0
0
0
0
0
5
0.010965
c03c898e35d62712b812e780c7c19ccba395542b
1,481
py
Python
src/shortcircuit/model/crestprocessor.py
farshield/shortcircu
87d45ea85b78e3e7da72b7b44755dc429b4fdf5a
[ "MIT" ]
35
2016-06-22T20:07:31.000Z
2021-04-07T11:02:08.000Z
src/shortcircuit/model/crestprocessor.py
farshield/shortcircu
87d45ea85b78e3e7da72b7b44755dc429b4fdf5a
[ "MIT" ]
15
2016-06-17T09:36:02.000Z
2020-10-30T11:39:07.000Z
src/shortcircuit/model/crestprocessor.py
farshield/shortcircu
87d45ea85b78e3e7da72b7b44755dc429b4fdf5a
[ "MIT" ]
16
2016-10-02T16:09:18.000Z
2021-05-29T02:51:14.000Z
# crestprocessor.py import threading from PySide import QtCore from crest.crest import Crest class CrestProcessor(QtCore.QObject): """ CREST Middle-ware """ login_response = QtCore.Signal(str) logout_response = QtCore.Signal() location_response = QtCore.Signal(str) destination_response = ...
29.62
107
0.704929
1,384
0.934504
0
0
0
0
0
0
52
0.035111
c03d2bdffd5f75d12bc1d6868d5c20f3a01b1c33
4,496
py
Python
src/commands/pipelines.py
vicobits/sawi-cli
0e3717e0e3d853599b87f8ea147a3f1e9566344b
[ "MIT" ]
1
2019-05-02T05:16:07.000Z
2019-05-02T05:16:07.000Z
src/commands/pipelines.py
vicobits/wise-cli
0e3717e0e3d853599b87f8ea147a3f1e9566344b
[ "MIT" ]
null
null
null
src/commands/pipelines.py
vicobits/wise-cli
0e3717e0e3d853599b87f8ea147a3f1e9566344b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import click from src.commands.project import Project from src.commands.server import Server from src.commands.config import WebServer from src.common.context import CommandContext from src.common.decorators import settings, update_config_file class Pipeline: @staticmethod @setting...
28.636943
99
0.635899
4,222
0.939057
0
0
3,837
0.853425
0
0
830
0.184609
c03e4bfd7eee3d8023944a7e3e5535ae1233ba11
1,341
py
Python
build.py
jmetzz/coffee-chatbot
da7e76d9532c8e5e38a47a19ffed1f1e27601766
[ "MIT" ]
null
null
null
build.py
jmetzz/coffee-chatbot
da7e76d9532c8e5e38a47a19ffed1f1e27601766
[ "MIT" ]
null
null
null
build.py
jmetzz/coffee-chatbot
da7e76d9532c8e5e38a47a19ffed1f1e27601766
[ "MIT" ]
null
null
null
from pybuilder.core import use_plugin, init use_plugin("python.core") use_plugin("python.unittest") use_plugin("python.install_dependencies") use_plugin("python.flake8") use_plugin("python.coverage") name = "ActionServerPybuilder" default_task = ['install_dependencies', 'analyze', 'publish'] @init def set_properties...
35.289474
78
0.774049
0
0
0
0
1,039
0.774795
0
0
580
0.432513
c03eda4a030a4816bf3db4784bc7ac9588f4b176
4,278
py
Python
electrumsv/devices/hw_wallet/plugin.py
tuoshao/electrumsv
5f0132cafa2c90bb36c8a574874e027e44a637e6
[ "MIT" ]
1
2021-12-28T10:52:11.000Z
2021-12-28T10:52:11.000Z
electrumsv/devices/hw_wallet/plugin.py
SomberNight/electrumsv
28262e3cab7b73e4960466f8aee252975953acf8
[ "MIT" ]
null
null
null
electrumsv/devices/hw_wallet/plugin.py
SomberNight/electrumsv
28262e3cab7b73e4960466f8aee252975953acf8
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- mode: python -*- # # Electrum - lightweight Bitcoin client # Copyright (C) 2016 The Electrum developers # # 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...
39.611111
97
0.679056
2,917
0.681861
0
0
0
0
0
0
1,940
0.453483
c0418cbebf8e032e1171fe327cac277a1bbb13e1
631
py
Python
api_service/tests/test_model_ids.py
seattleflu/Seattle-Flu-Incidence-Mapper
2b72e53da974874b98e1811cdb77e170c33999f1
[ "MIT" ]
6
2019-03-22T18:28:04.000Z
2021-02-23T03:53:19.000Z
api_service/tests/test_model_ids.py
seattleflu/Seattle-Flu-Incidence-Mapper
2b72e53da974874b98e1811cdb77e170c33999f1
[ "MIT" ]
103
2019-04-03T15:30:06.000Z
2021-11-15T17:48:22.000Z
api_service/tests/test_model_ids.py
seattleflu/incidence-mapper
2b72e53da974874b98e1811cdb77e170c33999f1
[ "MIT" ]
6
2019-07-01T04:43:44.000Z
2021-02-13T21:46:18.000Z
import unittest from seattle_flu_incidence_mapper.utils import get_model_id class TestGetIdFromQuery(unittest.TestCase): def test_ids_match_expected(self): ids = { "f39442e6883958971ecc1d0213c59f91": {"model_type":"inla","observed":["encountered_week","flu_shot","PUMA5CE","sampling_location"...
39.4375
163
0.681458
551
0.873217
0
0
0
0
0
0
254
0.402536
c04331c5a5c72cc4fd22977bf1a531a2facdca4e
445
py
Python
Cleaning.py
TharindraParanagama/MovieClassification
2cdee9a2aaf1f55d0a59b20181e69c524c4d5895
[ "MIT" ]
null
null
null
Cleaning.py
TharindraParanagama/MovieClassification
2cdee9a2aaf1f55d0a59b20181e69c524c4d5895
[ "MIT" ]
null
null
null
Cleaning.py
TharindraParanagama/MovieClassification
2cdee9a2aaf1f55d0a59b20181e69c524c4d5895
[ "MIT" ]
null
null
null
import csv input = open('MovieI.csv', 'rb') output = open('MovieO.csv', 'wb') writer = csv.writer(output) for row in csv.reader(input): for i in range(len(row)): if(row[0]==''): break elif(row[1]==''): break elif(row[2]==''): break elif(row[3]==''...
21.190476
33
0.483146
0
0
0
0
0
0
0
0
42
0.094382
c0451d8d32195eb2257b24e61657609915f300f2
87
py
Python
venues/apps.py
danroberts728/hsvdotbeer
5b977bf4a7aab149ad56564b3adbb09424500308
[ "Apache-2.0" ]
18
2018-12-06T01:46:37.000Z
2021-10-17T10:37:17.000Z
venues/apps.py
danroberts728/hsvdotbeer
5b977bf4a7aab149ad56564b3adbb09424500308
[ "Apache-2.0" ]
194
2018-11-04T12:50:49.000Z
2022-01-06T22:43:43.000Z
venues/apps.py
danroberts728/hsvdotbeer
5b977bf4a7aab149ad56564b3adbb09424500308
[ "Apache-2.0" ]
7
2019-03-18T05:36:06.000Z
2020-12-25T03:27:29.000Z
from django.apps import AppConfig class VenuesConfig(AppConfig): name = "venues"
14.5
33
0.747126
50
0.574713
0
0
0
0
0
0
8
0.091954
c045d1511440dddecfef10dbcd54c672252a332e
1,137
py
Python
problems/remove-duplicates-from-sorted-list.py
sailikhithk/tech-interview-prep
e833764cf98915d56118bddfa0e01871c58de75e
[ "Apache-2.0" ]
null
null
null
problems/remove-duplicates-from-sorted-list.py
sailikhithk/tech-interview-prep
e833764cf98915d56118bddfa0e01871c58de75e
[ "Apache-2.0" ]
null
null
null
problems/remove-duplicates-from-sorted-list.py
sailikhithk/tech-interview-prep
e833764cf98915d56118bddfa0e01871c58de75e
[ "Apache-2.0" ]
null
null
null
""" The key is to use a set to remember if we seen the node or not. Next, think about how we are going to *remove* the duplicate node? The answer is to simply link the previous node to the next node. So we need to keep a pointer `prev` on the previous node as we iterate the linked list. So, the solution. Create a set ...
34.454545
88
0.602463
504
0.443272
0
0
0
0
0
0
650
0.57168
c046ab37f041136a24de450d5779fbb10cbaed54
3,344
py
Python
corehq/apps/analytics/signals.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2020-05-05T13:10:01.000Z
2020-05-05T13:10:01.000Z
corehq/apps/analytics/signals.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2019-12-09T14:00:14.000Z
2019-12-09T14:00:14.000Z
corehq/apps/analytics/signals.py
MaciejChoromanski/commcare-hq
fd7f65362d56d73b75a2c20d2afeabbc70876867
[ "BSD-3-Clause" ]
5
2015-11-30T13:12:45.000Z
2019-07-01T19:27:07.000Z
from __future__ import absolute_import from __future__ import unicode_literals import six from django.conf import settings from django.contrib.auth.signals import user_logged_in from corehq.apps.analytics.tasks import ( track_user_sign_in_on_hubspot, HUBSPOT_COOKIE, update_hubspot_properties, identify,...
39.341176
99
0.720993
0
0
0
0
1,695
0.506878
0
0
246
0.073565
c046c72c4e753549e8ec891d9f48179094bc06ed
775
py
Python
manage.py
BeyondLam/Flask_Blog_Python3
274c932e9ea28bb6c83335e408a2cd9f1cf4fcb6
[ "Apache-2.0" ]
2
2019-10-25T16:35:41.000Z
2019-10-26T10:54:00.000Z
manage.py
BeyondLam/Flask_Blog_Python3
274c932e9ea28bb6c83335e408a2cd9f1cf4fcb6
[ "Apache-2.0" ]
null
null
null
manage.py
BeyondLam/Flask_Blog_Python3
274c932e9ea28bb6c83335e408a2cd9f1cf4fcb6
[ "Apache-2.0" ]
null
null
null
from app import create_app, db from flask_script import Manager from flask_migrate import Migrate, MigrateCommand app = create_app("develop") manager = Manager(app) Migrate(app, db) manager.add_command("db", MigrateCommand) # 初始化管理员账号数据,添加manager命令 @manager.command def create_admin(): from app.models import Admi...
27.678571
101
0.707097
0
0
0
0
496
0.602673
0
0
109
0.132442
c047ab7812a83340a4a3ccb035cf5db37d2b6b67
2,954
py
Python
qiling/qiling/cc/intel.py
mrTavas/owasp-fstm-auto
6e9ff36e46d885701c7419db3eca15f12063a7f3
[ "CC0-1.0" ]
2
2021-05-05T12:03:01.000Z
2021-06-04T14:27:15.000Z
qiling/qiling/cc/intel.py
mrTavas/owasp-fstm-auto
6e9ff36e46d885701c7419db3eca15f12063a7f3
[ "CC0-1.0" ]
null
null
null
qiling/qiling/cc/intel.py
mrTavas/owasp-fstm-auto
6e9ff36e46d885701c7419db3eca15f12063a7f3
[ "CC0-1.0" ]
2
2021-05-05T12:03:09.000Z
2021-06-04T14:27:21.000Z
#!/usr/bin/env python3 # # Cross Platform and Multi Architecture Advanced Binary Emulation Framework from unicorn.x86_const import ( UC_X86_REG_AX, UC_X86_REG_EAX, UC_X86_REG_RAX, UC_X86_REG_RCX, UC_X86_REG_RDI, UC_X86_REG_RDX, UC_X86_REG_RSI, UC_X86_REG_R8, UC_X86_REG_R9, UC_X86_REG_R10 ) from qiling import Qili...
26.854545
122
0.728842
2,586
0.875423
0
0
168
0.056872
0
0
1,215
0.411307
c048a21dfcef4ce86fe3963107c1c071b1d5b9b1
2,639
py
Python
Alexa_Dynamo.py
gnomesoup/pyDynamo
dea046e96f7973fcb6c28a274a3092b246457551
[ "Unlicense", "MIT" ]
null
null
null
Alexa_Dynamo.py
gnomesoup/pyDynamo
dea046e96f7973fcb6c28a274a3092b246457551
[ "Unlicense", "MIT" ]
null
null
null
Alexa_Dynamo.py
gnomesoup/pyDynamo
dea046e96f7973fcb6c28a274a3092b246457551
[ "Unlicense", "MIT" ]
null
null
null
### ----------- Python Code ------------### import csv from flask import Flask, render_template from flask_ask import Ask, statement, question, session import pandas as pd ### ------------- Start Alexa Stuff ---------### app = Flask(__name__) ask = Ask(app, "/") #logging.getLogger("flask_ask").setLevel(logging.DE...
30.333333
71
0.575597
0
0
0
0
1,262
0.478211
0
0
1,362
0.516105
c04935b8a935560d2540de8efce949baca20ee57
846
py
Python
HW/hklearn/model.py
leguiart/Machine-Learning
2fd3c583fbfd8fc3ee12c9106db7b4dfa29bc253
[ "MIT" ]
null
null
null
HW/hklearn/model.py
leguiart/Machine-Learning
2fd3c583fbfd8fc3ee12c9106db7b4dfa29bc253
[ "MIT" ]
null
null
null
HW/hklearn/model.py
leguiart/Machine-Learning
2fd3c583fbfd8fc3ee12c9106db7b4dfa29bc253
[ "MIT" ]
null
null
null
import abc ''' Interfaz sobre la cual todo modelo implementa. Todo modelo dentro de la biblioteca hklearn implementa los siguientes comportamientos: -fit : Entrena el modelo con un a matriz de ejemplos X y sus respectivas etiquetas y -predict : El modelo entrenado, predice con base en una entrada X ...
31.333333
89
0.640662
463
0.547281
0
0
439
0.518913
0
0
417
0.492908
c0499e4593031598062f2a6d6d126c43c5ef1d2d
35,951
py
Python
pecos/utils/smat_util.py
UniqueUpToPermutation/pecos
52dba0b6a1d5d0809838ac9ddb6c02a93da2624e
[ "Apache-2.0", "BSD-3-Clause" ]
2
2021-07-28T21:09:58.000Z
2021-09-24T03:37:45.000Z
pecos/utils/smat_util.py
UniqueUpToPermutation/pecos
52dba0b6a1d5d0809838ac9ddb6c02a93da2624e
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
pecos/utils/smat_util.py
UniqueUpToPermutation/pecos
52dba0b6a1d5d0809838ac9ddb6c02a93da2624e
[ "Apache-2.0", "BSD-3-Clause" ]
1
2021-09-24T04:00:47.000Z
2021-09-24T04:00:47.000Z
# Copyright 2021 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file acco...
38.992408
208
0.648549
4,889
0.135991
0
0
4,317
0.12008
0
0
16,349
0.454758
c04a299ef4dc134ab3bfdfd03d7e5fd9d275da7c
1,944
py
Python
MSMetaEnhancer/libs/Curator.py
xtrojak/pyMSPannotator
4d6ec0ee9781294c621271a6c045e0b15102bb9b
[ "MIT" ]
2
2021-06-16T07:42:02.000Z
2021-06-16T09:26:59.000Z
MSMetaEnhancer/libs/Curator.py
xtrojak/pyMSPannotator
4d6ec0ee9781294c621271a6c045e0b15102bb9b
[ "MIT" ]
34
2021-06-15T09:52:51.000Z
2021-11-11T13:47:11.000Z
MSMetaEnhancer/libs/Curator.py
xtrojak/pyMSPannotator
4d6ec0ee9781294c621271a6c045e0b15102bb9b
[ "MIT" ]
4
2021-06-09T06:42:19.000Z
2021-07-21T08:37:06.000Z
from matchms import utils class Curator: """ Curator makes sure that all data is curated before the actual annotation can proceed. Currently, fixing CAS numbers to correct format is supported. """ def curate_spectra(self, spectra): """ Iterates over given spectrums and curates indi...
29.907692
89
0.598251
1,915
0.985082
0
0
1,055
0.542695
0
0
877
0.451132
c04a2a3eb342ba391c15029d393dfe3507aca08e
2,498
py
Python
bin/install_megadrivers.py
antmicro/kvm-aosp-external-mesa3d
9a3a0c1e30421cd1d66b138ef6a3269ceb6de39f
[ "MIT" ]
null
null
null
bin/install_megadrivers.py
antmicro/kvm-aosp-external-mesa3d
9a3a0c1e30421cd1d66b138ef6a3269ceb6de39f
[ "MIT" ]
null
null
null
bin/install_megadrivers.py
antmicro/kvm-aosp-external-mesa3d
9a3a0c1e30421cd1d66b138ef6a3269ceb6de39f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding=utf-8 # Copyright © 2017-2018 Intel Corporation # 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 ...
33.756757
82
0.67534
0
0
0
0
0
0
0
0
1,279
0.511805
c04af6a3b44f5f5884d745baba056412e928f38e
478
py
Python
python_files/helpers.py
nilamo/pytchie
2e7a7501f23d393bdb66b64466f62d2ef741b778
[ "MIT" ]
10
2019-01-21T14:59:39.000Z
2022-01-25T19:45:57.000Z
python_files/helpers.py
nilamo/pytchie
2e7a7501f23d393bdb66b64466f62d2ef741b778
[ "MIT" ]
6
2019-09-26T08:09:41.000Z
2019-10-22T14:54:19.000Z
python_files/helpers.py
nilamo/pytchie
2e7a7501f23d393bdb66b64466f62d2ef741b778
[ "MIT" ]
3
2019-09-27T23:05:39.000Z
2019-10-22T01:11:06.000Z
#!/usr/bin/env python import os import sys def midi_to_freq(num): """ Takes a MIDI number and returns a frequency in Hz for corresponding note. """ num_a = num - 69 freq = 440 * 2**(num_a / 12.0) return freq def fp(relative): #if hasattr(sys, "_MEIPASS"): # return os.path.join(sys._MEIPASS,...
23.9
85
0.656904
0
0
0
0
0
0
0
0
189
0.395397
c04af8ddce186b3fd697e8b4010edd2847a07c3a
2,896
py
Python
test/integrationMyndFskr.py
redhog/ferenda
6935e26fdc63adc68b8e852292456b8d9155b1f7
[ "BSD-2-Clause" ]
18
2015-03-12T17:42:44.000Z
2021-12-27T10:32:22.000Z
test/integrationMyndFskr.py
redhog/ferenda
6935e26fdc63adc68b8e852292456b8d9155b1f7
[ "BSD-2-Clause" ]
13
2016-01-27T10:19:07.000Z
2021-12-13T20:24:36.000Z
test/integrationMyndFskr.py
redhog/ferenda
6935e26fdc63adc68b8e852292456b8d9155b1f7
[ "BSD-2-Clause" ]
6
2016-11-28T15:41:29.000Z
2022-01-08T11:16:48.000Z
# -*- coding: utf-8 -*- from __future__ import (absolute_import, division, print_function, unicode_literals) from builtins import * import os import sys import shutil import inspect from ferenda import TextReader, util from ferenda.testutil import RepoTester, file_parametrize from ferenda.compa...
39.135135
82
0.631906
2,445
0.844268
0
0
413
0.14261
0
0
824
0.28453
c04b151e636326dee485fc70fa9e09aa52af0717
2,319
py
Python
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GL/NV/geometry_program4.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GL/NV/geometry_program4.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GL/NV/geometry_program4.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
'''Autogenerated by xml_generate script, do not edit!''' from OpenGL import platform as _p, arrays # Code generation uses this from OpenGL.raw.GL import _types as _cs # End users want this... from OpenGL.raw.GL._types import * from OpenGL.raw.GL import _errors from OpenGL.constant import Constant as _C import...
55.214286
118
0.850367
0
0
0
0
519
0.223803
0
0
702
0.302717
c04b8e57191159c1e20db662b36e4eb42827c687
2,652
py
Python
benchbuild/projects/benchbuild/xz.py
sturmianseq/benchbuild
e3cc1a24e877261e90baf781aa67a9d6f6528dac
[ "MIT" ]
11
2017-10-05T08:59:35.000Z
2021-05-29T01:43:07.000Z
benchbuild/projects/benchbuild/xz.py
sturmianseq/benchbuild
e3cc1a24e877261e90baf781aa67a9d6f6528dac
[ "MIT" ]
326
2016-07-12T08:11:43.000Z
2022-03-28T07:10:11.000Z
benchbuild/projects/benchbuild/xz.py
sturmianseq/benchbuild
e3cc1a24e877261e90baf781aa67a9d6f6528dac
[ "MIT" ]
13
2016-06-17T12:13:35.000Z
2022-01-04T16:09:12.000Z
from plumbum import local import benchbuild as bb from benchbuild.environments.domain.declarative import ContainerImage from benchbuild.source import HTTP from benchbuild.utils.cmd import make, tar class XZ(bb.Project): """ XZ """ VERSION = '5.2.1' NAME = 'xz' DOMAIN = 'compression' GROUP = 'benc...
36.833333
77
0.536199
2,450
0.923831
0
0
0
0
0
0
1,060
0.399698
c04bfbdd189377e61884680d0c03817aca6a78ee
1,101
py
Python
train.py
sazzad/CarND-Behavioral-Cloning-P3
46599661bf194cf22683f49cae749eb403aaff01
[ "MIT" ]
null
null
null
train.py
sazzad/CarND-Behavioral-Cloning-P3
46599661bf194cf22683f49cae749eb403aaff01
[ "MIT" ]
null
null
null
train.py
sazzad/CarND-Behavioral-Cloning-P3
46599661bf194cf22683f49cae749eb403aaff01
[ "MIT" ]
null
null
null
import numpy as np import csv import cv2 from keras.models import Sequential from keras.layers import Dense, Flatten def load_data(): lines = [] with open('Data/driving_log.csv') as csvfile: reader = csv.reader(csvfile) for line in reader: lines.append(line) images = [] mea...
28.973684
80
0.647593
0
0
0
0
0
0
0
0
67
0.060854
c04ce8c06bdc166d9b3b9ffe4880ea147a89ea15
3,226
py
Python
models/FedXXX/resnet_utils.py
TD21forever/QoS-Predcition-Algorithm-library
f4503462887d719a39c9ccddd6cc55546e783fd5
[ "MIT" ]
2
2022-02-08T08:19:59.000Z
2022-02-17T01:42:54.000Z
models/FedXXX/resnet_utils.py
TD21forever/QoS-Predcition-Algorithm-library
f4503462887d719a39c9ccddd6cc55546e783fd5
[ "MIT" ]
null
null
null
models/FedXXX/resnet_utils.py
TD21forever/QoS-Predcition-Algorithm-library
f4503462887d719a39c9ccddd6cc55546e783fd5
[ "MIT" ]
null
null
null
from abc import get_cache_token from collections import OrderedDict from torch import nn class ResidualBlock(nn.Module): def __init__(self, in_size, out_size): super().__init__() self.in_size, self.out_size = in_size, out_size self.blocks = nn.Identity() self.shortcut = nn.Identit...
28.548673
91
0.614073
2,676
0.816351
0
0
182
0.055522
0
0
337
0.102807
c04d90069f191974d0ed369a9c73406bd54fa0cc
2,114
py
Python
xblock/test/test_json_conversion.py
edly-io/XBlock
60d01a32e5bfe1b543f598cbc56ba3f4d736129d
[ "Apache-2.0" ]
null
null
null
xblock/test/test_json_conversion.py
edly-io/XBlock
60d01a32e5bfe1b543f598cbc56ba3f4d736129d
[ "Apache-2.0" ]
null
null
null
xblock/test/test_json_conversion.py
edly-io/XBlock
60d01a32e5bfe1b543f598cbc56ba3f4d736129d
[ "Apache-2.0" ]
null
null
null
""" Tests asserting that ModelTypes convert to and from json when working with ModelDatas """ # Allow inspection of private class members # pylint: disable=protected-access from mock import Mock from xblock.core import XBlock from xblock.fields import Field, Scope, ScopeIds from xblock.field_data import DictFieldData ...
28.186667
120
0.64333
1,739
0.822611
0
0
0
0
0
0
712
0.336802
c04dc0e5e93dcddb8cf11931aefe2f5bf4588f05
10,592
py
Python
uq_benchmark_2019/experiment_utils.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
uq_benchmark_2019/experiment_utils.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
uq_benchmark_2019/experiment_utils.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2022 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...
36.273973
80
0.715823
90
0.008497
0
0
0
0
0
0
4,921
0.464596
c04f13b9a712c28cf890f8bd241f887d6602c688
42,844
py
Python
modisco/coordproducers.py
Bluedragon137/tfmodisco
d7c56b21e1bb58b07695ef3035f173b7d1a039e6
[ "MIT" ]
null
null
null
modisco/coordproducers.py
Bluedragon137/tfmodisco
d7c56b21e1bb58b07695ef3035f173b7d1a039e6
[ "MIT" ]
null
null
null
modisco/coordproducers.py
Bluedragon137/tfmodisco
d7c56b21e1bb58b07695ef3035f173b7d1a039e6
[ "MIT" ]
null
null
null
from __future__ import division, print_function, absolute_import from .core import SeqletCoordinates from modisco import util import numpy as np from collections import defaultdict, Counter, OrderedDict import itertools import sys import time from .value_provider import ( AbstractValTransformer, AbsPercentileValTra...
42.294176
80
0.618336
31,771
0.741551
0
0
5,430
0.126739
0
0
5,769
0.134651
c04f8c1ca8657a2985f474bb739ac4de154e1a01
425
py
Python
Google Jam/2016/lastword.py
djphan/Prog-Problems
db79d76f8a40e844c8cc61b3df2c0d52737ee9e4
[ "MIT" ]
null
null
null
Google Jam/2016/lastword.py
djphan/Prog-Problems
db79d76f8a40e844c8cc61b3df2c0d52737ee9e4
[ "MIT" ]
null
null
null
Google Jam/2016/lastword.py
djphan/Prog-Problems
db79d76f8a40e844c8cc61b3df2c0d52737ee9e4
[ "MIT" ]
null
null
null
import sys def lastWord ( inputString ): results = [] outputString = inputString[0] for i in range(1, len(inputString)): intermediateString = sorted([outputString + inputString[i], inputString[i] + outputString ]) outputString = intermediateString[1] return outputString numTests = in...
25
100
0.647059
0
0
0
0
0
0
0
0
12
0.028235
c04ff3ada5e9e3495ef3e426dee60d1388e47451
62,817
py
Python
aiotdlib/api/types/update.py
pylakey/pytdlib
a390a298a24a7123f3f3aec9f995dee6d51a478e
[ "MIT" ]
37
2021-05-04T10:41:41.000Z
2022-03-30T13:48:05.000Z
aiotdlib/api/types/update.py
pylakey/pytdlib
a390a298a24a7123f3f3aec9f995dee6d51a478e
[ "MIT" ]
13
2021-07-17T19:54:51.000Z
2022-02-26T06:50:00.000Z
aiotdlib/api/types/update.py
pylakey/pytdlib
a390a298a24a7123f3f3aec9f995dee6d51a478e
[ "MIT" ]
7
2021-09-22T21:27:11.000Z
2022-02-20T02:33:19.000Z
# =============================================================================== # # # # This file has been generated automatically!! Do not change this manually! # # ...
29.203626
318
0.692711
59,611
0.948963
0
0
10,520
0.167471
0
0
36,401
0.579477
c0507144735d0e0532afa021b9f51f1bb1e7c543
3,908
py
Python
lib/tests/test_integration.py
OneIdentity/safeguard-sessions-plugin-cyberark-vault
34f8c7a826b6b89c3c9a649b5395798263b4077f
[ "MIT" ]
null
null
null
lib/tests/test_integration.py
OneIdentity/safeguard-sessions-plugin-cyberark-vault
34f8c7a826b6b89c3c9a649b5395798263b4077f
[ "MIT" ]
3
2020-08-07T10:41:44.000Z
2021-01-27T08:56:57.000Z
lib/tests/test_integration.py
OneIdentity/safeguard-sessions-plugin-cyberark-vault
34f8c7a826b6b89c3c9a649b5395798263b4077f
[ "MIT" ]
null
null
null
# # Copyright (c) 2019 One Identity # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, di...
36.185185
139
0.753327
0
0
0
0
794
0.203173
0
0
1,422
0.363869
c050754add3acb4ba8ba228383257d1e46d1352d
2,997
py
Python
forum_modules/akismet/startup.py
Stackato-Apps/osqa
728bb43ae913e33769c52f40cadb26721faaf2b2
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2017-07-14T09:58:07.000Z
2017-07-14T09:58:07.000Z
forum_modules/akismet/startup.py
Stackato-Apps/osqa
728bb43ae913e33769c52f40cadb26721faaf2b2
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
forum_modules/akismet/startup.py
Stackato-Apps/osqa
728bb43ae913e33769c52f40cadb26721faaf2b2
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
import json from django.utils.translation import ugettext as _ from django.http import HttpResponse, HttpResponseRedirect from django.template import RequestContext from django.utils.encoding import smart_str from django.shortcuts import render_to_response from forum.modules import decorate from forum import views fro...
38.423077
129
0.610944
0
0
0
0
0
0
0
0
356
0.118785
c051e45b01f5963f9aee4c9d0f6e2146b9de7aad
7,077
py
Python
prototype/python/element_translator.py
doanminhdang/YAML_MATH
4a95ae26ccd36de9a2c148f4ac1246f3cf0372f8
[ "MIT" ]
1
2019-06-29T16:54:59.000Z
2019-06-29T16:54:59.000Z
prototype/python/element_translator.py
doanminhdang/YAML_MATH
4a95ae26ccd36de9a2c148f4ac1246f3cf0372f8
[ "MIT" ]
null
null
null
prototype/python/element_translator.py
doanminhdang/YAML_MATH
4a95ae26ccd36de9a2c148f4ac1246f3cf0372f8
[ "MIT" ]
null
null
null
""" Translate an element, which is described by the YAML method file and a descriptor file, into a target function. Procedure: 1. When analyzing a YAML file, parse the call to the method-element, to get: - list of inputs, - list of outputs 2. Parse the YAML of that element, to know the name of the inputs and outputs...
39.758427
94
0.687014
0
0
0
0
0
0
0
0
3,164
0.447082
c0549485e176a6b48bb54cda44e0d335364d8ccb
16,351
py
Python
build_feature_vectors_32.py
weberdc/find_hccs
43fcb151901f48765ea8e4ccf0b82dbb726762a3
[ "Apache-2.0" ]
7
2020-10-23T20:41:30.000Z
2021-11-20T14:00:25.000Z
build_feature_vectors_32.py
weberdc/find_hccs
43fcb151901f48765ea8e4ccf0b82dbb726762a3
[ "Apache-2.0" ]
5
2020-11-25T00:29:43.000Z
2021-11-01T02:15:29.000Z
build_feature_vectors_32.py
weberdc/find_hccs
43fcb151901f48765ea8e4ccf0b82dbb726762a3
[ "Apache-2.0" ]
2
2021-05-31T06:51:08.000Z
2022-02-09T13:55:18.000Z
#!/usr/bin/env python3 import csv import gzip import json import networkx as nx import sys import time import utils from argparse import ArgumentParser from calculate_activity_network import embedded_extended_tweet_url, root_of_conversation from collections import defaultdict from datetime import datetime from utils ...
43.836461
153
0.633906
1,176
0.071922
0
0
0
0
0
0
5,003
0.305975