hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
89c68600cd84e244db83ebc8d0fd8aa50d19edfb
2,308
py
Python
misc/getch.py
Chiel92/tfate
63632133e3bf5bf0ae481387da71ef81f164f539
[ "MIT" ]
3
2015-02-20T14:43:54.000Z
2018-03-21T09:17:18.000Z
misc/getch.py
Chiel92/tfate
63632133e3bf5bf0ae481387da71ef81f164f539
[ "MIT" ]
null
null
null
misc/getch.py
Chiel92/tfate
63632133e3bf5bf0ae481387da71ef81f164f539
[ "MIT" ]
null
null
null
#!python """This module is for messing with input characters.""" import os import sys unicurses_path = os.path.dirname(os.path.abspath(__file__)) + '/../libs/unicurses' sys.path.insert(0, unicurses_path) import unicurses as curses curses.wrapper(main)
23.793814
82
0.52513
89ca0ec001dbf86f13d792104e70016b1f984f59
879
py
Python
tests/unitTest/testBitWiseSupervisor.py
huitredelombre/BERBER
49ba60f1836e9a7fef89dcadd24d0a812f5fe4bd
[ "Unlicense" ]
null
null
null
tests/unitTest/testBitWiseSupervisor.py
huitredelombre/BERBER
49ba60f1836e9a7fef89dcadd24d0a812f5fe4bd
[ "Unlicense" ]
null
null
null
tests/unitTest/testBitWiseSupervisor.py
huitredelombre/BERBER
49ba60f1836e9a7fef89dcadd24d0a812f5fe4bd
[ "Unlicense" ]
null
null
null
import unittest import sys sys.path.append("../../src/") from supervisors.bitWiseSupervisor import BitWiseSupervisor from senders.scapySender import ScapySender from simulations.randomSimulation import RandomSimulation if __name__ == '__main__': unittest.main()
25.852941
61
0.676906
89cc8c96ba145a294249c4b138a3c09de02694bc
949
py
Python
headless_chrome.py
MineRobber9000/discordscript
c9c4eda0e28db72890d0490617ed361722c7c44c
[ "MIT" ]
null
null
null
headless_chrome.py
MineRobber9000/discordscript
c9c4eda0e28db72890d0490617ed361722c7c44c
[ "MIT" ]
null
null
null
headless_chrome.py
MineRobber9000/discordscript
c9c4eda0e28db72890d0490617ed361722c7c44c
[ "MIT" ]
null
null
null
from selenium import webdriver def _options_factory(): """Produces a selenium.webdriver.ChromeOptions object. Used to force "headless" on invocation. You shouldn't call this function.""" ret = webdriver.ChromeOptions() ret.add_argument("headless") return ret def get_driver(*varargs,args=[]): """Creates headless ...
32.724138
132
0.791359
89cd7e4794021790017343f1b97d640a8664e0b4
2,677
py
Python
lemonsoap/scent/columns_scent.py
Ekrekr/LemonSoap
61b86b70a3788486235de2e8baeb7c68b80318a9
[ "MIT" ]
null
null
null
lemonsoap/scent/columns_scent.py
Ekrekr/LemonSoap
61b86b70a3788486235de2e8baeb7c68b80318a9
[ "MIT" ]
1
2019-08-23T18:30:31.000Z
2019-08-23T18:32:23.000Z
lemonsoap/scent/columns_scent.py
Ekrekr/LemonSoap
61b86b70a3788486235de2e8baeb7c68b80318a9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ LemonSoap - headers scent. Deals with column headers. """ import pandas as pd import inflection import re import logging from ..lemon_bar import LemonBar from .scent_template import ScentTemplate
27.316327
77
0.566679
89ce8df07aa57ac1b43e0c11bcfa9d8eaf3ff5df
2,347
py
Python
experiments/expression/codex/codex_alignment.py
andrewcharlesjones/spatial-alignment
70aecf800c5efea6a92990ccf87a1950752a268b
[ "MIT" ]
14
2022-01-11T14:51:17.000Z
2022-02-26T20:46:58.000Z
experiments/expression/codex/codex_alignment.py
andrewcharlesjones/spatial-alignment
70aecf800c5efea6a92990ccf87a1950752a268b
[ "MIT" ]
3
2022-01-26T17:16:24.000Z
2022-02-24T13:22:39.000Z
experiments/expression/codex/codex_alignment.py
andrewcharlesjones/spatial-alignment
70aecf800c5efea6a92990ccf87a1950752a268b
[ "MIT" ]
1
2022-02-23T09:54:37.000Z
2022-02-23T09:54:37.000Z
import pandas as pd from os.path import join as pjoin import numpy as np import matplotlib.pyplot as plt DATA_DIR = "../../../data/codex" data = pd.read_csv(pjoin(DATA_DIR, "codex_mrl_expression.csv")) # , nrows=200) marker_names = data.columns.values[1:-8] sample_names = data.sample_Xtile_Ytile.str.split("_").str[0...
28.277108
79
0.734555
89cf07481d85093cb253e55bad9a9ca217559128
78
py
Python
plugins/pie_branding.py
juergenz/pie
be490b9e18ee3158015a13826ed3caf442c07c51
[ "MIT" ]
null
null
null
plugins/pie_branding.py
juergenz/pie
be490b9e18ee3158015a13826ed3caf442c07c51
[ "MIT" ]
null
null
null
plugins/pie_branding.py
juergenz/pie
be490b9e18ee3158015a13826ed3caf442c07c51
[ "MIT" ]
null
null
null
import pie
11.142857
35
0.705128
89cfb900a50afd4227256d6f741798ab183a0cd9
4,853
py
Python
teleband/users/api/views.py
JMU-CIME/CPR-Music-Backend
b72b70ed8826595c96c028595181293edcf1e368
[ "MIT" ]
2
2022-01-08T20:21:43.000Z
2022-03-18T03:31:30.000Z
teleband/users/api/views.py
JMU-CIME/CPR-Music-Backend
b72b70ed8826595c96c028595181293edcf1e368
[ "MIT" ]
16
2022-01-08T02:12:54.000Z
2022-03-02T03:02:59.000Z
teleband/users/api/views.py
JMU-CIME/CPR-Music-Backend
b72b70ed8826595c96c028595181293edcf1e368
[ "MIT" ]
2
2022-01-08T00:21:37.000Z
2022-01-18T05:33:15.000Z
import collections import csv from io import StringIO from django.contrib.auth import get_user_model from django.contrib.auth.models import Group from django.core.exceptions import ValidationError from django.core.validators import validate_email from rest_framework import permissions from rest_framework import statu...
37.620155
142
0.687616
89cfe6c76017fa136a954dd90da05d73e796cbce
10,031
py
Python
models/ri_pcn.py
RexSkywalkerLee/VRCNet
1dce3be11ed89375665fbbbc7462d56cb66f690b
[ "MIT" ]
null
null
null
models/ri_pcn.py
RexSkywalkerLee/VRCNet
1dce3be11ed89375665fbbbc7462d56cb66f690b
[ "MIT" ]
null
null
null
models/ri_pcn.py
RexSkywalkerLee/VRCNet
1dce3be11ed89375665fbbbc7462d56cb66f690b
[ "MIT" ]
null
null
null
from __future__ import print_function import torch import torch.nn as nn import torch.nn.parallel import torch.utils.data import torch.nn.functional as F import math from utils.model_utils import * from utils.ri_utils import * from models.vrcnet import Linear_ResBlock ''' class Model(nn.Module): def __init__...
46.873832
172
0.632539
89d03fb8a0b8c366fe6c36d8c3d59eb5d6f108ae
4,267
py
Python
tests/unit/test_game.py
BrunoASNascimento/ETHGlobal-Project
bbb69d07de17698d716a6990e71bdeedd873582d
[ "MIT" ]
null
null
null
tests/unit/test_game.py
BrunoASNascimento/ETHGlobal-Project
bbb69d07de17698d716a6990e71bdeedd873582d
[ "MIT" ]
null
null
null
tests/unit/test_game.py
BrunoASNascimento/ETHGlobal-Project
bbb69d07de17698d716a6990e71bdeedd873582d
[ "MIT" ]
null
null
null
from scripts.helpful_scripts import ( LOCAL_BLOCKCHAIN_ENVIRONMENTS, get_account, fund_with_link, get_contract, ) from brownie import Game, accounts, config, network, exceptions from scripts.deploy_game import deploy_game from web3 import Web3 import pytest # if network.show_active() not in LOCAL_BLOC...
35.264463
113
0.594563
89d04b9eb8d01d291b7226fc499b9d1ce4373de0
466
py
Python
arquivos_de_exercicios_descubra_o_python/Cap. 04/escreveArquivo_start.py
DiegoDBLe/Python-Linkedin
0365fb2c83d04c10a2ebd8b56baddb91a4525811
[ "MIT" ]
null
null
null
arquivos_de_exercicios_descubra_o_python/Cap. 04/escreveArquivo_start.py
DiegoDBLe/Python-Linkedin
0365fb2c83d04c10a2ebd8b56baddb91a4525811
[ "MIT" ]
null
null
null
arquivos_de_exercicios_descubra_o_python/Cap. 04/escreveArquivo_start.py
DiegoDBLe/Python-Linkedin
0365fb2c83d04c10a2ebd8b56baddb91a4525811
[ "MIT" ]
null
null
null
# # Escrevendo arquivos com funes do Python # #escreveArquivo()] alteraArquivo()
18.64
106
0.690987
89d0cf9f3e0655b88c1a304fee38eb9854817a94
1,150
py
Python
graphio/queries/query_parameters.py
JTaeger/graphio
e856d4266842540cfe56ba7367d8f97183ae2954
[ "Apache-2.0" ]
null
null
null
graphio/queries/query_parameters.py
JTaeger/graphio
e856d4266842540cfe56ba7367d8f97183ae2954
[ "Apache-2.0" ]
null
null
null
graphio/queries/query_parameters.py
JTaeger/graphio
e856d4266842540cfe56ba7367d8f97183ae2954
[ "Apache-2.0" ]
null
null
null
def params_create_rels_unwind_from_objects(relationships, property_identifier=None): """ Format Relationship properties into a one level dictionary matching the query generated in `query_create_rels_from_list`. This is necessary because you cannot access nested dictionairies in the UNWIND query. UN...
33.823529
99
0.646087
89d191bec6b5c9759bd10872394402ac762205b9
477
py
Python
user/migrations/0002_userprofile_relations.py
Trippr-dwoc/Trippr-backend
69a8bb8e1a742b64b4eaf8612f97806e6191e8fb
[ "MIT" ]
null
null
null
user/migrations/0002_userprofile_relations.py
Trippr-dwoc/Trippr-backend
69a8bb8e1a742b64b4eaf8612f97806e6191e8fb
[ "MIT" ]
null
null
null
user/migrations/0002_userprofile_relations.py
Trippr-dwoc/Trippr-backend
69a8bb8e1a742b64b4eaf8612f97806e6191e8fb
[ "MIT" ]
null
null
null
# Generated by Django 3.2.3 on 2021-10-19 18:54 from django.conf import settings from django.db import migrations, models
23.85
116
0.649895
89d29a1fa605d5be215d81daea59d7f25ded9268
6,239
py
Python
src/utils/testing_utils.py
rluiseugenio/dpa_rita
4da52a103b455c97d7f3bc6253f1c455c340dfc4
[ "MIT" ]
null
null
null
src/utils/testing_utils.py
rluiseugenio/dpa_rita
4da52a103b455c97d7f3bc6253f1c455c340dfc4
[ "MIT" ]
10
2020-05-06T14:30:44.000Z
2022-03-12T00:33:00.000Z
src/utils/testing_utils.py
rluiseugenio/dpa_rita
4da52a103b455c97d7f3bc6253f1c455c340dfc4
[ "MIT" ]
6
2020-04-15T04:30:36.000Z
2020-10-23T16:02:24.000Z
#python -m marbles test_semantic_columns.py import unittest from marbles.mixins import mixins import pandas as pd import requests from pyspark.sql import SparkSession import psycopg2 as pg import pandas as pd import marbles from pyspark.sql.types import StructType, StructField, StringType import psycopg2 as pg #from s...
58.858491
366
0.536624
89d312b14f6d96924f16b029fd0ee12233883f44
6,572
py
Python
polygon.py
darinamazur/Math-modeling-
8de5913fd8314dc51641700c9a1088c6f34fd2a3
[ "MIT" ]
null
null
null
polygon.py
darinamazur/Math-modeling-
8de5913fd8314dc51641700c9a1088c6f34fd2a3
[ "MIT" ]
null
null
null
polygon.py
darinamazur/Math-modeling-
8de5913fd8314dc51641700c9a1088c6f34fd2a3
[ "MIT" ]
null
null
null
import math
46.609929
145
0.549452
89d33b22e0bc047ce85d01052a68ca4989846e8f
20,352
py
Python
post_processing/utils.py
fywalter/TorchSeg
729eb22d8c5d607466055552fd82e0819d5f29e2
[ "MIT" ]
null
null
null
post_processing/utils.py
fywalter/TorchSeg
729eb22d8c5d607466055552fd82e0819d5f29e2
[ "MIT" ]
null
null
null
post_processing/utils.py
fywalter/TorchSeg
729eb22d8c5d607466055552fd82e0819d5f29e2
[ "MIT" ]
2
2020-07-31T14:40:49.000Z
2020-07-31T17:52:30.000Z
# coding: utf-8 # In[20]: import numpy as np import pydensecrf.densecrf as dcrf import os import cv2 import random from tqdm import tqdm # In[21]: from skimage.color import gray2rgb from skimage.color import rgb2gray import matplotlib.pyplot as plt from sklearn.metrics import f1_score, accuracy_score from pyden...
37.071038
134
0.604068
89d3bf0df91591781ea747a7755b48cfdfadf9ad
783
py
Python
lists/management/commands/seed_list.py
nasir733/airbnb-clone
9ac746b6f3f3c8fc45f97773266e6f5f182d14b9
[ "MIT" ]
null
null
null
lists/management/commands/seed_list.py
nasir733/airbnb-clone
9ac746b6f3f3c8fc45f97773266e6f5f182d14b9
[ "MIT" ]
null
null
null
lists/management/commands/seed_list.py
nasir733/airbnb-clone
9ac746b6f3f3c8fc45f97773266e6f5f182d14b9
[ "MIT" ]
null
null
null
import random from django.core.management.base import BaseCommand from django.contrib.admin.utils import flatten from django_seed import Seed from lists import models as list_models from users import models as user_models from rooms import models as room_models NAME = "lists"
29
81
0.696041
89d4a95a515f918c5e953ba7e49e998786a0f9cc
4,181
py
Python
rdkit/DataStructs/UnitTestBitEnsemble.py
kazuyaujihara/rdkit
06027dcd05674787b61f27ba46ec0d42a6037540
[ "BSD-3-Clause" ]
1,609
2015-01-05T02:41:13.000Z
2022-03-30T21:57:24.000Z
rdkit/DataStructs/UnitTestBitEnsemble.py
kazuyaujihara/rdkit
06027dcd05674787b61f27ba46ec0d42a6037540
[ "BSD-3-Clause" ]
3,412
2015-01-06T12:13:33.000Z
2022-03-31T17:25:41.000Z
rdkit/DataStructs/UnitTestBitEnsemble.py
bp-kelley/rdkit
e0de7c9622ce73894b1e7d9568532f6d5638058a
[ "BSD-3-Clause" ]
811
2015-01-11T03:33:48.000Z
2022-03-28T11:57:49.000Z
# $Id$ # # Copyright (C) 2003-2006 greg Landrum and Rational Discovery LLC # # @@ All Rights Reserved @@ # This file is part of the RDKit. # The contents are covered by the terms of the BSD license # which is included in the file license.txt, found at the root # of the RDKit source tree. # """ unit testing code f...
29.443662
95
0.608467
89d4b8941114154f6cc741048f8332377d3a8b83
1,678
py
Python
simple_classroom/apps/classroom/migrations/0003_auto_20150207_1835.py
maxicecilia/simple_classroom
1f1e21414476923952f612a35ce3ff26ac053090
[ "MIT" ]
7
2015-05-08T22:43:15.000Z
2020-12-04T15:38:17.000Z
simple_classroom/apps/classroom/migrations/0003_auto_20150207_1835.py
maxicecilia/simple_classroom
1f1e21414476923952f612a35ce3ff26ac053090
[ "MIT" ]
7
2020-06-05T17:40:40.000Z
2022-03-11T23:17:13.000Z
simple_classroom/apps/classroom/migrations/0003_auto_20150207_1835.py
maxicecilia/simple_classroom
1f1e21414476923952f612a35ce3ff26ac053090
[ "MIT" ]
4
2015-05-13T05:47:32.000Z
2020-05-08T18:06:24.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations
37.288889
184
0.628129
89d564054c9eaa814b62ed98ed13a84890b170f0
6,484
py
Python
pyburst/misc/resolution.py
zacjohnston/pyburst
f7d5ae9a229704d1cbcf656afb9fb3e29fb71c0c
[ "MIT" ]
4
2019-05-01T07:30:15.000Z
2021-08-04T15:04:38.000Z
pyburst/misc/resolution.py
zacjohnston/pyburst
f7d5ae9a229704d1cbcf656afb9fb3e29fb71c0c
[ "MIT" ]
null
null
null
pyburst/misc/resolution.py
zacjohnston/pyburst
f7d5ae9a229704d1cbcf656afb9fb3e29fb71c0c
[ "MIT" ]
4
2019-03-26T12:38:37.000Z
2022-03-09T05:30:18.000Z
import numpy as np import matplotlib.pyplot as plt import os from pyburst.grids import grid_analyser, grid_strings, grid_tools # resolution tests y_factors = {'dt': 3600, 'fluence': 1e39, 'peak': 1e38, } y_labels = {'dt': '$\Delta t$', 'rate': 'Burst rate', ...
33.42268
85
0.566626
89d59366b3b61d950e0acc7ff13715341f62b69d
47,267
py
Python
scielomanager/journalmanager/models.py
jamilatta/scielo-manager
d506c6828ba9b1089faa164bc42ba29a0f228e61
[ "BSD-2-Clause" ]
null
null
null
scielomanager/journalmanager/models.py
jamilatta/scielo-manager
d506c6828ba9b1089faa164bc42ba29a0f228e61
[ "BSD-2-Clause" ]
null
null
null
scielomanager/journalmanager/models.py
jamilatta/scielo-manager
d506c6828ba9b1089faa164bc42ba29a0f228e61
[ "BSD-2-Clause" ]
null
null
null
# -*- encoding: utf-8 -*- import urllib import hashlib import logging import choices import caching.base from scielomanager import tools try: from collections import OrderedDict except ImportError: from ordereddict import OrderedDict from django.db import ( models, transaction, IntegrityError, ...
38.428455
166
0.66393
89d735fe97fdd6718d6f7ee2b956443498bb36dc
7,323
py
Python
award/forms.py
aiventimptner/stura
268e50d08ec975dd1c974ea27cea5c5b638df686
[ "MIT" ]
null
null
null
award/forms.py
aiventimptner/stura
268e50d08ec975dd1c974ea27cea5c5b638df686
[ "MIT" ]
null
null
null
award/forms.py
aiventimptner/stura
268e50d08ec975dd1c974ea27cea5c5b638df686
[ "MIT" ]
null
null
null
from datetime import timedelta from django import forms from django.core.exceptions import ValidationError from django.core.mail import send_mail from django.http import HttpRequest from django.urls import reverse from django.utils import timezone from django.utils.translation import gettext_lazy as _ from .models imp...
40.016393
118
0.632937
89d82542f7b1351b6e3de4ad757581394ba2df33
6,971
py
Python
src/train-transformer.py
ARLab-VT/VT-Natural-Motion-Processing
56622dd3a7ed90e3791601dc569a0312e889eaaf
[ "MIT" ]
11
2020-12-07T11:29:18.000Z
2022-02-25T05:04:46.000Z
src/train-transformer.py
ARLab-VT/VT-Natural-Motion-Processing
56622dd3a7ed90e3791601dc569a0312e889eaaf
[ "MIT" ]
1
2021-10-16T01:37:23.000Z
2021-10-16T01:37:23.000Z
src/train-transformer.py
ARLab-VT/VT-Natural-Motion-Processing
56622dd3a7ed90e3791601dc569a0312e889eaaf
[ "MIT" ]
2
2020-08-15T23:27:23.000Z
2021-02-11T19:06:27.000Z
# Copyright (c) 2020-present, Assistive Robotics Lab # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # from transformers.training_utils import fit from transformers.transformers import ( InferenceTransformerEncoder, ...
39.384181
79
0.579544
89d83015d934717ac40944dfdbcc9a9c8718e02e
3,226
py
Python
amocrm_asterisk_ng/integration/Integration.py
iqtek/amocrn_asterisk_ng
429a8d0823b951c855a49c1d44ab0e05263c54dc
[ "MIT" ]
null
null
null
amocrm_asterisk_ng/integration/Integration.py
iqtek/amocrn_asterisk_ng
429a8d0823b951c855a49c1d44ab0e05263c54dc
[ "MIT" ]
null
null
null
amocrm_asterisk_ng/integration/Integration.py
iqtek/amocrn_asterisk_ng
429a8d0823b951c855a49c1d44ab0e05263c54dc
[ "MIT" ]
null
null
null
from typing import Collection from typing import Sequence from glassio.initializable_components import InitializableComponent from glassio.logger import InitializableLogger from amocrm_asterisk_ng.scenario import IScenario __all__ = [ "Integration", ]
33.257732
93
0.66181
89d89227f288e0f65c724c9ca47de9d7c7896fe6
1,685
py
Python
src/pyro_util/modules/__init__.py
MacoskoLab/pyro-util
6ea5e1dfd082abed8e675743c59efe9b548671ab
[ "MIT" ]
null
null
null
src/pyro_util/modules/__init__.py
MacoskoLab/pyro-util
6ea5e1dfd082abed8e675743c59efe9b548671ab
[ "MIT" ]
null
null
null
src/pyro_util/modules/__init__.py
MacoskoLab/pyro-util
6ea5e1dfd082abed8e675743c59efe9b548671ab
[ "MIT" ]
null
null
null
from typing import Tuple import torch import torch.nn as nn from pyro.distributions.util import broadcast_shape from pyro_util.modules.weight_scaling import GammaReLU, WSLinear T = torch.Tensor def make_ws_fc(*dims: int) -> nn.Module: """Helper function for creating a fully connected neural network. This v...
29.561404
72
0.68546
89d9126f3e319e5ec89708f1f4c286d5fd016235
356
py
Python
catalog_harvesting/util.py
ioos/catalog-harvesting
7674f9d0aba21032737f09364db6cd0afa3664cc
[ "MIT" ]
null
null
null
catalog_harvesting/util.py
ioos/catalog-harvesting
7674f9d0aba21032737f09364db6cd0afa3664cc
[ "MIT" ]
17
2016-07-01T18:52:20.000Z
2021-12-13T19:48:50.000Z
catalog_harvesting/util.py
ioos/catalog-harvesting
7674f9d0aba21032737f09364db6cd0afa3664cc
[ "MIT" ]
4
2016-06-28T15:29:28.000Z
2017-05-16T18:54:04.000Z
#!/usr/bin/env python ''' catalog_harvesting/util.py General utilities for the project ''' import random def unique_id(): ''' Return a random 17-character string that works well for mongo IDs ''' charmap = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" return ''.join([random.cho...
19.777778
78
0.72191
89d965296e8228cfbfe6118b69532269f5a9bce1
10,442
py
Python
render.py
ondrejkoren/WeatherFrame
2f9da22e5fa162e9ec7af218f353c16eb1250572
[ "MIT" ]
2
2020-10-26T19:18:11.000Z
2020-10-27T17:27:40.000Z
render.py
ondrejkoren/WeatherFrame
2f9da22e5fa162e9ec7af218f353c16eb1250572
[ "MIT" ]
null
null
null
render.py
ondrejkoren/WeatherFrame
2f9da22e5fa162e9ec7af218f353c16eb1250572
[ "MIT" ]
1
2020-12-18T03:42:42.000Z
2020-12-18T03:42:42.000Z
from WeatherScreens.RingScreen import RingScreen from WeatherScreens.QuadrantScreen import QuadrantScreen from WeatherScreens.ImageScreen import ImageScreen from WeatherScreens.ScreenBase import ScreenBase from datetime import datetime, timedelta from suntime import Sun, SunTimeException from dateutil import tz import ...
83.536
187
0.538977
89da74e72512e7844f3d0419ef0411f667024554
254
py
Python
evergreen/manage/website/page/urls.py
craigsander/evergreen
73c8e1ed546e3ac480add3e30e8696f4eb052496
[ "MIT" ]
null
null
null
evergreen/manage/website/page/urls.py
craigsander/evergreen
73c8e1ed546e3ac480add3e30e8696f4eb052496
[ "MIT" ]
6
2016-05-09T02:56:05.000Z
2016-05-26T18:36:41.000Z
evergreen/manage/website/page/urls.py
craigsander/evergreen
73c8e1ed546e3ac480add3e30e8696f4eb052496
[ "MIT" ]
null
null
null
from django.conf.urls import url, include from django.conf import settings from . import views # Wire up our API using automatic URL routing. # Additionally, we include login URLs for the browsable API. urlpatterns = [ url(r'manage/', views.index), ]
23.090909
60
0.755906
89dabd1fdd786adb281a58df018fbc280d6e2986
9,563
py
Python
algos/td3.py
SrikarValluri/hidden-state-rrl-sl
80c90ce3e07fc61e6b910a763b9608debeb1e5c4
[ "MIT" ]
null
null
null
algos/td3.py
SrikarValluri/hidden-state-rrl-sl
80c90ce3e07fc61e6b910a763b9608debeb1e5c4
[ "MIT" ]
null
null
null
algos/td3.py
SrikarValluri/hidden-state-rrl-sl
80c90ce3e07fc61e6b910a763b9608debeb1e5c4
[ "MIT" ]
1
2021-12-07T13:45:33.000Z
2021-12-07T13:45:33.000Z
import copy import torch import torch.nn as nn import torch.nn.functional as F import numpy as np import random from algos.dpg import eval_policy, collect_experience from algos.dpg import ReplayBuffer
37.065891
171
0.680958
89dae401f8334c13497ff1b437626cfde768def7
2,021
py
Python
Hackathon 4.0_2021-01-08_07-22-55.py
ClointFusion-Community/CFC-Projects
c6381738ade07e6e8979bbae37400ec2b4e626c5
[ "MIT" ]
null
null
null
Hackathon 4.0_2021-01-08_07-22-55.py
ClointFusion-Community/CFC-Projects
c6381738ade07e6e8979bbae37400ec2b4e626c5
[ "MIT" ]
null
null
null
Hackathon 4.0_2021-01-08_07-22-55.py
ClointFusion-Community/CFC-Projects
c6381738ade07e6e8979bbae37400ec2b4e626c5
[ "MIT" ]
null
null
null
# This code is generated automatically by ClointFusion BOT Builder Tool. import ClointFusion as cf import time cf.window_show_desktop() cf.mouse_click(int(cf.pg.size()[0]/2),int(cf.pg.size()[1]/2)) try: cf.mouse_click(*cf.mouse_search_snip_return_coordinates_x_y(r'C:\Users\mrmay\AppData\Local\Temp\cf_log_5fa2...
48.119048
256
0.784265
89db6ccc91759a48501578936605ad3449526dbf
4,524
py
Python
examples/2d/obsolete/gravity/generate_statedb.py
Grant-Block/pylith
f6338261b17551eba879da998a5aaf2d91f5f658
[ "MIT" ]
93
2015-01-08T16:41:22.000Z
2022-02-25T13:40:02.000Z
examples/2d/obsolete/gravity/generate_statedb.py
Grant-Block/pylith
f6338261b17551eba879da998a5aaf2d91f5f658
[ "MIT" ]
277
2015-02-20T16:27:35.000Z
2022-03-30T21:13:09.000Z
examples/2d/obsolete/gravity/generate_statedb.py
Grant-Block/pylith
f6338261b17551eba879da998a5aaf2d91f5f658
[ "MIT" ]
71
2015-03-24T12:11:08.000Z
2022-03-03T04:26:02.000Z
#!/usr/bin/env nemesis """ This script creates a spatial database for the initial stress and state variables for a Maxwell plane strain material. """ sim = "gravity_vardensity" materials = ["crust","mantle"] import numpy import h5py from spatialdata.spatialdb.SimpleIOAscii import SimpleIOAscii from spatialdata.geoco...
35.34375
230
0.593722
89de0f572a2f8179acd41fd1a3556c20df2554f1
923
py
Python
Python_Examples/BehaviorPolicy.py
dquail/GVFMinecraft
5eae9ea9974ec604194b32cdb235765ea3fe7fb3
[ "MIT" ]
null
null
null
Python_Examples/BehaviorPolicy.py
dquail/GVFMinecraft
5eae9ea9974ec604194b32cdb235765ea3fe7fb3
[ "MIT" ]
null
null
null
Python_Examples/BehaviorPolicy.py
dquail/GVFMinecraft
5eae9ea9974ec604194b32cdb235765ea3fe7fb3
[ "MIT" ]
null
null
null
from random import randint import numpy as np import random
23.075
112
0.648971
89de59b92801ba07cf84ab98bf1071d2e2892971
311
py
Python
Lists/In_Lists.py
obareau/python_travaux_pratiques
2205f4c253e96e409b56f5c23d6e23387ab46524
[ "MIT" ]
1
2021-11-01T12:45:50.000Z
2021-11-01T12:45:50.000Z
Lists/In_Lists.py
obareau/python_travaux_pratiques
2205f4c253e96e409b56f5c23d6e23387ab46524
[ "MIT" ]
null
null
null
Lists/In_Lists.py
obareau/python_travaux_pratiques
2205f4c253e96e409b56f5c23d6e23387ab46524
[ "MIT" ]
null
null
null
# Check if the value is in the list? words = ['apple', 'banana', 'peach', '42'] if 'apple' in words: print('found apple') if 'a' in words: print('found a') else: print('NOT found a') if 42 in words: print('found 42') else: print('NOT found 42') # found apple # NOT found a # NOT found 42
16.368421
42
0.604502
89dfe3895be78648508f25f822750a4e38dd966a
46,445
py
Python
src/genesis_api_wrapper/catalogue.py
j-suchard/destatis-genesis-api
b0bbec0283ba41707d543b11e556ab0997e5f792
[ "BSD-3-Clause" ]
null
null
null
src/genesis_api_wrapper/catalogue.py
j-suchard/destatis-genesis-api
b0bbec0283ba41707d543b11e556ab0997e5f792
[ "BSD-3-Clause" ]
null
null
null
src/genesis_api_wrapper/catalogue.py
j-suchard/destatis-genesis-api
b0bbec0283ba41707d543b11e556ab0997e5f792
[ "BSD-3-Clause" ]
null
null
null
import datetime import typing from . import enums, tools
48.53187
98
0.636279
89dffdff4ab352309290e6973585dc0df6b2adbd
2,440
py
Python
python/rsa_encrypt_decrypt.py
hipro/hipro
49e8c9751109839fdef9a6bc812e3b92fdff7d4e
[ "Apache-2.0" ]
null
null
null
python/rsa_encrypt_decrypt.py
hipro/hipro
49e8c9751109839fdef9a6bc812e3b92fdff7d4e
[ "Apache-2.0" ]
null
null
null
python/rsa_encrypt_decrypt.py
hipro/hipro
49e8c9751109839fdef9a6bc812e3b92fdff7d4e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """()""" from Crypto.PublicKey import RSA from Crypto import Random DATA = 'Hello, word!' PRIVATE_KEY_PEM = """-----BEGIN RSA PRIVATE KEY----- MIICXQIBAAKBgQDB3c0nwVs6koPkpt6REeT07jK7m9qE9BmDw1Zl55T66rGfKM3g 1DFBq7jtcZ+xcgYAGgvJWPW16nylag/1lVNUxMShm2jlp3MwuBNKRvrXP2u29j9v AAlM9lMLXzt0Ui4ZfLF9abpti5oD...
35.362319
66
0.812295
89e0907a323d313394f560697c26056210dde316
375
py
Python
users/views.py
migleankstutyte/kaavapino
1fd0b642a66f1ec7c61decf46433dc9f0bf3ed8e
[ "MIT" ]
3
2019-02-07T14:47:00.000Z
2022-02-15T14:09:38.000Z
users/views.py
migleankstutyte/kaavapino
1fd0b642a66f1ec7c61decf46433dc9f0bf3ed8e
[ "MIT" ]
74
2017-12-13T09:18:04.000Z
2022-03-11T23:29:59.000Z
users/views.py
migleankstutyte/kaavapino
1fd0b642a66f1ec7c61decf46433dc9f0bf3ed8e
[ "MIT" ]
8
2017-12-13T09:31:20.000Z
2022-02-15T13:10:34.000Z
from django.contrib.auth import get_user_model from rest_framework import mixins from rest_framework.viewsets import GenericViewSet from users.serializers import UserSerializer
31.25
84
0.824
89e10d148c9fdea8e999e4febe67aedd65bd1469
59
py
Python
interpreted/python.py
bupboi1337/Hello-World-Collection
989a25cb2916a3fa0c8d5e21c7b857a0f89ab49f
[ "MIT" ]
2
2021-12-03T10:49:15.000Z
2021-12-03T17:28:17.000Z
interpreted/python.py
bupboi1337/Hello-World-Collection
989a25cb2916a3fa0c8d5e21c7b857a0f89ab49f
[ "MIT" ]
null
null
null
interpreted/python.py
bupboi1337/Hello-World-Collection
989a25cb2916a3fa0c8d5e21c7b857a0f89ab49f
[ "MIT" ]
null
null
null
print("Hello, World!") print("This uses the MIT Licence!")
19.666667
35
0.694915
89e1e0fdcc58fa3523c28ea0543829f7666a6db0
5,597
py
Python
survae/tests/transforms/bijections/conditional/coupling/coupling_mixtures.py
alisiahkoohi/survae_flows
e1747b05524c7ab540a211ed360ab3e67bc3e96d
[ "MIT" ]
262
2020-07-05T20:57:44.000Z
2022-03-28T02:24:43.000Z
survae/tests/transforms/bijections/conditional/coupling/coupling_mixtures.py
alisiahkoohi/survae_flows
e1747b05524c7ab540a211ed360ab3e67bc3e96d
[ "MIT" ]
17
2020-08-15T05:43:34.000Z
2022-01-31T12:24:21.000Z
survae/tests/transforms/bijections/conditional/coupling/coupling_mixtures.py
alisiahkoohi/survae_flows
e1747b05524c7ab540a211ed360ab3e67bc3e96d
[ "MIT" ]
35
2020-08-24T06:55:37.000Z
2022-02-11T05:17:58.000Z
import numpy as np import torch import torch.nn as nn import torchtestcase import unittest from survae.transforms.bijections.conditional.coupling import * from survae.nn.layers import ElementwiseParams, ElementwiseParams2d, scale_fn from survae.tests.transforms.bijections.conditional import ConditionalBijectionTest ...
55.415842
167
0.60586
89e266ad4a5dbc97ce90b8acd022e9cd85eb5d18
408
py
Python
shop_website/shop/migrations/0002_auto_20200228_1533.py
omar00070/django-shopping-website
af2741b900b60631349ea2e6de17586994e31680
[ "MIT" ]
null
null
null
shop_website/shop/migrations/0002_auto_20200228_1533.py
omar00070/django-shopping-website
af2741b900b60631349ea2e6de17586994e31680
[ "MIT" ]
null
null
null
shop_website/shop/migrations/0002_auto_20200228_1533.py
omar00070/django-shopping-website
af2741b900b60631349ea2e6de17586994e31680
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2020-02-28 15:33 from django.db import migrations, models
21.473684
86
0.60049
89e27c59e9c3624f60d5be2d955f2c4ed96ee92e
4,812
py
Python
machines/migrations/0001_initial.py
minikdo/domino
16ccc5b36c730c8bee223024e02b4984feedef26
[ "Apache-2.0" ]
null
null
null
machines/migrations/0001_initial.py
minikdo/domino
16ccc5b36c730c8bee223024e02b4984feedef26
[ "Apache-2.0" ]
1
2022-02-10T10:54:20.000Z
2022-02-10T10:54:20.000Z
machines/migrations/0001_initial.py
minikdo/domino
16ccc5b36c730c8bee223024e02b4984feedef26
[ "Apache-2.0" ]
1
2018-11-19T23:17:52.000Z
2018-11-19T23:17:52.000Z
# Generated by Django 2.2.3 on 2019-07-21 01:32 from django.db import migrations, models import django.db.models.deletion
50.125
151
0.579177
89e28e497194558b332c7d2514764dab8aee4b55
813
py
Python
src/openweather/OpenWeatherParser.py
ralfe/wpi
ee077fb9fd1b2e8759e6195b3c36f24848eea6f5
[ "MIT" ]
null
null
null
src/openweather/OpenWeatherParser.py
ralfe/wpi
ee077fb9fd1b2e8759e6195b3c36f24848eea6f5
[ "MIT" ]
null
null
null
src/openweather/OpenWeatherParser.py
ralfe/wpi
ee077fb9fd1b2e8759e6195b3c36f24848eea6f5
[ "MIT" ]
null
null
null
__author__ = 'renderle'
30.111111
67
0.654367
89e34b71011f62cacdee9a2e71e2e2ea742bcf2b
8,300
py
Python
docs/make_docs.py
yacth/autogoal
a55c1534161e850587e2ca3533aa2fd5ae28569e
[ "MIT" ]
null
null
null
docs/make_docs.py
yacth/autogoal
a55c1534161e850587e2ca3533aa2fd5ae28569e
[ "MIT" ]
null
null
null
docs/make_docs.py
yacth/autogoal
a55c1534161e850587e2ca3533aa2fd5ae28569e
[ "MIT" ]
null
null
null
# Convert examples in this folder to their corresponding .md files in docs/examples import re import inspect import textwrap import datetime import yaml from pathlib import Path def process(fname: Path): print(fname) content = [] with fname.open("r") as fp: current = [] state = "mar...
25.696594
139
0.546145
89e6cd7ae91131db466757761efa7d854f285ccc
21,017
py
Python
MVMOO/multi_mixed_optimiser.py
jmanson377/MVMOO
0e3d5ca5c1a9dd0fb9ff949e8e0d0448ae78a535
[ "Apache-2.0" ]
5
2021-07-10T10:22:14.000Z
2022-03-28T05:16:21.000Z
MVMOO/multi_mixed_optimiser.py
jmanson377/MVMOO
0e3d5ca5c1a9dd0fb9ff949e8e0d0448ae78a535
[ "Apache-2.0" ]
2
2021-01-19T15:28:32.000Z
2021-08-16T14:21:47.000Z
MVMOO/multi_mixed_optimiser.py
jmanson377/MVMOO
0e3d5ca5c1a9dd0fb9ff949e8e0d0448ae78a535
[ "Apache-2.0" ]
1
2022-03-28T05:16:25.000Z
2022-03-28T05:16:25.000Z
import numpy as np from scipy.stats import norm from .mixed_optimiser import MVO from scipy.optimize import shgo, differential_evolution, dual_annealing import scipy as stats
37.664875
190
0.538136
89e8f1e4189f0729dfe92491a135e0998857cfdb
2,306
py
Python
chainer/links/connection/mgu.py
Qwinpin/chainer
1dca01bc8a1aceec6ee53a66d24970b203a9fc51
[ "MIT" ]
1
2019-02-12T23:10:16.000Z
2019-02-12T23:10:16.000Z
chainer/links/connection/mgu.py
nolfwin/chainer
8d776fcc1e848cb9d3800a6aab356eb91ae9d088
[ "MIT" ]
1
2018-06-26T08:16:09.000Z
2018-06-26T08:16:09.000Z
chainer/links/connection/mgu.py
nolfwin/chainer
8d776fcc1e848cb9d3800a6aab356eb91ae9d088
[ "MIT" ]
1
2018-05-28T22:43:34.000Z
2018-05-28T22:43:34.000Z
import numpy import chainer from chainer.backends import cuda from chainer.functions.activation import sigmoid from chainer.functions.activation import tanh from chainer.functions.array import concat from chainer.functions.math import linear_interpolate from chainer import link from chainer.links.connection import lin...
29.948052
76
0.630095
89e93dde7c1c5cc0955c1c9e582b41a9104efdc2
2,920
py
Python
backend/api/v1/rest.py
aroraenterprise/projecteos
e1fb0438af8cb59b77792523c6616c480b23a6f8
[ "MIT" ]
null
null
null
backend/api/v1/rest.py
aroraenterprise/projecteos
e1fb0438af8cb59b77792523c6616c480b23a6f8
[ "MIT" ]
null
null
null
backend/api/v1/rest.py
aroraenterprise/projecteos
e1fb0438af8cb59b77792523c6616c480b23a6f8
[ "MIT" ]
null
null
null
""" Project: flask-rest Author: Saj Arora Description: Initializes the rest app """ from collections import OrderedDict import flask from api.v1 import Api
36.962025
107
0.626027
89ea4df004678d25f396f7be142ad28d35ef4d77
1,575
py
Python
torchreid/losses/log_euclid_loss.py
fremigereau/MTDA_KD_REID
354645990c9ff0e1eff363ddddccd0d208b08269
[ "MIT" ]
null
null
null
torchreid/losses/log_euclid_loss.py
fremigereau/MTDA_KD_REID
354645990c9ff0e1eff363ddddccd0d208b08269
[ "MIT" ]
null
null
null
torchreid/losses/log_euclid_loss.py
fremigereau/MTDA_KD_REID
354645990c9ff0e1eff363ddddccd0d208b08269
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division import torch import torch.nn as nn import torch.nn.functional as F from torchreid.metrics import compute_distance_matrix import scipy.linalg
28.125
91
0.652063
89ebaa5775c0dea38d5246fe1024840283181c4b
4,460
py
Python
app/rockband/tests/test_member_api.py
solattila/rock-band-api
1521b2913b75c53310ba1b71d77d599966237483
[ "MIT" ]
null
null
null
app/rockband/tests/test_member_api.py
solattila/rock-band-api
1521b2913b75c53310ba1b71d77d599966237483
[ "MIT" ]
null
null
null
app/rockband/tests/test_member_api.py
solattila/rock-band-api
1521b2913b75c53310ba1b71d77d599966237483
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.urls import reverse from django.test import TestCase from rest_framework import status from rest_framework.test import APIClient from core.models import Member, Band from rockband.serializers import MemberSerializer MEMBERS_URL = reverse('rockband:member-l...
28.050314
71
0.602018
89ebb0adb00564e2ea1a6c39febb2b498caf378e
372
py
Python
bot.py
bufgix/slave
9c71035d06e1a714db43ac7c4503a807f0baa185
[ "MIT" ]
8
2019-06-16T17:03:28.000Z
2021-10-10T19:48:34.000Z
bot.py
bufgix/slave
9c71035d06e1a714db43ac7c4503a807f0baa185
[ "MIT" ]
4
2019-08-22T23:28:07.000Z
2021-02-02T22:15:29.000Z
bot.py
bufgix/slave
9c71035d06e1a714db43ac7c4503a807f0baa185
[ "MIT" ]
2
2021-04-02T21:00:15.000Z
2021-04-03T07:02:26.000Z
from slave.playground.bots import BotInformation from slave.lib.bots import BotBasic, BotV2 config = { 'host': 'chat.freenode.net', 'port': 6667, 'channel': "#slavebotpool666", 'boss_name': 'boss666', 'bot_prefix': "SLAVEBOT" } BotInformation.read_config_from_dict(config) BotInformation.use_other...
24.8
48
0.741935
89ec0f6ca81160f0a6c25c125bae56759feda8ef
363
py
Python
Desafios-intermediarios-em-Python/Crescente e Decrescente.py
Alexsandramaran/Desafios-Intermedi-rios-Python
5013953d4d5b051bf5f9009141f1e1a61d9798f4
[ "MIT" ]
null
null
null
Desafios-intermediarios-em-Python/Crescente e Decrescente.py
Alexsandramaran/Desafios-Intermedi-rios-Python
5013953d4d5b051bf5f9009141f1e1a61d9798f4
[ "MIT" ]
null
null
null
Desafios-intermediarios-em-Python/Crescente e Decrescente.py
Alexsandramaran/Desafios-Intermedi-rios-Python
5013953d4d5b051bf5f9009141f1e1a61d9798f4
[ "MIT" ]
null
null
null
X = [] Y = [] cont = 0 n = True while n: a,b = input().split(" ") a = int(a) b = int(b) if a == b: n = False cont-=1 else: X.append(a) Y.append(b) cont+=1 i = 0 while i < cont: if X[i] > Y[i]: print('Decrescente') elif X[i] < ...
15.125
29
0.380165
89ecf59e43b45e631155311a80e6f746b263deaf
1,482
py
Python
utils/generate-sha256.py
dskrvk/anteater
bce2dba767d661e9245da9dd662fec49554b374f
[ "Apache-2.0" ]
177
2018-03-28T18:50:26.000Z
2022-02-27T00:36:58.000Z
utils/generate-sha256.py
dskrvk/anteater
bce2dba767d661e9245da9dd662fec49554b374f
[ "Apache-2.0" ]
30
2016-08-20T08:58:57.000Z
2018-02-01T16:56:54.000Z
utils/generate-sha256.py
dskrvk/anteater
bce2dba767d661e9245da9dd662fec49554b374f
[ "Apache-2.0" ]
8
2019-06-28T07:45:57.000Z
2021-11-13T06:06:36.000Z
############################################################################## # Copyright (c) 2017 Luke Hinds <lhinds@redhat.com>, Red Hat # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, ...
36.146341
78
0.579622
89ef47a9a017d8b54b108f58d3445d148f8ea44e
5,355
py
Python
modules/tts/fs2_orig.py
zjumml/NATSpeech
b1cf33e336a69e8550953bf8091e1b5ac6c0608e
[ "MIT" ]
1
2022-02-15T05:06:59.000Z
2022-02-15T05:06:59.000Z
modules/tts/fs2_orig.py
zjumml/NATSpeech
b1cf33e336a69e8550953bf8091e1b5ac6c0608e
[ "MIT" ]
null
null
null
modules/tts/fs2_orig.py
zjumml/NATSpeech
b1cf33e336a69e8550953bf8091e1b5ac6c0608e
[ "MIT" ]
null
null
null
import torch from torch import nn from modules.commons.layers import Embedding from modules.commons.nar_tts_modules import EnergyPredictor, PitchPredictor from modules.tts.commons.align_ops import expand_states from modules.tts.fs import FastSpeech from utils.audio.cwt import cwt2f0, get_lf0_cwt from utils.audio.pitch....
51.990291
118
0.630252
89ef989d17480fa0112f287631461695a1dfdc91
1,626
py
Python
snets_factory.py
yoosan/i3d-tensorflow
31fd1636bfbab267fa47f189c4a5642551e81aab
[ "MIT" ]
59
2018-01-10T10:15:57.000Z
2021-02-23T14:51:28.000Z
snets_factory.py
yoosan/i3d-tensorflow
31fd1636bfbab267fa47f189c4a5642551e81aab
[ "MIT" ]
5
2018-03-15T14:52:51.000Z
2019-01-10T08:01:26.000Z
snets_factory.py
yoosan/i3d-tensorflow
31fd1636bfbab267fa47f189c4a5642551e81aab
[ "MIT" ]
10
2018-01-10T10:15:58.000Z
2019-06-05T03:25:40.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import functools import tensorflow as tf import i3d, i3d_v2, r3d FLAGS = tf.flags.FLAGS networks_map = {'i3d_v1': i3d.I3D, 'i3d_v2': i3d_v2.I3D_V2, 'r3d_50': r3d.resnet_v1_50, ...
35.347826
108
0.710332
89f42518c22e0143df19da0c0902641c4788fd1c
188
py
Python
__init__.py
lcit/metrics_delin
30f1ad9ccc901e63770f39a80b0e1ec6bbfb34d9
[ "MIT" ]
8
2021-01-25T07:34:04.000Z
2022-03-18T10:29:20.000Z
__init__.py
lcit/metrics_delin
30f1ad9ccc901e63770f39a80b0e1ec6bbfb34d9
[ "MIT" ]
null
null
null
__init__.py
lcit/metrics_delin
30f1ad9ccc901e63770f39a80b0e1ec6bbfb34d9
[ "MIT" ]
1
2022-01-27T08:12:38.000Z
2022-01-27T08:12:38.000Z
from .utils import * from .path_based import toolong_tooshort, opt_p from .graph_based import holes_marbles, opt_g from .pixel_based import corr_comp_qual from .junction_based import opt_j
37.6
47
0.845745
89f5028eff37603d75de75f5abd7c8d726c5c6e5
2,882
py
Python
deepinesStore/cardg.py
xoascf/store_deepines
d16f5af2b90845d2be3ca19d19cc43d4ad4a0bcf
[ "Apache-2.0" ]
6
2019-09-21T14:16:53.000Z
2021-04-05T12:21:03.000Z
deepinesStore/cardg.py
xoascf/store_deepines
d16f5af2b90845d2be3ca19d19cc43d4ad4a0bcf
[ "Apache-2.0" ]
3
2019-09-20T02:12:10.000Z
2021-01-26T20:24:14.000Z
deepinesStore/cardg.py
xoascf/store_deepines
d16f5af2b90845d2be3ca19d19cc43d4ad4a0bcf
[ "Apache-2.0" ]
14
2019-10-20T04:48:07.000Z
2022-01-29T14:51:09.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'guis/card.ui' # # Created by: PyQt5 UI code generator 5.13.0 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets
37.428571
82
0.693616
89f68215a92b5962462d39d325a8ddbc3feb8d70
2,826
py
Python
blog/views.py
lizheng3401/MetaStudio
70989e95d70222263ce1eb9e97c866b27010d47e
[ "MIT" ]
null
null
null
blog/views.py
lizheng3401/MetaStudio
70989e95d70222263ce1eb9e97c866b27010d47e
[ "MIT" ]
null
null
null
blog/views.py
lizheng3401/MetaStudio
70989e95d70222263ce1eb9e97c866b27010d47e
[ "MIT" ]
null
null
null
from django.shortcuts import render,get_object_or_404, redirect from .models import Category, Tag, Post from game.models import GameCategory, Game from comment.forms import BlogCommentForm,SubBCommentForm from comment.models import BlogComment,SubBComment from .forms import PostForm
28.545455
109
0.63765
89f877e4490404ffc1a3340b3e037743f3566d9c
302
py
Python
cli4/__main__.py
pygrigori/python-cloudflare
d7cdb0cd5b0408b30c403d4d83915466a1e3d558
[ "MIT" ]
465
2016-05-07T00:22:59.000Z
2022-03-31T08:36:24.000Z
cli4/__main__.py
pygrigori/python-cloudflare
d7cdb0cd5b0408b30c403d4d83915466a1e3d558
[ "MIT" ]
129
2016-05-17T08:00:15.000Z
2022-03-31T23:09:36.000Z
cli4/__main__.py
pygrigori/python-cloudflare
d7cdb0cd5b0408b30c403d4d83915466a1e3d558
[ "MIT" ]
167
2016-05-09T16:19:27.000Z
2022-03-31T07:19:18.000Z
#!/usr/bin/env python """Cloudflare API via command line""" from __future__ import absolute_import import sys from .cli4 import cli4 def main(args=None): """Cloudflare API via command line""" if args is None: args = sys.argv[1:] cli4(args) if __name__ == '__main__': main()
17.764706
41
0.662252
89fa2898826320254df84429ac824ce1b3d478ec
8,942
py
Python
uq360/algorithms/blackbox_metamodel/metamodel_regression.py
Sclare87/UQ360
2378bfa4a8d61f813afbf6854341888434c9eb11
[ "Apache-2.0" ]
148
2021-05-27T20:52:51.000Z
2022-03-16T22:49:48.000Z
uq360/algorithms/blackbox_metamodel/metamodel_regression.py
Sclare87/UQ360
2378bfa4a8d61f813afbf6854341888434c9eb11
[ "Apache-2.0" ]
9
2021-06-21T18:45:07.000Z
2021-11-08T14:42:30.000Z
uq360/algorithms/blackbox_metamodel/metamodel_regression.py
Sclare87/UQ360
2378bfa4a8d61f813afbf6854341888434c9eb11
[ "Apache-2.0" ]
27
2021-06-01T18:29:02.000Z
2022-03-02T06:56:03.000Z
import inspect from collections import namedtuple import numpy as np from sklearn.ensemble import GradientBoostingRegressor from sklearn.model_selection import train_test_split from sklearn.exceptions import NotFittedError from uq360.algorithms.posthocuq import PostHocUQ
51.390805
124
0.632297
89fb5f59bb50131f97f5c4face1aa7480c5511fc
5,641
py
Python
neural/net_templates.py
deepmind/constrained_optidice
ddddbc768d7e7c8fde6a2200e1764c095bbc2b1f
[ "Apache-2.0" ]
1
2022-03-10T15:39:11.000Z
2022-03-10T15:39:11.000Z
neural/net_templates.py
deepmind/constrained_optidice
ddddbc768d7e7c8fde6a2200e1764c095bbc2b1f
[ "Apache-2.0" ]
null
null
null
neural/net_templates.py
deepmind/constrained_optidice
ddddbc768d7e7c8fde6a2200e1764c095bbc2b1f
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 DeepMind Technologies Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
31.513966
80
0.697217
89ff18e78c669221542df841657ba147fbc35054
3,026
py
Python
dendron/extension.py
mandarvaze/ulauncher-dendron
67358dde684127dcba4bb383057b20c7fd89c2a0
[ "MIT" ]
null
null
null
dendron/extension.py
mandarvaze/ulauncher-dendron
67358dde684127dcba4bb383057b20c7fd89c2a0
[ "MIT" ]
null
null
null
dendron/extension.py
mandarvaze/ulauncher-dendron
67358dde684127dcba4bb383057b20c7fd89c2a0
[ "MIT" ]
null
null
null
import logging import subprocess from threading import Thread from ulauncher.api.client.Extension import Extension from ulauncher.api.shared.event import KeywordQueryEvent, ItemEnterEvent, \ PreferencesEvent, PreferencesUpdateEvent from ulauncher.api.shared.action.ExtensionCustomAction import \ ExtensionCustomA...
39.815789
88
0.581626
89ffe4c285c8fb8adfe67fe8a61dca320dff8dfe
14,288
py
Python
buzzard/test/test_footprint_tile.py
ashnair1/buzzard
f9a9c2ac2929d997b1643f4730c67e3db45e181e
[ "Apache-2.0" ]
30
2019-12-07T21:16:41.000Z
2022-03-07T15:12:25.000Z
buzzard/test/test_footprint_tile.py
ashnair1/buzzard
f9a9c2ac2929d997b1643f4730c67e3db45e181e
[ "Apache-2.0" ]
42
2018-01-31T20:03:55.000Z
2019-11-12T19:42:13.000Z
buzzard/test/test_footprint_tile.py
ashnair1/buzzard
f9a9c2ac2929d997b1643f4730c67e3db45e181e
[ "Apache-2.0" ]
15
2018-01-31T19:47:22.000Z
2019-11-26T10:27:50.000Z
# pylint: disable=redefined-outer-name # pylint: disable=too-many-lines import itertools import pytest from buzzard.test.tools import assert_tiles_eq from buzzard.test import make_tile_set ANY = 42 PARAMS1 = { 'extend', 'overlap', 'exclude', 'exception', 'shrink', } PARAMS2 = {'br', 'tr', 'tl',...
28.806452
100
0.428541
89fff27b673fe05fed979e15b76552aef5fb7f04
946
py
Python
mniconvert/combine_func_redgreen.py
parenthetical-e/wheelerdata
a03504bc9d746e71ca365f83064481c1608bf493
[ "BSD-2-Clause" ]
1
2018-10-27T02:48:10.000Z
2018-10-27T02:48:10.000Z
mniconvert/combine_func_redgreen.py
parenthetical-e/wheelerdata
a03504bc9d746e71ca365f83064481c1608bf493
[ "BSD-2-Clause" ]
null
null
null
mniconvert/combine_func_redgreen.py
parenthetical-e/wheelerdata
a03504bc9d746e71ca365f83064481c1608bf493
[ "BSD-2-Clause" ]
null
null
null
"""Combine ar* functional data in along their 4th axes. usage: combined_func_redgreen datadir """ import sys import os from roi.pre import combine4d from roi.io import read_nifti, write_nifti # Process the argv if len(sys.argv[1:]) != 1: raise ValueError('Only one argument allowed') datadir = sys.argv[1] # Name ...
27.823529
71
0.688161
89fff5868cf9600a0b84348158759e2ca26b2ae6
3,857
py
Python
es_sink/es_sink/flushing_buffer.py
avmi/community
94abc715845d17fb4c24e70c7c328b2d4da0d581
[ "Apache-2.0" ]
305
2019-03-11T15:25:53.000Z
2021-03-03T09:34:02.000Z
es_sink/es_sink/flushing_buffer.py
marhak/odfe-community
c1f2802205eb11c0fdbbbef909b0e33e90ea2ad5
[ "Apache-2.0" ]
233
2019-03-11T14:52:59.000Z
2021-03-03T12:11:00.000Z
es_sink/es_sink/flushing_buffer.py
marhak/odfe-community
c1f2802205eb11c0fdbbbef909b0e33e90ea2ad5
[ "Apache-2.0" ]
97
2019-03-17T20:56:46.000Z
2021-02-28T14:14:01.000Z
''' Copyright 2020, Amazon Web Services Inc. This code is licensed under MIT license (see LICENSE.txt for details) Python 3 Provides a buffer object that holds log lines in Elasticsearch _bulk format. As each line is added, the buffer stores the control line as well as the log line. Employs an line_buffer to hold lo...
37.813725
80
0.646617
d6002ee1619df2f3a01c18514eb41944710fe8cf
1,529
py
Python
ife/features/tests/test_features.py
Collonville/ImageFeatureExtractor
92c9b4bbb19ac6f319d86e2e9837425a822e78aa
[ "BSD-3-Clause" ]
2
2020-09-10T09:59:45.000Z
2021-02-18T06:06:57.000Z
ife/features/tests/test_features.py
Collonville/ImageFeatureExtractor
92c9b4bbb19ac6f319d86e2e9837425a822e78aa
[ "BSD-3-Clause" ]
9
2019-07-24T14:34:45.000Z
2021-06-01T01:43:45.000Z
ife/features/tests/test_features.py
Collonville/ImageFeatureExtractor
92c9b4bbb19ac6f319d86e2e9837425a822e78aa
[ "BSD-3-Clause" ]
1
2019-08-10T12:37:07.000Z
2019-08-10T12:37:07.000Z
import unittest from collections import defaultdict import numpy as np import pandas as pd from ife.io.io import ImageReader
32.531915
78
0.689993
d6045b4c7f02b396222d75c9572cf50573b6e5e0
4,116
py
Python
mysite/timesheets/models.py
xanderyzwich/Timesheets
15685ac7b786d3e66bd24e8a3a252f193ee8f49b
[ "MIT" ]
null
null
null
mysite/timesheets/models.py
xanderyzwich/Timesheets
15685ac7b786d3e66bd24e8a3a252f193ee8f49b
[ "MIT" ]
1
2019-06-11T21:23:49.000Z
2019-06-11T21:23:49.000Z
mysite/timesheets/models.py
xanderyzwich/Timesheets
15685ac7b786d3e66bd24e8a3a252f193ee8f49b
[ "MIT" ]
null
null
null
"""The database models and form based on the timesheet model""" import datetime from django.db import models from django.forms import ModelForm, ValidationError # Create your models here.
34.881356
117
0.659864
d604e88c648108777cbfd88997a6da0f4142321d
972
py
Python
waferscreen/inst_control/inactive/keithley_2700_multimeter.py
chw3k5/WaferScreen
c0ca7fe939fe7cd0b722b7d6129b148c03a7505c
[ "Apache-2.0" ]
1
2021-07-30T19:06:07.000Z
2021-07-30T19:06:07.000Z
waferscreen/inst_control/inactive/keithley_2700_multimeter.py
chw3k5/WaferScreen
c0ca7fe939fe7cd0b722b7d6129b148c03a7505c
[ "Apache-2.0" ]
8
2021-04-22T20:47:48.000Z
2021-07-30T19:06:01.000Z
waferscreen/inst_control/inactive/keithley_2700_multimeter.py
chw3k5/WaferScreen
c0ca7fe939fe7cd0b722b7d6129b148c03a7505c
[ "Apache-2.0" ]
null
null
null
''' Created on Mar 11, 2009 @author: schimaf ''' import gpib_instrument
24.923077
111
0.56893
d606536d7efc21d7e550e45069c0d3a0439a05b5
2,482
py
Python
matchzoo/utils/early_stopping.py
ChrisRBXiong/MatchZoo-py
8883d0933a62610d71fec0215dce643630e03b1c
[ "Apache-2.0" ]
468
2019-07-03T02:43:52.000Z
2022-03-30T05:51:03.000Z
matchzoo/utils/early_stopping.py
ChrisRBXiong/MatchZoo-py
8883d0933a62610d71fec0215dce643630e03b1c
[ "Apache-2.0" ]
126
2019-07-04T15:51:57.000Z
2021-07-31T13:14:40.000Z
matchzoo/utils/early_stopping.py
ChrisRBXiong/MatchZoo-py
8883d0933a62610d71fec0215dce643630e03b1c
[ "Apache-2.0" ]
117
2019-07-04T11:31:08.000Z
2022-03-18T12:21:32.000Z
"""Early stopping.""" import typing import torch import numpy as np
30.641975
75
0.619662
d606d36daa54b0bd3ddacafaed70c2ea09268701
33,552
py
Python
geometry_processing.py
casperg92/MaSIF_colab
f030061276cc21b812bb3be652124b75dcdf7e5b
[ "MIT" ]
8
2022-02-21T12:54:25.000Z
2022-03-22T00:35:26.000Z
geometry_processing.py
casperg92/MaSIF_colab
f030061276cc21b812bb3be652124b75dcdf7e5b
[ "MIT" ]
1
2022-03-19T02:44:08.000Z
2022-03-21T12:20:59.000Z
geometry_processing.py
casperg92/MaSIF_colab
f030061276cc21b812bb3be652124b75dcdf7e5b
[ "MIT" ]
2
2022-03-18T08:59:38.000Z
2022-03-26T11:48:59.000Z
import numpy as np from math import pi import torch from pykeops.torch import LazyTensor from plyfile import PlyData, PlyElement from helper import * import torch.nn as nn import torch.nn.functional as F # from matplotlib import pyplot as plt from pykeops.torch.cluster import grid_cluster, cluster_ranges_centroids, fr...
40.767922
114
0.575346
d60722b9887f89e13eb10b2c11b054a0ed09389f
324
py
Python
test/test_comment.py
ExiaSR/server
f29ce921681d8b70f9e2541f7e251deb894bea29
[ "Apache-2.0" ]
3
2017-02-22T21:15:27.000Z
2017-08-07T17:30:21.000Z
test/test_comment.py
ExiaSR/server
f29ce921681d8b70f9e2541f7e251deb894bea29
[ "Apache-2.0" ]
4
2017-02-24T00:47:02.000Z
2017-03-20T08:51:02.000Z
test/test_comment.py
TeamGhostBuster/restful-api
f29ce921681d8b70f9e2541f7e251deb894bea29
[ "Apache-2.0" ]
1
2017-01-27T16:22:46.000Z
2017-01-27T16:22:46.000Z
import pytest from test.conftest import *
32.4
69
0.725309
d6072d0758d603f4485ac95d58c4efa0240eeb5f
1,426
py
Python
KEGGutils/KEGGhelpers.py
filippocastelli/KGutils
7dc7d8092f9476d447c777d662076e664c6dea5b
[ "Unlicense" ]
3
2019-04-03T19:34:09.000Z
2020-05-07T14:38:52.000Z
KEGGutils/KEGGhelpers.py
filippocastelli/KGutils
7dc7d8092f9476d447c777d662076e664c6dea5b
[ "Unlicense" ]
5
2019-03-25T11:23:34.000Z
2020-11-19T19:10:45.000Z
KEGGutils/KEGGhelpers.py
filippocastelli/KGutils
7dc7d8092f9476d447c777d662076e664c6dea5b
[ "Unlicense" ]
6
2020-05-28T15:35:49.000Z
2021-12-11T18:43:04.000Z
# ============================================================================= # MISC HELPER FUNCTIONS # ============================================================================= def push_backslash(stuff): """ push a backslash before a word, dumbest function ever""" stuff_url = "" if stuff i...
27.423077
79
0.546985
d607862cf4892c18870cfcbccf290b4c451cd8b2
2,243
py
Python
mazeinawall/generate_dataset.py
ncvescera/QRL-Maze_in_a_Wall
c150612bd17b1a70439853acfbdb2bc7d2b92a67
[ "Apache-2.0" ]
2
2022-02-25T15:55:28.000Z
2022-03-24T17:41:42.000Z
mazeinawall/generate_dataset.py
ncvescera/QRL-Maze_in_a_Wall
c150612bd17b1a70439853acfbdb2bc7d2b92a67
[ "Apache-2.0" ]
1
2022-02-03T15:48:30.000Z
2022-02-17T08:52:21.000Z
mazeinawall/generate_dataset.py
ncvescera/QRL-Maze_in_a_Wall
c150612bd17b1a70439853acfbdb2bc7d2b92a67
[ "Apache-2.0" ]
null
null
null
from random import randint, seed import numpy as np from os import path, mkdir from maze_utils import generate_grid seed_number = 69 training_folder = "training" testing_folder = "testing" tot_elem_training = 100 # numero di matrici da generare tot_elem_testing = 20 # numero di matrici da generare max_w = 10 ...
25.488636
76
0.637539
d607c50df384a8836cc766ca7abe51f12d75551d
13,980
py
Python
deploy/alembic/versions/6fb351569d30_create_tables.py
gordon-elliott/glod
a381e21455d05d9c005942a3dee4ac67e10f366a
[ "MIT" ]
null
null
null
deploy/alembic/versions/6fb351569d30_create_tables.py
gordon-elliott/glod
a381e21455d05d9c005942a3dee4ac67e10f366a
[ "MIT" ]
1
2021-03-10T16:48:34.000Z
2021-03-10T16:48:34.000Z
deploy/alembic/versions/6fb351569d30_create_tables.py
gordon-elliott/glod
a381e21455d05d9c005942a3dee4ac67e10f366a
[ "MIT" ]
null
null
null
"""create tables Revision ID: 6fb351569d30 Revises: 4f72de1ff38b Create Date: 2019-05-06 21:59:43.998735 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '6fb351569d30' down_revision = '4f72de1ff38b' branch_labels = None depends_on = None
53.155894
408
0.686767
d607fe79bc3714c6dc68c45609c08cdff2b1fdf2
50
py
Python
apps/user/filters/__init__.py
kane-zh/MES_server
d8d28768a054eee6433e3900908afd331fd92281
[ "Apache-2.0" ]
null
null
null
apps/user/filters/__init__.py
kane-zh/MES_server
d8d28768a054eee6433e3900908afd331fd92281
[ "Apache-2.0" ]
null
null
null
apps/user/filters/__init__.py
kane-zh/MES_server
d8d28768a054eee6433e3900908afd331fd92281
[ "Apache-2.0" ]
null
null
null
from apps.user.filters.basicinfor_filters import *
50
50
0.86
d608c6ea338f66c4814b94450fe4d554011509ec
7,414
py
Python
moog/shapes.py
juanpablordz/moog.github.io
d7995d3563492378d0877ce8d16f5ca9a8031794
[ "Apache-2.0", "MIT" ]
22
2021-02-26T18:19:35.000Z
2022-03-05T19:01:00.000Z
moog/shapes.py
juanpablordz/moog.github.io
d7995d3563492378d0877ce8d16f5ca9a8031794
[ "Apache-2.0", "MIT" ]
1
2021-04-01T06:15:02.000Z
2021-04-23T13:14:12.000Z
moog/shapes.py
juanpablordz/moog.github.io
d7995d3563492378d0877ce8d16f5ca9a8031794
[ "Apache-2.0", "MIT" ]
2
2021-05-02T02:20:39.000Z
2021-05-06T16:24:35.000Z
"""Shapes and shape-fetching functions for common use across tasks.""" import numpy as np from moog import sprite from spriteworld import shapes # A selection of simple shapes. Elements in SHAPES can be looked up from their # string keys in sprite.Sprite, i.e. you can give a string key as the `shape` # argument to sp...
39.227513
80
0.64621
d609e5377f95b25b66bc675ee9c1f59fbd12e687
5,097
py
Python
LoadandStore.py
sjtuzyz/Tomasulo
6abff5477ec276c491b334acce100d66fa7a2721
[ "Apache-2.0" ]
null
null
null
LoadandStore.py
sjtuzyz/Tomasulo
6abff5477ec276c491b334acce100d66fa7a2721
[ "Apache-2.0" ]
null
null
null
LoadandStore.py
sjtuzyz/Tomasulo
6abff5477ec276c491b334acce100d66fa7a2721
[ "Apache-2.0" ]
null
null
null
import prettytable as pt #Load and Store are special
34.910959
108
0.518933
d60a9d3546e515e8493bad9ce9313c8e56baa037
5,215
py
Python
tests/unit/responses/test_response.py
sirosen/globus-sdk-python
0d4e420f52329ab8f993bfe6f86729fb1ef07570
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/unit/responses/test_response.py
sirosen/globus-sdk-python
0d4e420f52329ab8f993bfe6f86729fb1ef07570
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/unit/responses/test_response.py
sirosen/globus-sdk-python
0d4e420f52329ab8f993bfe6f86729fb1ef07570
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import json from collections import namedtuple from unittest import mock import pytest import requests from globus_sdk.response import GlobusHTTPResponse, IterableResponse _TestResponse = namedtuple("_TestResponse", ("data", "r")) def test_data( dict_response, list_response, malformed_http_respo...
28.189189
86
0.703931
d60afac3cc3d2f0f7b60cb0d352d24f6b6647e0d
9,007
py
Python
prot2vec/utils/hparams.py
dillondaudert/prot2vec
8aa0cd40c848d1401fc58b967b93efed76513a19
[ "MIT" ]
2
2021-01-27T14:42:33.000Z
2021-03-30T04:16:15.000Z
prot2vec/utils/hparams.py
dillondaudert/prot2vec
8aa0cd40c848d1401fc58b967b93efed76513a19
[ "MIT" ]
null
null
null
prot2vec/utils/hparams.py
dillondaudert/prot2vec
8aa0cd40c848d1401fc58b967b93efed76513a19
[ "MIT" ]
null
null
null
"""Hparams""" import argparse as ap import tensorflow as tf from pathlib import Path HOME = str(Path.home()) HPARAM_CHOICES= { "model": ["cpdb", "copy", "bdrnn", "cpdb2", "cpdb2_prot"], "optimizer": ["adam", "sgd", "adadelta"], "unit_type": ["lstm", "lstmblock", "nlstm", "gru"], "train...
39.16087
89
0.601199
d60b9e43d95710ca6c53adbaecd49a801012a6ac
660
py
Python
controllers/home.py
elydev01/kvtemplate2
e1563574795b711b722d5219e8e8a7a158137884
[ "MIT" ]
null
null
null
controllers/home.py
elydev01/kvtemplate2
e1563574795b711b722d5219e8e8a7a158137884
[ "MIT" ]
null
null
null
controllers/home.py
elydev01/kvtemplate2
e1563574795b711b722d5219e8e8a7a158137884
[ "MIT" ]
null
null
null
from kivy.lang import Builder from kivy.metrics import dp from kivy import properties as p from kivy.animation import Animation from kivymd.app import MDApp as App from kivymd.uix.screen import MDScreen with open('views/home.kv', encoding='utf-8') as f: Builder.load_string(f.read()) if __name__ == '__main__...
20
60
0.698485
d60ba3512a50dda2a4e6cd60cfa185e17be8c13c
1,792
py
Python
moderngl_window/timers/base.py
DavideRuzza/moderngl-window
e9debc6ed4a1899aa83c0da2320e03b0c2922b80
[ "MIT" ]
142
2019-11-11T23:14:28.000Z
2022-03-29T08:37:03.000Z
moderngl_window/timers/base.py
DavideRuzza/moderngl-window
e9debc6ed4a1899aa83c0da2320e03b0c2922b80
[ "MIT" ]
107
2019-10-31T20:31:45.000Z
2022-03-23T15:01:41.000Z
moderngl_window/timers/base.py
DavideRuzza/moderngl-window
e9debc6ed4a1899aa83c0da2320e03b0c2922b80
[ "MIT" ]
36
2019-12-12T16:14:10.000Z
2022-01-18T22:58:21.000Z
from typing import Tuple def start(self): """Start the timer initially or resume after pause""" raise NotImplementedError() def pause(self): """Pause the timer""" raise NotImplementedError() def toggle_pause(self): """Toggle pause state""" rai...
27.569231
88
0.592076
d60c263256042297b276978adacf12014f153b54
327
py
Python
accounts/views.py
aryasadeghy/simpleSocial
46c1f83a07817efbd095507303c66353fe1ae932
[ "MIT" ]
null
null
null
accounts/views.py
aryasadeghy/simpleSocial
46c1f83a07817efbd095507303c66353fe1ae932
[ "MIT" ]
6
2020-02-11T22:54:25.000Z
2022-01-13T00:47:14.000Z
accounts/views.py
aryasadeghy/simpleSocial
46c1f83a07817efbd095507303c66353fe1ae932
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.views.generic import CreateView from django.urls import reverse_lazy from accounts.forms import UserCreateForm # Create your views here.
29.727273
43
0.798165
d611e9107074951bab0a620dc787648f0af98fce
3,045
py
Python
ultimate-utils-proj-src/uutils/torch/torch_geometric/__init__.py
CBMM/ultimate-utils
2179eb6a510128ecefea5e2e19108098f6728b05
[ "MIT" ]
null
null
null
ultimate-utils-proj-src/uutils/torch/torch_geometric/__init__.py
CBMM/ultimate-utils
2179eb6a510128ecefea5e2e19108098f6728b05
[ "MIT" ]
null
null
null
ultimate-utils-proj-src/uutils/torch/torch_geometric/__init__.py
CBMM/ultimate-utils
2179eb6a510128ecefea5e2e19108098f6728b05
[ "MIT" ]
null
null
null
# def draw_nx(g, labels=None): # import matplotlib.pyplot as plt # if labels is not None: # g = nx.relabel_nodes(g, labels) # pos = nx.kamada_kawai_layout(g) # nx.draw(g, pos, with_labels=True) # plt.show() # # def draw_nx_attributes_as_labels(g, attribute): # # import pylab # impo...
32.052632
129
0.639737
d61294e73d1a3cf60fee4d45d2eefcf83295fa92
10,680
py
Python
alipay/aop/api/domain/AlipayOverseasRemitFundInitializeModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AlipayOverseasRemitFundInitializeModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AlipayOverseasRemitFundInitializeModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import *
34.340836
87
0.615543
d612e925c123019a0812dc8cafaa3b8e961aa72d
863
py
Python
venv/lib/python3.6/site-packages/taggit_templatetags2/views.py
corwin-cole/lunas-picture-box
af0870bea27b01abdd64260bc4e0d40423580fb2
[ "MIT" ]
38
2015-01-06T16:38:47.000Z
2022-03-28T12:55:25.000Z
venv/lib/python3.6/site-packages/taggit_templatetags2/views.py
corwin-cole/lunas-picture-box
af0870bea27b01abdd64260bc4e0d40423580fb2
[ "MIT" ]
12
2020-06-06T01:22:26.000Z
2022-03-12T00:13:42.000Z
venv/lib/python3.6/site-packages/taggit_templatetags2/views.py
corwin-cole/lunas-picture-box
af0870bea27b01abdd64260bc4e0d40423580fb2
[ "MIT" ]
16
2015-02-21T22:31:41.000Z
2022-03-28T12:55:28.000Z
from django.conf import settings from django.utils.translation import ugettext_lazy as _ from django.views.generic import ListView from .settings import TAGGED_ITEM_MODEL, TAG_MODEL
26.96875
75
0.699884
d61380847703495aa7703c1972406f6af045360d
4,292
py
Python
run/validate_torchio.py
MarkCiampa/HippocampusSegmentationMRI
f29673d949616a7a7726c702185bfb570b3cfd67
[ "MIT" ]
16
2020-10-07T10:24:30.000Z
2022-03-26T09:29:04.000Z
run/validate_torchio.py
MarkCiampa/HippocampusSegmentationMRI
f29673d949616a7a7726c702185bfb570b3cfd67
[ "MIT" ]
1
2022-03-31T13:02:55.000Z
2022-03-31T13:02:55.000Z
run/validate_torchio.py
MarkCiampa/HippocampusSegmentationMRI
f29673d949616a7a7726c702185bfb570b3cfd67
[ "MIT" ]
6
2020-11-19T10:37:34.000Z
2022-02-11T12:40:55.000Z
########################## # Nicola Altini (2020) # V-Net for Hippocampus Segmentation from MRI with PyTorch ########################## # python run/validate_torchio.py # python run/validate_torchio.py --dir=logs/no_augm_torchio # python run/validate_torchio.py --dir=path/to/logs/dir --verbose=VERBOSE ################...
35.180328
120
0.560345
d6158bbaeefe9e6b8a41d596f2b3e07f74924255
4,833
py
Python
data/ngrams.py
charlottelambert/old-bailey
40e810170de43e2c536834906cbcacb94ee14e26
[ "MIT" ]
null
null
null
data/ngrams.py
charlottelambert/old-bailey
40e810170de43e2c536834906cbcacb94ee14e26
[ "MIT" ]
null
null
null
data/ngrams.py
charlottelambert/old-bailey
40e810170de43e2c536834906cbcacb94ee14e26
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import nltk, json, os, sys, operator, argparse, copy from nltk.tokenize import word_tokenize, sent_tokenize from tqdm import tqdm from nltk.corpus import stopwords sys.path.append('../') from utils import * # List of stopwords to excldue from text stop_words = set(stopwords.words('english')) de...
44.33945
145
0.693358
d61667a462e9e3dc4a723ce323514ac9133d5c7d
2,614
py
Python
ros_mstar/ros_mstar/simple_service_client.py
scchow/ros-mstar
c3b2ffcdea6219774c92c67d685b47d0d0c3b618
[ "MIT" ]
null
null
null
ros_mstar/ros_mstar/simple_service_client.py
scchow/ros-mstar
c3b2ffcdea6219774c92c67d685b47d0d0c3b618
[ "MIT" ]
null
null
null
ros_mstar/ros_mstar/simple_service_client.py
scchow/ros-mstar
c3b2ffcdea6219774c92c67d685b47d0d0c3b618
[ "MIT" ]
null
null
null
# Copyright 2016 Open Source Robotics Foundation, Inc. # # 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...
33.948052
106
0.657995
d616f567ae03b79441c969ca7804c5cf4f69ecb4
6,840
py
Python
tests/test_module.py
indigoviolet/region_profiler
119a3624ee063d86e8e66de9fa97cccd7964f943
[ "MIT" ]
null
null
null
tests/test_module.py
indigoviolet/region_profiler
119a3624ee063d86e8e66de9fa97cccd7964f943
[ "MIT" ]
null
null
null
tests/test_module.py
indigoviolet/region_profiler
119a3624ee063d86e8e66de9fa97cccd7964f943
[ "MIT" ]
null
null
null
import atexit import contextlib import time from typing import Any, List, Type from unittest import mock import pytest import region_profiler.global_instance import region_profiler.profiler from region_profiler import RegionProfiler, func from region_profiler import install as install_profiler from region_profiler imp...
30.810811
86
0.587865
d617a8405308e7c9bd8ac24ab55429fb59a26e04
4,326
py
Python
main2.py
dotkom/notipi
1e7b6ea10e85c1b8cd7ba2d938848204ba2b78b7
[ "MIT" ]
null
null
null
main2.py
dotkom/notipi
1e7b6ea10e85c1b8cd7ba2d938848204ba2b78b7
[ "MIT" ]
null
null
null
main2.py
dotkom/notipi
1e7b6ea10e85c1b8cd7ba2d938848204ba2b78b7
[ "MIT" ]
null
null
null
#!/usr/bin/env python import datetime import logging import time from threading import Thread import requests from requests.auth import HTTPBasicAuth import settings def main(): # Logging log_level = logging.DEBUG if settings.DEBUG else logging.INFO logging.basicConfig(format='%(asctime)s %(message)...
32.044444
112
0.568655
d61df03e6189a1d966a8b4017a3bbba4ae49e046
708
py
Python
grammy/urls.py
naimahassan/insta_grammy
1821ae84abd2e6e9a7298410296d66ce04bda379
[ "MIT" ]
null
null
null
grammy/urls.py
naimahassan/insta_grammy
1821ae84abd2e6e9a7298410296d66ce04bda379
[ "MIT" ]
null
null
null
grammy/urls.py
naimahassan/insta_grammy
1821ae84abd2e6e9a7298410296d66ce04bda379
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.urls import url from django.conf.urls.static import static from . import views urlpatterns=[ url('^$',views.index,name = 'index'), url(r'^profile/(\d+)',views.profile,name = "profile"), url(r'^create/post',views.new_post, name = "new-post"), url(r'^foll...
32.181818
80
0.658192
d61df13867b70a38d3372196cc0b9b5a198d48c0
15,779
py
Python
chart/graphs/drawgraph.py
msamunetogetoge/AutoTrader
4f5998d070ec4f8f6aee0c80854c4925d6d59dd5
[ "MIT" ]
1
2021-12-29T02:56:37.000Z
2021-12-29T02:56:37.000Z
chart/graphs/drawgraph.py
msamunetogetoge/AutoTrader
4f5998d070ec4f8f6aee0c80854c4925d6d59dd5
[ "MIT" ]
null
null
null
chart/graphs/drawgraph.py
msamunetogetoge/AutoTrader
4f5998d070ec4f8f6aee0c80854c4925d6d59dd5
[ "MIT" ]
null
null
null
from chart.models import * from chart.controllers import ai, get_data import key from pathlib import Path import os from django_pandas.io import read_frame import plotly.graph_objects as go from plotly.subplots import make_subplots import numpy as np import logging logger = logging.getLogger(__name__)...
56.153025
212
0.558654
d61e6516f718df3f31a9d34a9f5fa19b3f8b469f
2,071
py
Python
spinup/exercises/problem_set_1/exercise1_1.py
wowbob396/spinningup
717013c2d404666a9c362a045bbebe395e58d8a0
[ "MIT" ]
null
null
null
spinup/exercises/problem_set_1/exercise1_1.py
wowbob396/spinningup
717013c2d404666a9c362a045bbebe395e58d8a0
[ "MIT" ]
null
null
null
spinup/exercises/problem_set_1/exercise1_1.py
wowbob396/spinningup
717013c2d404666a9c362a045bbebe395e58d8a0
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np import math """ Exercise 1.1: Diagonal Gaussian Likelihood Write a function which takes in Tensorflow symbols for the means and log stds of a batch of diagonal Gaussian distributions, along with a Tensorflow placeholder for (previously-generated) samples from those distri...
29.169014
112
0.638822
d61eff1a921d2135040a6c02d46079a5efd10e3f
69
py
Python
src/pyrouge/rouge/pyrouge/__init__.py
bzhao2718/PreSumm
974f73a6baefc691d396e130c7d9fdc2b71c2a31
[ "MIT" ]
4
2020-09-24T10:12:36.000Z
2020-10-27T00:37:52.000Z
pyrouge/pyrouge/__init__.py
jackie930/TextRank4ZH
0462dd263737798c620fdf0d3a81e5306302e60f
[ "MIT" ]
1
2022-03-13T21:50:43.000Z
2022-03-15T05:18:12.000Z
pyrouge/pyrouge/__init__.py
jackie930/TextRank4ZH
0462dd263737798c620fdf0d3a81e5306302e60f
[ "MIT" ]
1
2022-03-11T16:41:20.000Z
2022-03-11T16:41:20.000Z
from pyrouge.base import Doc, Sent from pyrouge.rouge import Rouge155
34.5
34
0.84058
d620ca977f85bedcf66737660077fc3deabaeec7
6,982
py
Python
tests/unit/saltenv/ops/test_unit_get_current_version.py
eitrtechnologies/saltenv
66add964657fe270ed96ddfe50802e27539a6526
[ "Apache-2.0" ]
5
2022-03-25T17:15:04.000Z
2022-03-28T23:24:26.000Z
tests/unit/saltenv/ops/test_unit_get_current_version.py
eitrtechnologies/saltenv
66add964657fe270ed96ddfe50802e27539a6526
[ "Apache-2.0" ]
null
null
null
tests/unit/saltenv/ops/test_unit_get_current_version.py
eitrtechnologies/saltenv
66add964657fe270ed96ddfe50802e27539a6526
[ "Apache-2.0" ]
2
2022-03-26T06:33:30.000Z
2022-03-29T19:43:50.000Z
from unittest.mock import MagicMock from unittest.mock import patch import aiofiles from aiofiles import threadpool
44.189873
101
0.664423
d62251a3f732e6d3445b6aaa9d46a183c953d427
262
py
Python
setup.py
yuvipanda/fakeokclient
379893350457900dd10452c27b774f73a1850ed2
[ "BSD-3-Clause" ]
null
null
null
setup.py
yuvipanda/fakeokclient
379893350457900dd10452c27b774f73a1850ed2
[ "BSD-3-Clause" ]
null
null
null
setup.py
yuvipanda/fakeokclient
379893350457900dd10452c27b774f73a1850ed2
[ "BSD-3-Clause" ]
null
null
null
import setuptools setuptools.setup( name="fakeokpy", version='0.1', url="https://github.com/yuvipanda/fakeokpy", author="Yuvi Panda", author_email="yuvipanda@gmail.com", license="BSD-3-Clause", packages=setuptools.find_packages(), )
21.833333
48
0.679389
d6225ce13fba3710da7c5601f7127c0706c16753
3,889
py
Python
Archive/Presentation/Cat Code Presentation.py
JohanWinther/cat-state-encoding
3fa95c5c9d9d223e4b9fbc38fe5e27a46d0d12ef
[ "MIT" ]
3
2020-02-10T01:53:29.000Z
2022-01-13T09:23:40.000Z
Archive/Presentation/Cat Code Presentation.py
JohanWinther/cat-state-encoding
3fa95c5c9d9d223e4b9fbc38fe5e27a46d0d12ef
[ "MIT" ]
null
null
null
Archive/Presentation/Cat Code Presentation.py
JohanWinther/cat-state-encoding
3fa95c5c9d9d223e4b9fbc38fe5e27a46d0d12ef
[ "MIT" ]
1
2021-07-31T08:55:43.000Z
2021-07-31T08:55:43.000Z
# coding: utf-8 # $ \newcommand{\cat}[2][\phantom{i}]{\ket{C^{#2}_{#1\alpha}}} $ # $ \newcommand{\ket}[1]{|#1\rangle} $ # $ \newcommand{\bra}[1]{\langle#1|} $ # $ \newcommand{\braket}[2]{\langle#1|#2\rangle} $ # $\newcommand{\au}{\hat{a}^\dagger}$ # $\newcommand{\ad}{\hat{a}}$ # $\newcommand{\bu}{\hat{b}^\dagger}$ # ...
40.092784
280
0.651839
d622dd5b922c94de5b402e9178f3a1ea69927d38
18,253
py
Python
lib/evaluation/frequency_based_analysis_of_methods.py
YerongLi2/LTVRR
26a6a03dd44cb6b008e0974ad9915a149d666786
[ "MIT" ]
13
2021-04-24T12:32:48.000Z
2022-03-14T15:47:31.000Z
lib/evaluation/frequency_based_analysis_of_methods.py
YerongLi2/LTVRR
26a6a03dd44cb6b008e0974ad9915a149d666786
[ "MIT" ]
5
2021-02-26T04:44:52.000Z
2022-03-31T07:16:53.000Z
lib/evaluation/frequency_based_analysis_of_methods.py
Vision-CAIR/relTransformer_github
ec3be058da9c4f2f68d7c4dfb759209748732b93
[ "MIT" ]
1
2022-03-30T08:06:08.000Z
2022-03-30T08:06:08.000Z
# Written by Sherif Abdelkarim on Jan 2020 import numpy as np import pandas as pd import json import os.path as osp # import seaborn as sns # not critical. import matplotlib.pylab as plt # In[9]: import os import re
48.416446
156
0.636005
d6240d57782a997c5e7d887f0b05f55415199e37
965
py
Python
problems/41/problem_41.py
r1cc4rdo/daily_coding_problem
6ac85309fad2f64231ac7ab94aa4158e18bdec40
[ "Unlicense" ]
158
2018-01-25T06:33:30.000Z
2022-03-14T23:18:05.000Z
problems/41/problem_41.py
r1cc4rdo/daily_coding_problem
6ac85309fad2f64231ac7ab94aa4158e18bdec40
[ "Unlicense" ]
9
2018-07-04T00:31:57.000Z
2020-05-16T21:02:30.000Z
problems/41/problem_41.py
r1cc4rdo/daily_coding_problem
6ac85309fad2f64231ac7ab94aa4158e18bdec40
[ "Unlicense" ]
50
2018-06-22T16:48:44.000Z
2022-01-11T16:45:48.000Z
def coding_problem_41(flights_db, starting_airport): """ Given an unordered list of flights taken by someone, each represented as (origin, destination) pairs, and a starting airport, compute the person's itinerary. If no such itinerary exists, return null. If there are multiple possible itineraries, ret...
40.208333
117
0.609326
d6246c6bfbc02d9c1123746752fe0e55c3135872
2,763
py
Python
src/test_groupby.py
iisharankov/UppsalaSoftwareTesting
3c220ee567fa88f692754d2f9272477d7962e1a0
[ "MIT" ]
null
null
null
src/test_groupby.py
iisharankov/UppsalaSoftwareTesting
3c220ee567fa88f692754d2f9272477d7962e1a0
[ "MIT" ]
null
null
null
src/test_groupby.py
iisharankov/UppsalaSoftwareTesting
3c220ee567fa88f692754d2f9272477d7962e1a0
[ "MIT" ]
null
null
null
import itertools import pytest from iterators.invalid_iter import InvalidIter
36.84
78
0.588491
d62644a9b295cdf4b9495812288c75112e6e0627
7,733
py
Python
paddlepalm/reader/match.py
baajur/PALM
2555c0e2a5fab1b702ae8d1c7612bef48c65af38
[ "Apache-2.0" ]
136
2019-09-24T05:38:55.000Z
2022-02-14T01:38:51.000Z
paddlepalm/reader/match.py
baajur/PALM
2555c0e2a5fab1b702ae8d1c7612bef48c65af38
[ "Apache-2.0" ]
21
2019-11-21T12:24:03.000Z
2021-03-23T09:34:15.000Z
paddlepalm/reader/match.py
baajur/PALM
2555c0e2a5fab1b702ae8d1c7612bef48c65af38
[ "Apache-2.0" ]
28
2019-09-24T05:39:36.000Z
2022-02-14T01:42:58.000Z
# -*- coding: UTF-8 -*- # 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 # ...
48.031056
283
0.631708
d62715d491b61e6a775fbc869b90c29b4074c7fe
528
py
Python
examples/exmample_receiver.py
Novus-Space/SerialIO
c0aeb8b04298690bdab0cc76a8eac7337299fe67
[ "MIT" ]
null
null
null
examples/exmample_receiver.py
Novus-Space/SerialIO
c0aeb8b04298690bdab0cc76a8eac7337299fe67
[ "MIT" ]
null
null
null
examples/exmample_receiver.py
Novus-Space/SerialIO
c0aeb8b04298690bdab0cc76a8eac7337299fe67
[ "MIT" ]
null
null
null
import serialio ser = Serial("COM3", 9600, 1) ser.read()
27.789474
77
0.643939
d62766f5ac4f26967bc65719b305e8d1426b3fe6
5,054
py
Python
pirates/minigame/RepairBarnacle.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
81
2018-04-08T18:14:24.000Z
2022-01-11T07:22:15.000Z
pirates/minigame/RepairBarnacle.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
4
2018-09-13T20:41:22.000Z
2022-01-08T06:57:00.000Z
pirates/minigame/RepairBarnacle.py
Willy5s/Pirates-Online-Rewritten
7434cf98d9b7c837d57c181e5dabd02ddf98acb7
[ "BSD-3-Clause" ]
26
2018-05-26T12:49:27.000Z
2021-09-11T09:11:59.000Z
import random from pandac.PandaModules import Point3 from direct.gui.DirectGui import DirectFrame, DirectLabel from direct.fsm import FSM from direct.interval.IntervalGlobal import * from pirates.audio import SoundGlobals from pirates.audio.SoundGlobals import loadSfx import RepairGlobals MIN_SCALE = 1.5 MAX_SCALE_ADD ...
38.876923
647
0.646419
d627de6c0016de6bdbf4e403d68f143376f5435a
738
py
Python
src/test/statistical.py
omn1m0n/ssc-collab
c4b5f14bbea14856d02151f0ca0aa2b4e8855141
[ "MIT" ]
1
2022-03-03T09:56:51.000Z
2022-03-03T09:56:51.000Z
src/statistical.py
omn1m0n/ssc-collab
c4b5f14bbea14856d02151f0ca0aa2b4e8855141
[ "MIT" ]
2
2022-03-07T06:45:33.000Z
2022-03-16T14:41:40.000Z
src/statistical.py
omn1m0n/ssc-collab
c4b5f14bbea14856d02151f0ca0aa2b4e8855141
[ "MIT" ]
2
2022-03-09T10:32:25.000Z
2022-03-10T08:46:47.000Z
import numpy as np def euclidean_norm(vectorList, listP, listQ): """Calculates the euclidean norm (distance) of two array-like objects, in this case vectors Args: listP (integer list): List of indices of the reference vector of the\ array. list_comp (integer list): list of indi...
38.842105
96
0.655827