hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a20e816ce2fa0b8d7e36effab5c2be3e0a1a12b
8,042
py
Python
homeassistant/components/unifiprotect/data.py
mib1185/core
b17d4ac65cde9a27ff6032d70b148792e5eba8df
[ "Apache-2.0" ]
null
null
null
homeassistant/components/unifiprotect/data.py
mib1185/core
b17d4ac65cde9a27ff6032d70b148792e5eba8df
[ "Apache-2.0" ]
null
null
null
homeassistant/components/unifiprotect/data.py
mib1185/core
b17d4ac65cde9a27ff6032d70b148792e5eba8df
[ "Apache-2.0" ]
null
null
null
"""Base class for protect data.""" from __future__ import annotations from collections.abc import Callable, Generator, Iterable from datetime import timedelta import logging from typing import Any from pyunifiprotect import ProtectApiClient from pyunifiprotect.data import ( Bootstrap, Event, Liveview, ...
36.889908
96
0.664014
4a20e82e2f810edf5c4daf3e1e45cc6ab5cd2dc9
307
py
Python
pash/actions/del_pass.py
simon8889/PASH
23728f12d5f033615d52d32006c086ee876ea4b1
[ "MIT" ]
2
2021-02-26T01:57:53.000Z
2021-02-26T01:57:55.000Z
pash/actions/del_pass.py
simon8889/PASH
23728f12d5f033615d52d32006c086ee876ea4b1
[ "MIT" ]
null
null
null
pash/actions/del_pass.py
simon8889/PASH
23728f12d5f033615d52d32006c086ee876ea4b1
[ "MIT" ]
null
null
null
from pash.actions.main import DbActions class DelPass(DbActions): def __init__(self, _id): super().__init__() self.id = _id def delele(self): try: self.collection.delete_one({"_id": self.id}) return True except: return False
23.615385
56
0.557003
4a20e87a6076968322c9c949d723e077f48e5b7a
818
py
Python
WeatherRanger/WeatherRangerProject/migrations/0003_auto_20170227_2111.py
mgoldbas/WeatherRanger
6322d5fe0064f443687b0f68a50b15e290da02c0
[ "MIT" ]
null
null
null
WeatherRanger/WeatherRangerProject/migrations/0003_auto_20170227_2111.py
mgoldbas/WeatherRanger
6322d5fe0064f443687b0f68a50b15e290da02c0
[ "MIT" ]
null
null
null
WeatherRanger/WeatherRangerProject/migrations/0003_auto_20170227_2111.py
mgoldbas/WeatherRanger
6322d5fe0064f443687b0f68a50b15e290da02c0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-02-27 21:11 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('WeatherRangerProject', '0002_auto_20170226_0109'), ] operations = [ migrati...
26.387097
60
0.608802
4a20e910a249d6877b65949adc1780099e47dcb7
326
py
Python
tests/test_main.py
znhv/winsio
4d4e69961285ea3dcebc5ad6358e2d753d6b4f9d
[ "MIT" ]
null
null
null
tests/test_main.py
znhv/winsio
4d4e69961285ea3dcebc5ad6358e2d753d6b4f9d
[ "MIT" ]
null
null
null
tests/test_main.py
znhv/winsio
4d4e69961285ea3dcebc5ad6358e2d753d6b4f9d
[ "MIT" ]
null
null
null
from brainstorm.__main__ import main, get_stats, get_out from brainstorm.utils.menu import MainMenu def test_stats(capsys): text = """ Player: None Score : 0 """ get_stats() captured = capsys.readouterr() assert captured.out == text def test_exit(): actual = get_out() assert actual is ...
16.3
56
0.677914
4a20ea581e4f3a8df4839d810f8efa475b0af108
6,047
py
Python
network_monitor.py
Mnikley/network-traffic-monitor
3c77d5c556df415fb5f993e9acfe36866ce0054f
[ "MIT" ]
null
null
null
network_monitor.py
Mnikley/network-traffic-monitor
3c77d5c556df415fb5f993e9acfe36866ce0054f
[ "MIT" ]
null
null
null
network_monitor.py
Mnikley/network-traffic-monitor
3c77d5c556df415fb5f993e9acfe36866ce0054f
[ "MIT" ]
null
null
null
import time import psutil from functools import partial from pynput.keyboard import Listener, Key, KeyCode import fire from datetime import datetime as dt import sys if sys.platform == "win32": import pygetwindow as gw def to_mb(val, update_interval=None): """Convert bytes to MB with 2 decimals"...
35.362573
107
0.58128
4a20eb8bab13bc16538ad26bb12b95bec50c467a
8,789
py
Python
docs/conf.py
gousaiyang/python-prompt-toolkit
6237764658214af4c24633795d2571d2bd03375d
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
gousaiyang/python-prompt-toolkit
6237764658214af4c24633795d2571d2bd03375d
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
gousaiyang/python-prompt-toolkit
6237764658214af4c24633795d2571d2bd03375d
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # prompt_toolkit documentation build configuration file, created by # sphinx-quickstart on Thu Jul 31 14:17:08 2014. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file...
30.838596
79
0.701104
4a20ec46443f08b2c082a8afd7163302ec1a34d9
2,070
py
Python
macronizer_cores/food_item_api/routes.py
triethuynh2301/macronizer-project
b4cd234de603abc8f588c143ac1fdf56063390c5
[ "MIT" ]
null
null
null
macronizer_cores/food_item_api/routes.py
triethuynh2301/macronizer-project
b4cd234de603abc8f588c143ac1fdf56063390c5
[ "MIT" ]
null
null
null
macronizer_cores/food_item_api/routes.py
triethuynh2301/macronizer-project
b4cd234de603abc8f588c143ac1fdf56063390c5
[ "MIT" ]
null
null
null
from flask import request, jsonify, Blueprint from flask_login import login_required from macronizer_cores import db from macronizer_cores.models import FoodItem from config import CALORIES_NINJA_API_KEY import requests # create blueprint food_item_api = Blueprint('food_item_api', __name__) # SECTION - routes @foo...
29.15493
98
0.620773
4a20ecb4968b01282916f61ce6d6c0502cdd180f
2,475
py
Python
tools/custom_apns.py
fusionos-next/android_vendor_fuse
474ff700385df7a557cbdbcd9da28125625fe7f9
[ "Apache-2.0" ]
null
null
null
tools/custom_apns.py
fusionos-next/android_vendor_fuse
474ff700385df7a557cbdbcd9da28125625fe7f9
[ "Apache-2.0" ]
null
null
null
tools/custom_apns.py
fusionos-next/android_vendor_fuse
474ff700385df7a557cbdbcd9da28125625fe7f9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright (C) 2018 The LineageOS Project # # 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 a...
39.285714
84
0.577778
4a20ed377365f29887a6be29259222bfb23b120f
3,520
py
Python
scripts/extract_spines.py
FilippoC/emnlp2017
766f12ac47fdf3f83531068de146998d420901f9
[ "MIT" ]
null
null
null
scripts/extract_spines.py
FilippoC/emnlp2017
766f12ac47fdf3f83531068de146998d420901f9
[ "MIT" ]
null
null
null
scripts/extract_spines.py
FilippoC/emnlp2017
766f12ac47fdf3f83531068de146998d420901f9
[ "MIT" ]
null
null
null
#!/bin/python3 import sys import discodop.treebank import discodop.heads treebank_path = sys.argv[1] headrules_path = sys.argv[2] reader = discodop.treebank.NegraCorpusReader(treebank_path) trees = reader.trees() sentences = reader.sents() headrules = discodop.heads.readheadrules(headrules_path) def extract_spine...
30.608696
104
0.559659
4a20eea414b6f04ccdba180d9d15d121f9f57f8f
17,597
py
Python
test/test_client.py
openarchitect/python-snap7
9adc3bcc542729f96dab0b84ce4da11543952da9
[ "MIT" ]
null
null
null
test/test_client.py
openarchitect/python-snap7
9adc3bcc542729f96dab0b84ce4da11543952da9
[ "MIT" ]
null
null
null
test/test_client.py
openarchitect/python-snap7
9adc3bcc542729f96dab0b84ce4da11543952da9
[ "MIT" ]
null
null
null
import ctypes import struct import unittest import logging import time import mock from datetime import datetime from subprocess import Popen from os import path, kill import snap7 from snap7.snap7exceptions import Snap7Exception from snap7.snap7types import S7AreaDB, S7WLByte, S7DataItem from snap7 import util logg...
31.367201
97
0.648349
4a20eec5bd6d38dec21fa91ff287b28a5ba0da7a
480
py
Python
projectAI/generateOpenAPI/sample_function_gen.py
cybertraining-dsc/sp20-516-237
267f5188dbf3ba55c3753829bab33ff4095eaf49
[ "Apache-2.0" ]
null
null
null
projectAI/generateOpenAPI/sample_function_gen.py
cybertraining-dsc/sp20-516-237
267f5188dbf3ba55c3753829bab33ff4095eaf49
[ "Apache-2.0" ]
2
2020-01-22T11:46:53.000Z
2020-02-05T20:15:00.000Z
projectAI/generateOpenAPI/sample_function_gen.py
cybertraining-dsc/sp20-516-237
267f5188dbf3ba55c3753829bab33ff4095eaf49
[ "Apache-2.0" ]
4
2020-01-20T23:59:02.000Z
2020-03-01T11:44:13.000Z
import sys sys.path.append('/Users/Jonathan/cm/sp20-516-237/projectAI/generateOpenAPI/') import generateOpenAPI as gen def sampleFunction(x: int, y: float) -> float: """ Multiply int and float sample. :param x: x value :type x: int :param y: y value :type y: float :return: result :retur...
21.818182
77
0.679167
4a20eed33115e5cfd18ad5f4d80b913bd08607a8
483
py
Python
Videos/Skeleton-Training/pickle-pickle-translation.py
93TEI/3D_Action_Recognition
b648f4cd8e479872c0cd9488120ada18bc64e5ad
[ "MIT" ]
33
2018-05-22T08:35:59.000Z
2021-10-06T09:56:07.000Z
Videos/Skeleton-Training/pickle-pickle-translation.py
93TEI/3D_Action_Recognition
b648f4cd8e479872c0cd9488120ada18bc64e5ad
[ "MIT" ]
2
2018-09-19T19:32:19.000Z
2019-05-09T02:27:06.000Z
Videos/Skeleton-Training/pickle-pickle-translation.py
Naman-ntc/Action-Recognition
b648f4cd8e479872c0cd9488120ada18bc64e5ad
[ "MIT" ]
5
2018-05-06T20:48:38.000Z
2019-09-01T07:55:09.000Z
import numpy import pickle import torch labelDict = pickle.load(open('labelDict.pkl','rb')) trainDict = pickle.load(open('train_data.pkl'.'rb')) total_samples = len(trainDict) data = [None]*total_samples labels = np.zeros(total_samples) counter = 0 for k,v in trainDict: myk = int(k[5:]) mylab = labelDict[myk] ...
19.32
52
0.718427
4a20eedc98782b11702f26b0ea554da846dd9676
1,029
py
Python
setup.py
Jingren-hou/NeuralCDE
7e529f58441d719d2ce85f56bdee3208a90d5132
[ "Apache-2.0" ]
438
2020-05-19T11:47:50.000Z
2022-03-23T05:40:32.000Z
setup.py
Anewnoob/NeuralCDE
3c6871c0591d82a61654c6d21d360f528465f9d2
[ "Apache-2.0" ]
8
2020-05-27T03:37:05.000Z
2022-03-09T05:48:27.000Z
setup.py
Anewnoob/NeuralCDE
3c6871c0591d82a61654c6d21d360f528465f9d2
[ "Apache-2.0" ]
62
2020-05-19T13:55:45.000Z
2022-03-19T17:36:36.000Z
import pathlib import setuptools here = pathlib.Path(__file__).resolve().parent with open(here / 'controldiffeq/README.md', 'r') as f: readme = f.read() setuptools.setup(name='controldiffeq', version='0.0.1', author='Patrick Kidger', author_email='contact@kid...
36.75
93
0.549077
4a20eeeb7f03847cc6d55cac7a4dc127ed213cd2
5,979
py
Python
peakpo/control/waterfalltablecontroller.py
SHDShim/PeakPo
75bdc12da18d70a946a24dde9b12c859150ca0b6
[ "Apache-2.0" ]
15
2017-09-02T13:55:35.000Z
2022-03-26T08:20:16.000Z
peakpo/control/waterfalltablecontroller.py
SHDShim/peakpo-v7
7a929f735621dfa05bd40e7d64208757161fa43e
[ "Apache-2.0" ]
null
null
null
peakpo/control/waterfalltablecontroller.py
SHDShim/peakpo-v7
7a929f735621dfa05bd40e7d64208757161fa43e
[ "Apache-2.0" ]
2
2018-05-16T13:32:08.000Z
2019-06-16T08:09:38.000Z
import os from PyQt5 import QtWidgets from PyQt5 import QtCore from PyQt5 import QtGui from utils import SpinBoxFixStyle, extract_filename from .mplcontroller import MplController class WaterfallTableController(object): def __init__(self, model, widget): self.model = model self.widget = widget ...
44.288889
80
0.632045
4a20ef0d2e874af88849364dc92a658ef0d1437c
31,065
py
Python
sgqlc/codegen/operation.py
wolfgangpfnuer/sgqlc
ca48f1318c48f959843a641fa3fa6f66a3857ebc
[ "0BSD" ]
429
2018-01-18T00:26:23.000Z
2022-03-30T07:10:04.000Z
sgqlc/codegen/operation.py
wolfgangpfnuer/sgqlc
ca48f1318c48f959843a641fa3fa6f66a3857ebc
[ "0BSD" ]
177
2018-01-17T17:51:48.000Z
2022-03-31T05:19:46.000Z
sgqlc/codegen/operation.py
wolfgangpfnuer/sgqlc
ca48f1318c48f959843a641fa3fa6f66a3857ebc
[ "0BSD" ]
74
2018-01-17T23:48:28.000Z
2022-02-17T13:58:58.000Z
import argparse import json import re import sys from collections import OrderedDict from typing import List, NamedTuple, Union from sgqlc.types import BaseItem from graphql.language.source import Source from graphql.language.parser import parse as parse_graphql from graphql.language.visitor import Visitor, visit ...
32.838266
78
0.588926
4a20ef46d2f862c961842e6cfaa583beb71ff9e2
3,501
py
Python
inter/CheckOrderInfo.py
middleprince/12306
31043bd053c2414b1be3e474184bb0c48c3abcca
[ "MIT" ]
33,601
2018-01-08T14:37:50.000Z
2022-03-31T06:45:04.000Z
inter/CheckOrderInfo.py
middleprince/12306
31043bd053c2414b1be3e474184bb0c48c3abcca
[ "MIT" ]
724
2018-01-09T00:36:29.000Z
2022-03-14T01:38:43.000Z
inter/CheckOrderInfo.py
middleprince/12306
31043bd053c2414b1be3e474184bb0c48c3abcca
[ "MIT" ]
10,650
2018-01-08T03:26:48.000Z
2022-03-31T01:50:15.000Z
# coding=utf-8 from collections import OrderedDict from inter.GetQueueCount import getQueueCount from inter.GetRepeatSubmitToken import getRepeatSubmitToken class checkOrderInfo: def __init__(self, session, train_no, set_type, passengerTicketStrList, oldPassengerStr, station_dates, ticket_peoples): self....
47.310811
124
0.595544
4a20f0286a52c94846813fe9a6a17e70cae8b440
11,438
py
Python
examples/twitter/app.py
Walicen/peewee
e9c8bbf912903e167e052d07f6247801dd0346aa
[ "MIT" ]
1
2019-11-17T04:55:26.000Z
2019-11-17T04:55:26.000Z
examples/twitter/app.py
Walicen/peewee
e9c8bbf912903e167e052d07f6247801dd0346aa
[ "MIT" ]
1
2021-01-31T08:37:28.000Z
2021-01-31T08:37:28.000Z
examples/twitter/app.py
Walicen/peewee
e9c8bbf912903e167e052d07f6247801dd0346aa
[ "MIT" ]
1
2020-03-08T10:00:27.000Z
2020-03-08T10:00:27.000Z
import datetime from flask import Flask from flask import g from flask import redirect from flask import request from flask import session from flask import url_for, abort, render_template, flash from functools import wraps from hashlib import md5 from peewee import * # config - aside from our database, the rest is f...
36.311111
89
0.673195
4a20f18111bf36fd922e7d81a8bea980b6ab4016
797
py
Python
imperative/python/megengine/conftest.py
Olalaye/MegEngine
695d24f24517536e6544b07936d189dbc031bbce
[ "Apache-2.0" ]
1
2022-03-21T03:13:45.000Z
2022-03-21T03:13:45.000Z
imperative/python/megengine/conftest.py
Olalaye/MegEngine
695d24f24517536e6544b07936d189dbc031bbce
[ "Apache-2.0" ]
null
null
null
imperative/python/megengine/conftest.py
Olalaye/MegEngine
695d24f24517536e6544b07936d189dbc031bbce
[ "Apache-2.0" ]
null
null
null
import pytest import megengine @pytest.fixture(autouse=True) def import_megengine_path(doctest_namespace): doctest_namespace["mge"] = megengine doctest_namespace["Tensor"] = megengine.Tensor doctest_namespace["F"] = megengine.functional doctest_namespace["M"] = megengine.module doctest_namespace[...
36.227273
54
0.750314
4a20f1ea6a8c97b2f23c931126e6b5b7a6650921
1,920
py
Python
djangocms_fbcomments/migrations/0001_initial.py
mishbahr/djangocms-fbcomments
4e6bf2c636196fee85a489b510f13ae67ae05af6
[ "BSD-3-Clause" ]
20
2015-09-29T10:00:56.000Z
2018-06-15T03:28:36.000Z
djangocms_fbcomments/migrations/0001_initial.py
mishbahr/djangocms-fbcomments
4e6bf2c636196fee85a489b510f13ae67ae05af6
[ "BSD-3-Clause" ]
1
2020-05-14T02:23:00.000Z
2020-05-27T14:45:59.000Z
djangocms_fbcomments/migrations/0001_initial.py
mishbahr/djangocms-fbcomments
4e6bf2c636196fee85a489b510f13ae67ae05af6
[ "BSD-3-Clause" ]
2
2016-08-04T21:35:40.000Z
2020-05-14T02:19:06.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from djangocms_fbcomments.conf import settings class Migration(migrations.Migration): dependencies = [ ('cms', '__latest__'), ] operations = [ migrations.CreateModel( na...
56.470588
272
0.685938
4a20f25e4d6a5d918d3db80cf44957c3c78cedb0
1,149
py
Python
setup.py
nikvdp/notion-py
57a2989b96870bfb119304c7c9df8d09ab7091b3
[ "MIT" ]
null
null
null
setup.py
nikvdp/notion-py
57a2989b96870bfb119304c7c9df8d09ab7091b3
[ "MIT" ]
null
null
null
setup.py
nikvdp/notion-py
57a2989b96870bfb119304c7c9df8d09ab7091b3
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() def get_requirements(fname): "Takes requirements from requirements.txt and returns a list." with open(fname) as fp: reqs = list() for lib in fp.read().split("\n"): # Ignore pypi flags and comment...
29.461538
66
0.653612
4a20f29a1443150fdced8fd6a7410194c2ea2edd
358
py
Python
test.py
drsolaris/exploding_mewgenics
66b162fc83888ada74070fbaed5f70292f684b7c
[ "Unlicense" ]
null
null
null
test.py
drsolaris/exploding_mewgenics
66b162fc83888ada74070fbaed5f70292f684b7c
[ "Unlicense" ]
null
null
null
test.py
drsolaris/exploding_mewgenics
66b162fc83888ada74070fbaed5f70292f684b7c
[ "Unlicense" ]
null
null
null
from game.game import Game import pickle file_Name = '462.net' #1456 1149 with open(file_Name, 'rb') as fileObject: net1 = pickle.load(fileObject) file_Name = '1027.net' #1119 #584 with open(file_Name, 'rb') as fileObject: net2 = pickle.load(fileObject) wins = 0 for _ in range(100): game = Game([net1, net2]) ...
19.888889
41
0.695531
4a20f60850339cdc87c0c74a4d2a21787ace109e
706
py
Python
NATOConsole.py
twomilessolutions/NATOPhoneticAlphabetHelper
1fe7dad64d177c2529518ff90b510774a027f257
[ "MIT" ]
null
null
null
NATOConsole.py
twomilessolutions/NATOPhoneticAlphabetHelper
1fe7dad64d177c2529518ff90b510774a027f257
[ "MIT" ]
null
null
null
NATOConsole.py
twomilessolutions/NATOPhoneticAlphabetHelper
1fe7dad64d177c2529518ff90b510774a027f257
[ "MIT" ]
null
null
null
from NATOTranslator import NATOTranslator from colorama import init, Fore init() def main(): word = input("\n\nEnter the word, phrase, or sentence you would like the NATO Phonetic translation for: ") translator = NATOTranslator() translation = translator.translate_string(word) print_string = "" c...
24.344828
110
0.635977
4a20f724ef26903de7d319cae9d6b9beb6b99f7e
14,222
py
Python
easyCore/Utils/UndoRedo.py
easyScience/easyCore
5d16d5b27803277d0c44886f94dab599f764ae0b
[ "BSD-3-Clause" ]
2
2021-11-02T10:22:45.000Z
2022-02-18T23:41:19.000Z
easyCore/Utils/UndoRedo.py
easyScience/easyCore
5d16d5b27803277d0c44886f94dab599f764ae0b
[ "BSD-3-Clause" ]
114
2020-06-30T08:52:27.000Z
2022-03-30T20:47:56.000Z
easyCore/Utils/UndoRedo.py
easyScience/easyCore
5d16d5b27803277d0c44886f94dab599f764ae0b
[ "BSD-3-Clause" ]
1
2022-03-04T13:01:09.000Z
2022-03-04T13:01:09.000Z
# SPDX-FileCopyrightText: 2021 easyCore contributors <core@easyscience.software> # SPDX-License-Identifier: BSD-3-Clause # © 2021 Contributors to the easyCore project <https://github.com/easyScience/easyCore> __author__ = 'github.com/wardsimon' __version__ = '0.1.0' import abc from collections import deque, UserD...
28.789474
110
0.576501
4a20f8880306bd41f14954d77c8f6c384e391867
428
py
Python
plotly/validators/surface/colorbar/_len.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
2
2020-03-24T11:41:14.000Z
2021-01-14T07:59:43.000Z
plotly/validators/surface/colorbar/_len.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
null
null
null
plotly/validators/surface/colorbar/_len.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
4
2019-06-03T14:49:12.000Z
2022-01-06T01:05:12.000Z
import _plotly_utils.basevalidators class LenValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name='len', parent_name='surface.colorbar', **kwargs ): super(LenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name...
25.176471
73
0.602804
4a20f89d24e4b13809d0a48b743a220ef5fbb78f
733
py
Python
martypy/RateAverager.py
robotical/martypy
afc1f89d471875ca1beb775f375438f97fc33679
[ "Apache-2.0" ]
8
2017-08-02T11:31:50.000Z
2022-01-05T14:36:53.000Z
martypy/RateAverager.py
robotical/martypy
afc1f89d471875ca1beb775f375438f97fc33679
[ "Apache-2.0" ]
17
2017-07-24T22:39:43.000Z
2022-01-05T14:41:20.000Z
martypy/RateAverager.py
robotical/martypy
afc1f89d471875ca1beb775f375438f97fc33679
[ "Apache-2.0" ]
5
2017-11-12T08:51:18.000Z
2020-11-27T09:28:46.000Z
import time class RateAverager: def __init__(self, windowSizeMinSecs = 1): self.sampleCount = 0 self.windowSizeMinSecs = windowSizeMinSecs self.lastCalcSecs = time.time() self.prevVal = 0 self.totalCount = 0 def addSample(self): self.sampleCount += 1 ...
27.148148
74
0.601637
4a20f8afebe770c046b6775f0028d75dba283c48
12,990
py
Python
model.py
Straffern/vsepp
abd87733f7081ae864c29ca5c09809cf2ee316bb
[ "Apache-2.0" ]
null
null
null
model.py
Straffern/vsepp
abd87733f7081ae864c29ca5c09809cf2ee316bb
[ "Apache-2.0" ]
null
null
null
model.py
Straffern/vsepp
abd87733f7081ae864c29ca5c09809cf2ee316bb
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn import torch.nn.init import torchvision.models as models from torch.autograd import Variable from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence import torch.backends.cudnn as cudnn from torch.nn.utils.clip_grad import clip_grad_norm import numpy as np from collec...
33.307692
79
0.603849
4a20f9e020e57ef3dc9d876e29e43a5d0de5faf1
2,425
py
Python
duden/common.py
Scriptim/duden
0d0c0dbb0b6d33f8fb269a8bde50a227e3fe44da
[ "MIT" ]
null
null
null
duden/common.py
Scriptim/duden
0d0c0dbb0b6d33f8fb269a8bde50a227e3fe44da
[ "MIT" ]
null
null
null
duden/common.py
Scriptim/duden
0d0c0dbb0b6d33f8fb269a8bde50a227e3fe44da
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from string import ascii_lowercase def recursively_extract(node, exfun, maxdepth=2): """ Transform a html ul/ol tree into a python list tree. Converts a html node containing ordered and unordered lists and list items into an object of lists with tree-like structure. Leaves are...
27.556818
78
0.583093
4a20fa5c08946ca8269c7a4066919dffa8e0e847
1,288
py
Python
cms/test_utils/project/sampleapp/models.py
Mario-Kart-Felix/django-cms
6d68439fe7fd59d000f99e27c1f2135a3f9c816a
[ "BSD-3-Clause" ]
5,659
2015-01-01T02:42:30.000Z
2020-10-07T02:38:29.000Z
cms/test_utils/project/sampleapp/models.py
rpep/django-cms
53dddb106f45963f9f8393d434b4313fa3bbdf54
[ "BSD-3-Clause" ]
3,264
2015-01-02T10:11:48.000Z
2020-10-08T13:15:07.000Z
cms/test_utils/project/sampleapp/models.py
rpep/django-cms
53dddb106f45963f9f8393d434b4313fa3bbdf54
[ "BSD-3-Clause" ]
2,132
2015-01-01T11:28:21.000Z
2020-10-06T09:09:11.000Z
from django.db import models from django.urls import reverse from treebeard.mp_tree import MP_Node from cms.models.fields import PageField, PlaceholderField class Category(MP_Node): parent = models.ForeignKey('self', blank=True, null=True, on_delete=models.CASCADE) name = models.CharField(max_length=20) ...
25.76
87
0.736801
4a20fcd8e539deca23af8f30e45f3c12de8e2b73
795
py
Python
opencv_learn/charpter03/demo_13.15.py
zhangxinzhou/play_game
854448f8416b2d3f98bb2c3ed0f7d834a61593de
[ "Apache-2.0" ]
null
null
null
opencv_learn/charpter03/demo_13.15.py
zhangxinzhou/play_game
854448f8416b2d3f98bb2c3ed0f7d834a61593de
[ "Apache-2.0" ]
null
null
null
opencv_learn/charpter03/demo_13.15.py
zhangxinzhou/play_game
854448f8416b2d3f98bb2c3ed0f7d834a61593de
[ "Apache-2.0" ]
null
null
null
import cv2 import numpy as np # 读取原始图像 lena = cv2.imread(r"..\lena.jpg", 0) # 读取水印 watermark = cv2.imread(r"..\watermark.bmp", 0) # 将水印图像内的值255处理为1,以方便嵌入 w = watermark[:, :] > 0 watermark[w] = 1 # 读取原始载体图像的shape值 r, c = lena.shape # ===========嵌入过程============= # 生产元素值都是254的数组 t254 = np.ones((r, c), dtype=np.uint8) * ...
22.083333
46
0.621384
4a20fd016a53fae0b0eb8ab29795a188a0723802
702
py
Python
tests/test_fsspec_compat.py
mhaberler/xpublish
38228d0399d97dae591d4c1fa2a7664a2e2a89c6
[ "MIT" ]
null
null
null
tests/test_fsspec_compat.py
mhaberler/xpublish
38228d0399d97dae591d4c1fa2a7664a2e2a89c6
[ "MIT" ]
29
2020-09-24T05:59:43.000Z
2022-03-31T01:04:22.000Z
tests/test_fsspec_compat.py
benbovy/xpublish
563b0b7b02aace1e9ea5aa299a90a15873692a78
[ "MIT" ]
null
null
null
import json import pytest import xarray as xr from xpublish import Rest from xpublish.utils.zarr import create_zmetadata, jsonify_zmetadata from .utils import TestMapper @pytest.fixture(scope='module') def airtemp_ds(): ds = xr.tutorial.open_dataset('air_temperature') return ds def test_get_zmetadata_key...
24.206897
74
0.754986
4a20fdc77aa3edd0dae77b67e1c753ae421883ec
3,152
py
Python
pkgs/ops-pkg/src/genie/libs/ops/nd/iosxe/tests/nd_output.py
jbronikowski/genielibs
200a34e5fe4838a27b5a80d5973651b2e34ccafb
[ "Apache-2.0" ]
94
2018-04-30T20:29:15.000Z
2022-03-29T13:40:31.000Z
pkgs/ops-pkg/src/genie/libs/ops/nd/iosxe/tests/nd_output.py
jbronikowski/genielibs
200a34e5fe4838a27b5a80d5973651b2e34ccafb
[ "Apache-2.0" ]
67
2018-12-06T21:08:09.000Z
2022-03-29T18:00:46.000Z
pkgs/ops-pkg/src/genie/libs/ops/nd/iosxe/tests/nd_output.py
jbronikowski/genielibs
200a34e5fe4838a27b5a80d5973651b2e34ccafb
[ "Apache-2.0" ]
49
2018-06-29T18:59:03.000Z
2022-03-10T02:07:59.000Z
''' Nd Genie Ops Object Outputs for IOSXE. ''' class NdOutput(object): ShowIpv6Neighbors = { "interface": { "GigabitEthernet2.90": { "interface": "GigabitEthernet2.90", "neighbors": { "FE80::F816:3EFF:FE0F:B2EC": { ...
33.892473
72
0.36453
4a20fe60583f7103dfbfc1bd6af4d10ca1d15175
44,875
py
Python
ax/service/ax_client.py
EricZLou/Ax
3f8fc6f4a055e93cb69fda3799be41ee9572ef02
[ "MIT" ]
null
null
null
ax/service/ax_client.py
EricZLou/Ax
3f8fc6f4a055e93cb69fda3799be41ee9572ef02
[ "MIT" ]
null
null
null
ax/service/ax_client.py
EricZLou/Ax
3f8fc6f4a055e93cb69fda3799be41ee9572ef02
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # 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 json import logging import warnings from typing import Any, Dict, List, Optional, Tuple, Union import ax.servic...
44.91992
88
0.634585
4a21009e61bad04973ec5c982ad0b2dae0b2ea9e
1,849
py
Python
alipay/aop/api/domain/AlipayOpenAppMessageSubscriptionQueryModel.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
1
2022-03-07T06:11:10.000Z
2022-03-07T06:11:10.000Z
alipay/aop/api/domain/AlipayOpenAppMessageSubscriptionQueryModel.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayOpenAppMessageSubscriptionQueryModel.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
1
2021-10-05T03:01:09.000Z
2021-10-05T03:01:09.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayOpenAppMessageSubscriptionQueryModel(object): def __init__(self): self._auth_token = None self._auth_type = None self._topic = None @property def auth_token...
26.042254
71
0.579232
4a210292b494220f2ce2625489484193bc562309
995
py
Python
docker/modify-gtf/SetGeneNameToId.py
lilab-bcb/skylab
d230f2d31ba877db58948a9ed73486cd7c71dd59
[ "BSD-3-Clause" ]
45
2017-10-12T19:37:29.000Z
2022-01-22T02:56:57.000Z
docker/modify-gtf/SetGeneNameToId.py
lilab-bcb/skylab
d230f2d31ba877db58948a9ed73486cd7c71dd59
[ "BSD-3-Clause" ]
203
2017-08-15T13:50:21.000Z
2021-02-18T01:20:25.000Z
docker/modify-gtf/SetGeneNameToId.py
truwl/skylab
e31492cd0219ff6f236cd0500401004f16f0fe41
[ "BSD-3-Clause" ]
42
2017-09-13T14:44:36.000Z
2022-03-15T09:27:52.000Z
#!/usr/bin/env python import argparse import re parser = argparse.ArgumentParser(description="Set the gene_name within a gtf to be equivalent to the values within gene_id.") parser.add_argument('--in-gtf-file', dest='ingtf', help='input gtf file') parser.add_argument('--out-gtf-file', dest='outgtf', help='output gtf ...
38.269231
125
0.632161
4a2102942a67e64aa942084dd11ea6c462a2a366
9,141
py
Python
presalytics/client/presalytics_ooxml_automation/models/shared_paragraph_details.py
presalytics/python-client
5d80b78562126feeeb49af4738e2c1aed12dce3a
[ "MIT" ]
4
2020-02-21T16:30:46.000Z
2021-01-12T12:22:03.000Z
presalytics/client/presalytics_ooxml_automation/models/shared_paragraph_details.py
presalytics/python-client
5d80b78562126feeeb49af4738e2c1aed12dce3a
[ "MIT" ]
4
2019-12-28T19:30:08.000Z
2020-03-31T19:27:45.000Z
presalytics/client/presalytics_ooxml_automation/models/shared_paragraph_details.py
presalytics/python-client
5d80b78562126feeeb49af4738e2c1aed12dce3a
[ "MIT" ]
null
null
null
# coding: utf-8 """ OOXML Automation This API helps users convert Excel and Powerpoint documents into rich, live dashboards and stories. # noqa: E501 The version of the OpenAPI document: 0.1.0-no-tags Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import si...
28.655172
193
0.613828
4a2102f4272ede7c43a23efd9b875483014ddf6f
3,648
py
Python
swagger_gen/lib/endpoint.py
danleonard-nj/swagger-gen
dd0be9c82107b9977a2af0f90644eccde8ed2ef3
[ "MIT" ]
null
null
null
swagger_gen/lib/endpoint.py
danleonard-nj/swagger-gen
dd0be9c82107b9977a2af0f90644eccde8ed2ef3
[ "MIT" ]
null
null
null
swagger_gen/lib/endpoint.py
danleonard-nj/swagger-gen
dd0be9c82107b9977a2af0f90644eccde8ed2ef3
[ "MIT" ]
null
null
null
from swagger_gen.lib.utils import element_at, not_null from swagger_gen.lib.constants import Method from werkzeug.routing import Rule from typing import List class SwaggerEndpoint: def __init__(self, rule: Rule): not_null(rule, 'rule') self._rule = rule @property def view_function_name(se...
30.915254
77
0.609101
4a2103b5cec4d623eb06a0fd0eec7b2d7b426ee3
9,086
py
Python
nova/tests/functional/libvirt/test_report_cpu_traits.py
maya2250/nova
e483ca1cd9a5db5856f87fc69ca07c42d2be5def
[ "Apache-2.0" ]
null
null
null
nova/tests/functional/libvirt/test_report_cpu_traits.py
maya2250/nova
e483ca1cd9a5db5856f87fc69ca07c42d2be5def
[ "Apache-2.0" ]
1
2020-11-05T17:42:24.000Z
2020-11-05T17:42:24.000Z
nova/tests/functional/libvirt/test_report_cpu_traits.py
Mattlk13/nova
5b13eb59540aaf535a53920e783964d106de2620
[ "Apache-2.0" ]
1
2020-07-22T22:14:40.000Z
2020-07-22T22:14:40.000Z
# Copyright (c) 2018 Intel, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
41.488584
79
0.678186
4a21043ab9dd1485c8ef18122db858cc94b7066b
3,782
py
Python
media_library/tests/models_tests.py
bitlabstudio/django-media-library
f3c8a09bff9abbee79b351b5bf5eea7ece52180d
[ "MIT" ]
1
2021-01-13T17:37:54.000Z
2021-01-13T17:37:54.000Z
media_library/tests/models_tests.py
bitmazk/django-media-library
f3c8a09bff9abbee79b351b5bf5eea7ece52180d
[ "MIT" ]
null
null
null
media_library/tests/models_tests.py
bitmazk/django-media-library
f3c8a09bff9abbee79b351b5bf5eea7ece52180d
[ "MIT" ]
null
null
null
"""Tests for the models of the ``media_library`` app.""" from django.test import TestCase from user_media.models import UserMediaImage from user_media.tests.factories import UserMediaImageFactory from . import factories class MediaLibraryTestCase(TestCase): """Tests for the ``MediaLibrary`` model class.""" ...
33.469027
71
0.589635
4a2104d9f87334697b3d34823c513688abebce88
2,532
py
Python
core/src/zeit/cms/syndication/mytargets.py
rickdg/vivi
16134ac954bf8425646d4ad47bdd1f372e089355
[ "BSD-3-Clause" ]
5
2019-05-16T09:51:29.000Z
2021-05-31T09:30:03.000Z
core/src/zeit/cms/syndication/mytargets.py
rickdg/vivi
16134ac954bf8425646d4ad47bdd1f372e089355
[ "BSD-3-Clause" ]
107
2019-05-24T12:19:02.000Z
2022-03-23T15:05:56.000Z
core/src/zeit/cms/syndication/mytargets.py
rickdg/vivi
16134ac954bf8425646d4ad47bdd1f372e089355
[ "BSD-3-Clause" ]
3
2020-08-14T11:01:17.000Z
2022-01-08T17:32:19.000Z
import persistent import BTrees import zope.annotation import zope.component import zope.interface import zope.container.contained import zope.app.keyreference.interfaces import zeit.cms.content.property import zeit.cms.repository.interfaces import zeit.cms.workingcopy.interfaces import zeit.cms.syndication.interfa...
32.050633
69
0.662322
4a2104f38464d32a31195b16051efd4f61ba1806
4,673
py
Python
setup.py
sosaucily/hummingbot
082883319253399b2c7a321c709c97dcd84b9b72
[ "Apache-2.0" ]
2
2020-10-06T15:00:31.000Z
2021-03-05T16:37:39.000Z
setup.py
sosaucily/hummingbot
082883319253399b2c7a321c709c97dcd84b9b72
[ "Apache-2.0" ]
null
null
null
setup.py
sosaucily/hummingbot
082883319253399b2c7a321c709c97dcd84b9b72
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from setuptools import setup from Cython.Build import cythonize import numpy as np import os import subprocess import sys is_posix = (os.name == "posix") if is_posix: os_name = subprocess.check_output("uname").decode("utf8") if "Darwin" in os_name: os.environ["CFLAGS"] = "-stdli...
28.321212
74
0.563022
4a2104f5595c52a9384ed841f9422661c461e9ac
1,357
py
Python
bot/env.py
JNDevs/HariBot
981771f98a497e49771d2fdef8ede289a96a63af
[ "MIT" ]
null
null
null
bot/env.py
JNDevs/HariBot
981771f98a497e49771d2fdef8ede289a96a63af
[ "MIT" ]
null
null
null
bot/env.py
JNDevs/HariBot
981771f98a497e49771d2fdef8ede289a96a63af
[ "MIT" ]
1
2021-08-12T12:15:40.000Z
2021-08-12T12:15:40.000Z
"""This modules parses environment variables""" # pylint: disable=R0903, E0611 from typing import Optional from pydantic import BaseSettings, HttpUrl from .core.helpers.config import DatabaseConfig, LavalinkConfig __all__ = ("bot_config", "db_config", "lavalink_config") class BotConfig(BaseSettings): """ ...
22.245902
78
0.686809
4a21054ed8398a6e2ba5e1c03b0d64ec470ff2a3
291
py
Python
tests/roots/test-templating/conf.py
zhsj/sphinx
169297d0b76bf0b503033dadeb14f9a2b735e422
[ "BSD-2-Clause" ]
3
2019-06-11T09:42:08.000Z
2020-03-10T15:57:09.000Z
tests/roots/test-templating/conf.py
zhsj/sphinx
169297d0b76bf0b503033dadeb14f9a2b735e422
[ "BSD-2-Clause" ]
12
2019-01-09T15:43:57.000Z
2020-01-21T10:46:30.000Z
tests/roots/test-templating/conf.py
zhsj/sphinx
169297d0b76bf0b503033dadeb14f9a2b735e422
[ "BSD-2-Clause" ]
10
2019-02-04T11:49:35.000Z
2020-03-21T13:32:20.000Z
# -*- coding: utf-8 -*- project = 'Sphinx templating <Tests>' source_suffix = '.txt' keep_warnings = True templates_path = ['_templates'] release = version = '2013.120' exclude_patterns = ['_build'] extensions = ['sphinx.ext.autosummary'] autosummary_generate = ['autosummary_templating']
24.25
49
0.721649
4a2105b4dab85b4fa2676e3d11ce354fe0ef09fc
692
py
Python
src/backend/app/db/models/event.py
douglasdaly/dougliz-wedding
da673baf3a7387c3818960c0ffa12ab7c830a89b
[ "MIT" ]
5
2020-02-02T02:39:23.000Z
2021-08-17T15:50:57.000Z
src/backend/app/db/models/event.py
douglasdaly/dougliz-wedding
da673baf3a7387c3818960c0ffa12ab7c830a89b
[ "MIT" ]
4
2021-03-31T19:39:57.000Z
2022-01-22T09:29:10.000Z
src/backend/app/db/models/event.py
douglasdaly/dougliz-wedding
da673baf3a7387c3818960c0ffa12ab7c830a89b
[ "MIT" ]
1
2020-04-12T17:11:43.000Z
2020-04-12T17:11:43.000Z
# -*- coding: utf-8 -*- """ Person database storage model. """ import uuid import sqlalchemy as sa from sqlalchemy.orm import relationship from app.db.base_class import Base from app.db.types import GUID class Event(Base): """ Database storage for Event objects. """ id = sa.Column(sa.Integer, primar...
23.862069
70
0.687861
4a2107bab26885af4773e5df8ab4534b431c7289
277
py
Python
trinity/sync/common/constants.py
dendisuhubdy/trinity
001664781259c7dd0779a0ef6f822451b608ded4
[ "MIT" ]
3
2019-06-17T13:59:20.000Z
2021-05-02T22:09:13.000Z
trinity/sync/common/constants.py
dendisuhubdy/trinity
001664781259c7dd0779a0ef6f822451b608ded4
[ "MIT" ]
2
2019-04-30T06:22:12.000Z
2019-06-14T04:27:18.000Z
trinity/sync/common/constants.py
dendisuhubdy/trinity
001664781259c7dd0779a0ef6f822451b608ded4
[ "MIT" ]
2
2019-09-05T01:31:56.000Z
2019-09-17T09:09:16.000Z
# If a peer returns 0 results, wait this many seconds before asking it for anything else EMPTY_PEER_RESPONSE_PENALTY = 15.0 # Picked a reorg number that is covered by a single skeleton header request, # which covers about 6 days at 15s blocks MAX_SKELETON_REORG_DEPTH = 35000
39.571429
88
0.801444
4a2107d24b5a0f7eb792a89caa8ac94245cc63dc
176
py
Python
test/vtgate_gateway_flavor/__init__.py
bowlofstew/vitess
659c6c0582cdb4f5d3defcd3dbfc1a5f839cabc8
[ "BSD-3-Clause" ]
1
2017-06-29T04:57:43.000Z
2017-06-29T04:57:43.000Z
test/vtgate_gateway_flavor/__init__.py
AndyDiamondstein/vitess
295c300cd22c109f8be7a454c03c96c6b8e3b55c
[ "BSD-3-Clause" ]
null
null
null
test/vtgate_gateway_flavor/__init__.py
AndyDiamondstein/vitess
295c300cd22c109f8be7a454c03c96c6b8e3b55c
[ "BSD-3-Clause" ]
3
2017-04-03T21:07:17.000Z
2020-03-04T04:59:05.000Z
#!/usr/bin/env python # Copyright 2015, Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can # be found in the LICENSE file.
29.333333
69
0.744318
4a21096da7e160970f2eb66ddd4934be924a9e12
2,335
py
Python
app/model.py
schuderer/mllaunchpad-template
2fa0b39c8c6e879e3ebc57fa863d50e4f3262d2b
[ "Apache-2.0" ]
2
2020-03-03T23:18:19.000Z
2020-03-04T21:54:40.000Z
app/model.py
schuderer/mllaunchpad-template
2fa0b39c8c6e879e3ebc57fa863d50e4f3262d2b
[ "Apache-2.0" ]
6
2020-02-21T13:31:43.000Z
2020-06-15T14:23:59.000Z
app/model.py
schuderer/mllaunchpad-template
2fa0b39c8c6e879e3ebc57fa863d50e4f3262d2b
[ "Apache-2.0" ]
null
null
null
from mllaunchpad import ModelInterface, ModelMakerInterface from sklearn.metrics import accuracy_score, confusion_matrix from sklearn import tree import pandas as pd import logging from app.example_import import clean_string logger = logging.getLogger(__name__) # Train this example from the command line: # python -m...
29.556962
105
0.665953
4a2109f2ce56ab419c3eeaeaf540961bedc96658
5,424
py
Python
main.py
KingJellycycle/Neutralino-Deimos
2871851aabc484f7cabc224aec5415a6423827c3
[ "MIT" ]
null
null
null
main.py
KingJellycycle/Neutralino-Deimos
2871851aabc484f7cabc224aec5415a6423827c3
[ "MIT" ]
null
null
null
main.py
KingJellycycle/Neutralino-Deimos
2871851aabc484f7cabc224aec5415a6423827c3
[ "MIT" ]
null
null
null
import codecs import webview import urllib.request import xml.dom.minidom import json import os from gamemanager import GameManager _server_address = "http://192.168.0.196/" _news_address = "https://www.kingjellycycle.com/feed.xml" class Api(): def __init__(self): self.window = False self.mainv...
32.674699
101
0.569875
4a210a1ea3997ffc2344b7679df9e4582e4d829c
4,069
py
Python
docs/usage/library.py
Ahrak/mkapi
fdae77dac6fde1788a323e0e3c76adda8959f31e
[ "MIT" ]
null
null
null
docs/usage/library.py
Ahrak/mkapi
fdae77dac6fde1788a323e0e3c76adda8959f31e
[ "MIT" ]
null
null
null
docs/usage/library.py
Ahrak/mkapi
fdae77dac6fde1788a323e0e3c76adda8959f31e
[ "MIT" ]
null
null
null
"""md # Using MkApi within Python MkApi is a standalone library as well as a MkDocs plugin, so that you can use it within Python. First, import MkApi: {{ # cache:clear }} <style type="text/css"> <!-- .mkapi-node { border: 2px dashed #88AA88; } --> </style> """ import mkapi # ## Node object # Define a simpl...
23.119318
87
0.702138
4a210b9e53e4a1f2fe704ae10bbb4892f4dda987
2,352
py
Python
code/renderstick.py
cflamant/3d-pose-reconstruction
8847a1eba88fe216b72ad74a21707e8d877bc63c
[ "MIT" ]
5
2019-07-20T13:26:20.000Z
2021-01-30T12:53:05.000Z
code/renderstick.py
cflamant/3d-pose-reconstruction
8847a1eba88fe216b72ad74a21707e8d877bc63c
[ "MIT" ]
null
null
null
code/renderstick.py
cflamant/3d-pose-reconstruction
8847a1eba88fe216b72ad74a21707e8d877bc63c
[ "MIT" ]
1
2021-01-30T12:53:08.000Z
2021-01-30T12:53:08.000Z
#!/usr/bin/env python #Author: Cedric Flamant import numpy as np import vpython as vp #import matplotlib.pyplot as plt #from mpl_toolkits.mplot3d import Axes3D import angletopos def tovec(arr): """Converts numpy 3-vector into vp.vector Input => arr: 3 element numpy array Returns => vec: v...
39.864407
90
0.642432
4a210cfe1c718631e6cbaa860e979862e99efa60
10,567
py
Python
tools/openblas_support.py
rushabh-v/numpy
f30b2564d3923b2c307a026e4a22d20bc19872f0
[ "BSD-3-Clause" ]
2
2020-02-28T09:28:20.000Z
2020-10-12T07:11:28.000Z
tools/openblas_support.py
rushabh-v/numpy
f30b2564d3923b2c307a026e4a22d20bc19872f0
[ "BSD-3-Clause" ]
null
null
null
tools/openblas_support.py
rushabh-v/numpy
f30b2564d3923b2c307a026e4a22d20bc19872f0
[ "BSD-3-Clause" ]
null
null
null
from __future__ import division, absolute_import, print_function import os import sys import glob import shutil import textwrap import platform try: from urllib.request import urlopen from urllib.error import HTTPError except: #Python2 from urllib2 import urlopen, HTTPError from tempfile import mkstemp...
36.064846
95
0.578972
4a210d0c546c86bb93fc7cf915d9df44f9315653
1,837
py
Python
SR/code/model/mdsr.py
Whoo-jl/Pyramid-Attention-Networks
ec20b3fecf590bebc7188eac03a571e69aa6088f
[ "MIT" ]
338
2020-04-30T01:07:49.000Z
2022-03-29T03:36:56.000Z
code/model/mdsr.py
HarukiYqM/3D_Appearance_SR
0e4d3a4476afe1ccf16f0e8fee3d697c0d204395
[ "MIT" ]
21
2020-05-02T14:10:51.000Z
2021-05-21T08:32:42.000Z
code/model/mdsr.py
HarukiYqM/3D_Appearance_SR
0e4d3a4476afe1ccf16f0e8fee3d697c0d204395
[ "MIT" ]
56
2020-04-30T08:09:38.000Z
2022-03-14T06:23:34.000Z
from model import common import torch.nn as nn def make_model(args, parent=False): return MDSR(args) class MDSR(nn.Module): def __init__(self, args, conv=common.default_conv): super(MDSR, self).__init__() n_resblocks = args.n_resblocks n_feats = args.n_feats kernel_size = 3 ...
26.623188
78
0.567229
4a210d8b47e9b2d9f9e0ce35cec69e343cf853ad
23,207
py
Python
pandas/core/window/ewm.py
mujtahidalam/pandas
526468c8fe6fc5157aaf2fce327c5ab2a3350f49
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
1
2021-12-07T13:37:31.000Z
2021-12-07T13:37:31.000Z
pandas/core/window/ewm.py
mujtahidalam/pandas
526468c8fe6fc5157aaf2fce327c5ab2a3350f49
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/core/window/ewm.py
mujtahidalam/pandas
526468c8fe6fc5157aaf2fce327c5ab2a3350f49
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
from __future__ import annotations import datetime from functools import partial from textwrap import dedent import warnings import numpy as np from pandas._libs.tslibs import Timedelta import pandas._libs.window.aggregations as window_aggregations from pandas._typing import ( Axis, FrameOrSeries, FrameO...
34.127941
88
0.570345
4a210ed80ec28506cd5e01cab09101738d8d7d22
4,840
py
Python
portal/apps/dashboard/management/commands/subscribers.py
djpeluca/utopia-cms
1e444afea565fdc734abf449b8ebe9b7c2c47d80
[ "BSD-3-Clause" ]
8
2020-12-15T17:11:08.000Z
2021-12-13T22:08:33.000Z
portal/apps/dashboard/management/commands/subscribers.py
djpeluca/utopia-cms
1e444afea565fdc734abf449b8ebe9b7c2c47d80
[ "BSD-3-Clause" ]
28
2020-12-15T17:34:03.000Z
2022-02-01T04:09:10.000Z
portal/apps/dashboard/management/commands/subscribers.py
djpeluca/utopia-cms
1e444afea565fdc734abf449b8ebe9b7c2c47d80
[ "BSD-3-Clause" ]
7
2020-12-15T19:59:17.000Z
2021-11-24T16:47:06.000Z
from os.path import join from unicodecsv import writer import operator from progress.bar import Bar from django.core.management.base import BaseCommand from django.conf import settings from core.models import Article, ArticleViewedBy, Publication, Section class Command(BaseCommand): help = u'Generates the artic...
39.672131
116
0.592769
4a210f85cc49bed7bee709d97c408a8b6b0596d6
190
py
Python
Python_Challenge_115/2/6.py
LIkelion-at-KOREATECH/LikeLion_Django_Study_Summary
c788182af5bcfd16bdd4b57235a48659758e494b
[ "MIT" ]
28
2019-10-15T13:15:26.000Z
2021-11-08T08:23:45.000Z
Python_Challenge_115/2/6.py
jhleed/LikeLion_Django_Study_Summary
c788182af5bcfd16bdd4b57235a48659758e494b
[ "MIT" ]
null
null
null
Python_Challenge_115/2/6.py
jhleed/LikeLion_Django_Study_Summary
c788182af5bcfd16bdd4b57235a48659758e494b
[ "MIT" ]
17
2019-09-09T00:15:36.000Z
2021-01-28T13:08:51.000Z
''' Statement Given a positive real number, print its first digit to the right of the decimal point. Example input 1.79 Example output 7 ''' num = float(input()) print(int(num * 10 % 10))
14.615385
86
0.710526
4a210fe32805c8b31ebe4291d2d0e84af7434378
4,723
py
Python
var/spack/repos/builtin/packages/elk/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2020-10-15T01:08:42.000Z
2021-10-18T01:28:18.000Z
var/spack/repos/builtin/packages/elk/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2019-07-30T10:12:28.000Z
2019-12-17T09:02:27.000Z
var/spack/repos/builtin/packages/elk/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
5
2019-07-30T09:42:14.000Z
2021-01-25T05:39:20.000Z
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Elk(MakefilePackage): """An all-electron full-potential linearised augmented-plane wave ...
35.511278
96
0.556638
4a2110e2d23810e1a40ee3dc5ad16db0a2672457
2,963
py
Python
solver/coeff_formulas.py
ggruszczynski/pyVLM
b4ddeae91969c77544117fef5c4ef81918f4f20b
[ "MIT" ]
9
2018-06-10T02:09:22.000Z
2022-01-11T16:25:55.000Z
solver/coeff_formulas.py
ggruszczynski/pyVLM
b4ddeae91969c77544117fef5c4ef81918f4f20b
[ "MIT" ]
3
2018-02-26T07:11:59.000Z
2020-05-08T11:37:18.000Z
solver/coeff_formulas.py
ggruszczynski/pyVLM
b4ddeae91969c77544117fef5c4ef81918f4f20b
[ "MIT" ]
null
null
null
import numpy as np from scipy import interpolate import warnings def get_CL_CD_free_wing(AR, AoA_deg): a0 = 2. * np.pi # dCL/d_alfa in 2D [1/rad] e_w = 0.8 # span efficiency factor, range: 0.8 - 1.0 a = a0 / (1. + a0 / (np.pi * AR * e_w)) CL_expected_3d = a * np.deg2rad(AoA_deg) CD_ind_expected...
32.922222
117
0.646979
4a21115a40bed721b290c8d29fe601c34a6dc43d
1,148
py
Python
test_joke.py
renatojobal/DiscordBotJokeTester
dbdcb4c160913e44e3703e24dd848f8970a92b74
[ "MIT" ]
null
null
null
test_joke.py
renatojobal/DiscordBotJokeTester
dbdcb4c160913e44e3703e24dd848f8970a92b74
[ "MIT" ]
1
2021-04-30T00:36:45.000Z
2021-05-01T00:48:20.000Z
test_joke.py
renatojobal/DiscordBotJokeTester
dbdcb4c160913e44e3703e24dd848f8970a92b74
[ "MIT" ]
null
null
null
from command import Command import random from discord import Embed from discord.message import Message jokes_answer = [ 'Mas o menos tu bromita 7/10', '¡Oigan todos! Master bromas aqui presente', '¿Acaso aprendiste de Jucaritas? 10/10', 'Uff +1000 lince', 'Se te cayeron tus zapatos de payaso', ...
24.425532
51
0.615854
4a21124eb385390cd0fa8424e3590ca25ed5785a
15,352
py
Python
main.py
jnicol17/Fortnite-Enhanced-Leaderboards
bf7cca990f0338637b12e332cc00b2783d8f581f
[ "MIT" ]
null
null
null
main.py
jnicol17/Fortnite-Enhanced-Leaderboards
bf7cca990f0338637b12e332cc00b2783d8f581f
[ "MIT" ]
null
null
null
main.py
jnicol17/Fortnite-Enhanced-Leaderboards
bf7cca990f0338637b12e332cc00b2783d8f581f
[ "MIT" ]
null
null
null
import requests import config import json import re from time import sleep from operator import itemgetter # Solo leaderboards solo_leaderboards = {} # These leaderboards will be populated with lists of dictionaries of player # stats that can then be sorted and displayed group_leaderboards = { "LIFETIME STATS":{ ...
37.812808
138
0.536152
4a2112bf7ac96fb04c7a2552160ade4f762a5768
203
py
Python
config.py
Tartar-san/montage.ai
c699dfaf300fdca69f3dbc5d63fae9f00a26ca40
[ "Apache-2.0" ]
3
2018-07-30T01:39:25.000Z
2021-07-08T16:50:17.000Z
config.py
Tartar-san/montage.ai
c699dfaf300fdca69f3dbc5d63fae9f00a26ca40
[ "Apache-2.0" ]
null
null
null
config.py
Tartar-san/montage.ai
c699dfaf300fdca69f3dbc5d63fae9f00a26ca40
[ "Apache-2.0" ]
1
2021-07-08T17:01:08.000Z
2021-07-08T17:01:08.000Z
CHUNKS_PATH = "data/chunks" SCRAPPED_VIDEOS = "data/scrapped_videos" CHUNKS_SCRAPPED_VIDEOS = "data/chunks_scrapped_videos" CHUNKS_SCRAPPED_VIDEOS_AUDIO = "data/chunks_scrapped_videos_audio" OUT_FPS = 24
40.6
66
0.847291
4a21145fa14be10a2349065703ab83c5aec7a6ce
180
py
Python
app/messages.py
WaqasKhwaja/FastAPI
55013127a9b3f0d737eb77ce1f9f7ca04ed4285d
[ "MIT" ]
null
null
null
app/messages.py
WaqasKhwaja/FastAPI
55013127a9b3f0d737eb77ce1f9f7ca04ed4285d
[ "MIT" ]
null
null
null
app/messages.py
WaqasKhwaja/FastAPI
55013127a9b3f0d737eb77ce1f9f7ca04ed4285d
[ "MIT" ]
null
null
null
"""Friendly messsages""" from fastapi import APIRouter router = APIRouter() @router.get('/hello') async def hello(): """You look like a whole clown right now. 🤡""" pass
16.363636
50
0.661111
4a21167b24372af2437f66b8d6a7b198cc5f6996
1,448
py
Python
flappy_bird/terrain_generation.py
mehmeterenballi/Flappy-Bird-Try
66190b1826e8604ccb9b0389c4210a700d227d4b
[ "MIT" ]
null
null
null
flappy_bird/terrain_generation.py
mehmeterenballi/Flappy-Bird-Try
66190b1826e8604ccb9b0389c4210a700d227d4b
[ "MIT" ]
null
null
null
flappy_bird/terrain_generation.py
mehmeterenballi/Flappy-Bird-Try
66190b1826e8604ccb9b0389c4210a700d227d4b
[ "MIT" ]
null
null
null
import pygame as pg class Pipes(pg.sprite.Sprite): def __init__(self, pos, *groups): self.groups = groups[0], groups[1] self.bird = groups[2] pg.sprite.Sprite.__init__(self, self.groups) upper_colon = pg.image.load('pipe-green.png').convert_alpha() lower_colon ...
30.166667
104
0.601519
4a21171e2dac8cede114d31e9dda2761f0a3213b
19,288
py
Python
testing/run_tests.py
rmarianetti/engine
33ba62960b78b86899807bafa0361e6bdffc65ea
[ "BSD-3-Clause" ]
1
2019-04-21T12:35:21.000Z
2019-04-21T12:35:21.000Z
testing/run_tests.py
duanqz/engine
30063a97ea4a71839411b6488baad13cac41748d
[ "BSD-3-Clause" ]
null
null
null
testing/run_tests.py
duanqz/engine
30063a97ea4a71839411b6488baad13cac41748d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright 2013 The Flutter Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ A top level harness to run all unit-tests in a specific engine build. """ import argparse import glob import os import re import su...
36.323917
131
0.724907
4a2117465534f5cb436f3fb0eae22a97e208f5a5
719
py
Python
taproom/tests/test_systems.py
slochower/host-guest-benchmarks
c398b499fe6dbae39523278946c0e25eb78d6d66
[ "MIT" ]
null
null
null
taproom/tests/test_systems.py
slochower/host-guest-benchmarks
c398b499fe6dbae39523278946c0e25eb78d6d66
[ "MIT" ]
8
2019-07-05T17:55:27.000Z
2022-03-21T18:59:50.000Z
taproom/tests/test_systems.py
slochower/host-guest-benchmarks
c398b499fe6dbae39523278946c0e25eb78d6d66
[ "MIT" ]
1
2020-05-05T22:51:21.000Z
2020-05-05T22:51:21.000Z
""" Tests whether `taproom` can find hosts. """ import logging from taproom.entry_points import find_host_guest_pairs logger = logging.getLogger(__name__) def test_bcd(): """ Test that we can find two host YAML instructions for β-cyclodextrin. """ host_guest_systems, host_guest_measurements = find_host_gue...
31.26087
83
0.731572
4a21175ed7f9abbbd2585a367203eea2b6ff75ac
1,380
py
Python
google/maps/roads/v1op/roads-v1op-py/google/maps/roads/__init__.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
google/maps/roads/v1op/roads-v1op-py/google/maps/roads/__init__.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
6
2021-02-02T23:46:11.000Z
2021-11-15T01:46:02.000Z
google/maps/roads/v1op/roads-v1op-py/google/maps/roads/__init__.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
4
2021-01-28T23:25:45.000Z
2021-08-30T01:55:16.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
38.333333
92
0.792029
4a2117f31fda35567b3777349767971103ed3634
723
py
Python
setup.py
Marvin-Be/OkapiPythonConnector
3accd89b974e13de74f065b17c88e764dc9b9ba6
[ "MIT" ]
null
null
null
setup.py
Marvin-Be/OkapiPythonConnector
3accd89b974e13de74f065b17c88e764dc9b9ba6
[ "MIT" ]
null
null
null
setup.py
Marvin-Be/OkapiPythonConnector
3accd89b974e13de74f065b17c88e764dc9b9ba6
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="okapi-python-connector", version="2020-12", author="Jonas Radtke", author_email="jonas@okapiorbits.space", description="Package to connect to OKAPI Api", long_description=lo...
28.92
63
0.64592
4a21183e4d7939ab15bbda3eb7bc5ad68bd641ba
2,168
py
Python
crypto/crypto_dec.py
Alpha-Demon404/RE-14
b5b46a9f0eee218f2a642b615c77135c33c6f4ad
[ "MIT" ]
39
2020-02-26T09:44:36.000Z
2022-03-23T00:18:25.000Z
crypto/crypto_dec.py
B4BY-DG/reverse-enginnering
b5b46a9f0eee218f2a642b615c77135c33c6f4ad
[ "MIT" ]
15
2020-05-14T10:07:26.000Z
2022-01-06T02:55:32.000Z
crypto/crypto_dec.py
B4BY-DG/reverse-enginnering
b5b46a9f0eee218f2a642b615c77135c33c6f4ad
[ "MIT" ]
41
2020-03-16T22:36:38.000Z
2022-03-17T14:47:19.000Z
# uncompyle6 version 3.5.0 # Python bytecode 2.7 # Decompiled from: Python 2.7.17 (default, Oct 23 2019, 08:25:46) # [GCC 4.2.1 Compatible Android (5220042 based on r346389c) Clang 8.0.7 (https:// # Embedded file name: <JustAHacker> # Source code from crazy tools sTamdatez import smtplib, os, sys, base64, random, time...
34.967742
106
0.66559
4a2118aac528498c4d9ada573469c2e87cb512c5
926
py
Python
oscar/templatetags/display_tags.py
endgame/django-oscar
e5d78436e20b55902537a6cc82edf4e22568f9d6
[ "BSD-3-Clause" ]
null
null
null
oscar/templatetags/display_tags.py
endgame/django-oscar
e5d78436e20b55902537a6cc82edf4e22568f9d6
[ "BSD-3-Clause" ]
null
null
null
oscar/templatetags/display_tags.py
endgame/django-oscar
e5d78436e20b55902537a6cc82edf4e22568f9d6
[ "BSD-3-Clause" ]
1
2019-07-10T06:32:14.000Z
2019-07-10T06:32:14.000Z
from django import template register = template.Library() def get_parameters(parser, token): """ {% get_parameters except_field %} """ args = token.split_contents() if len(args) < 2: raise template.TemplateSyntaxError( "get_parameters tag takes at least 1 argument") retur...
23.15
69
0.62203
4a2118b9eaef9162430254fe0426ab7f1255aad5
13,454
py
Python
toontown/coghq/LawbotOfficeBoilerRoom_Trap00.py
CrankySupertoon01/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
1
2021-02-13T22:40:50.000Z
2021-02-13T22:40:50.000Z
toontown/coghq/LawbotOfficeBoilerRoom_Trap00.py
CrankySupertoonArchive/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
1
2018-07-28T20:07:04.000Z
2018-07-30T18:28:34.000Z
toontown/coghq/LawbotOfficeBoilerRoom_Trap00.py
CrankySupertoonArchive/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
2
2019-12-02T01:39:10.000Z
2021-02-13T22:41:00.000Z
from toontown.coghq.SpecImports import * GlobalEntities = {1000: {'type': 'levelMgr', 'name': 'LevelMgr', 'comment': '', 'parentEntId': 0, 'cogLevel': 0, 'farPlaneDistance': 1500, 'modelFilename': 'phase_10/models/cashbotHQ/ZONE08a', 'wantDoors': 1}, 0: {'type': ...
33.974747
69
0.460384
4a2118cbaf33a53dd0464a1f29973a264b29d7c3
729
py
Python
phoenix_tempmail/Mailbox.py
painphoenix/binbox
d0e638f82cd13661e5bb51f9d498c434ab3b78d4
[ "MIT" ]
24
2021-09-30T07:17:38.000Z
2022-03-23T07:57:21.000Z
phoenix_tempmail/Mailbox.py
painphoenix/binbox
d0e638f82cd13661e5bb51f9d498c434ab3b78d4
[ "MIT" ]
3
2021-10-20T14:32:30.000Z
2022-02-01T17:09:45.000Z
phoenix_tempmail/Mailbox.py
painphoenix/binbox
d0e638f82cd13661e5bb51f9d498c434ab3b78d4
[ "MIT" ]
5
2021-10-01T07:01:58.000Z
2022-03-28T12:39:58.000Z
import os import email class Email: def __init__(self): self.from_email = "" self.date = "" self.subject = "" self.to = "" self.content = "" class Mail: @staticmethod def formate_email(data): formated_email = Email() msg = email.message_from_string...
27
91
0.613169
4a21192d94ff9d0ed3012a6ea6d0b5a7af3dfbb9
10,047
py
Python
pretraining/xlnet_premodel.py
drr3d/id-pytorch-transformers
504bdd3c47eb6a2206ef9be3118cd0367bf3526d
[ "Apache-2.0" ]
2
2020-02-25T04:53:02.000Z
2020-06-21T11:33:18.000Z
pretraining/xlnet_premodel.py
drr3d/id-pytorch-transformers
504bdd3c47eb6a2206ef9be3118cd0367bf3526d
[ "Apache-2.0" ]
null
null
null
pretraining/xlnet_premodel.py
drr3d/id-pytorch-transformers
504bdd3c47eb6a2206ef9be3118cd0367bf3526d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ This example intended as instruction for training new XLNet model from scratch, aimed mainly for Indonesian language. But i thinks naturaly this model can be use to train another language as well. """ import sys sys.path.append("..") import os import time import torch import tor...
43.493506
182
0.618294
4a2119b327d1c72230fb9d52be99d9678974f444
11,151
py
Python
dataset.py
MiriamHu/ActiveBoundary
197c0d1d0d68644e74c1fdf2534339b74990ae94
[ "MIT" ]
11
2017-10-20T14:18:17.000Z
2021-03-16T08:52:48.000Z
dataset.py
MiriamHu/ActiveBoundary
197c0d1d0d68644e74c1fdf2534339b74990ae94
[ "MIT" ]
1
2018-04-30T12:39:33.000Z
2018-05-01T10:45:33.000Z
dataset.py
MiriamHu/ActiveBoundary
197c0d1d0d68644e74c1fdf2534339b74990ae94
[ "MIT" ]
3
2017-12-02T00:14:41.000Z
2018-04-16T15:13:25.000Z
# Taken inspiration from https://github.com/ntucllab/libact/blob/master/libact/base/dataset.py import traceback import numpy as np from fuel.datasets import H5PYDataset from sklearn import preprocessing import os import h5py from utils import to_vector __author__ = 'mhuijser' class Dataset(object): def __init__(...
43.729412
123
0.621648
4a211a23af47845b7045f627d8ec576dd4c6cb2a
118
py
Python
snippets/for-loop-sample.py
coshkun/6.00.1x-MITx-Course-Training-Lab-Notes
63e755dc81fd50a7b1372074a4a73e50021a233b
[ "MIT" ]
null
null
null
snippets/for-loop-sample.py
coshkun/6.00.1x-MITx-Course-Training-Lab-Notes
63e755dc81fd50a7b1372074a4a73e50021a233b
[ "MIT" ]
null
null
null
snippets/for-loop-sample.py
coshkun/6.00.1x-MITx-Course-Training-Lab-Notes
63e755dc81fd50a7b1372074a4a73e50021a233b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Feb 11 19:39:13 2017 @author: coskun """ for n in range(5): print(n)
11.8
35
0.567797
4a211a3f85880e582ba86d983d8a960f411ad10a
20,348
py
Python
libcloud/test/dns/test_rackspace.py
vanclevstik/libcloud
2d58fa9ed4defec7f44ce0b83aede701dbc806e1
[ "Apache-2.0" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
libcloud/test/dns/test_rackspace.py
elastacloud/libcloud
f3792b2dca835c548bdbce0da2eb71bfc9463b72
[ "Apache-2.0" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
libcloud/test/dns/test_rackspace.py
elastacloud/libcloud
f3792b2dca835c548bdbce0da2eb71bfc9463b72
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use ...
41.441955
120
0.634313
4a211b0a0a86b839a1c143a0bb84b14382d06861
3,457
py
Python
client/client.py
wrighteagle2d/lanmonitor
823b65257be9548785bc2bb94c28cd6df2d92a8e
[ "BSD-2-Clause" ]
3
2017-10-12T02:27:07.000Z
2019-08-06T03:04:51.000Z
client/client.py
wrighteagle2d/lanmonitor
823b65257be9548785bc2bb94c28cd6df2d92a8e
[ "BSD-2-Clause" ]
null
null
null
client/client.py
wrighteagle2d/lanmonitor
823b65257be9548785bc2bb94c28cd6df2d92a8e
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import re import os import time import socket import commands host = "192.168.26.160" port = 50000 server_count = 0 team_name_map = { re.compile("WE20"): "WrightEagle", re.compile("WrightEagle"): "WrightEagle", re.compile("helios_"): "Helios", re....
27.656
146
0.554527
4a211bd0d224c4d753e9e1f7b869a9a04d9683dc
5,322
py
Python
examples/e06_search_gs_degeneracy_J124.py
marekrams/tnac4o
41a2294842d1e129662e9cd61cc5eca7d3edb2d9
[ "Apache-2.0" ]
10
2020-06-12T02:32:30.000Z
2022-01-19T11:11:31.000Z
examples/e06_search_gs_degeneracy_J124.py
marekrams/tnac4o
41a2294842d1e129662e9cd61cc5eca7d3edb2d9
[ "Apache-2.0" ]
3
2020-06-04T18:59:02.000Z
2020-06-11T11:15:12.000Z
examples/e06_search_gs_degeneracy_J124.py
marekrams/tnac4o
41a2294842d1e129662e9cd61cc5eca7d3edb2d9
[ "Apache-2.0" ]
1
2022-01-19T11:39:56.000Z
2022-01-19T11:39:56.000Z
# Copyright 2021 Marek M. Rams, Masoud Mohseni, Bartlomiej Gardas. 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 # # https://www.apache.org/licenses/LICENSE-2.0 # #...
43.983471
124
0.637166
4a211c03164e87665d942fb261920e7bc1acceaf
956
py
Python
tests/src/CRC/check_performance_of_schoolwise_csv_download.py
JalajaTR/cQube
6bf58ab25f0c36709630987ab730bbd5d9192c03
[ "MIT" ]
null
null
null
tests/src/CRC/check_performance_of_schoolwise_csv_download.py
JalajaTR/cQube
6bf58ab25f0c36709630987ab730bbd5d9192c03
[ "MIT" ]
2
2022-02-01T00:55:12.000Z
2022-03-29T22:29:09.000Z
tests/src/CRC/check_performance_of_schoolwise_csv_download.py
JalajaTR/cQube
6bf58ab25f0c36709630987ab730bbd5d9192c03
[ "MIT" ]
null
null
null
import os import time from selenium.webdriver.support.select import Select from Data.parameters import Data from get_dir import pwd from reuse_func import GetData class download_schoollevel_csv(): def __init__(self,driver): self.driver = driver def test_schoolwise(self): self.cal = GetData()...
28.117647
76
0.713389
4a211d30e9ab19e8a4867609462d28c0a0799276
9,417
py
Python
instance/db/azure/connazure.py
instance-id/verifier
1d15f8203aeeb61d79658a77481bb846ab0f58bc
[ "MIT" ]
7
2019-05-16T05:01:48.000Z
2022-01-09T08:07:13.000Z
instance/db/azure/connazure.py
instance-id/verifier
1d15f8203aeeb61d79658a77481bb846ab0f58bc
[ "MIT" ]
5
2019-12-26T17:27:01.000Z
2022-01-31T11:31:16.000Z
instance/db/azure/connazure.py
instance-id/verifier
1d15f8203aeeb61d79658a77481bb846ab0f58bc
[ "MIT" ]
1
2022-01-28T09:53:43.000Z
2022-01-28T09:53:43.000Z
import pyodbc import jsoncfg from datetime import datetime import traceback import logging # <editor-fold desc="Logging definitions"> from colorlog import ColoredFormatter log = logging.getLogger(__name__) LOG_LEVEL = logging.DEBUG LOGFORMAT = " %(log_color)s%(levelname)-8s%(reset)s | %(log_color)s%(messa...
37.971774
176
0.561431
4a211d7f79f1e589c5bf2b9681c92c0011815821
6,016
py
Python
taxamo/models/transaction_lines.py
piotrts/taxamo-python
be3b46a6ec320166999987b65384376be6f57111
[ "Apache-2.0" ]
null
null
null
taxamo/models/transaction_lines.py
piotrts/taxamo-python
be3b46a6ec320166999987b65384376be6f57111
[ "Apache-2.0" ]
null
null
null
taxamo/models/transaction_lines.py
piotrts/taxamo-python
be3b46a6ec320166999987b65384376be6f57111
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Copyright 2014-2015 Taxamo, Ltd. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by app...
43.912409
163
0.62234
4a211d8599ba1f4e18ec9d13b40278d79f7c5d46
2,523
py
Python
iotbx/cns/index_fobs_sigma_reader.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
iotbx/cns/index_fobs_sigma_reader.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
iotbx/cns/index_fobs_sigma_reader.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
from __future__ import division from cctbx import miller from cctbx import crystal from cctbx.array_family import flex class index_fobs_sigma_line(object): def __init__(self, raw_line): self.is_complete = False flds = raw_line.replace("="," ").split() if (len(flds) != 8): return if (flds[0].lower() ...
31.5375
77
0.659929
4a211e180e7870255408fadb2547d0b159a5c05f
17,674
py
Python
AsyncFetcher.py
bakwc/PyAsyncFetcher
06bfdabe43ec1154230961d6ec796998a94b2cf3
[ "MIT" ]
null
null
null
AsyncFetcher.py
bakwc/PyAsyncFetcher
06bfdabe43ec1154230961d6ec796998a94b2cf3
[ "MIT" ]
null
null
null
AsyncFetcher.py
bakwc/PyAsyncFetcher
06bfdabe43ec1154230961d6ec796998a94b2cf3
[ "MIT" ]
null
null
null
import time import thread import httplib import socket import select import os from collections import defaultdict import Queue from StringIO import StringIO import random # ------------------------------------------------------------------------------------ class ERROR: CONNECTION_FAILED = -100 CONNECTION_DROPED =...
34.452242
103
0.552337
4a211ea7a6f364c1669daed65f2eab11c72e8360
2,037
py
Python
unported scripts/learn_duration.py
KirovskiXVI/dicom-sr-qi
810f367d0845f4f47c3ee914502cf973b4f9b336
[ "BSD-2-Clause" ]
null
null
null
unported scripts/learn_duration.py
KirovskiXVI/dicom-sr-qi
810f367d0845f4f47c3ee914502cf973b4f9b336
[ "BSD-2-Clause" ]
null
null
null
unported scripts/learn_duration.py
KirovskiXVI/dicom-sr-qi
810f367d0845f4f47c3ee914502cf973b4f9b336
[ "BSD-2-Clause" ]
null
null
null
import my_utils import numpy as np def least_squares(t_procs, v_procs): lookup = {}#maps a CPT code on to an int for proc in t_procs: for cpt in proc.get_cpts(): lookup[cpt] = None for i,cpt in enumerate(sorted(lookup.keys())): lookup[cpt] = i #build the arrays for...
32.854839
99
0.609229
4a211f144c203d49f0c663b66e5f187ab913af9a
2,518
py
Python
src/fidesops/models/fidesops_user.py
ethyca/fidesops
5cfbfda32123593fd7bf2b64586be827d763ea74
[ "Apache-2.0" ]
41
2021-11-01T23:53:43.000Z
2022-03-22T23:07:56.000Z
src/fidesops/models/fidesops_user.py
ethyca/fidesops
5cfbfda32123593fd7bf2b64586be827d763ea74
[ "Apache-2.0" ]
235
2021-11-01T20:31:55.000Z
2022-03-31T15:40:58.000Z
src/fidesops/models/fidesops_user.py
ethyca/fidesops
5cfbfda32123593fd7bf2b64586be827d763ea74
[ "Apache-2.0" ]
12
2021-11-02T00:44:51.000Z
2022-03-14T16:23:10.000Z
from datetime import datetime from typing import Dict, Any, Tuple from sqlalchemy import Column, String, DateTime from sqlalchemy.orm import Session, relationship from fidesops.core.config import config from fidesops.db.base_class import Base from fidesops.util.cryptographic_util import generate_salt, hash_with_salt ...
35.971429
90
0.668785
4a211fa3cc11b7897136647d2975b494f191408c
192
py
Python
tones.py
sdickreuter/ToneGen
69c554c7207563a69479202349061e1f8ef4f328
[ "MIT" ]
1
2020-09-18T20:27:50.000Z
2020-09-18T20:27:50.000Z
tones.py
sdickreuter/ToneGen
69c554c7207563a69479202349061e1f8ef4f328
[ "MIT" ]
null
null
null
tones.py
sdickreuter/ToneGen
69c554c7207563a69479202349061e1f8ef4f328
[ "MIT" ]
null
null
null
# Frequencies of the musical notes in Hz names = ['B','C','Db','D','Eb','E','F','Gb','G','Ab','A','Bb'] freqs = [7.72, 8.18, 8.66, 9.18, 9.72, 10.30, 10.91, 11.56, 12.25, 12.98, 13.75, 14.57]
48
87
0.53125
4a21201a5958e38b10160616296ac0292989a812
2,678
py
Python
external_comms/laptop_1/client_L1.py
ShawnTanzc/CG4002-Capstone-B15
dd4edfb2a9cc2b876f63c3599f63554dcfc1fb89
[ "BSD-3-Clause" ]
null
null
null
external_comms/laptop_1/client_L1.py
ShawnTanzc/CG4002-Capstone-B15
dd4edfb2a9cc2b876f63c3599f63554dcfc1fb89
[ "BSD-3-Clause" ]
null
null
null
external_comms/laptop_1/client_L1.py
ShawnTanzc/CG4002-Capstone-B15
dd4edfb2a9cc2b876f63c3599f63554dcfc1fb89
[ "BSD-3-Clause" ]
null
null
null
import paramiko from paramiko import SSHClient, AutoAddPolicy def sshCommand(hostname, port, username, password, command): sshClient = paramiko.SSHClient() sshClient.set_missing_host_key_policy(paramiko.AutoAddPolicy()) sshClient.load_system_host_keys() sshClient.connect(hostname, port, username, passw...
31.139535
91
0.690441
4a21208af1972fc396bef449f79bd0a04983a809
11,345
py
Python
cloudbaseinit/plugins/windows/azureguestagent.py
andia10240/cloudbase-init
3c290194c139990f2a0e5747aa2f6c9554d26659
[ "Apache-2.0" ]
160
2015-01-09T14:45:59.000Z
2022-03-15T09:15:12.000Z
cloudbaseinit/plugins/windows/azureguestagent.py
andia10240/cloudbase-init
3c290194c139990f2a0e5747aa2f6c9554d26659
[ "Apache-2.0" ]
95
2015-01-25T15:22:05.000Z
2022-03-16T10:40:27.000Z
cloudbaseinit/plugins/windows/azureguestagent.py
andia10240/cloudbase-init
3c290194c139990f2a0e5747aa2f6c9554d26659
[ "Apache-2.0" ]
86
2015-01-19T17:19:35.000Z
2022-03-24T09:21:55.000Z
# Copyright (c) 2017 Cloudbase Solutions Srl # # 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...
42.33209
79
0.627942
4a2121493155d4291ce6c7b3b79288bad52192d5
473
py
Python
communication/CAN/SerialLog/test.py
OceanosTeam/Monaco2019
d75fdc6f63e6c9e283d205b881d8aa06e1f61bc6
[ "Apache-2.0" ]
null
null
null
communication/CAN/SerialLog/test.py
OceanosTeam/Monaco2019
d75fdc6f63e6c9e283d205b881d8aa06e1f61bc6
[ "Apache-2.0" ]
1
2019-06-17T13:04:26.000Z
2019-06-24T01:17:44.000Z
communication/CAN/SerialLog/test.py
OceanosTeam/Monaco2019
d75fdc6f63e6c9e283d205b881d8aa06e1f61bc6
[ "Apache-2.0" ]
2
2019-06-14T14:14:23.000Z
2019-06-21T15:58:00.000Z
#!/bin/python3 import time import serial from serial import Serial from datetime import datetime import struct import sys # from collections import namedtuple import numpy as np import mysql.connector as sql from scipy import interpolate Vdata = np.genfromtxt('oceanos_cell_discharge_capacity_14s.csv', dtype=float, d...
18.192308
104
0.769556
4a212238c72f48611b0eaadc8d1c0535b8894f50
636
py
Python
problems/test_0303.py
chrisxue815/leetcode_python
dec3c160d411a5c19dc8e9d96e7843f0e4c36820
[ "Unlicense" ]
1
2017-06-17T23:47:17.000Z
2017-06-17T23:47:17.000Z
problems/test_0303.py
chrisxue815/leetcode_python
dec3c160d411a5c19dc8e9d96e7843f0e4c36820
[ "Unlicense" ]
null
null
null
problems/test_0303.py
chrisxue815/leetcode_python
dec3c160d411a5c19dc8e9d96e7843f0e4c36820
[ "Unlicense" ]
null
null
null
import unittest from typing import List import utils # O(n) space. DP, prefix. class NumArray: # O(n) time. O(1) space. def __init__(self, nums: List[int]): self.sums = [0] * len(nums) sum_ = 0 for i in range(len(nums)): sum_ += nums[i] self.sums[i] = sum_ ...
20.516129
74
0.581761
4a21224fb1308b28b73344ac8530dedf0a6a29f3
703
py
Python
diversity/generate-comment-embeddings.py
VectorInstitute/projectpensive
7fa78964ba7bd2d25892c99dd4cedb0d54f8d267
[ "MIT" ]
2
2021-09-08T01:59:10.000Z
2021-09-29T02:20:58.000Z
diversity/generate-comment-embeddings.py
VectorInstitute/projectpensive
7fa78964ba7bd2d25892c99dd4cedb0d54f8d267
[ "MIT" ]
null
null
null
diversity/generate-comment-embeddings.py
VectorInstitute/projectpensive
7fa78964ba7bd2d25892c99dd4cedb0d54f8d267
[ "MIT" ]
1
2021-09-29T02:21:04.000Z
2021-09-29T02:21:04.000Z
import pandas as pd import numpy as np import torch import time from sentence_transformers import SentenceTransformer, util if __name__ == "__main__": # Open data data = pd.read_csv('../civility/recommender/train-balanced-sarcasm-processed.csv') corpus = data['comment'].to_list() embedder = SentenceTr...
33.47619
86
0.739687
4a2123c02fadbcc2d395264907fc91ae27cf5e68
958
py
Python
twitter_watcher/views.py
azubieta/cmtrends
31b98e0e6ceed72f58cf831715ec56468c90386a
[ "Apache-2.0" ]
null
null
null
twitter_watcher/views.py
azubieta/cmtrends
31b98e0e6ceed72f58cf831715ec56468c90386a
[ "Apache-2.0" ]
null
null
null
twitter_watcher/views.py
azubieta/cmtrends
31b98e0e6ceed72f58cf831715ec56468c90386a
[ "Apache-2.0" ]
null
null
null
from django.template import RequestContext, loader from django.http import HttpResponse from django.shortcuts import render, render_to_response from django.http import HttpResponseRedirect, HttpResponse from django.http import Http404 import stakeholders import initiatives import sys import json # Create your views h...
22.809524
60
0.770355
4a212440761091540863017c2237b9dfdca5c58e
4,064
py
Python
venv/lib/python3.8/site-packages/ipykernel/parentpoller.py
johncollinsai/post-high-frequency-data
88533b0e0afc7e7f82fee1d3ca4b68abc30aaeb4
[ "MIT" ]
7
2022-01-16T12:28:16.000Z
2022-03-04T15:31:45.000Z
venv/lib/python3.8/site-packages/ipykernel/parentpoller.py
johncollinsai/post-high-frequency-data
88533b0e0afc7e7f82fee1d3ca4b68abc30aaeb4
[ "MIT" ]
8
2021-09-22T12:47:32.000Z
2022-01-14T21:30:38.000Z
venv/lib/python3.8/site-packages/ipykernel/parentpoller.py
johncollinsai/post-high-frequency-data
88533b0e0afc7e7f82fee1d3ca4b68abc30aaeb4
[ "MIT" ]
1
2022-03-28T09:19:34.000Z
2022-03-28T09:19:34.000Z
# Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License. try: import ctypes except ImportError: ctypes = None import os import platform import signal import time from _thread import interrupt_main # Py 3 from threading import Thread from traitlets.log import get_lo...
35.649123
89
0.581201
4a2124bdc5b263152901579b28e8c9156043b1ae
8,666
py
Python
eval/coherence.py
L-Zhe/CoRPG
aa7a14a2b1c5397b327b4f91846795f7956bf2cd
[ "MIT" ]
13
2021-09-15T05:44:05.000Z
2022-03-24T12:24:00.000Z
eval/coherence.py
L-Zhe/CoRPG
aa7a14a2b1c5397b327b4f91846795f7956bf2cd
[ "MIT" ]
null
null
null
eval/coherence.py
L-Zhe/CoRPG
aa7a14a2b1c5397b327b4f91846795f7956bf2cd
[ "MIT" ]
4
2021-09-17T20:00:48.000Z
2022-03-10T03:09:57.000Z
from transformers import AlbertTokenizer, AlbertForPreTraining import torch from torch import nn from torch.nn import functional as F from tqdm import tqdm import random import time import torch_optimizer as optim import argparse from nltk.tokenize import sent_tokenize def split_sent(sent): an...
39.21267
114
0.575583
4a2125942fcf2b69dee3cef9824c769679654583
3,098
py
Python
app/cfg.py
frodejac/fastapi-postgres-celery
eddc9518a310d30011ce113fd1d0de6a9b027ad3
[ "MIT" ]
null
null
null
app/cfg.py
frodejac/fastapi-postgres-celery
eddc9518a310d30011ce113fd1d0de6a9b027ad3
[ "MIT" ]
null
null
null
app/cfg.py
frodejac/fastapi-postgres-celery
eddc9518a310d30011ce113fd1d0de6a9b027ad3
[ "MIT" ]
null
null
null
from __future__ import annotations import environs from app.utils.singleton import Singleton env: environs.Env = environs.Env() env.read_env() class AppConfig(metaclass=Singleton): # App config # SERVICE_NAME is set as an environment variable with Terraform APP_TITLE: str = env.str("SERVICE_NAME", "app...
33.311828
84
0.642995
4a21267a5afca84d7f15ccd48d4f1afc842c731f
1,155
py
Python
examples/example_vertex_voronoi.py
Brain-Slam/slam
a4ab0aec53f83f2b8947b8be8647b90711a795c3
[ "MIT" ]
null
null
null
examples/example_vertex_voronoi.py
Brain-Slam/slam
a4ab0aec53f83f2b8947b8be8647b90711a795c3
[ "MIT" ]
null
null
null
examples/example_vertex_voronoi.py
Brain-Slam/slam
a4ab0aec53f83f2b8947b8be8647b90711a795c3
[ "MIT" ]
null
null
null
""" .. _example_vertex_voronoi: =================================== Vertex voronoi example in slam =================================== """ # Authors: # Guillaume Auzias <guillaume.auzias@univ-amu.fr> # Julien Barrès <julien.barres@etu.univ-amu.fr> # License: BSD (3-clause) # sphinx_gallery_thumbnail_number = 2 ###...
26.860465
79
0.504762
4a21270a2f1c7564b4c6ed385b96519e875c0593
1,027
py
Python
tensor2tensor/bin/translate_generate_all.py
cgebe/tensor2tensor
8e2389021643774f81a3af643e55a856896aef5c
[ "Apache-2.0" ]
null
null
null
tensor2tensor/bin/translate_generate_all.py
cgebe/tensor2tensor
8e2389021643774f81a3af643e55a856896aef5c
[ "Apache-2.0" ]
null
null
null
tensor2tensor/bin/translate_generate_all.py
cgebe/tensor2tensor
8e2389021643774f81a3af643e55a856896aef5c
[ "Apache-2.0" ]
1
2018-07-26T18:31:58.000Z
2018-07-26T18:31:58.000Z
import os TRANSLATE_PROBLEMS = [ "translate_csde_legal32k", #"translate_csen_legal32k", #"translate_cses_legal32k", #"translate_csfr_legal32k", #"translate_csit_legal32k", #"translate_cssv_legal32k", #"translate_deen_legal32k", #"translate_dees_legal32k", #"translate_defr_legal32k",...
26.333333
111
0.674781
4a212902dcd5f7bac65f0d511aa162f0f935fa05
1,334
py
Python
iscc_core/__init__.py
iscc/iscc-core
45cfb0c092ffb8dc97d926528cb2b16aa20e2c43
[ "Apache-2.0" ]
5
2021-08-31T19:06:57.000Z
2022-01-13T16:11:22.000Z
iscc_core/__init__.py
iscc/iscc-core
45cfb0c092ffb8dc97d926528cb2b16aa20e2c43
[ "Apache-2.0" ]
54
2021-12-25T11:25:09.000Z
2022-03-03T09:04:31.000Z
iscc_core/__init__.py
iscc/iscc-core
45cfb0c092ffb8dc97d926528cb2b16aa20e2c43
[ "Apache-2.0" ]
null
null
null
__version__ = "0.2.0" from iscc_core import options core_opts = options.CoreOptions() options_conformant = options.check_options(core_opts) from iscc_core import conformance from iscc_core.constants import * from iscc_core.simhash import * from iscc_core.minhash import * from iscc_core.wtahash import * from iscc_co...
23
93
0.784108
4a2129a472b3a4d5361202a7fd9542e5337b1cc2
33,471
py
Python
sdk/python/pulumi_azure/automation/run_book.py
henriktao/pulumi-azure
f1cbcf100b42b916da36d8fe28be3a159abaf022
[ "ECL-2.0", "Apache-2.0" ]
109
2018-06-18T00:19:44.000Z
2022-02-20T05:32:57.000Z
sdk/python/pulumi_azure/automation/run_book.py
henriktao/pulumi-azure
f1cbcf100b42b916da36d8fe28be3a159abaf022
[ "ECL-2.0", "Apache-2.0" ]
663
2018-06-18T21:08:46.000Z
2022-03-31T20:10:11.000Z
sdk/python/pulumi_azure/automation/run_book.py
henriktao/pulumi-azure
f1cbcf100b42b916da36d8fe28be3a159abaf022
[ "ECL-2.0", "Apache-2.0" ]
41
2018-07-19T22:37:38.000Z
2022-03-14T10:56:26.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
46.294606
239
0.662096
4a2129dee269a2ba6bf29742ef51ee5b1200479f
100,980
py
Python
hop2.py
BDAlfajAhmedJhenida/HOP
691c82e6817be0b4d4c54ba014fc02188eba6192
[ "MIT" ]
null
null
null
hop2.py
BDAlfajAhmedJhenida/HOP
691c82e6817be0b4d4c54ba014fc02188eba6192
[ "MIT" ]
null
null
null
hop2.py
BDAlfajAhmedJhenida/HOP
691c82e6817be0b4d4c54ba014fc02188eba6192
[ "MIT" ]
null
null
null
#Coded By : Muhammad Hamza #Facebook : Muhammad Hamza #Github : https://github.com/Hamzahash #Whatsapp : +92309-7992202 #Youtube : HOP Anonymous import base64 exec(base64.b16decode('23436F646564204279203A204D7568616D6D61642048616D7A610A2346616365626F6F6B203A204D7568616D6D61642048616D7A610A234769746875622020203...
12,622.5
100,811
0.999445
4a212a6a318511798288c6d8f02512e0c9f097be
117
py
Python
Python/Iniciante/1114.py
TiagoSanti/uri-solutions
e80d9e2874cac13e721a96d7aeb075e7d72ceb2d
[ "MIT" ]
null
null
null
Python/Iniciante/1114.py
TiagoSanti/uri-solutions
e80d9e2874cac13e721a96d7aeb075e7d72ceb2d
[ "MIT" ]
null
null
null
Python/Iniciante/1114.py
TiagoSanti/uri-solutions
e80d9e2874cac13e721a96d7aeb075e7d72ceb2d
[ "MIT" ]
null
null
null
key = int(input()) while key != 2002: print('Senha Invalida') key = int(input()) print('Acesso Permitido')
14.625
27
0.615385
4a212ad6b385fbc5e10dd8e04a8934645c3bd689
9,392
py
Python
PaddleCV/PaddleDetection/slim/infer.py
Qinyinmm/models
83d4799028eba4568e7c193ded297d1dfc3279a3
[ "Apache-2.0" ]
1
2021-09-08T13:27:19.000Z
2021-09-08T13:27:19.000Z
PaddleCV/PaddleDetection/slim/infer.py
Qinyinmm/models
83d4799028eba4568e7c193ded297d1dfc3279a3
[ "Apache-2.0" ]
null
null
null
PaddleCV/PaddleDetection/slim/infer.py
Qinyinmm/models
83d4799028eba4568e7c193ded297d1dfc3279a3
[ "Apache-2.0" ]
1
2021-07-29T06:43:01.000Z
2021-07-29T06:43:01.000Z
# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
33.906137
80
0.627449
4a212af2372d76702b01259a5bc996b4cdcfd600
234
py
Python
gateway/admin.py
RockefellerArchiveCenter/ProjectElectronAPIGateway
4a35c24fe5c09df4f849d1f74b45af5a49c61ac6
[ "MIT" ]
null
null
null
gateway/admin.py
RockefellerArchiveCenter/ProjectElectronAPIGateway
4a35c24fe5c09df4f849d1f74b45af5a49c61ac6
[ "MIT" ]
null
null
null
gateway/admin.py
RockefellerArchiveCenter/ProjectElectronAPIGateway
4a35c24fe5c09df4f849d1f74b45af5a49c61ac6
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Application, RequestLog, ServiceRegistry, Source admin.site.register(Application) admin.site.register(ServiceRegistry) admin.site.register(Source) admin.site.register(RequestLog)
26
68
0.837607