hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
919fa37aa3543bcf02318ed5c4668d2fdd054d45
10,520
py
Python
utils/tree_structure_tictactoe/tictactoe_to_graphviz_with_minimax_value.py
jeremiedecock/tictactoe-py
5ae39448e3a4b7d0e002f84d73b193920dfecfe0
[ "MIT" ]
null
null
null
utils/tree_structure_tictactoe/tictactoe_to_graphviz_with_minimax_value.py
jeremiedecock/tictactoe-py
5ae39448e3a4b7d0e002f84d73b193920dfecfe0
[ "MIT" ]
null
null
null
utils/tree_structure_tictactoe/tictactoe_to_graphviz_with_minimax_value.py
jeremiedecock/tictactoe-py
5ae39448e3a4b7d0e002f84d73b193920dfecfe0
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2012 Jérémie DECOCK (http://www.jdhp.org) # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including withou...
34.834437
214
0.573004
579aee5bb9d73fa9f62107f64a7136050ebec30d
3,178
py
Python
server/pyScripts/filestring_utils.py
btester271828/malcolmjs
16292d41864f00dd4f7e129618866eb8a732637e
[ "Apache-2.0" ]
7
2017-02-27T17:41:02.000Z
2019-06-20T12:59:06.000Z
server/pyScripts/filestring_utils.py
btester271828/malcolmjs
16292d41864f00dd4f7e129618866eb8a732637e
[ "Apache-2.0" ]
424
2018-04-12T15:15:24.000Z
2022-03-08T23:05:40.000Z
server/pyScripts/filestring_utils.py
btester271828/malcolmjs
16292d41864f00dd4f7e129618866eb8a732637e
[ "Apache-2.0" ]
3
2016-05-19T15:13:03.000Z
2018-11-15T10:58:56.000Z
import stat import sys import os import errno def mkdir_p(path): """Mimics functionality of bash 'mkdir -p'""" try: os.makedirs(path) except OSError as exc: if exc.errno == errno.EEXIST and os.path.isdir(path): pass else: raise def read_file_to_lines(root_...
36.953488
122
0.642857
9c98525fcb0d0b1802ff821f7d1db0119cf52338
10,149
py
Python
src/tools/convert_airsimcam_to_coco.py
PhyllisH/CenterNet
dc17ed79329a7a8faeffbd44be85019b4779a371
[ "MIT" ]
null
null
null
src/tools/convert_airsimcam_to_coco.py
PhyllisH/CenterNet
dc17ed79329a7a8faeffbd44be85019b4779a371
[ "MIT" ]
null
null
null
src/tools/convert_airsimcam_to_coco.py
PhyllisH/CenterNet
dc17ed79329a7a8faeffbd44be85019b4779a371
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import pickle import json import numpy as np import math import cv2 import os import random import matplotlib.pyplot as plt from pyquaternion import Quaternion import pycocotools.coco as coco # DATA_PATH = '.....
42.822785
122
0.515913
342339919b30523d35f47e395b6e5b6fb43c6f25
3,770
py
Python
contrib/macdeploy/custom_dsstore.py
Iconoclasta/DWE
167730512be3a43420e80fe63fcdca33e3478110
[ "MIT" ]
2
2019-03-05T13:21:21.000Z
2019-07-25T18:21:25.000Z
contrib/macdeploy/custom_dsstore.py
Iconoclasta/DWE
167730512be3a43420e80fe63fcdca33e3478110
[ "MIT" ]
null
null
null
contrib/macdeploy/custom_dsstore.py
Iconoclasta/DWE
167730512be3a43420e80fe63fcdca33e3478110
[ "MIT" ]
4
2018-11-07T16:41:42.000Z
2019-07-24T14:25:28.000Z
#!/usr/bin/env python # Copyright (c) 2013-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from __future__ import division,print_function,unicode_literals import biplist from ds_store import DSStore...
61.803279
1,817
0.727056
dced5e4a71e68ab26a0cf895db6f13330ddde7af
1,479
py
Python
sitemap_generator.py
YanjieZe/blog
103a551289f0206760fc42337457ffdf56233803
[ "Apache-2.0" ]
1
2022-02-20T12:15:15.000Z
2022-02-20T12:15:15.000Z
sitemap_generator.py
YanjieZe/blog
103a551289f0206760fc42337457ffdf56233803
[ "Apache-2.0" ]
null
null
null
sitemap_generator.py
YanjieZe/blog
103a551289f0206760fc42337457ffdf56233803
[ "Apache-2.0" ]
1
2022-02-20T12:14:26.000Z
2022-02-20T12:14:26.000Z
#! /usr/bin/env python3 # -*- coding: utf-8 import os import arrow path = 'posts/' html_names = list(filter(lambda x: x[-5:] == '.html', (os.listdir(path)))) url = 'http://yanjieze.xyz/' sitemap_preamble = """<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" ...
26.890909
83
0.654496
d4c09568cab388bbf604721842f2e40ac637930a
110
py
Python
spark/spark_controler/__init__.py
kcrandall/Kaggle_Mercedes_Manufacturing
f1a2827f7aa145c1df057ab5035cff45e877e785
[ "MIT" ]
9
2017-10-19T22:21:16.000Z
2022-03-02T21:37:51.000Z
spark/spark_controler/__init__.py
kcrandall/Kaggle_Mercedes_Manufacturing
f1a2827f7aa145c1df057ab5035cff45e877e785
[ "MIT" ]
null
null
null
spark/spark_controler/__init__.py
kcrandall/Kaggle_Mercedes_Manufacturing
f1a2827f7aa145c1df057ab5035cff45e877e785
[ "MIT" ]
5
2018-07-12T21:05:21.000Z
2021-04-18T14:15:34.000Z
from . import * # from ec2_instance_data_dict import ec2_data_dict # from emr_controller import EMRController
27.5
50
0.836364
a3c9d9e4afdfba458c10e975ef4711feeb7ebc12
216
py
Python
mapchete_xarray/__init__.py
wankoelias/mapchete_xarray
d225cfcc78fad10767c3cbc755bc825e3110dfae
[ "MIT" ]
null
null
null
mapchete_xarray/__init__.py
wankoelias/mapchete_xarray
d225cfcc78fad10767c3cbc755bc825e3110dfae
[ "MIT" ]
null
null
null
mapchete_xarray/__init__.py
wankoelias/mapchete_xarray
d225cfcc78fad10767c3cbc755bc825e3110dfae
[ "MIT" ]
null
null
null
from mapchete_xarray._xarray import ( InputTile, METADATA, OutputDataWriter, OutputDataReader, ) __all__ = ["InputTile", "METADATA", "OutputDataWriter", "OutputDataReader"] __version__ = "2021.11.0"
21.6
75
0.717593
ce1293aefc0d7f3890cd5ad49dfd51296b76e040
2,076
py
Python
vodloader_chapters.py
FuckBrains/vodloader
5bed341a0c64bc4b77f9a0530924a3ba73d5be2d
[ "MIT" ]
null
null
null
vodloader_chapters.py
FuckBrains/vodloader
5bed341a0c64bc4b77f9a0530924a3ba73d5be2d
[ "MIT" ]
null
null
null
vodloader_chapters.py
FuckBrains/vodloader
5bed341a0c64bc4b77f9a0530924a3ba73d5be2d
[ "MIT" ]
1
2021-07-09T12:50:25.000Z
2021-07-09T12:50:25.000Z
import datetime from math import floor from os import stat class vodloader_chapters(object): def __init__(self, game, title): self.start_time = datetime.datetime.now() self.timestamps = [('00:00:00', game, title)] def __len__(self): return self.timestamps.__len__() def appen...
30.985075
86
0.572736
3270da860aaed8043b308b31a5770964cff934ce
2,826
py
Python
examples/ex_sndcard.py
fspacheco/zignal
19ac50157a276e9640e362b0472a5e209dfe6709
[ "MIT" ]
null
null
null
examples/ex_sndcard.py
fspacheco/zignal
19ac50157a276e9640e362b0472a5e209dfe6709
[ "MIT" ]
null
null
null
examples/ex_sndcard.py
fspacheco/zignal
19ac50157a276e9640e362b0472a5e209dfe6709
[ "MIT" ]
null
null
null
''' Created on 16 Feb 2015 This example will play some audio on the system standard sound card. @author: Ronny Andersson (ronny@andersson.tk) @copyright: (c) 2015 Ronny Andersson @license: MIT ''' # standard library from __future__ import print_function import logging # custom libraries import zignal.sndcard def e...
29.4375
95
0.666667
567427f3763e2f6349852cd5ff04e62d71545d8f
3,103
py
Python
bertopic/_utils.py
yingzwang/BERTopic
cd98fc8d22ab1eba593c518278ce479d2879c372
[ "MIT" ]
2,189
2020-10-05T15:22:16.000Z
2022-03-31T14:49:49.000Z
bertopic/_utils.py
Zura1z/BERTopic
05a6790b21009d1704e912e0d9ae22290694cfed
[ "MIT" ]
463
2020-10-07T16:20:03.000Z
2022-03-31T12:47:26.000Z
bertopic/_utils.py
Zura1z/BERTopic
05a6790b21009d1704e912e0d9ae22290694cfed
[ "MIT" ]
317
2020-10-06T13:52:25.000Z
2022-03-31T04:29:43.000Z
import numpy as np import logging from collections.abc import Iterable from scipy.sparse.csr import csr_matrix class MyLogger: def __init__(self, level): self.logger = logging.getLogger('BERTopic') self.set_level(level) self._add_handler() self.logger.propagate = False def inf...
34.865169
111
0.642282
6bb4a4ead36b39b38f3b336cba285e81037471e8
3,783
py
Python
trigger.py
damiantaranto/ASL-GCP-mubi-movies
0cbb310aa7995b2d58aa37a78852346af9224d08
[ "MIT" ]
null
null
null
trigger.py
damiantaranto/ASL-GCP-mubi-movies
0cbb310aa7995b2d58aa37a78852346af9224d08
[ "MIT" ]
null
null
null
trigger.py
damiantaranto/ASL-GCP-mubi-movies
0cbb310aa7995b2d58aa37a78852346af9224d08
[ "MIT" ]
null
null
null
import argparse import json import logging import os import distutils.util from typing import Optional, List from google.cloud import aiplatform def trigger_pipeline_from_payload(payload: dict) -> aiplatform.PipelineJob: payload = convert_payload(payload) env = get_env() return trigger_pipeline( ...
28.659091
156
0.684113
41d6452f85a247f61b64d6465e4920552d0389ce
1,534
py
Python
chrome/test/enterprise/e2e/policy/translate_enabled/translate_enabled_webdriver_test.py
sarang-apps/darshan_browser
173649bb8a7c656dc60784d19e7bb73e07c20daa
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/test/enterprise/e2e/policy/translate_enabled/translate_enabled_webdriver_test.py
sarang-apps/darshan_browser
173649bb8a7c656dc60784d19e7bb73e07c20daa
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/test/enterprise/e2e/policy/translate_enabled/translate_enabled_webdriver_test.py
sarang-apps/darshan_browser
173649bb8a7c656dc60784d19e7bb73e07c20daa
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
# Copyright 2019 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os import time from absl import app, flags from selenium import webdriver from pywinauto.application import Application from pywinauto.findwindows i...
26.912281
73
0.734029
7338b21f3efcf83231098517cb362d88b89afac3
8,497
py
Python
scripts/predict.py
mrauha/af2_conformations
d60db86886186e80622deaa91045caccaf4103d3
[ "MIT" ]
35
2021-11-23T12:35:15.000Z
2022-03-26T22:09:21.000Z
scripts/predict.py
mrauha/af2_conformations
d60db86886186e80622deaa91045caccaf4103d3
[ "MIT" ]
1
2021-12-03T17:55:34.000Z
2021-12-03T18:41:25.000Z
scripts/predict.py
mrauha/af2_conformations
d60db86886186e80622deaa91045caccaf4103d3
[ "MIT" ]
9
2021-11-23T07:51:38.000Z
2022-03-10T04:21:46.000Z
from . import util import os import numpy as np import random import sys from alphafold.common import protein from alphafold.model import data from alphafold.model import config from alphafold.model import model from typing import Any, List, Mapping, NoReturn from absl import logging def set_config( use_templa...
26.720126
88
0.649053
ed156dbe46c16e8eaaaaec584376845b7bc30f05
2,015
py
Python
h2o-py/tests/testdir_algos/gbm/pyunit_offset_init_train_gbm.py
Hasan-Ibrahim/h2o-3
00db449775991095c90641c5dcb864fab41ffa50
[ "Apache-2.0" ]
null
null
null
h2o-py/tests/testdir_algos/gbm/pyunit_offset_init_train_gbm.py
Hasan-Ibrahim/h2o-3
00db449775991095c90641c5dcb864fab41ffa50
[ "Apache-2.0" ]
null
null
null
h2o-py/tests/testdir_algos/gbm/pyunit_offset_init_train_gbm.py
Hasan-Ibrahim/h2o-3
00db449775991095c90641c5dcb864fab41ffa50
[ "Apache-2.0" ]
null
null
null
from builtins import range import sys sys.path.insert(1,"../../../") import h2o from tests import pyunit_utils from h2o.estimators.gbm import H2OGradientBoostingEstimator def offset_init_train_gbm(): # Connect to a pre-existing cluster cars = h2o.upload_file(pyunit_utils.locate("smalldata/junit/cars_20mpg.csv...
49.146341
214
0.760298
a6dbeb16b20ba3fac02a8cd7e56967f4011c86bb
5,685
py
Python
dlutils/models/pytorch/deepDrivingNetwork.py
chelseajohn/dlapplication
d2eaba9077320f5a33e122b99691577fe899e1d6
[ "Apache-2.0" ]
2
2020-05-07T05:08:54.000Z
2020-05-13T10:14:53.000Z
dlutils/models/pytorch/deepDrivingNetwork.py
chelseajohn/dlapplication
d2eaba9077320f5a33e122b99691577fe899e1d6
[ "Apache-2.0" ]
null
null
null
dlutils/models/pytorch/deepDrivingNetwork.py
chelseajohn/dlapplication
d2eaba9077320f5a33e122b99691577fe899e1d6
[ "Apache-2.0" ]
3
2020-05-06T18:49:37.000Z
2020-07-13T05:11:56.000Z
import torch.nn as nn import torch import torch.nn.functional as F import torch.optim as optim import torch.nn.init as init import numpy as np import random class DeepDrivingNet(nn.Module): def __init__(self): super(DeepDrivingNet, self).__init__() torch.manual_seed(42) torch.cuda.manual_se...
36.442308
106
0.598945
70d0d489a8e9dc8e38b438fff8d9f6a0ea56baef
109,110
py
Python
src/transformers/modeling_tf_utils.py
gante/transformers
dfc76b25426d75d5dce489bd18cfd6a51fb01b97
[ "Apache-2.0" ]
null
null
null
src/transformers/modeling_tf_utils.py
gante/transformers
dfc76b25426d75d5dce489bd18cfd6a51fb01b97
[ "Apache-2.0" ]
null
null
null
src/transformers/modeling_tf_utils.py
gante/transformers
dfc76b25426d75d5dce489bd18cfd6a51fb01b97
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. 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 cop...
45.500417
154
0.626065
a1a4e53c32935973689cb31088aa0d9439fe4c9e
13,390
py
Python
game/engine.py
HagenSR/byte_le_royale_2022
d501bf2418337d543dac982112ea924d37164205
[ "MIT" ]
1
2022-03-10T01:38:12.000Z
2022-03-10T01:38:12.000Z
game/engine.py
HagenSR/byte_le_royale_2022
d501bf2418337d543dac982112ea924d37164205
[ "MIT" ]
2
2022-01-31T18:28:14.000Z
2022-01-31T18:28:24.000Z
game/engine.py
HagenSR/byte_le_royale_2022
d501bf2418337d543dac982112ea924d37164205
[ "MIT" ]
null
null
null
from datetime import datetime from game.common.stats import GameStats from game.common.moving.shooter import Shooter import importlib import json import os import sys import traceback from game.common.player import Player from game.common.game_board import GameBoard from game.common.hitbox import Hitbox from game.con...
38.699422
117
0.580134
573772579f2cf3b6d1ca1a36eb3220259ee0a2a0
1,626
py
Python
stellar_sdk/xdr/curve25519_secret.py
Shaptic/py-stellar-base
f5fa47f4d96f215889d99249fb25c7be002f5cf3
[ "Apache-2.0" ]
null
null
null
stellar_sdk/xdr/curve25519_secret.py
Shaptic/py-stellar-base
f5fa47f4d96f215889d99249fb25c7be002f5cf3
[ "Apache-2.0" ]
27
2022-01-12T10:55:38.000Z
2022-03-28T01:38:24.000Z
stellar_sdk/xdr/curve25519_secret.py
Shaptic/py-stellar-base
f5fa47f4d96f215889d99249fb25c7be002f5cf3
[ "Apache-2.0" ]
2
2021-12-02T12:42:03.000Z
2021-12-07T20:53:10.000Z
# This is an automatically generated file. # DO NOT EDIT or your changes may be overwritten import base64 from xdrlib import Packer, Unpacker from ..type_checked import type_checked from .base import Opaque __all__ = ["Curve25519Secret"] @type_checked class Curve25519Secret: """ XDR Source Code:: s...
23.911765
62
0.600246
258817560f79cf4bb7d739e6607ea83baca1b00b
12,999
py
Python
proteus/DiagUtils.py
robertsawko/proteus
6f1e4c2ca1af85a906b35a5162430006f0343861
[ "NASA-1.3" ]
null
null
null
proteus/DiagUtils.py
robertsawko/proteus
6f1e4c2ca1af85a906b35a5162430006f0343861
[ "NASA-1.3" ]
null
null
null
proteus/DiagUtils.py
robertsawko/proteus
6f1e4c2ca1af85a906b35a5162430006f0343861
[ "NASA-1.3" ]
null
null
null
""" Module for diagnostic utilities """ from EGeometry import * from MeshTools import * from FemTools import * from LinearAlgebraTools import * from LinearSolvers import * from Transport import * from Norms import * from Profiling import logEvent def L2errorFEMvsAF(analyticalFunction,quadraturePointArray,quadratureWei...
33.502577
92
0.548119
47cdf989e64bd51719e922a1f60b1c1ef00fe432
1,642
py
Python
scripts/misc/scp_info.py
ali1234/Greaseweazle
2a071e0a8b0b7ec876e014f25f3046b9cd5f1a3b
[ "Unlicense" ]
null
null
null
scripts/misc/scp_info.py
ali1234/Greaseweazle
2a071e0a8b0b7ec876e014f25f3046b9cd5f1a3b
[ "Unlicense" ]
null
null
null
scripts/misc/scp_info.py
ali1234/Greaseweazle
2a071e0a8b0b7ec876e014f25f3046b9cd5f1a3b
[ "Unlicense" ]
null
null
null
import struct, sys def dump_track(dat, trk_offs, trknr, show_dat): print("Track %u:" % trknr) trk_off = trk_offs[trknr] if trk_off == 0: print("Empty") return # Parse the SCP track header and extract the flux data. thdr = dat[trk_off:trk_off+4+12*nr_revs] sig, tnr, _, _, s...
27.366667
66
0.532887
42b6063616842a541b749c822f15068bf2e88772
1,602
py
Python
products/migrations/0001_initial.py
geoffreynyaga/daraja
61db415b474fae004547a4caa057fedfe375ebb6
[ "MIT" ]
23
2019-11-14T14:37:43.000Z
2022-02-25T01:53:09.000Z
products/migrations/0001_initial.py
geoffreynyaga/daraja
61db415b474fae004547a4caa057fedfe375ebb6
[ "MIT" ]
11
2020-02-12T02:43:25.000Z
2022-02-19T04:43:54.000Z
products/migrations/0001_initial.py
geoffreynyaga/daraja
61db415b474fae004547a4caa057fedfe375ebb6
[ "MIT" ]
15
2019-11-10T23:28:18.000Z
2022-03-04T08:35:17.000Z
# Generated by Django 2.1.7 on 2020-09-21 11:23 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
41.076923
169
0.594881
5f86a6b63275c435c6c15b34dcc52012cd1b9a6a
30,149
py
Python
tests/test_emulators.py
tlvu/raven
f10e7946bf3d4a945b8b3fb0e8eaaf2b4599961b
[ "MIT" ]
null
null
null
tests/test_emulators.py
tlvu/raven
f10e7946bf3d4a945b8b3fb0e8eaaf2b4599961b
[ "MIT" ]
null
null
null
tests/test_emulators.py
tlvu/raven
f10e7946bf3d4a945b8b3fb0e8eaaf2b4599961b
[ "MIT" ]
null
null
null
import datetime as dt import os import tempfile import numpy as np import xarray as xr import pytest from raven.models import ( Raven, GR4JCN, HMETS, MOHYSE, HBVEC, GR4JCN_OST, HMETS_OST, MOHYSE_OST, HBVEC_OST, ) from raven.models.state import HRUStateVariables from .common import ...
30.670397
117
0.459584
20d0a75cedcf930ff48b44af369ca72d6a397c09
1,125
py
Python
app/movieapi/core/tests/tests_admin.py
joelpenov/moviestore
96815371d45852cdfb7750095ed842aeaff907b7
[ "MIT" ]
null
null
null
app/movieapi/core/tests/tests_admin.py
joelpenov/moviestore
96815371d45852cdfb7750095ed842aeaff907b7
[ "MIT" ]
null
null
null
app/movieapi/core/tests/tests_admin.py
joelpenov/moviestore
96815371d45852cdfb7750095ed842aeaff907b7
[ "MIT" ]
null
null
null
from django.test import TestCase, Client from django.contrib.auth import get_user_model from django.urls import reverse class AdminSiteTests(TestCase): def setUp(self): self.client = Client() self.admin_user = get_user_model().objects.create_superuser("admin@user.com", "superpass123") sel...
36.290323
126
0.709333
6559fc4c24ce283e333fb7795dff798d570cd0c6
219,150
py
Python
pandas/core/frame.py
AllenDowney/pandas
4875a3dcc23fac851627c0c6b93ded9d6b1aca5a
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "BSD-3-Clause" ]
4
2016-10-05T17:38:58.000Z
2020-08-24T16:26:37.000Z
pandas/core/frame.py
AllenDowney/pandas
4875a3dcc23fac851627c0c6b93ded9d6b1aca5a
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "BSD-3-Clause" ]
null
null
null
pandas/core/frame.py
AllenDowney/pandas
4875a3dcc23fac851627c0c6b93ded9d6b1aca5a
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "BSD-3-Clause" ]
12
2017-05-23T06:01:12.000Z
2021-08-16T05:09:46.000Z
""" DataFrame --------- An efficient 2D container for potentially mixed-type time series or other labeled data series. Similar to its R counterpart, data.frame, except providing automatic data alignment and a host of useful data manipulation methods having to do with the labeling information """ from __future__ import...
36.549366
85
0.540114
e889cbf31914e3cba67abc62fe069b4ec7fc1795
15,474
py
Python
scripts/ice_class.py
mixerupper/mltools-fi_cate
9a43af3f58d91cadce584863f388111abbb80b39
[ "MIT" ]
null
null
null
scripts/ice_class.py
mixerupper/mltools-fi_cate
9a43af3f58d91cadce584863f388111abbb80b39
[ "MIT" ]
1
2021-03-31T19:52:04.000Z
2021-03-31T20:03:02.000Z
scripts/ice_class.py
mixerupper/mltools-fi_cate
9a43af3f58d91cadce584863f388111abbb80b39
[ "MIT" ]
1
2021-06-01T08:45:07.000Z
2021-06-01T08:45:07.000Z
from sklearn.linear_model import LogisticRegression class ICE(): def __init__(self, model_type, frac_sample = 1, seed_num = None, time = False, trace = False): ''' Instantiates the ICE class @param model_type : "binary" or "continuous" y-variable @param frac_sample : Fraction of data set to sample for ICE df....
29.141243
131
0.656585
4ae74d58b77d8afd83615ad0346a8e2dfcf0bbb2
19,824
py
Python
neural_style_my_edits.py
spot92/neural-style-pt
af530888c14be348c65367257b6dbb6363c96276
[ "MIT" ]
1
2020-12-30T22:22:23.000Z
2020-12-30T22:22:23.000Z
neural_style_my_edits.py
spot92/neural-style-pt
af530888c14be348c65367257b6dbb6363c96276
[ "MIT" ]
null
null
null
neural_style_my_edits.py
spot92/neural-style-pt
af530888c14be348c65367257b6dbb6363c96276
[ "MIT" ]
null
null
null
import os import copy import torch import torch.nn as nn import torch.optim as optim import torchvision.transforms as transforms #Changes made between short to long segments of #### #Some things say Deleted: from PIL import Image from CaffeLoader import loadCaffemodel, ModelParallel import argparse parser = argparse.A...
38.870588
123
0.61592
157c236aa413d0b53bd35fb999fb02fa305306eb
23,273
py
Python
core/platform/auth/firebase_auth_services.py
YBCS/oppia
f74b606e8511cd4296b3c99aad37e53b66cca196
[ "Apache-2.0" ]
null
null
null
core/platform/auth/firebase_auth_services.py
YBCS/oppia
f74b606e8511cd4296b3c99aad37e53b66cca196
[ "Apache-2.0" ]
4
2022-02-12T14:02:05.000Z
2022-03-27T18:08:48.000Z
core/platform/auth/firebase_auth_services.py
YBCS/oppia
f74b606e8511cd4296b3c99aad37e53b66cca196
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2020 The Oppia 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 requi...
39.579932
80
0.712542
dc12ba92b3979d31738e26b377869a6506325a84
11,315
py
Python
src/sagemaker/job.py
eitansela/sagemaker-python-sdk
aa54102b5113b1d39bbbd4d9d341775f84641681
[ "Apache-2.0" ]
1
2021-07-22T00:23:51.000Z
2021-07-22T00:23:51.000Z
src/sagemaker/job.py
eitansela/sagemaker-python-sdk
aa54102b5113b1d39bbbd4d9d341775f84641681
[ "Apache-2.0" ]
24
2021-05-18T07:10:27.000Z
2021-05-28T13:36:51.000Z
src/sagemaker/job.py
eitansela/sagemaker-python-sdk
aa54102b5113b1d39bbbd4d9d341775f84641681
[ "Apache-2.0" ]
null
null
null
# Copyright 2017-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" fil...
36.618123
100
0.631905
db567e2ee56f0ca9105607b3ca8d1bb45d32d128
5,113
py
Python
deps/qualysapi/qualysapi/api_objects.py
elasticsearchvn/VulnWhisperer
a92cadf2af33c802cb86f9e10e9228d81339af5b
[ "Apache-2.0" ]
1
2021-03-17T21:19:48.000Z
2021-03-17T21:19:48.000Z
deps/qualysapi/qualysapi/api_objects.py
elasticsearchvn/VulnWhisperer
a92cadf2af33c802cb86f9e10e9228d81339af5b
[ "Apache-2.0" ]
1
2021-12-13T20:52:38.000Z
2021-12-13T20:52:38.000Z
deps/qualysapi/qualysapi/api_objects.py
codegrande/VulnWhisperer
9f071a646b4f7650c58be0f40396172a04e065a9
[ "Apache-2.0" ]
1
2020-12-02T18:36:35.000Z
2020-12-02T18:36:35.000Z
from __future__ import absolute_import import datetime from lxml import objectify class Host(object): def __init__(self, dns, id, ip, last_scan, netbios, os, tracking_method): self.dns = str(dns) self.id = int(id) self.ip = str(ip) last_scan = str(last_scan).replace('T', ' ').repla...
42.256198
136
0.611969
391187b74f66ee82e8b536a619011ba05d724101
1,941
py
Python
config/wsgi.py
caizhimin/demo
9b13afee128353f9cb1e7cefe5a9f476ba2f0aa5
[ "MIT" ]
null
null
null
config/wsgi.py
caizhimin/demo
9b13afee128353f9cb1e7cefe5a9f476ba2f0aa5
[ "MIT" ]
null
null
null
config/wsgi.py
caizhimin/demo
9b13afee128353f9cb1e7cefe5a9f476ba2f0aa5
[ "MIT" ]
null
null
null
""" WSGI config for demo project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via the ``WSGI_APPLICATION`` set...
43.133333
79
0.793921
902c0e46068a28f54f95d4abee8ccea8a07aea00
532
py
Python
allennlp_test/testdata/allennlp/tmp.py
rahman-mahmudur/PyART
36591cd10b2b7a560bbcb47a6cf744b72466f92a
[ "Apache-2.0" ]
null
null
null
allennlp_test/testdata/allennlp/tmp.py
rahman-mahmudur/PyART
36591cd10b2b7a560bbcb47a6cf744b72466f92a
[ "Apache-2.0" ]
null
null
null
allennlp_test/testdata/allennlp/tmp.py
rahman-mahmudur/PyART
36591cd10b2b7a560bbcb47a6cf744b72466f92a
[ "Apache-2.0" ]
null
null
null
import logging import os import sys if os.environ.get("ALLENNLP_DEBUG"): LEVEL = logging.DEBUG else: level_name = os.environ.get("ALLENNLP_LOG_LEVEL") LEVEL = logging._nameToLevel.get(level_name, logging.INFO) sys.path.insert(0, os.path.dirname(os.path.abspath(os.path.join(__file__, os.pardir)))) logging....
29.555556
95
0.746241
b940be8fc693eb3b5c92835951c6bd97449fd7b7
2,063
py
Python
ibis/backends/sqlite/tests/conftest.py
bfgray3/ibis
6fa1b5e4018d73a8c8357665df63f0fd7e818590
[ "Apache-2.0" ]
null
null
null
ibis/backends/sqlite/tests/conftest.py
bfgray3/ibis
6fa1b5e4018d73a8c8357665df63f0fd7e818590
[ "Apache-2.0" ]
null
null
null
ibis/backends/sqlite/tests/conftest.py
bfgray3/ibis
6fa1b5e4018d73a8c8357665df63f0fd7e818590
[ "Apache-2.0" ]
1
2021-09-20T07:51:20.000Z
2021-09-20T07:51:20.000Z
import os from pathlib import Path import pytest import ibis import ibis.expr.types as ir from ibis.backends.tests.base import BackendTest, RoundAwayFromZero class TestConf(BackendTest, RoundAwayFromZero): supports_arrays = False supports_arrays_outside_of_select = supports_arrays supports_window_operat...
23.179775
79
0.707707
f073acefbaaf4d3ad16d6c6c5750a3de6786fa50
10,102
py
Python
ppq/quantization/optim/calibration.py
wdian/ppq
58bd1271ea6f0dfaf602eb72bdca63ea79f191b8
[ "Apache-2.0" ]
null
null
null
ppq/quantization/optim/calibration.py
wdian/ppq
58bd1271ea6f0dfaf602eb72bdca63ea79f191b8
[ "Apache-2.0" ]
null
null
null
ppq/quantization/optim/calibration.py
wdian/ppq
58bd1271ea6f0dfaf602eb72bdca63ea79f191b8
[ "Apache-2.0" ]
null
null
null
from math import ceil from typing import Callable, Dict, Iterable, List from ppq.core import empty_ppq_cache from ppq.core.quant import QuantizationStates from ppq.executor import BaseGraphExecutor, RuntimeHook from ppq.IR import GraphCommandProcesser, QuantableOperation from ppq.quantization.observer import Operation...
47.42723
127
0.623144
6120ad1a02ae96d83394c50ac06b6a8ad995a4f1
37,345
py
Python
tensorflow/python/ops/nn.py
jylinman/tensorflow
5248d111c3aeaf9f560cd77bff0f183f38e31e0b
[ "Apache-2.0" ]
null
null
null
tensorflow/python/ops/nn.py
jylinman/tensorflow
5248d111c3aeaf9f560cd77bff0f183f38e31e0b
[ "Apache-2.0" ]
null
null
null
tensorflow/python/ops/nn.py
jylinman/tensorflow
5248d111c3aeaf9f560cd77bff0f183f38e31e0b
[ "Apache-2.0" ]
1
2020-10-21T09:39:19.000Z
2020-10-21T09:39:19.000Z
# Copyright 2015 Google 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 by applicable law or a...
42.974684
80
0.690802
5af0b675b0cde6f92fad81c8e453887acd367e1b
1,907
py
Python
setup.py
momipsl/pycspr
82c1ca003525a3d205d2aa3b7da5d1ecd275e9b5
[ "Apache-2.0" ]
2
2021-04-14T13:49:20.000Z
2021-07-06T22:07:02.000Z
setup.py
momipsl/pycspr
82c1ca003525a3d205d2aa3b7da5d1ecd275e9b5
[ "Apache-2.0" ]
null
null
null
setup.py
momipsl/pycspr
82c1ca003525a3d205d2aa3b7da5d1ecd275e9b5
[ "Apache-2.0" ]
1
2021-04-15T12:52:42.000Z
2021-04-15T12:52:42.000Z
import os import re from codecs import open from setuptools import setup from setuptools import find_packages from setuptools.dist import Distribution # List of 3rd party python dependencies. _REQUIRES = [ 'pytest', 'tox' ] class _BinaryDistribution(Distribution): """Distribution sub-class to overr...
22.975904
71
0.634504
9468a84ae42d928ec5c1b3fbd116ee6be8c3600e
74
py
Python
shorttext/stack/__init__.py
vishalbelsare/PyShortTextCategorization
4fa46a148a3eeb923885a7d70c789e988554f758
[ "MIT" ]
481
2016-10-07T16:48:40.000Z
2022-03-16T12:44:12.000Z
shorttext/stack/__init__.py
vishalbelsare/PyShortTextCategorization
4fa46a148a3eeb923885a7d70c789e988554f758
[ "MIT" ]
56
2017-02-02T17:50:14.000Z
2021-12-15T05:14:28.000Z
shorttext/stack/__init__.py
vishalbelsare/PyShortTextCategorization
4fa46a148a3eeb923885a7d70c789e988554f758
[ "MIT" ]
70
2017-01-28T15:20:46.000Z
2021-09-30T15:08:41.000Z
from .stacking import StackedGeneralization, LogisticStackedGeneralization
74
74
0.918919
fe077b953ed2a25df6d43b3f99b1c7d9d0b55e1c
2,195
py
Python
osp/www/app.py
davidmcclure/open-syllabus-project
078cfd4c5a257fbfb0901d43bfbc6350824eed4e
[ "Apache-2.0" ]
220
2016-01-22T21:19:02.000Z
2022-01-25T04:33:55.000Z
osp/www/app.py
davidmcclure/open-syllabus-project
078cfd4c5a257fbfb0901d43bfbc6350824eed4e
[ "Apache-2.0" ]
14
2016-01-23T14:34:39.000Z
2016-09-19T19:58:37.000Z
osp/www/app.py
davidmcclure/open-syllabus-project
078cfd4c5a257fbfb0901d43bfbc6350824eed4e
[ "Apache-2.0" ]
14
2016-02-03T13:47:48.000Z
2019-03-27T13:09:05.000Z
import os from flask import Flask, request, render_template, jsonify from webargs.flaskparser import use_args from webargs.fields import List, Str, Int from osp.common import config from osp.citations.models import Text_Index from osp.www import utils from osp.www.cache import cache from osp.www.hit import Hit ap...
18.922414
59
0.584055
81dfdc16711e0dc1059df15493d3df5deb7686a1
1,346
py
Python
HTMLParser.py
0xff1234/wenshuSpider
ead15693ecd854eb700b03f47acf905a2d87e423
[ "MIT" ]
23
2018-04-25T09:04:01.000Z
2022-01-06T07:01:22.000Z
HTMLParser.py
booltime/wenshuSpider
ead15693ecd854eb700b03f47acf905a2d87e423
[ "MIT" ]
1
2018-04-28T04:37:54.000Z
2018-04-28T04:37:54.000Z
HTMLParser.py
booltime/wenshuSpider
ead15693ecd854eb700b03f47acf905a2d87e423
[ "MIT" ]
9
2018-04-29T11:08:31.000Z
2022-01-06T07:01:22.000Z
# encoding:utf-8 ''' author: ztcooper(github) contact: 1060214139@qq.com LICENSE: MIT 解析页面,得到数据 ''' from bs4 import BeautifulSoup import re class HtmlParser(object): def __init__(self): self.item = dict() def parse(self, source): p_title = re.compile(r'"Title\\":\\"(.*?)\\...
31.302326
98
0.508172
c0f72de52a5d6c43d9ad11890060231976450ef2
1,486
py
Python
setup.py
feature-engineer/uttlv
ec5633f51eee047c1cdd4902ff0af7873c4f46cd
[ "MIT" ]
null
null
null
setup.py
feature-engineer/uttlv
ec5633f51eee047c1cdd4902ff0af7873c4f46cd
[ "MIT" ]
null
null
null
setup.py
feature-engineer/uttlv
ec5633f51eee047c1cdd4902ff0af7873c4f46cd
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os from setuptools import setup with open("README.md", "r") as fh: long_description = fh.read() setup( name='uttlv', version='0.3.1', description='Python library for TLV objects', long_description=long_description, long_description_content_type='text/ma...
31.617021
78
0.606999
cc60b05571d25f5f179e22f96816f16a85c3bf3a
1,615
py
Python
passgen.py
giovannifreitas/password-generator
0882542d0758d7965fb5726b453514d29dfdfe91
[ "MIT" ]
null
null
null
passgen.py
giovannifreitas/password-generator
0882542d0758d7965fb5726b453514d29dfdfe91
[ "MIT" ]
null
null
null
passgen.py
giovannifreitas/password-generator
0882542d0758d7965fb5726b453514d29dfdfe91
[ "MIT" ]
null
null
null
import random import string import sys import getopt # Types of password LOWERCASE = string.ascii_lowercase UPPERCASE = string.ascii_uppercase DIGITS = string.digits SPECIALS = string.punctuation # Command line options and parameter list short_options = "luds" long_options = ["lowercase", "uppercase", "digits", "spec...
30.471698
76
0.656966
e0066250afc3ddf4238393a2d09eb8d7493ae4f8
1,160
py
Python
Codes/xiaohong2019/leetcode/1_two_sum.py
GinRyan/algorithm
2b2dafbeaa9f104a541cbd4172e0f3e0786095f2
[ "Apache-2.0" ]
1
2019-05-17T15:56:08.000Z
2019-05-17T15:56:08.000Z
Codes/xiaohong2019/leetcode/1_two_sum.py
GinRyan/algorithm
2b2dafbeaa9f104a541cbd4172e0f3e0786095f2
[ "Apache-2.0" ]
null
null
null
Codes/xiaohong2019/leetcode/1_two_sum.py
GinRyan/algorithm
2b2dafbeaa9f104a541cbd4172e0f3e0786095f2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # URL : https://leetcode.com/problems/two-sum/ """ 给定一个整数数组 nums 和一个目标值 target,请你在该数组中找出和为目标值的那 两个 整数,并返回他们的数组下标。 你可以假设每种输入只会对应一个答案。但是,你不能重复利用这个数组中同样的元素。 示例: 给定 nums = [2, 7, 11, 15], target = 9 因为 nums[0] + nums[1] = 2 + 7 = 9 所以返回 [0, 1] """ """ nums中每两个相加,如果等于target就返回,那需要遍历(n^2)。 作差值计算...
23.673469
71
0.62931
0691b9e93df553497f0471e4fe9b136a1d01bebf
10,669
py
Python
whoSentMail.py
Mukesh7197/anlp-1
eff3de6349b9ba4cab3702d36ecbacb6cb551611
[ "MIT" ]
null
null
null
whoSentMail.py
Mukesh7197/anlp-1
eff3de6349b9ba4cab3702d36ecbacb6cb551611
[ "MIT" ]
null
null
null
whoSentMail.py
Mukesh7197/anlp-1
eff3de6349b9ba4cab3702d36ecbacb6cb551611
[ "MIT" ]
null
null
null
################################################################################################################### #To determine the sender of a mail using python and nltk #Five sentences from sender Ram and Raj is available as corpus #Preprocess the corpus and collect number of words in each corpus and calculate tota...
40.260377
121
0.523292
204516f5832d291557578f8f141064ebbd2f6156
5,639
py
Python
test_utils/testmaker/__init__.py
frac/django-test-utils
35263eb74697b61ba56aec59c8c7831425bc70b0
[ "MIT" ]
1
2015-11-05T02:50:34.000Z
2015-11-05T02:50:34.000Z
test_utils/testmaker/__init__.py
frac/django-test-utils
35263eb74697b61ba56aec59c8c7831425bc70b0
[ "MIT" ]
null
null
null
test_utils/testmaker/__init__.py
frac/django-test-utils
35263eb74697b61ba56aec59c8c7831425bc70b0
[ "MIT" ]
null
null
null
import logging import os from os import path from django.core import serializers as django_serializers from test_utils.management.commands.relational_dumpdata import _relational_dumpdata from django.template import Context, Template from django.conf import settings TESTMAKER_TEMPLATE = """ from django.test import Test...
37.098684
114
0.638411
731ff71b7fbec704391a3b5639f622b50bf91d77
1,608
py
Python
app/helper/detectors.py
suinaowawa/chinese-ocr-flask-deploy
250c2650c5fb3ed09b29a50b5399fe86508d1775
[ "MIT" ]
1
2021-11-27T00:03:06.000Z
2021-11-27T00:03:06.000Z
helper/detectors.py
alvinli-jp/darknet-ocr
db9510c2dfc9609f6a7b524f692663def6c9d120
[ "MIT" ]
null
null
null
helper/detectors.py
alvinli-jp/darknet-ocr
db9510c2dfc9609f6a7b524f692663def6c9d120
[ "MIT" ]
null
null
null
#coding:utf-8 import numpy as np from helper.text_proposal_connector import TextProposalConnector from helper.image import rotate_nms,nms,get_boxes def normalize(data): if data.shape[0]==0: return data max_=data.max() min_=data.min() return (data-min_)/(max_-min_) if max_-min_!=0 else data-mi...
34.212766
131
0.63806
d6b32ebaf3d896a3ee0e12cecfa06519b0bdfc6c
21,046
py
Python
src/app.py
vbrik/topology
de07dab847f35e6ea5e1ddc043a768c478d8e36a
[ "Apache-2.0" ]
null
null
null
src/app.py
vbrik/topology
de07dab847f35e6ea5e1ddc043a768c478d8e36a
[ "Apache-2.0" ]
null
null
null
src/app.py
vbrik/topology
de07dab847f35e6ea5e1ddc043a768c478d8e36a
[ "Apache-2.0" ]
null
null
null
""" Application File """ import csv import flask import flask.logging from flask import Flask, Response, make_response, request, render_template from io import StringIO import logging import os import re import sys import traceback import urllib.parse from webapp import default_config from webapp.common import readfil...
40.318008
125
0.632994
0a8227868933e098592b860627b4df5c82d7f0e5
28,675
py
Python
cooltools/api/snipping.py
gfudenberg/cooltools
2c5efcfa2810414f5e1cfeba8806b23d626abaa2
[ "MIT" ]
null
null
null
cooltools/api/snipping.py
gfudenberg/cooltools
2c5efcfa2810414f5e1cfeba8806b23d626abaa2
[ "MIT" ]
null
null
null
cooltools/api/snipping.py
gfudenberg/cooltools
2c5efcfa2810414f5e1cfeba8806b23d626abaa2
[ "MIT" ]
null
null
null
from functools import partial import warnings import numpy as np import pandas as pd import bioframe from ..lib.checks import ( is_compatible_viewframe, is_cooler_balanced, is_valid_expected, ) from ..lib.common import assign_regions, make_cooler_view from ..lib.numutils import LazyToeplitz import warnin...
34.631643
88
0.569416
8674819845a3832062d2edd61e5b75b7bb627a1e
26,653
py
Python
xbee/tornado/tests/test_ieee.py
PowerFlex/python-xbee-intercept
0c07f3a5f16f479ad7c925cd31638598030cf5a7
[ "MIT" ]
null
null
null
xbee/tornado/tests/test_ieee.py
PowerFlex/python-xbee-intercept
0c07f3a5f16f479ad7c925cd31638598030cf5a7
[ "MIT" ]
null
null
null
xbee/tornado/tests/test_ieee.py
PowerFlex/python-xbee-intercept
0c07f3a5f16f479ad7c925cd31638598030cf5a7
[ "MIT" ]
null
null
null
#! /usr/bin/python """ test_ieee.py By Paul Malmsten, 2010 pmalmsten@gmail.com Tests the XBee (IEEE 802.15.4) implementation class for XBee API compliance """ import unittest from xbee.tornado import has_tornado if not has_tornado: raise unittest.SkipTest("Requires Tornado") from xbee.tests.Fake import Serial ...
32.228537
80
0.524969
e31defbb911f00d4c95f7fd7a30a4b8645a37b11
121
py
Python
bot_text.py
aevtikheev/quiz_bot
2d2909736775afb4493cd0640cf27f40f89fe9f3
[ "MIT" ]
null
null
null
bot_text.py
aevtikheev/quiz_bot
2d2909736775afb4493cd0640cf27f40f89fe9f3
[ "MIT" ]
null
null
null
bot_text.py
aevtikheev/quiz_bot
2d2909736775afb4493cd0640cf27f40f89fe9f3
[ "MIT" ]
null
null
null
"""Texts for Quiz Bot interface.""" NEW_QUESTION_TEXT = 'Новый вопрос' GIVE_UP_TEXT = 'Сдаться' SCORE_TEXT = 'Мой счёт'
20.166667
35
0.727273
e48158e65908607a3a3e5fe65b8647c243a21857
115,175
py
Python
oops_fhir/r4/code_system/v3_act_class.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/code_system/v3_act_class.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/code_system/v3_act_class.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
from pathlib import Path from fhir.resources.codesystem import CodeSystem from oops_fhir.utils import CodeSystemConcept __all__ = ["v3ActClass"] _resource = CodeSystem.parse_file(Path(__file__).with_suffix(".json")) class v3ActClass: """ v3 Code System ActClass **** MISSING DEFINITIONS **** Sta...
120.350052
14,057
0.54003
829b619a091dfa63f946d060253ae672b0ee16c6
68,299
py
Python
autotest/ogr/ogr_sql_sqlite.py
ajolma/gdal
19d847c8519919fcd1e7e7247644d28771034317
[ "MIT" ]
null
null
null
autotest/ogr/ogr_sql_sqlite.py
ajolma/gdal
19d847c8519919fcd1e7e7247644d28771034317
[ "MIT" ]
null
null
null
autotest/ogr/ogr_sql_sqlite.py
ajolma/gdal
19d847c8519919fcd1e7e7247644d28771034317
[ "MIT" ]
1
2019-11-01T15:17:09.000Z
2019-11-01T15:17:09.000Z
#!/usr/bin/env pytest # -*- coding: utf-8 -*- ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: SQLite SQL dialect testing. # Author: Even Rouault <even dot rouault at mines dash paris dot org> # #######################################...
38.155866
1,042
0.608428
c074bb1ecb84c2710fec9f42b1c87eb1f9b9ff95
1,546
py
Python
tests/run_tests.py
vb64/test.helper.flask
cc807dcea7554936fa291e83b0b0f86d91797865
[ "MIT" ]
null
null
null
tests/run_tests.py
vb64/test.helper.flask
cc807dcea7554936fa291e83b0b0f86d91797865
[ "MIT" ]
null
null
null
tests/run_tests.py
vb64/test.helper.flask
cc807dcea7554936fa291e83b0b0f86d91797865
[ "MIT" ]
null
null
null
""" Module for environment setup and tests runner """ import os import sys import logging from unittest import TestLoader, TextTestRunner def path_setup(): pass def main(): """ Tests runner """ path_setup() sys.path.insert(1, os.getcwd()) import tester_coverage verbose = 1 suite ...
24.539683
90
0.575679
92611c8e28c8e13ceecd64173389fae1434f877e
5,171
py
Python
src/pipeline/answerers/counting_actions.py
samsungnlp/semeval2022-task9
2d44d9ebc6224bf7a3f70182bf7b81a7ab356370
[ "Apache-2.0" ]
null
null
null
src/pipeline/answerers/counting_actions.py
samsungnlp/semeval2022-task9
2d44d9ebc6224bf7a3f70182bf7b81a7ab356370
[ "Apache-2.0" ]
null
null
null
src/pipeline/answerers/counting_actions.py
samsungnlp/semeval2022-task9
2d44d9ebc6224bf7a3f70182bf7b81a7ab356370
[ "Apache-2.0" ]
null
null
null
from typing import Dict, Any, List import nltk import io from src.pipeline.interface_question_answering import QuestionAnsweringBase, PredictedAnswer from src.pipeline.question_category import QuestionCategory from src.unpack_data import QuestionAnswerRecipe from src.putty_lemmatizer import PuttyLemmatizer import infl...
41.701613
104
0.677432
ba1cff26b4ce3d5d5d479638c22956a976d91b68
7,304
py
Python
selfdrive/car/mazda/carstate.py
betashepherd/dragonpilot
acced02e1b3c37df407530b79167795a9ddb416a
[ "MIT" ]
1
2019-09-19T12:23:26.000Z
2019-09-19T12:23:26.000Z
selfdrive/car/mazda/carstate.py
hankteng19650323/dragonpilot
35f5828690d0e98eb605661354b50d59a8b190ba
[ "MIT" ]
null
null
null
selfdrive/car/mazda/carstate.py
hankteng19650323/dragonpilot
35f5828690d0e98eb605661354b50d59a8b190ba
[ "MIT" ]
null
null
null
from cereal import car from selfdrive.config import Conversions as CV from opendbc.can.can_define import CANDefine from opendbc.can.parser import CANParser from selfdrive.car.interfaces import CarStateBase from selfdrive.car.mazda.values import DBC, LKAS_LIMITS, GEN1 class CarState(CarStateBase): def __init__(self, ...
34.947368
113
0.605148
c1a2e46047da0fbd283fba50a2a63b617a0fad25
17,702
py
Python
tempest/cmd/javelin.py
rcbops-qe/tempest
88960aa32c473b64072671541a136dbae41b1d4c
[ "Apache-2.0" ]
null
null
null
tempest/cmd/javelin.py
rcbops-qe/tempest
88960aa32c473b64072671541a136dbae41b1d4c
[ "Apache-2.0" ]
null
null
null
tempest/cmd/javelin.py
rcbops-qe/tempest
88960aa32c473b64072671541a136dbae41b1d4c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, softwa...
30.626298
79
0.597842
774742d51af269958fe7708f8a371648a2f170d4
4,637
py
Python
avalon/tools/loader/lib.py
simonebarbieri/avalon-core
cfd4191e364b47de7364096f45d9d9d9a901692a
[ "MIT" ]
null
null
null
avalon/tools/loader/lib.py
simonebarbieri/avalon-core
cfd4191e364b47de7364096f45d9d9d9a901692a
[ "MIT" ]
null
null
null
avalon/tools/loader/lib.py
simonebarbieri/avalon-core
cfd4191e364b47de7364096f45d9d9d9a901692a
[ "MIT" ]
null
null
null
from ...vendor.Qt import QtGui from ...vendor import qtawesome from ..widgets import OptionalAction, OptionDialog import inspect def change_visibility(model, view, column_name, visible): """ Hides or shows particular 'column_name'. "asset" and "subset" columns should be visible only in multiselec...
28.801242
74
0.617856
865567f415576622bf7d49c2e9a6a66c1e0f6f96
3,929
py
Python
app/recipe/tests/test_tags_api.py
Kelvin-Zhong/recipe-app-api
c6b60294bf8c5b132d0165a128f883f3f2e54adf
[ "MIT" ]
null
null
null
app/recipe/tests/test_tags_api.py
Kelvin-Zhong/recipe-app-api
c6b60294bf8c5b132d0165a128f883f3f2e54adf
[ "MIT" ]
null
null
null
app/recipe/tests/test_tags_api.py
Kelvin-Zhong/recipe-app-api
c6b60294bf8c5b132d0165a128f883f3f2e54adf
[ "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 Tag, Recipe from recipe.serializers import TagSerializer TAGS_URL = reverse('recipe:tag-list') class ...
31.432
71
0.630949
84a5ea7b32b7c021f9b416aa84ad479e350598a7
10,959
py
Python
tests/conftest.py
skellet0r/eth-event
f1e3916ef0c8d4019420bfeec19b019484c5af32
[ "MIT" ]
35
2019-01-06T00:47:09.000Z
2022-03-26T03:58:24.000Z
tests/conftest.py
skellet0r/eth-event
f1e3916ef0c8d4019420bfeec19b019484c5af32
[ "MIT" ]
10
2019-01-07T00:17:19.000Z
2021-06-24T12:56:46.000Z
tests/conftest.py
skellet0r/eth-event
f1e3916ef0c8d4019420bfeec19b019484c5af32
[ "MIT" ]
5
2021-02-12T03:10:36.000Z
2022-01-11T13:25:16.000Z
#!/usr/bin/python3 import pytest from hexbytes import HexBytes from eth_event import get_topic_map # missing 'data' and 'topics' BASE_LOG = { "logIndex": 0, "transactionIndex": 0, "transactionHash": HexBytes( "0x9df54439626e5b7fce5ae2f02af47d86535bedaf533403204fcb76ba12eef21c" ), # NOQA: E50...
51.693396
1,371
0.671503
2a11d5f5bd87710d5368aea5f949deefa661a779
660
py
Python
gpMgmt/bin/gppylib/system/osImplNative.py
henglabs/gpdb
09a8cc05ac90d63c64c6d432ca35179b55a461b2
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
gpMgmt/bin/gppylib/system/osImplNative.py
henglabs/gpdb
09a8cc05ac90d63c64c6d432ca35179b55a461b2
[ "PostgreSQL", "Apache-2.0" ]
6
2018-08-04T07:51:37.000Z
2018-11-26T07:09:44.000Z
gpMgmt/bin/gppylib/system/osImplNative.py
henglabs/gpdb
09a8cc05ac90d63c64c6d432ca35179b55a461b2
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 # # Copyright (c) Greenplum Inc 2009. All Rights Reserved. # """ This file defines the interface that can be used to fetch and update system configuration information, as well as the data object returned by the """ import os, time from gppylib.gplog import * from gppylib.utils import ch...
21.290323
84
0.74697
f4a10af627aaa466e3e0c8956c6dc66258f4ec71
542
py
Python
urllib/request/demo8.py
silianpan/seal-spider-demo
23bf013d08f9edaf23823bc3787f579bccd0ec3a
[ "Apache-2.0" ]
null
null
null
urllib/request/demo8.py
silianpan/seal-spider-demo
23bf013d08f9edaf23823bc3787f579bccd0ec3a
[ "Apache-2.0" ]
3
2021-09-08T01:11:16.000Z
2022-03-02T15:14:03.000Z
urllib/request/demo8.py
silianpan/seal-spider-demo
23bf013d08f9edaf23823bc3787f579bccd0ec3a
[ "Apache-2.0" ]
1
2019-08-04T09:57:29.000Z
2019-08-04T09:57:29.000Z
from urllib import request, parse url = 'http://httpbin.org/post' headers = { 'User-Agent': 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)', 'Host': 'httpbin.org' } dict = { 'name': 'Germey' } data = bytes(parse.urlencode(dict), encoding='utf8') req = request.Request(url=url, data=data, headers=headers, m...
30.111111
78
0.682657
98bcc1694fb7208dc00898917cb83553e0aa569a
1,486
py
Python
bin/covmat/compute_rr_pairs.py
mclaughlin6464/pearce
746f2bf4bf45e904d66996e003043661a01423ba
[ "MIT" ]
null
null
null
bin/covmat/compute_rr_pairs.py
mclaughlin6464/pearce
746f2bf4bf45e904d66996e003043661a01423ba
[ "MIT" ]
16
2016-11-04T22:24:32.000Z
2018-05-01T22:53:39.000Z
bin/covmat/compute_rr_pairs.py
mclaughlin6464/pearce
746f2bf4bf45e904d66996e003043661a01423ba
[ "MIT" ]
3
2016-10-04T08:07:52.000Z
2019-05-03T23:50:01.000Z
from halotools.mock_observables.pair_counters import npairs_jackknife_3d from halotools.mock_observables.catalog_analysis_helpers import cuboid_subvolume_labels import yaml from pearce.mocks.kittens import TestBox import numpy as np config_fname = '/home/users/swmclau2/Git/pearce/bin/trainer/xi_cosmo_trainer.yaml' ...
35.380952
152
0.716689
4a9b0a3dcbefeeb1caf8845d1832eb3f61252610
3,425
py
Python
pygeodiff/tests/testutils.py
RichardScottOZ/geodiff
485409147008bf500d33a1792ce4bf9799cee844
[ "MIT" ]
null
null
null
pygeodiff/tests/testutils.py
RichardScottOZ/geodiff
485409147008bf500d33a1792ce4bf9799cee844
[ "MIT" ]
null
null
null
pygeodiff/tests/testutils.py
RichardScottOZ/geodiff
485409147008bf500d33a1792ce4bf9799cee844
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' :copyright: (c) 2019 Peter Petrik :license: MIT, see LICENSE for more details. ''' import unittest import os import tempfile import pygeodiff import json import shutil class TestError(Exception): pass REFDIF = os.path.dirname(os.path.realpath(__file__)) def testdir(): ret...
29.525862
99
0.668905
bff4ea6c94dca9b03c67e641b3a941c7d04cd279
92
py
Python
plugins/cisco_cloudlock/komand_cisco_cloudlock/actions/list_all_organization_applications/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
plugins/cisco_cloudlock/komand_cisco_cloudlock/actions/list_all_organization_applications/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
plugins/cisco_cloudlock/komand_cisco_cloudlock/actions/list_all_organization_applications/__init__.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
# GENERATED BY KOMAND SDK - DO NOT EDIT from .action import ListAllOrganizationApplications
30.666667
51
0.826087
90c8999b9ba1cdce30a8d1e5b4516db87bffea76
22,030
py
Python
seaice/sedna/test/test_cube.py
andypbarrett/nsidc-seaice
167a16309f7eaadd5c613b54a7df26eb1f48c2f3
[ "MIT" ]
2
2020-08-27T08:40:22.000Z
2021-04-14T15:42:09.000Z
seaice/sedna/test/test_cube.py
andypbarrett/nsidc-seaice
167a16309f7eaadd5c613b54a7df26eb1f48c2f3
[ "MIT" ]
null
null
null
seaice/sedna/test/test_cube.py
andypbarrett/nsidc-seaice
167a16309f7eaadd5c613b54a7df26eb1f48c2f3
[ "MIT" ]
null
null
null
import unittest from numpy.testing import assert_array_equal import numpy as np from seaice.sedna.cube import ConcentrationCube as Cube ANYTHING = 9999. class Test_mean_data_grid(unittest.TestCase): def test_mean_grid_with_grid_data_returns_same_grid(self): expected = np.ma.array([[36, 37], [100, 0]])...
32.588757
98
0.515887
32041cc0ddb2df5cb711bead0fa54418065b0b03
1,673
py
Python
src/django_upgrade/fixers/utils_text.py
browniebroke/django-upgrade
032f9aaf825d67eac24e3ab878257c2fff9cc52a
[ "MIT" ]
284
2021-08-28T01:31:41.000Z
2022-03-30T16:15:59.000Z
src/django_upgrade/fixers/utils_text.py
browniebroke/django-upgrade
032f9aaf825d67eac24e3ab878257c2fff9cc52a
[ "MIT" ]
61
2021-08-28T07:45:05.000Z
2022-02-02T09:03:04.000Z
src/django_upgrade/fixers/utils_text.py
browniebroke/django-upgrade
032f9aaf825d67eac24e3ab878257c2fff9cc52a
[ "MIT" ]
10
2021-08-28T09:02:46.000Z
2022-03-07T03:39:18.000Z
""" Replace imports from django.utils.translation: https://docs.djangoproject.com/en/3.0/releases/3.0/#features-deprecated-in-3-0 """ from __future__ import annotations import ast from functools import partial from typing import Iterable from tokenize_rt import Offset, Token from django_upgrade.ast import ast_start_...
25.348485
85
0.689181
120835212139dba564cf05b0677a5c3535370ecb
819
py
Python
test/test_recordinality.py
zacharyvoase/python-recordinality
55a4656626ec484f3672283ec87434654720f405
[ "Unlicense" ]
4
2017-08-25T14:27:40.000Z
2020-07-29T19:33:01.000Z
test/test_recordinality.py
zacharyvoase/python-recordinality
55a4656626ec484f3672283ec87434654720f405
[ "Unlicense" ]
null
null
null
test/test_recordinality.py
zacharyvoase/python-recordinality
55a4656626ec484f3672283ec87434654720f405
[ "Unlicense" ]
null
null
null
import os from recordinality import Recordinality example_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'example.txt') example_count = len(set(open(example_file).read().strip().splitlines())) TRIALS = 100 def test_smoke(): results = 0 for trial in range(TRIALS): sketch = Recordi...
28.241379
86
0.622711
5b9438ba2f09881d2f2081e942a532837cfa87a6
842
py
Python
atc_scripts/config_files/L1InstSize_8k.py
abadp/gem5-NoSQL
a8372f141ba21b234b2238918512bd6ff91fa971
[ "BSD-3-Clause" ]
3
2020-04-18T07:01:12.000Z
2021-04-11T04:14:56.000Z
atc_scripts/config_files/L1InstSize_8k.py
abadp/gem5-NoSQL
a8372f141ba21b234b2238918512bd6ff91fa971
[ "BSD-3-Clause" ]
null
null
null
atc_scripts/config_files/L1InstSize_8k.py
abadp/gem5-NoSQL
a8372f141ba21b234b2238918512bd6ff91fa971
[ "BSD-3-Clause" ]
3
2019-02-14T13:54:31.000Z
2021-07-09T11:06:26.000Z
memory_config = { #Memory 'mem-type' : 'SimpleMemory', 'mem-channels' : '4', #Icache 'l1i_size' : '8kB', #OK 'l1i_assoc' : '2', #OK 'l1i_hit_latency' : '1', 'l1i_response_latency' : '1', 'l1i_mshrs' : '4', 'l1i_tgts_per_mshr' : '8',...
29.034483
112
0.465558
1b19a01e58fb63ba4700d1d4664dc6021cbdbe5d
1,373
py
Python
cpss_vimeo/tests.py
xgdfalcon/django-vimeo
fe474e4ab6306b4411df83a74ee8aecf8843a39a
[ "Apache-2.0" ]
2
2021-01-19T19:41:16.000Z
2021-02-06T18:19:35.000Z
cpss_vimeo/tests.py
xgdfalcon/django-vimeo
fe474e4ab6306b4411df83a74ee8aecf8843a39a
[ "Apache-2.0" ]
1
2021-03-15T05:00:46.000Z
2021-03-15T05:00:46.000Z
cpss_vimeo/tests.py
xgdfalcon/django-vimeo
fe474e4ab6306b4411df83a74ee8aecf8843a39a
[ "Apache-2.0" ]
null
null
null
# # @license # Copyright (c) 2020 XGDFalcon®. All Rights Reserved. # # # XGDFalcon LLC retains all intellectual property rights to the code # distributed as part of the Control Point System Software (CPSS) package. # """ This python module provides the models for the video vault application. Written by Larry Latouf ...
28.020408
79
0.705025
8413038a5d16456b699a475b3fbab2031f8bc0e4
801
py
Python
src/conanfile-h180.py
jysirius/palladio
110f9b80e0622304badcb929ebd1b68b0a0e13f5
[ "Apache-2.0" ]
1
2020-01-03T07:20:28.000Z
2020-01-03T07:20:28.000Z
src/conanfile-h180.py
jysirius/palladio
110f9b80e0622304badcb929ebd1b68b0a0e13f5
[ "Apache-2.0" ]
null
null
null
src/conanfile-h180.py
jysirius/palladio
110f9b80e0622304badcb929ebd1b68b0a0e13f5
[ "Apache-2.0" ]
null
null
null
import os from conans import ConanFile class PalladioConan(ConanFile): settings = "os", "compiler", "build_type", "arch" generators = "cmake" def requirements(self): self.requires("catch2/2.0.1@bincrafters/stable") if "PLD_CONAN_HOUDINI_VERSION" in os.environ: self.requires("...
34.826087
101
0.636704
1d2b0f9d4eac44178e3a2cf8da3d8eab6848d5b4
4,740
py
Python
plyse/query_tree.py
arcodergh/plyse
bb44543f9c812401489ceba68b24b8618d263830
[ "MIT" ]
26
2016-05-31T14:45:24.000Z
2021-04-27T01:54:52.000Z
plyse/query_tree.py
arcodergh/plyse
bb44543f9c812401489ceba68b24b8618d263830
[ "MIT" ]
11
2016-05-31T20:09:57.000Z
2022-02-18T11:43:50.000Z
plyse/query_tree.py
arcodergh/plyse
bb44543f9c812401489ceba68b24b8618d263830
[ "MIT" ]
13
2016-05-31T19:41:36.000Z
2021-03-01T15:22:38.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- from copy import deepcopy class TreeNode(dict): def __init__(self, *args, **kwargs): super(TreeNode, self).__init__(*args, **kwargs) @property def is_leaf(self): raise NotImplementedError() @property def children(self, *args, **kwargs): ...
24.947368
127
0.611392
4aba500829181ff065fd81723104dedd216b465f
73
py
Python
pyflux/arma/__init__.py
ThomasHoppe/pyflux
297f2afc2095acd97c12e827dd500e8ea5da0c0f
[ "BSD-3-Clause" ]
2,091
2016-04-01T02:52:10.000Z
2022-03-29T11:38:15.000Z
pyflux/arma/__init__.py
EricSchles/pyflux
297f2afc2095acd97c12e827dd500e8ea5da0c0f
[ "BSD-3-Clause" ]
160
2016-04-26T14:52:18.000Z
2022-03-15T02:09:07.000Z
pyflux/arma/__init__.py
EricSchles/pyflux
297f2afc2095acd97c12e827dd500e8ea5da0c0f
[ "BSD-3-Clause" ]
264
2016-05-02T14:03:31.000Z
2022-03-29T07:48:20.000Z
from .arma import ARIMA from .arimax import ARIMAX from .nnar import NNAR
24.333333
26
0.808219
ffa712b4b48376438da42cb3f00aa202cad326a2
1,085
py
Python
modules/dbnd/test_dbnd/task_ctrl/test_task_visualiser.py
turbaszek/dbnd
6efbf3e7ecd175645e8e58d0d015d32fe9e95ea0
[ "Apache-2.0" ]
null
null
null
modules/dbnd/test_dbnd/task_ctrl/test_task_visualiser.py
turbaszek/dbnd
6efbf3e7ecd175645e8e58d0d015d32fe9e95ea0
[ "Apache-2.0" ]
null
null
null
modules/dbnd/test_dbnd/task_ctrl/test_task_visualiser.py
turbaszek/dbnd
6efbf3e7ecd175645e8e58d0d015d32fe9e95ea0
[ "Apache-2.0" ]
null
null
null
import logging import sys from dbnd import task from dbnd._core.task_ctrl.task_visualiser import _MAX_VALUE_SIZE, TaskVisualiser from test_dbnd.factories import TTask logger = logging.getLogger(__name__) @task def t_very_long_params(t_param="long_string" * 1000): return "ok" class TestTaskVisualizer(object):...
27.820513
86
0.676498
db9c5a8bc7c9fc6f8dd44663ddb6a8f6a09588d7
14,932
py
Python
utils/song_utils.py
gmittal/symbolic-music-diffusion
84128ca038fb8757cc6ce15af04b445299f60f99
[ "Apache-2.0" ]
45
2021-03-05T22:29:31.000Z
2022-03-26T18:11:58.000Z
utils/song_utils.py
gmittal/symbolic-music-diffusion
84128ca038fb8757cc6ce15af04b445299f60f99
[ "Apache-2.0" ]
1
2021-12-07T01:37:30.000Z
2021-12-07T01:37:30.000Z
utils/song_utils.py
gmittal/symbolic-music-diffusion
84128ca038fb8757cc6ce15af04b445299f60f99
[ "Apache-2.0" ]
7
2021-04-03T12:09:36.000Z
2022-02-11T17:07:31.000Z
# Copyright 2021 The Magenta Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
34.725581
89
0.690731
37f67fa89caacb8eb631173fe8b886fb03080611
522
py
Python
api/migrations/0006_auto_20191120_2248.py
Saltiest-Hacker-News-Trolls-2/DS
aaef46dcb225d0be15f65fc34f97c1734c1c64e9
[ "MIT" ]
1
2019-11-23T06:56:11.000Z
2019-11-23T06:56:11.000Z
api/migrations/0006_auto_20191120_2248.py
Saltiest-Hacker-News-Trolls-2/DS
aaef46dcb225d0be15f65fc34f97c1734c1c64e9
[ "MIT" ]
10
2020-03-24T17:50:51.000Z
2022-02-09T23:33:10.000Z
api/migrations/0006_auto_20191120_2248.py
Saltiest-Hacker-News-Trolls-2/DS
aaef46dcb225d0be15f65fc34f97c1734c1c64e9
[ "MIT" ]
1
2019-11-20T06:18:27.000Z
2019-11-20T06:18:27.000Z
# Generated by Django 2.2.7 on 2019-11-20 22:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0005_auto_20191120_1811'), ] operations = [ migrations.AddField( model_name='saltyuser', name='text', ...
21.75
47
0.557471
df61614feeb653c7038197f7b57c614c3043225f
1,643
py
Python
lonestar/analytics/cpu/k-truss/bmktest2.py
chakpongchung/katana
3278a39b504e0aeaec30d06cf629ab97dfeb3f22
[ "BSD-3-Clause" ]
230
2018-06-20T22:18:31.000Z
2022-03-27T13:09:59.000Z
lonestar/analytics/cpu/k-truss/bmktest2.py
chakpongchung/katana
3278a39b504e0aeaec30d06cf629ab97dfeb3f22
[ "BSD-3-Clause" ]
705
2020-02-17T20:50:38.000Z
2022-03-31T16:28:09.000Z
lonestar/analytics/cpu/k-truss/bmktest2.py
chakpongchung/katana
3278a39b504e0aeaec30d06cf629ab97dfeb3f22
[ "BSD-3-Clause" ]
110
2018-06-19T04:39:16.000Z
2022-03-29T01:55:47.000Z
import bmk2 from bmkprops import graph_bmk, PERF_RE, get_ktruss_checker import os class KtrussGaloisBase(graph_bmk): bmk = "ktruss" algo = None def filter_inputs(self, inputs): def finput(x): if not "symmetric" in x.props.flags: return False if x.props.format == 'bin/galois...
28.824561
79
0.63238
975367d320c043a9f4949b8dfd13a3d2f291044a
465
py
Python
backend/accounts/migrations/0004_alter_account_id.py
mmohajer9/banker
e68522cc4bba0a881723cd0e54432255e8141aaf
[ "MIT" ]
null
null
null
backend/accounts/migrations/0004_alter_account_id.py
mmohajer9/banker
e68522cc4bba0a881723cd0e54432255e8141aaf
[ "MIT" ]
null
null
null
backend/accounts/migrations/0004_alter_account_id.py
mmohajer9/banker
e68522cc4bba0a881723cd0e54432255e8141aaf
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-07-09 14:17 from django.db import migrations, models import uuid class Migration(migrations.Migration): dependencies = [ ('accounts', '0003_alter_account_id'), ] operations = [ migrations.AlterField( model_name='account', name=...
23.25
121
0.634409
2bac437a44a6f203b4ef99373c356c7b00e05187
5,254
py
Python
src/hark_lang/cli/hosted_query.py
krrome/teal-lang
594ac0f0baae047fdb19ac9126d174408d487905
[ "Apache-2.0" ]
85
2020-04-29T13:51:33.000Z
2020-08-28T04:40:11.000Z
src/hark_lang/cli/hosted_query.py
krrome/teal-lang
594ac0f0baae047fdb19ac9126d174408d487905
[ "Apache-2.0" ]
15
2020-05-06T07:58:18.000Z
2020-08-28T10:29:28.000Z
src/hark_lang/cli/hosted_query.py
krrome/teal-lang
594ac0f0baae047fdb19ac9126d174408d487905
[ "Apache-2.0" ]
4
2020-05-31T09:42:08.000Z
2020-08-27T17:04:26.000Z
"""GraphQL interface to Hark Cloud""" import logging import os from types import SimpleNamespace from typing import Union from gql import Client, gql from gql.transport.requests import RequestsHTTPTransport from .. import config, __version__ from ..exceptions import UserResolvableError from . import interface as ui ...
22.168776
86
0.628854
0c890ca22dcecd7701fbe7d30f9fa889ca1cd59e
10,461
py
Python
W3C/W3CSkeletonSeleniumSafari14Test.py
TheTeejers/saucelabs-simple-python
e8ccf3865388b1580525f06536ed34bb610e1c5a
[ "MIT" ]
null
null
null
W3C/W3CSkeletonSeleniumSafari14Test.py
TheTeejers/saucelabs-simple-python
e8ccf3865388b1580525f06536ed34bb610e1c5a
[ "MIT" ]
null
null
null
W3C/W3CSkeletonSeleniumSafari14Test.py
TheTeejers/saucelabs-simple-python
e8ccf3865388b1580525f06536ed34bb610e1c5a
[ "MIT" ]
null
null
null
#################################################################### # Skeleton for Selenium tests on Sauce Labs #################################################################### ################################################################### # Imports that are good to use # Not always used for every test #####...
38.744444
150
0.603671
667a53754ded22eb30319252d778add6d7583448
162
py
Python
src/ToolChainClassifier/script/test_gspan.py
AnonymousSEMA/SEMA-ToolChain
05d6a7e43e10d4b1f6c5dfb70fbabeab3d4daf82
[ "BSD-2-Clause" ]
null
null
null
src/ToolChainClassifier/script/test_gspan.py
AnonymousSEMA/SEMA-ToolChain
05d6a7e43e10d4b1f6c5dfb70fbabeab3d4daf82
[ "BSD-2-Clause" ]
null
null
null
src/ToolChainClassifier/script/test_gspan.py
AnonymousSEMA/SEMA-ToolChain
05d6a7e43e10d4b1f6c5dfb70fbabeab3d4daf82
[ "BSD-2-Clause" ]
null
null
null
from classifier import * clf = Gspan_classifier('test_clf7/') clf.train('Signatures_merge_call_CBFS/') ret = clf.evaluate() print(ret) clf.get_stat_classifier()
20.25
40
0.777778
c9314d1fd093d1c8ad70a22260ca519822cd74a0
659
py
Python
coin-toss/coin-toss.py
DOUGLASMENDES/Python-Scripts
00021ede5e894a0e2fb43a33129bf1d9dc0c492d
[ "MIT" ]
307
2019-05-17T21:34:12.000Z
2022-03-28T20:03:44.000Z
coin-toss/coin-toss.py
DOUGLASMENDES/Python-Scripts
00021ede5e894a0e2fb43a33129bf1d9dc0c492d
[ "MIT" ]
8
2021-03-19T00:47:41.000Z
2022-03-11T23:47:47.000Z
coin-toss/coin-toss.py
DOUGLASMENDES/Python-Scripts
00021ede5e894a0e2fb43a33129bf1d9dc0c492d
[ "MIT" ]
78
2019-05-23T00:51:28.000Z
2022-02-01T21:25:24.000Z
#! python3 # coin-toss.py # Author: Kene Udeh # Source: Automate the Boring stuff with python Ch. 10 Project import random if __name__ == "__main__": guess = '' options = ['tails', 'heads'] while guess not in ('heads', 'tails'): print('Guess the coin toss! Enter heads or tails:') guess =...
24.407407
62
0.566009
dd0c9aa737b5a3c98322962a0f0ffe7d48a7caa3
14,094
py
Python
networkit/GEXFIO.py
mlooz/networkit-general-polylog
5de2844e6b06258084ddf423c054a90954f6f59c
[ "MIT" ]
3
2018-02-24T08:17:03.000Z
2020-05-11T13:08:33.000Z
networkit/GEXFIO.py
kit-parco/networkit-hyperbolic-kd
8eb786b8f72e0507a75e68184f444a19cf47ef58
[ "MIT" ]
1
2019-11-29T08:57:52.000Z
2019-11-29T08:57:52.000Z
networkit/GEXFIO.py
kit-parco/networkit-hyperbolic-kd
8eb786b8f72e0507a75e68184f444a19cf47ef58
[ "MIT" ]
2
2020-11-18T09:17:04.000Z
2020-12-10T12:07:21.000Z
import queue import xml.etree.cElementTree as ET from xml.dom import minidom from _NetworKit import Graph, GraphEvent # GEXF Reader class GEXFReader: def __init__(self): """ Initializes the GEXFReader class """ self.mapping = dict() self.g = Graph(0) self.weighted = False self.directed = False self.dynami...
35.501259
104
0.681638
053acc09f712db454288295e7afddf0c17dcd89e
10,975
py
Python
smoketests/run_tests.py
dreamhost/nova
066a3d4c410056689b5843d9520f43b2b6e7d127
[ "Apache-2.0" ]
1
2019-11-06T12:21:59.000Z
2019-11-06T12:21:59.000Z
smoketests/run_tests.py
dreamhost/nova
066a3d4c410056689b5843d9520f43b2b6e7d127
[ "Apache-2.0" ]
null
null
null
smoketests/run_tests.py
dreamhost/nova
066a3d4c410056689b5843d9520f43b2b6e7d127
[ "Apache-2.0" ]
2
2019-12-23T18:06:28.000Z
2020-07-24T08:44:28.000Z
#!/usr/bin/env python # vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this...
34.84127
78
0.606469
6902a48b7cb9c36f2535d156f8faa91a34d1109b
9,734
py
Python
src/coreclr/scripts/fuzzlyn_summarize.py
matijs-toonen/runtime
60b51e452688e6c9dd21b05ff993797a6d4acab3
[ "MIT" ]
1
2019-11-26T08:17:01.000Z
2019-11-26T08:17:01.000Z
src/coreclr/scripts/fuzzlyn_summarize.py
matijs-toonen/runtime
60b51e452688e6c9dd21b05ff993797a6d4acab3
[ "MIT" ]
null
null
null
src/coreclr/scripts/fuzzlyn_summarize.py
matijs-toonen/runtime
60b51e452688e6c9dd21b05ff993797a6d4acab3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # ## Licensed to the .NET Foundation under one or more agreements. ## The .NET Foundation licenses this file to you under the MIT license. # ## # Title: fuzzlyn_summarize.py # # Notes: # # Script to summarize issues found from all partitions and print them on console. # ##########################...
39.408907
190
0.579926
55fe3fa0f115e28839f0902256978a9fbd149757
842
py
Python
legal_search/analogy_searcher/views.py
WhiteSockLoafer/tfg-repo
5c44de014d942a17b1a506550dbceee7280cbfc0
[ "MIT" ]
null
null
null
legal_search/analogy_searcher/views.py
WhiteSockLoafer/tfg-repo
5c44de014d942a17b1a506550dbceee7280cbfc0
[ "MIT" ]
null
null
null
legal_search/analogy_searcher/views.py
WhiteSockLoafer/tfg-repo
5c44de014d942a17b1a506550dbceee7280cbfc0
[ "MIT" ]
null
null
null
import os from django.shortcuts import render from django.conf import settings from gensim.models import Word2Vec model = Word2Vec.load(os.path.join( settings.BASE_DIR, 'analogy_searcher/w2v_model/word2vec_14.model' )) def predict(request): if request.method == 'POST': tuples = model.wv.most_similar(...
30.071429
87
0.589074
cd1c7fa020c180191116e69a38b6b8268de2ebbc
3,222
py
Python
marsyas-vamp/marsyas/src/marsyas_python/spectral_analysis.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/src/marsyas_python/spectral_analysis.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/src/marsyas_python/spectral_analysis.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import argparse import marsyas import marsyas_util import time import numpy import cv from cv_utils import * import math # This program will perform real-time spectral analysis. # TODO: Put axis indicators in the plots! # # The basic functionality is as follows: # Source -> Window -> Spectra -> ...
36.202247
211
0.742086
6494cb4b4fcaf567086103b670c22d9d50911f2c
2,970
py
Python
capnpy/segment/endof.py
wridgers/capnpy
63546597cc94434a271187f2e5af60f02e086caa
[ "MIT" ]
45
2016-10-28T10:16:07.000Z
2022-03-06T20:16:57.000Z
capnpy/segment/endof.py
wridgers/capnpy
63546597cc94434a271187f2e5af60f02e086caa
[ "MIT" ]
42
2016-12-20T18:10:53.000Z
2021-09-08T12:29:04.000Z
capnpy/segment/endof.py
wridgers/capnpy
63546597cc94434a271187f2e5af60f02e086caa
[ "MIT" ]
21
2017-02-28T06:39:15.000Z
2021-09-07T05:30:46.000Z
from capnpy import ptr def endof(seg, p, offset): """ Check whether the given object is compact, and in that case compute its end boundary. If it's not compact, return -1. An object is compact if: 1. there is no gap between its data section and its ptrs section 2. there is no gap between...
31.935484
75
0.621212
ac5c80d6213152f5ee79ec204690e9f2b7f7b668
19,010
py
Python
src/objects/manager.py
Kelketek/evennia
cc56a7155f4fb975a6fc9e811bd6eadf3d710243
[ "BSD-3-Clause" ]
5
2015-01-30T08:47:59.000Z
2022-01-22T19:27:03.000Z
src/objects/manager.py
Kelketek/evennia
cc56a7155f4fb975a6fc9e811bd6eadf3d710243
[ "BSD-3-Clause" ]
2
2017-12-28T21:36:48.000Z
2017-12-28T21:36:57.000Z
src/objects/manager.py
Kelketek/evennia
cc56a7155f4fb975a6fc9e811bd6eadf3d710243
[ "BSD-3-Clause" ]
1
2020-02-21T05:30:58.000Z
2020-02-21T05:30:58.000Z
""" Custom manager for Objects. """ from itertools import chain from django.db.models import Q from django.conf import settings from django.db.models.fields import exceptions from src.typeclasses.managers import TypedObjectManager from src.typeclasses.managers import returns_typeclass, returns_typeclass_list from src.u...
45.697115
150
0.642557
e86e82cf929b8638441aa474c897be764a4e2e7b
1,594
py
Python
tests/providers/amazon/aws/operators/test_glacier.py
ChaseKnowlden/airflow
6b71eac1997a7c0db3b8e3aed6b4e65d01871440
[ "Apache-2.0" ]
15,947
2019-01-05T13:51:02.000Z
2022-03-31T23:33:16.000Z
tests/providers/amazon/aws/operators/test_glacier.py
ChaseKnowlden/airflow
6b71eac1997a7c0db3b8e3aed6b4e65d01871440
[ "Apache-2.0" ]
14,603
2019-01-05T09:43:19.000Z
2022-03-31T23:11:59.000Z
tests/providers/amazon/aws/operators/test_glacier.py
ChaseKnowlden/airflow
6b71eac1997a7c0db3b8e3aed6b4e65d01871440
[ "Apache-2.0" ]
8,429
2019-01-05T19:45:47.000Z
2022-03-31T22:13:01.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...
39.85
102
0.781054
1806418992b4824854395e056f247f2e5e250466
23
py
Python
bpipe2/__init__.py
mavnt/bpipe2
2fd02aeb1b4d99c6927d1eb70a7e83b4868f6d79
[ "MIT" ]
null
null
null
bpipe2/__init__.py
mavnt/bpipe2
2fd02aeb1b4d99c6927d1eb70a7e83b4868f6d79
[ "MIT" ]
null
null
null
bpipe2/__init__.py
mavnt/bpipe2
2fd02aeb1b4d99c6927d1eb70a7e83b4868f6d79
[ "MIT" ]
null
null
null
from .bpipe2 import *
11.5
22
0.695652
b8a9adfaa7eb212fe58552d6b0a9183fc7b02de2
1,060
py
Python
cairis/core/EnvironmentSingleton.py
RachelLar/cairis_update
0b1d6d17ce49bc74887d1684e28c53c1b06e2fa2
[ "Apache-2.0" ]
null
null
null
cairis/core/EnvironmentSingleton.py
RachelLar/cairis_update
0b1d6d17ce49bc74887d1684e28c53c1b06e2fa2
[ "Apache-2.0" ]
null
null
null
cairis/core/EnvironmentSingleton.py
RachelLar/cairis_update
0b1d6d17ce49bc74887d1684e28c53c1b06e2fa2
[ "Apache-2.0" ]
null
null
null
# 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...
39.259259
63
0.758491
62ad51e24d216d8578cea03d93c6927d2f8957da
28,712
py
Python
tensorflow_model.py
YangAzure/code2vec-tf
8fb4c508aeb466e7ae189650057a97dc50b477c6
[ "MIT" ]
null
null
null
tensorflow_model.py
YangAzure/code2vec-tf
8fb4c508aeb466e7ae189650057a97dc50b477c6
[ "MIT" ]
null
null
null
tensorflow_model.py
YangAzure/code2vec-tf
8fb4c508aeb466e7ae189650057a97dc50b477c6
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np import time from typing import Dict, Optional, List, Iterable from collections import Counter from functools import partial from path_context_reader import PathContextReader, ModelInputTensorsFormer, ReaderInputTensors, EstimatorAction from common import common from vocabular...
53.969925
133
0.666167
b88bf14b26fb2788ee8bb4d29450c08e6bb65585
43,951
py
Python
cla-backend/cla/controllers/signature.py
hnexokonkwo/easycla
c163c6697657c6e28e8fa5d71e93dca35afe57ef
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
null
null
null
cla-backend/cla/controllers/signature.py
hnexokonkwo/easycla
c163c6697657c6e28e8fa5d71e93dca35afe57ef
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
null
null
null
cla-backend/cla/controllers/signature.py
hnexokonkwo/easycla
c163c6697657c6e28e8fa5d71e93dca35afe57ef
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
null
null
null
# Copyright The Linux Foundation and each contributor to CommunityBridge. # SPDX-License-Identifier: MIT """ Controller related to signature operations. """ import copy import uuid from datetime import datetime from typing import List, Optional import hug.types import requests import cla.hug_types from cla.controlle...
42.795521
159
0.6616
067b71382ecbb2a28c18ed730565b937f39e30fc
868
py
Python
blog/migrations/0014_auto_20190213_1559.py
John2013/portfolio
5be3ab4070cff97e1958f168eb2abd7b97bf6ad7
[ "MIT" ]
null
null
null
blog/migrations/0014_auto_20190213_1559.py
John2013/portfolio
5be3ab4070cff97e1958f168eb2abd7b97bf6ad7
[ "MIT" ]
null
null
null
blog/migrations/0014_auto_20190213_1559.py
John2013/portfolio
5be3ab4070cff97e1958f168eb2abd7b97bf6ad7
[ "MIT" ]
null
null
null
# Generated by Django 2.1.7 on 2019-02-13 12:59 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('blog', '0013_auto_20190213_1541'), ] operations = [ migrations.AddField( model_name='comment', ...
28
111
0.599078
e541171dc76932a271ebe7a9e35074ae6a7cd84c
205
py
Python
v_report/equipment/doctype/maintenance_equipment_list/maintenance_equipment_list.py
Atulsah/v_report
3131c4081570ea977a3101b03fa65db07d92aad6
[ "MIT" ]
null
null
null
v_report/equipment/doctype/maintenance_equipment_list/maintenance_equipment_list.py
Atulsah/v_report
3131c4081570ea977a3101b03fa65db07d92aad6
[ "MIT" ]
null
null
null
v_report/equipment/doctype/maintenance_equipment_list/maintenance_equipment_list.py
Atulsah/v_report
3131c4081570ea977a3101b03fa65db07d92aad6
[ "MIT" ]
null
null
null
# Copyright (c) 2021, Frappe and contributors # For license information, please see license.txt # import frappe from frappe.model.document import Document class MaintenanceEquipmentList(Document): pass
22.777778
49
0.804878
6e294cb14dc493906032734b930163c496063561
5,828
py
Python
botorch/utils/testing.py
BradyBromley/botorch
ea7f8fa2cead9c581309437a1f2f59ed070cb59e
[ "MIT" ]
1
2020-07-21T21:25:16.000Z
2020-07-21T21:25:16.000Z
botorch/utils/testing.py
zpao/botorch
270599207f5b9bf8c66e1197ad2632bb69c3d3b9
[ "MIT" ]
null
null
null
botorch/utils/testing.py
zpao/botorch
270599207f5b9bf8c66e1197ad2632bb69c3d3b9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import warnings from collections import OrderedDict from typing import List, Optional from unittest import TestCase import torch from torch import Tensor from .. import settings from ..models.model import Model from ..post...
32.377778
88
0.608099
db11e4f1f6a9c1775cc47ee1e8e31411c3627ced
318
py
Python
xsklearn/transformers/token_embedders/__init__.py
altescy/xsklearn
dff8ea0737ea622529dd396d455e9ae8b07e73fd
[ "MIT" ]
null
null
null
xsklearn/transformers/token_embedders/__init__.py
altescy/xsklearn
dff8ea0737ea622529dd396d455e9ae8b07e73fd
[ "MIT" ]
null
null
null
xsklearn/transformers/token_embedders/__init__.py
altescy/xsklearn
dff8ea0737ea622529dd396d455e9ae8b07e73fd
[ "MIT" ]
null
null
null
from xsklearn.transformers.token_embedders.fasttext_embedder import ( # noqa: F401 FastTextEmbedder, ) from xsklearn.transformers.token_embedders.token_embedder import ( # noqa: F401 TokenEmbedder, ) from xsklearn.transformers.token_embedders.word2vec_embedder import ( # noqa: F401 Word2VecEmbedder, )
31.8
83
0.792453
6c63313bb4ede1acbc6ffeb51151fd63c9cb4eca
10,373
py
Python
tools/shell/shell-test.py
Mu-L/duckdb
9a1c3f674b9ecec4aee52c599dbeb30fa79fc751
[ "MIT" ]
null
null
null
tools/shell/shell-test.py
Mu-L/duckdb
9a1c3f674b9ecec4aee52c599dbeb30fa79fc751
[ "MIT" ]
null
null
null
tools/shell/shell-test.py
Mu-L/duckdb
9a1c3f674b9ecec4aee52c599dbeb30fa79fc751
[ "MIT" ]
null
null
null
import sys import subprocess import tempfile import os import shutil if len(sys.argv) < 2: raise Exception('need shell binary as parameter') def test_exception(command, input, stdout, stderr, errmsg): print('--- COMMAND --') print(' '.join(command)) print('--- INPUT --') print(input) pri...
20.06383
120
0.644365
a5666cc620e747ab364e176c2ebd46949649b6c7
3,225
py
Python
src/tools/grit/grit/tool/update_resource_ids/reader.py
Abreto/naiveproxy
5d84bf9f18eb5a949558086bad7c945bb9051362
[ "BSD-3-Clause" ]
1
2020-03-11T03:44:02.000Z
2020-03-11T03:44:02.000Z
src/tools/grit/grit/tool/update_resource_ids/reader.py
bylond/naiveproxy
a04a8330a8bb0d0892259cf6d795271fbe6e6d0e
[ "BSD-3-Clause" ]
null
null
null
src/tools/grit/grit/tool/update_resource_ids/reader.py
bylond/naiveproxy
a04a8330a8bb0d0892259cf6d795271fbe6e6d0e
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2019 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Helpers to read GRD files and estimate resource ID usages. This module uses grit.grd_reader to estimate resource ID usages in GRD (and GRDP) files by coun...
42.434211
80
0.702326
ca22ec6e6b774bdb5405a52d465d936114c83af9
413
py
Python
tensorflow/python/platform/googletest.py
vsilyaev/tensorflow
f41959ccb2d9d4c722fe8fc3351401d53bcf4900
[ "Apache-2.0" ]
2
2021-06-11T19:21:06.000Z
2021-08-17T07:55:32.000Z
tensorflow/python/platform/googletest.py
vsilyaev/tensorflow
f41959ccb2d9d4c722fe8fc3351401d53bcf4900
[ "Apache-2.0" ]
null
null
null
tensorflow/python/platform/googletest.py
vsilyaev/tensorflow
f41959ccb2d9d4c722fe8fc3351401d53bcf4900
[ "Apache-2.0" ]
2
2015-11-13T21:11:49.000Z
2015-11-29T04:13:49.000Z
"""Switch between depending on googletest or unittest.""" # pylint: disable=unused-import # pylint: disable=g-import-not-at-top # pylint: disable=wildcard-import import tensorflow.python.platform import control_imports if control_imports.USE_OSS and control_imports.OSS_GOOGLETEST: from tensorflow.python.platform.defa...
37.545455
62
0.818402
e06ee69ff6f9465bc319e2f2b89770cf80f21792
13,204
py
Python
starpy.py
vrooje/starpy
3b332124c3ab08dfee469f077a5390b5e5fc794f
[ "Apache-2.0" ]
null
null
null
starpy.py
vrooje/starpy
3b332124c3ab08dfee469f077a5390b5e5fc794f
[ "Apache-2.0" ]
null
null
null
starpy.py
vrooje/starpy
3b332124c3ab08dfee469f077a5390b5e5fc794f
[ "Apache-2.0" ]
null
null
null
from posterior import * from astropy.cosmology import FlatLambdaCDM import numpy as N import sys, os, time from scipy.stats import kde from scipy import interpolate from scipy.integrate import simps from scipy.interpolate import LinearNDInterpolator from scipy.interpolate import interp2d from itertools import product ...
43.291803
225
0.573614
cf85dc2b290e5bf34d1cd45f86c42995a9b7cfc1
6,247
py
Python
telemetry_f1_2021/main.py
jasperan/f1-telemetry-oracle
5b2d7efac265539931849863655a5f92d86c75a8
[ "MIT" ]
4
2022-02-21T16:36:09.000Z
2022-03-28T06:50:54.000Z
telemetry_f1_2021/main.py
jasperan/f1-telemetry-oracle
5b2d7efac265539931849863655a5f92d86c75a8
[ "MIT" ]
null
null
null
telemetry_f1_2021/main.py
jasperan/f1-telemetry-oracle
5b2d7efac265539931849863655a5f92d86c75a8
[ "MIT" ]
2
2022-02-17T19:25:04.000Z
2022-02-23T04:16:16.000Z
import datetime import copy import json import pickle from pathlib import Path from telemetry_f1_2021.packets import HEADER_FIELD_TO_PACKET_TYPE from telemetry_f1_2021.packets import PacketSessionData, PacketMotionData, PacketLapData, PacketEventData, PacketParticipantsData, PacketCarDamageData from telemetry_f1_2021....
35.902299
192
0.685929