hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
7949686514a6610ed1a7c04a8e2dcf9fe9e28b80
1,646
py
Python
samples/generated_samples/cloudprivatecatalog_generated_privatecatalog_v1beta1_private_catalog_search_versions_sync.py
renovate-bot/python-private-catalog
2f48fd9aa925f29d382265115aac8faa77786e54
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
samples/generated_samples/cloudprivatecatalog_generated_privatecatalog_v1beta1_private_catalog_search_versions_sync.py
renovate-bot/python-private-catalog
2f48fd9aa925f29d382265115aac8faa77786e54
[ "Apache-2.0" ]
43
2021-06-03T01:32:48.000Z
2022-03-07T17:02:04.000Z
google/cloud/privatecatalog/v1beta1/privatecatalog-v1beta1-py/samples/generated_samples/cloudprivatecatalog_generated_privatecatalog_v1beta1_private_catalog_search_versions_sync.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
4
2021-01-28T23:25:45.000Z
2021-08-30T01:55:16.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
34.291667
97
0.769137
794968f1d36bfbab95f8a78c3d6487365c36a058
357
py
Python
pose_classification_kit/config.py
huangshunliang/pose-classification-kit
a51ae6aeeb4185c1b70f4a3fa83484b65b524623
[ "MIT" ]
12
2021-07-04T22:04:38.000Z
2022-03-25T05:25:26.000Z
pose_classification_kit/config.py
huangshunliang/pose-classification-kit
a51ae6aeeb4185c1b70f4a3fa83484b65b524623
[ "MIT" ]
1
2022-03-07T07:36:40.000Z
2022-03-08T06:58:00.000Z
pose_classification_kit/config.py
huangshunliang/pose-classification-kit
a51ae6aeeb4185c1b70f4a3fa83484b65b524623
[ "MIT" ]
null
null
null
import pathlib # Path to OpenPose installation folder on your system. OPENPOSE_PATH = pathlib.Path("C:/") / "Program files" / "OpenPose" # Path to model folder. MODELS_PATH = pathlib.Path(".").resolve() / "pose_classification_kit" / "models" # Path to datasets folder. DATASETS_PATH = pathlib.Path(".").resolve() / "p...
32.454545
84
0.72549
794968ff990d094ea758a101ab34fa6c5171c33b
4,347
py
Python
cytopy/tests/test_geometry.py
JANHMS/CytoPy
8537d707fa25645b55b4ec1e25fff9f19847fb1b
[ "MIT" ]
41
2020-04-08T11:01:28.000Z
2022-03-11T17:17:18.000Z
cytopy/tests/test_geometry.py
JANHMS/CytoPy
8537d707fa25645b55b4ec1e25fff9f19847fb1b
[ "MIT" ]
27
2020-04-07T14:59:24.000Z
2022-03-01T20:43:34.000Z
cytopy/tests/test_geometry.py
JANHMS/CytoPy
8537d707fa25645b55b4ec1e25fff9f19847fb1b
[ "MIT" ]
8
2020-04-28T15:16:24.000Z
2022-03-02T19:02:14.000Z
from cytopy.data.geometry import PopulationGeometry, ThresholdGeom, PolygonGeom, create_polygon, \ polygon_overlap, create_convex_hull, probablistic_ellipse, inside_ellipse from shapely.geometry import Polygon from sklearn.datasets import make_blobs from sklearn.mixture import GaussianMixture import numpy as np imp...
37.8
98
0.529791
794969ae4aaa75d23653a7ccba86423bae0926a6
4,830
py
Python
hpOneView/resources/networking/fabrics.py
doziya/hpeOneView
ef9bee2a0e1529e93bd6e8d84eff07fb8533049d
[ "MIT" ]
107
2015-02-16T12:40:36.000Z
2022-03-09T05:27:58.000Z
hpOneView/resources/networking/fabrics.py
doziya/hpeOneView
ef9bee2a0e1529e93bd6e8d84eff07fb8533049d
[ "MIT" ]
148
2015-03-17T16:09:39.000Z
2020-02-09T16:28:06.000Z
hpOneView/resources/networking/fabrics.py
doziya/hpeOneView
ef9bee2a0e1529e93bd6e8d84eff07fb8533049d
[ "MIT" ]
80
2015-01-03T22:58:53.000Z
2021-04-16T11:37:03.000Z
# -*- coding: utf-8 -*- ### # (C) Copyright (2012-2017) Hewlett Packard Enterprise Development LP # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limi...
34.255319
116
0.646584
79496a4e0cc9d5c6aeb343e9f2c5d32c0368939a
200
py
Python
Chapter10/07_leds.py
PacktPublishing/MicroPython-Cookbook
ffd6aa15c303459570a89ba31b5bc734f05cb387
[ "MIT" ]
16
2019-07-01T16:24:22.000Z
2022-03-03T06:54:57.000Z
Chapter10/07_leds.py
ccwu0918/MicroPython-Cookbook
ffd6aa15c303459570a89ba31b5bc734f05cb387
[ "MIT" ]
null
null
null
Chapter10/07_leds.py
ccwu0918/MicroPython-Cookbook
ffd6aa15c303459570a89ba31b5bc734f05cb387
[ "MIT" ]
19
2019-04-17T08:30:12.000Z
2022-01-14T03:05:37.000Z
from machine import Pin import time red = Pin(0, Pin.OUT) blue = Pin(2, Pin.OUT) while True: blue.value(0) red.value(1) time.sleep(1) blue.value(1) red.value(0) time.sleep(1)
15.384615
23
0.62
79496b3c98eb4a6cd7441368dd5306e5c4ab036c
2,537
py
Python
sys/sys-programbar.py
all3g/pieces
bc378fd22ddc700891fe7f34ab0d5b341141e434
[ "CNRI-Python" ]
34
2016-10-31T02:05:24.000Z
2018-11-08T14:33:13.000Z
sys/sys-programbar.py
join-us/python-programming
bc378fd22ddc700891fe7f34ab0d5b341141e434
[ "CNRI-Python" ]
2
2017-05-11T03:00:31.000Z
2017-11-01T23:37:37.000Z
sys/sys-programbar.py
join-us/python-programming
bc378fd22ddc700891fe7f34ab0d5b341141e434
[ "CNRI-Python" ]
21
2016-08-19T09:05:45.000Z
2018-11-08T14:33:16.000Z
import sys import time class ProgressBar(object): """ProgressBae class holds the option of the progress bar. The option are: start State from which start the progress. For example, if start is and the end is 10, the progress of this state is 50% ...
30.939024
79
0.568782
79496c5400746bb5a00f761a2ebf840c3e33225f
619
py
Python
day-17/main.py
jmolinski/advent-of-code-2017
cc199d38540b15a0f6b78e609f64b0045174ea7c
[ "Unlicense" ]
null
null
null
day-17/main.py
jmolinski/advent-of-code-2017
cc199d38540b15a0f6b78e609f64b0045174ea7c
[ "Unlicense" ]
null
null
null
day-17/main.py
jmolinski/advent-of-code-2017
cc199d38540b15a0f6b78e609f64b0045174ea7c
[ "Unlicense" ]
null
null
null
step = int(open('data.txt', 'r').read()) def track(n, rounds=1): lst, pos = [0, 1], 1 for i in range(2, rounds): pos = (pos + step + 1) % (i) lst.insert(pos, i) return lst[(lst.index(n) + 1) % len(lst)] def track_after_zero(rounds=1): pos, zero_pos, after_zero = 1, 0, 0 for i in...
22.925926
50
0.568659
79496cc111128fc8ed6b80f9dacbdfb615ce658a
21,885
py
Python
allennlp/models/constituency_parser.py
justindujardin/allennlp
c4559f3751775aa8bc018db417edc119d29d8051
[ "Apache-2.0" ]
1
2020-09-19T07:09:27.000Z
2020-09-19T07:09:27.000Z
allennlp/models/constituency_parser.py
justindujardin/allennlp
c4559f3751775aa8bc018db417edc119d29d8051
[ "Apache-2.0" ]
null
null
null
allennlp/models/constituency_parser.py
justindujardin/allennlp
c4559f3751775aa8bc018db417edc119d29d8051
[ "Apache-2.0" ]
1
2021-02-04T08:42:23.000Z
2021-02-04T08:42:23.000Z
from typing import Dict, Tuple, List, NamedTuple, Any from overrides import overrides import torch from torch.nn.modules.linear import Linear from nltk import Tree from allennlp.common.checks import check_dimensions_match from allennlp.data import TextFieldTensors, Vocabulary from allennlp.modules import Seq2SeqEncod...
44.212121
100
0.620105
79496d0aeeb2135dd72012a161b5568fb44c7777
14,581
py
Python
desktop/core/ext-py/South-1.0.2/south/db/oracle.py
vinaymundada27/Hue
7bffb33bbe7cfa34d340241c4ba3b19476211b2a
[ "Apache-2.0" ]
11
2019-03-20T07:38:35.000Z
2021-06-18T09:42:46.000Z
filenv/lib/python2.7/site-packages/south/db/oracle.py
betoesquivel/fil2014
4c2e9188769096391bb206b76ed1ab8bd2ff66a1
[ "MIT" ]
null
null
null
filenv/lib/python2.7/site-packages/south/db/oracle.py
betoesquivel/fil2014
4c2e9188769096391bb206b76ed1ab8bd2ff66a1
[ "MIT" ]
5
2019-06-29T03:13:02.000Z
2020-04-23T04:47:11.000Z
from __future__ import print_function import os.path import sys import re import warnings import cx_Oracle from django.db import connection, models from django.db.backends.util import truncate_name from django.core.management.color import no_style from django.db.models.fields import NOT_PROVIDED from dj...
42.141618
155
0.59941
79496e081704d82c2c2efc0a25f1ba5ae96c499d
9,826
py
Python
docs/source/conf.py
smoe/cyvcf2
b8e25fce6289a384be424e1b158b29d2b91b65e1
[ "MIT" ]
null
null
null
docs/source/conf.py
smoe/cyvcf2
b8e25fce6289a384be424e1b158b29d2b91b65e1
[ "MIT" ]
null
null
null
docs/source/conf.py
smoe/cyvcf2
b8e25fce6289a384be424e1b158b29d2b91b65e1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # cyvcf2 documentation build configuration file, created by # sphinx-quickstart on Mon Nov 14 08:40:54 2016. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # Al...
32.216393
80
0.712294
79496f7acfca0195efd21f98d30e355bdd3bc467
8,142
py
Python
mmdet/core/bbox/assigners/atss_assigner.py
sanghun3819/LQM
f00a4ccc5a35cf430a70ff262148a8183cc99864
[ "Apache-2.0" ]
4
2021-12-30T07:38:26.000Z
2022-02-08T11:30:55.000Z
mmdet/core/bbox/assigners/atss_assigner.py
POSTECH-IMLAB/LQM
a0f4d061c5f1486b43ddd884c37e651c6c8b16e7
[ "Apache-2.0" ]
null
null
null
mmdet/core/bbox/assigners/atss_assigner.py
POSTECH-IMLAB/LQM
a0f4d061c5f1486b43ddd884c37e651c6c8b16e7
[ "Apache-2.0" ]
null
null
null
import torch from ..builder import BBOX_ASSIGNERS from ..iou_calculators import build_iou_calculator from .assign_result import AssignResult from .base_assigner import BaseAssigner @BBOX_ASSIGNERS.register_module() class ATSSAssigner(BaseAssigner): """Assign a corresponding gt bbox or background to each bbox. ...
43.774194
87
0.598993
7949709af15d21bfbb0b2fe9924c0632a4ccc6e2
912
py
Python
selfdrive/controls/lib/latcontrol.py
fallen8angel/forNEXO-YONG
5661ae0fb2fefc41fda9e474e094d4b5440ecb8e
[ "MIT" ]
null
null
null
selfdrive/controls/lib/latcontrol.py
fallen8angel/forNEXO-YONG
5661ae0fb2fefc41fda9e474e094d4b5440ecb8e
[ "MIT" ]
null
null
null
selfdrive/controls/lib/latcontrol.py
fallen8angel/forNEXO-YONG
5661ae0fb2fefc41fda9e474e094d4b5440ecb8e
[ "MIT" ]
2
2022-02-25T03:36:09.000Z
2022-03-13T12:24:37.000Z
from abc import abstractmethod, ABC from common.realtime import DT_CTRL from common.numpy_fast import clip MIN_STEER_SPEED = 0.3 class LatControl(ABC): def __init__(self, CP, CI): self.sat_count_rate = 1.0 * DT_CTRL self.sat_limit = CP.steerLimitTimer self.sat_count = 0. # we define the steer tor...
29.419355
111
0.710526
794970ea38cf84e6d2f928600b557756d0f1b494
16,856
py
Python
qtools/exportclient.py
Awesomium40/qtools
9348ddb597cd0470cad61c720496797f9d6db677
[ "MIT" ]
null
null
null
qtools/exportclient.py
Awesomium40/qtools
9348ddb597cd0470cad61c720496797f9d6db677
[ "MIT" ]
null
null
null
qtools/exportclient.py
Awesomium40/qtools
9348ddb597cd0470cad61c720496797f9d6db677
[ "MIT" ]
null
null
null
from . import constants from . import utils from . import exceptions from . import qsf import datetime import getpass import io import logging import os import re import requests import time import zipfile _QDC = 'Q_DATA_CENTER' _QAT = 'Q_API_TOKEN' logging.getLogger('exportclient').addHandler(logging.NullHandler()...
49
123
0.65757
794970fd5e1b4aecb202c7e233342dbedcb55db2
9,116
py
Python
lcm/lcm/nf/tests/test_change_ext_conn.py
onap/vfc-gvnfm-vnflcm
e3127fee0fdb5bf193fddc74a69312363a6d20eb
[ "Apache-2.0" ]
1
2019-04-02T03:15:20.000Z
2019-04-02T03:15:20.000Z
lcm/lcm/nf/tests/test_change_ext_conn.py
onap/vfc-gvnfm-vnflcm
e3127fee0fdb5bf193fddc74a69312363a6d20eb
[ "Apache-2.0" ]
null
null
null
lcm/lcm/nf/tests/test_change_ext_conn.py
onap/vfc-gvnfm-vnflcm
e3127fee0fdb5bf193fddc74a69312363a6d20eb
[ "Apache-2.0" ]
1
2021-10-15T15:26:47.000Z
2021-10-15T15:26:47.000Z
# Copyright (C) 2019 ZTE. 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 ag...
35.609375
102
0.515796
7949720481c5aed43a85afc9b8d3572159562089
4,340
py
Python
tests/result_storages/test_file_storage.py
tony612/thumbor
2efec9fc1bc67c9d029904870fa624a81966f3a1
[ "MIT" ]
1
2021-02-25T18:41:01.000Z
2021-02-25T18:41:01.000Z
tests/result_storages/test_file_storage.py
tony612/thumbor
2efec9fc1bc67c9d029904870fa624a81966f3a1
[ "MIT" ]
null
null
null
tests/result_storages/test_file_storage.py
tony612/thumbor
2efec9fc1bc67c9d029904870fa624a81966f3a1
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # thumbor imaging service # https://github.com/thumbor/thumbor/wiki # Licensed under the MIT license: # http://www.opensource.org/licenses/mit-license # Copyright (c) 2011 globo.com thumbor@googlegroups.com import tempfile from datetime import datetime from os.path import ab...
32.38806
86
0.704839
794972bc0e7dd76c4d7b0adf20f1549e00e7648e
7,844
py
Python
views/network_panel.py
nv-hiep/NeuralNetworkSnake
979d547df716b1cdeb3e1d41fa4f813094e2306e
[ "MIT" ]
null
null
null
views/network_panel.py
nv-hiep/NeuralNetworkSnake
979d547df716b1cdeb3e1d41fa4f813094e2306e
[ "MIT" ]
null
null
null
views/network_panel.py
nv-hiep/NeuralNetworkSnake
979d547df716b1cdeb3e1d41fa4f813094e2306e
[ "MIT" ]
null
null
null
from PyQt5 import QtGui, QtCore, QtWidgets from PyQt5.QtCore import Qt from typing import List from network.neural_network import * from helper.snake import Snake from helper.config import config class NetworkPanel(QtWidgets.QWidget): def __init__(self, parent, snake: Snake): super().__init_...
37.89372
229
0.574579
794973c536de7b04033c7de1773de2084c3d0906
1,268
py
Python
app/api/migrations/0002_project.py
nabaz/projecttracker
c6b326592f7a6925b2fbc0924350dd0951beca0f
[ "MIT" ]
null
null
null
app/api/migrations/0002_project.py
nabaz/projecttracker
c6b326592f7a6925b2fbc0924350dd0951beca0f
[ "MIT" ]
null
null
null
app/api/migrations/0002_project.py
nabaz/projecttracker
c6b326592f7a6925b2fbc0924350dd0951beca0f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.10 on 2018-02-07 20:08 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_depend...
35.222222
114
0.593849
794974dff0b2faff6e6a8fa361bdaf77c7e3a81e
647
py
Python
utilities/embed.py
GryPr/Vireo
bcdd5eafcfa548b300ce334005e8517b01e322c0
[ "MIT" ]
null
null
null
utilities/embed.py
GryPr/Vireo
bcdd5eafcfa548b300ce334005e8517b01e322c0
[ "MIT" ]
8
2022-03-28T16:15:46.000Z
2022-03-31T01:31:29.000Z
utilities/embed.py
GryPr/Vireo
bcdd5eafcfa548b300ce334005e8517b01e322c0
[ "MIT" ]
null
null
null
import disnake from disnake import Embed def generic_embed(title: str, description: str, author: str) -> Embed: embed = disnake.Embed(color=0x09a2e3) embed.title = title embed.description = description embed.set_footer(text=f"Requested by {author}") return embed def wip_embed() -> Embed: emb...
26.958333
79
0.676971
7949757b5ab73ee99343f3324f0b5018d87547ed
2,127
py
Python
pub_data_visualization/load/plot/subplot/forecasting_error.py
cre-dev/pub-data-visualization
229bb7a543684be2cb06935299345ce3263da946
[ "MIT" ]
8
2021-04-29T11:46:18.000Z
2022-02-21T16:07:14.000Z
pub_data_visualization/load/plot/subplot/forecasting_error.py
cre-dev/pub-data-visualization
229bb7a543684be2cb06935299345ce3263da946
[ "MIT" ]
3
2021-03-15T14:26:43.000Z
2021-12-02T15:27:49.000Z
pub_data_visualization/load/plot/subplot/forecasting_error.py
cre-dev/pub-data-visualization
229bb7a543684be2cb06935299345ce3263da946
[ "MIT" ]
null
null
null
import matplotlib as mpl # from .... import global_var def forecasting_error(ax, df, load_unit = None, load_observation_nature = None, load_forecast_nature = None, **kwargs ): ""...
32.227273
99
0.504937
7949758aeafa913995611bc6e55343d78f875543
75,345
py
Python
test/fx_acc/test_acc_tracer.py
you74674/pytorch
06838ce8b16b2cc2f9e903f3ebdd46659a0e66bb
[ "Intel" ]
1
2022-01-20T03:49:23.000Z
2022-01-20T03:49:23.000Z
test/fx_acc/test_acc_tracer.py
you74674/pytorch
06838ce8b16b2cc2f9e903f3ebdd46659a0e66bb
[ "Intel" ]
14
2021-10-14T06:58:50.000Z
2021-12-17T11:51:07.000Z
test/fx_acc/test_acc_tracer.py
you74674/pytorch
06838ce8b16b2cc2f9e903f3ebdd46659a0e66bb
[ "Intel" ]
null
null
null
# Owner(s): ["oncall: fx"] import unittest from typing import Callable, List import numpy as np import torch import torch.fx.experimental.fx_acc.acc_normalizer as acc_normalizer import torch.fx.experimental.fx_acc.acc_ops as acc_ops import torch.fx.experimental.fx_acc.acc_tracer as acc_tracer import torch.fx.experime...
37.861809
108
0.534528
7949765f7f07f52e54996497b9e2297b439e784d
1,082
py
Python
body_temp_from_external/conv_core_temp.py
SoftwareDevEngResearch/body_temp_from_external
2f560ccc51e9f3c5bde25630b811586972fe884c
[ "MIT" ]
1
2020-02-15T05:30:07.000Z
2020-02-15T05:30:07.000Z
body_temp_from_external/conv_core_temp.py
SoftwareDevEngResearch/body_temp_from_external
2f560ccc51e9f3c5bde25630b811586972fe884c
[ "MIT" ]
null
null
null
body_temp_from_external/conv_core_temp.py
SoftwareDevEngResearch/body_temp_from_external
2f560ccc51e9f3c5bde25630b811586972fe884c
[ "MIT" ]
3
2018-04-18T23:39:00.000Z
2020-03-15T14:46:20.000Z
#!/usr/bin/env python # Author: Makenzie Brian # Date: April 23, 2018 # Class: ME 599 # File: conv_core_temp.py # Description: converts csv to estimated core temperature def conv_file(file): """converts csv to array for use in later functions args: filename as .csv""" with open(file, 'r') as f1: ...
31.823529
107
0.676525
7949772a970b146a5acf5d7c83a9b3f8ea54785c
49,865
py
Python
parser_email.py
splunk-soar-connectors/parser
6c7bf67590dd09a0b6a6182eb56312531f1fef09
[ "Apache-2.0" ]
null
null
null
parser_email.py
splunk-soar-connectors/parser
6c7bf67590dd09a0b6a6182eb56312531f1fef09
[ "Apache-2.0" ]
5
2022-01-07T23:27:42.000Z
2022-02-03T03:27:17.000Z
parser_email.py
splunk-soar-connectors/parser
6c7bf67590dd09a0b6a6182eb56312531f1fef09
[ "Apache-2.0" ]
1
2022-03-15T00:22:02.000Z
2022-03-15T00:22:02.000Z
# File: parser_email.py # # Copyright (c) 2017-2022 Splunk 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 appli...
34.895031
138
0.657616
794979a2b775d77bfb824d6a65b037ac2bfa8d00
12,174
py
Python
read_ohara.py
jfblanchard/optical-tools
25ce0f2238e1c22b6694d00d359e4243a33db30b
[ "Apache-2.0" ]
null
null
null
read_ohara.py
jfblanchard/optical-tools
25ce0f2238e1c22b6694d00d359e4243a33db30b
[ "Apache-2.0" ]
null
null
null
read_ohara.py
jfblanchard/optical-tools
25ce0f2238e1c22b6694d00d359e4243a33db30b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Parse the ohara downloaded catalog (csv format), and create a new cleaned up data frame with glass type and sellmeier coeffs for all glass types. Output in json format. Ohara download version 20171130 Credits: Hover text snippet found here: https://stackoverflow.com/questions/7908636/ p...
27.295964
95
0.616231
794979b3c196de0436899f1d7dca55c2f1d4f582
471
py
Python
python/soma_workflow/check_requirement/__main__.py
denisri/soma-workflow
bc6f2f50d34437e86e850cb0d05ff26b041d560d
[ "CECILL-B" ]
null
null
null
python/soma_workflow/check_requirement/__main__.py
denisri/soma-workflow
bc6f2f50d34437e86e850cb0d05ff26b041d560d
[ "CECILL-B" ]
44
2018-10-30T16:57:10.000Z
2022-03-15T10:54:57.000Z
python/soma_workflow/check_requirement/__main__.py
populse/soma-workflow
e6d3e3c33ad41107ee3c959adc4832e6edd047f4
[ "CECILL-B" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import if __name__ == '__main__': from soma_workflow import configuration import sys if len(sys.argv) >= 2: resource_id = sys.argv[1] else: resource_id = None config = configuration.Configuration.load_from_file(resource_id) ...
27.705882
69
0.658174
79497bb599ff35a8f443bf1bb7a0bf25eca6121d
511
py
Python
Stream-3/Full-Stack-Development/9.Django-Blog-Part-Five/2.Create-A-Blog-Post-Form/Blog_prj/Blog_app/urls.py
GunnerJnr/_CodeInstitute
efba0984a3dc71558eef97724c85e274a712798c
[ "MIT" ]
4
2017-10-10T14:00:40.000Z
2021-01-27T14:08:26.000Z
Stream-3/Full-Stack-Development/9.Django-Blog-Part-Five/2.Create-A-Blog-Post-Form/Blog_prj/Blog_app/urls.py
GunnerJnr/_CodeInstitute
efba0984a3dc71558eef97724c85e274a712798c
[ "MIT" ]
115
2019-10-24T11:18:33.000Z
2022-03-11T23:15:42.000Z
Stream-3/Full-Stack-Development/9.Django-Blog-Part-Five/2.Create-A-Blog-Post-Form/Blog_prj/Blog_app/urls.py
GunnerJnr/_CodeInstitute
efba0984a3dc71558eef97724c85e274a712798c
[ "MIT" ]
5
2017-09-22T21:42:39.000Z
2020-02-07T02:18:11.000Z
# coding=utf-8 from django.conf.urls import url import views from .views import redirect_root urlpatterns = [ url(r'^$', redirect_root, name='home'), url(r'^blog/$', views.post_list, name='post-list'), url(r'^blog/(?P<slug>[-\w]+)$', views.post_detail, name='post-detail'), url(r'^blog/top-five/$', view...
36.5
81
0.64775
79497cda7d49ab24a0e02c9aa9c6304b74668d54
7,433
py
Python
carsteer.py
kneave/RedBoard
642f4a00d983c98bdb71c6a4bed96e66b522b9a0
[ "MIT" ]
21
2019-10-07T22:55:36.000Z
2020-12-09T20:07:03.000Z
carsteer.py
kneave/RedBoard
642f4a00d983c98bdb71c6a4bed96e66b522b9a0
[ "MIT" ]
5
2019-09-05T14:15:36.000Z
2020-03-17T20:21:42.000Z
carsteer.py
kneave/RedBoard
642f4a00d983c98bdb71c6a4bed96e66b522b9a0
[ "MIT" ]
5
2018-05-02T16:38:28.000Z
2020-01-02T15:06:02.000Z
# Control a robot with a Rock Candy or PiHut PS3 controller. # The left stick controls the speed and direction of both motors - push up to go forwards and down for backwards. # The right stick is for steering - push the stick left or right to steer. # Author: Neil Lambeth. neil@redrobotics.co.uk @NeilRedRobotics from...
28.262357
113
0.493206
79497eacb4225881a9345cd093eb3eb6da0ad20e
6,579
py
Python
kubernetes/client/models/v1_replica_set_condition.py
kevingessner/python
3f4d09d260cf0839fae8173852c69e0419188454
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1_replica_set_condition.py
kevingessner/python
3f4d09d260cf0839fae8173852c69e0419188454
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1_replica_set_condition.py
kevingessner/python
3f4d09d260cf0839fae8173852c69e0419188454
[ "Apache-2.0" ]
1
2018-07-19T16:37:20.000Z
2018-07-19T16:37:20.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.9.3 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re ...
27.298755
105
0.583675
79497eb9481b5b8e18bb58b89e8e984ce66b4c08
1,603
py
Python
src/commercetools/importapi/client/import_operations/by_project_key_product_variant_patches_import_sink_key_by_import_sink_key_import_operations_by_id_request_builder.py
lime-green/commercetools-python-sdk
63b77f6e5abe43e2b3ebbf3cdbbe00c7cf80dca6
[ "MIT" ]
1
2021-04-07T20:01:30.000Z
2021-04-07T20:01:30.000Z
src/commercetools/importapi/client/import_operations/by_project_key_product_variant_patches_import_sink_key_by_import_sink_key_import_operations_by_id_request_builder.py
lime-green/commercetools-python-sdk
63b77f6e5abe43e2b3ebbf3cdbbe00c7cf80dca6
[ "MIT" ]
null
null
null
src/commercetools/importapi/client/import_operations/by_project_key_product_variant_patches_import_sink_key_by_import_sink_key_import_operations_by_id_request_builder.py
lime-green/commercetools-python-sdk
63b77f6e5abe43e2b3ebbf3cdbbe00c7cf80dca6
[ "MIT" ]
null
null
null
# Generated file, please do not change!!! import typing from ...models.errors import ErrorResponse from ...models.importoperations import ImportOperation if typing.TYPE_CHECKING: from ...base_client import BaseClient class ByProjectKeyProductVariantPatchesImportSinkKeyByImportSinkKeyImportOperationsByIdRequestB...
32.06
136
0.650655
79497f042372b5623c948cdf5f365645d21e656b
531
py
Python
djstripe/migrations/__init__.py
TigerDX/dj-stripe
2fd4897abaedf2d9faa3dd5af86402dae3ab86a3
[ "BSD-3-Clause" ]
null
null
null
djstripe/migrations/__init__.py
TigerDX/dj-stripe
2fd4897abaedf2d9faa3dd5af86402dae3ab86a3
[ "BSD-3-Clause" ]
null
null
null
djstripe/migrations/__init__.py
TigerDX/dj-stripe
2fd4897abaedf2d9faa3dd5af86402dae3ab86a3
[ "BSD-3-Clause" ]
1
2021-08-30T10:51:49.000Z
2021-08-30T10:51:49.000Z
""" Migrations have been built for Django=>1.7 versions. Alternative migrations for Django<1.7 users are provided with the ``south_migrations`` dir. """ SOUTH_ERROR_MESSAGE = """\n For South support, customize the SOUTH_MIGRATION_MODULES setting like so: SOUTH_MIGRATION_MODULES = { 'djstripe': 'djstripe.s...
27.947368
75
0.753296
79497f35aca134ae3e71ae1b1b611a241cd4bd1c
541
py
Python
smii/modeling/setup.py
ar4/smii
b7eee03f2a4c8f56f6dde61738e8aa1090621ba3
[ "MIT" ]
3
2018-07-02T15:50:34.000Z
2019-02-28T11:42:34.000Z
smii/modeling/setup.py
ar4/smii
b7eee03f2a4c8f56f6dde61738e8aa1090621ba3
[ "MIT" ]
null
null
null
smii/modeling/setup.py
ar4/smii
b7eee03f2a4c8f56f6dde61738e8aa1090621ba3
[ "MIT" ]
null
null
null
#!/usr/bin/env python def configuration(parent_package='', top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('modeling', parent_package, top_path) config.add_subpackage('propagators') config.add_subpackage('store_wavefield') config.add_subpackage('record_rece...
36.066667
64
0.763401
7949807f891fb6cd60ca8adcff9e44301647a928
7,214
py
Python
run.py
ucynthy12/Vault
812261b49dfb126c59da031f0fe618008fe4f871
[ "Unlicense" ]
null
null
null
run.py
ucynthy12/Vault
812261b49dfb126c59da031f0fe618008fe4f871
[ "Unlicense" ]
null
null
null
run.py
ucynthy12/Vault
812261b49dfb126c59da031f0fe618008fe4f871
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3.6 from user import User from credential import Credential from art import * import random import sys from simple_colors import * def create_user(fname,lname,pswd,c_pswd): """ Function to create a new user """ new_user= User(fname,lname,pswd,c_pswd) return new_user def save_...
31.779736
170
0.525229
79498093c1a9c50aba17b5b1e3238c9805ac3864
150
py
Python
my_pic_hub/apps.py
asandelarvine/My_Pic_Hub
3cf11c01485e5bee75b3b3937525cedc1d55d473
[ "MIT" ]
null
null
null
my_pic_hub/apps.py
asandelarvine/My_Pic_Hub
3cf11c01485e5bee75b3b3937525cedc1d55d473
[ "MIT" ]
null
null
null
my_pic_hub/apps.py
asandelarvine/My_Pic_Hub
3cf11c01485e5bee75b3b3937525cedc1d55d473
[ "MIT" ]
null
null
null
from django.apps import AppConfig class MyPicHubConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'my_pic_hub'
21.428571
56
0.766667
794980c0c42debd9d7d5258ed91132242ddd8be1
1,129
py
Python
ums/userapp/views/base.py
hookehu/web
637047ff47bf5df6ee3152e6976162bb8e85531c
[ "MIT" ]
null
null
null
ums/userapp/views/base.py
hookehu/web
637047ff47bf5df6ee3152e6976162bb8e85531c
[ "MIT" ]
null
null
null
ums/userapp/views/base.py
hookehu/web
637047ff47bf5df6ee3152e6976162bb8e85531c
[ "MIT" ]
null
null
null
#-*- coding:utf-8 -*- import functools from functools import update_wrapper from django.views.generic import View from django.utils.decorators import method_decorator, classonlymethod class BaseView(View): need_site_permission = False url = None def __init__(self, request, *args, **kwargs): View.__init__(self, *...
24.021277
69
0.708592
794981e5a40dea009311f7db51ee3fec5154019b
2,820
py
Python
docs/source/conf.py
extra2000/qeeqbox-honeypots-podman
aeeb4bd83b8479e611294cde2cc48af2fe226f32
[ "MIT" ]
null
null
null
docs/source/conf.py
extra2000/qeeqbox-honeypots-podman
aeeb4bd83b8479e611294cde2cc48af2fe226f32
[ "MIT" ]
null
null
null
docs/source/conf.py
extra2000/qeeqbox-honeypots-podman
aeeb4bd83b8479e611294cde2cc48af2fe226f32
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
30.652174
79
0.675887
794981ff7947e35ef0202c6c50e5cb34a5083580
8,840
py
Python
Walkoff/main.py
R3dFruitRollUp/WALKOFF-Apps
d92dec666c253c474116f041df163a8149e06b2b
[ "CC0-1.0" ]
null
null
null
Walkoff/main.py
R3dFruitRollUp/WALKOFF-Apps
d92dec666c253c474116f041df163a8149e06b2b
[ "CC0-1.0" ]
null
null
null
Walkoff/main.py
R3dFruitRollUp/WALKOFF-Apps
d92dec666c253c474116f041df163a8149e06b2b
[ "CC0-1.0" ]
1
2018-12-01T19:37:43.000Z
2018-12-01T19:37:43.000Z
import logging from apps import App, action import requests from requests.exceptions import Timeout import json from core.config.paths import certificate_path import time logger = logging.getLogger(__name__) class Unauthorized(Exception): pass class UnknownResponse(Exception): pass class NotConnected(Exc...
39.81982
139
0.609276
794982074f85fe37f8d04ff55d776b1456b4ac93
3,098
py
Python
indico/core/db/sqlalchemy/descriptions.py
uxmaster/indico
ecd19f17ef6fdc9f5584f59c87ec647319ce5d31
[ "MIT" ]
1
2019-11-03T11:34:16.000Z
2019-11-03T11:34:16.000Z
indico/core/db/sqlalchemy/descriptions.py
NP-compete/indico
80db7ca0ef9d1f3240a16b9ff2d84bf0bf26c549
[ "MIT" ]
null
null
null
indico/core/db/sqlalchemy/descriptions.py
NP-compete/indico
80db7ca0ef9d1f3240a16b9ff2d84bf0bf26c549
[ "MIT" ]
null
null
null
# This file is part of Indico. # Copyright (C) 2002 - 2019 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from __future__ import unicode_literals from sqlalchemy.ext.declarative import declared_attr from sqlalch...
30.98
97
0.662686
7949822f7a946e6b3c767729ff7593a77f67f2f0
2,328
py
Python
tests/acceptance/cors-test.py
gevious/flask_slither
bf1fd1e58224c19883f4b19c5f727f47ee9857da
[ "MIT" ]
11
2015-05-26T10:31:02.000Z
2017-06-18T07:55:06.000Z
tests/acceptance/cors-test.py
gevious/flask_slither
bf1fd1e58224c19883f4b19c5f727f47ee9857da
[ "MIT" ]
null
null
null
tests/acceptance/cors-test.py
gevious/flask_slither
bf1fd1e58224c19883f4b19c5f727f47ee9857da
[ "MIT" ]
1
2017-11-28T01:22:19.000Z
2017-11-28T01:22:19.000Z
# -*- coding: utf-8 -*- # The cors test ensures that the CORS functionality is working for resources. from bson.objectid import ObjectId from flask import Flask from flask_slither import register_resource from flask_slither.resources import BaseResource from pymongo import MongoClient import json import unittest cl...
33.73913
77
0.598797
794982bba66fef9fdf365dad228cc37a67d2037e
15,572
py
Python
ironic/tests/unit/drivers/modules/redfish/test_utils.py
ljmcgann/ironic
09f79416e2820cf0fcef001c4c956b7732b7e7ca
[ "Apache-2.0" ]
null
null
null
ironic/tests/unit/drivers/modules/redfish/test_utils.py
ljmcgann/ironic
09f79416e2820cf0fcef001c4c956b7732b7e7ca
[ "Apache-2.0" ]
null
null
null
ironic/tests/unit/drivers/modules/redfish/test_utils.py
ljmcgann/ironic
09f79416e2820cf0fcef001c4c956b7732b7e7ca
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Red Hat, 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...
45.532164
78
0.666517
79498385d6877af53ae31256dc8da03564d19172
5,347
py
Python
dev_tools/check.py
joshp112358/Cirq
c4fac27a9849e589ee05b4f702f2d7c9049aaeea
[ "Apache-2.0" ]
2
2019-04-02T09:16:28.000Z
2019-05-25T18:35:19.000Z
dev_tools/check.py
joshp112358/Cirq
c4fac27a9849e589ee05b4f702f2d7c9049aaeea
[ "Apache-2.0" ]
36
2019-04-03T23:03:51.000Z
2019-05-15T23:49:01.000Z
dev_tools/check.py
joshp112358/Cirq
c4fac27a9849e589ee05b4f702f2d7c9049aaeea
[ "Apache-2.0" ]
2
2019-04-03T22:55:05.000Z
2019-04-24T23:24:53.000Z
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
35.410596
78
0.607069
794983d1b37b99882de3f91703d022c3549c37ba
3,300
py
Python
mark_scripts/topicsandcollocations/lx.py
syhw/contextual_word_segmentation
401ce2030db814783b9447534006d6b7387527e4
[ "MIT" ]
2
2016-06-29T10:32:49.000Z
2020-11-17T20:18:43.000Z
scripts/lx.py
syhw/contextual_word_segmentation
401ce2030db814783b9447534006d6b7387527e4
[ "MIT" ]
null
null
null
scripts/lx.py
syhw/contextual_word_segmentation
401ce2030db814783b9447534006d6b7387527e4
[ "MIT" ]
null
null
null
"""lx.py -- Mark Johnson, 24th Febuary 2005 lx contains utility functions for the other programs in this directory.""" import csv, os, os.path def incr(d, k, inc=1): """incr adds inc to the value of d[k] if d[k] is defined, or sets d[k] to inc if d[k] is undefined. d is the dictionary being i...
33
86
0.591515
794985b2dbb77e4d7691753432c53ddf3ad31377
2,818
py
Python
tensorflow/python/ops/dequantize_op_test.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tensorflow/python/ops/dequantize_op_test.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
656
2019-12-03T00:48:46.000Z
2022-03-31T18:41:54.000Z
tensorflow/python/ops/dequantize_op_test.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
506
2019-12-03T00:46:26.000Z
2022-03-30T10:34:56.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
37.078947
80
0.688786
79498608b6eaa2acb8693d94bddd6b4c52d36e60
1,894
py
Python
redrugs/tests/functional/test_root.py
dlmcguinness/redrugs
d49857b1f291c0b3bdd0b25417ba42068ca73c62
[ "MIT" ]
5
2015-01-23T15:28:59.000Z
2017-10-23T12:01:36.000Z
redrugs/tests/functional/test_root.py
dlmcguinness/redrugs
d49857b1f291c0b3bdd0b25417ba42068ca73c62
[ "MIT" ]
14
2015-02-03T21:20:58.000Z
2015-10-13T02:32:18.000Z
redrugs/tests/functional/test_root.py
dlmcguinness/redrugs
d49857b1f291c0b3bdd0b25417ba42068ca73c62
[ "MIT" ]
5
2015-01-28T17:55:44.000Z
2018-12-03T02:47:05.000Z
# -*- coding: utf-8 -*- """ Functional test suite for the root controller. This is an example of how functional tests can be written for controllers. As opposed to a unit-test, which test a small unit of functionality, functional tests exercise the whole application and its WSGI stack. Please read http://pythonpaste...
32.655172
75
0.635164
794986f1ffa50f50977fe6ad7b6480235b0936a2
1,036
py
Python
fairness/fairness_check.py
Tomcli/ffdl-knative
b68edaaa1717ac34c946e25d24198590012b0e20
[ "Apache-2.0" ]
2
2019-01-18T16:10:50.000Z
2019-10-24T11:42:31.000Z
fairness/fairness_check.py
Tomcli/ffdl-knative
b68edaaa1717ac34c946e25d24198590012b0e20
[ "Apache-2.0" ]
null
null
null
fairness/fairness_check.py
Tomcli/ffdl-knative
b68edaaa1717ac34c946e25d24198590012b0e20
[ "Apache-2.0" ]
null
null
null
import json import argparse from app import fairness_check if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument('--s3_url', type=str, help='Object storage endpoint') parser.add_argument('--bucket_name', type=str, help='Object storage bucket name') parser.add_argument('--s...
38.37037
91
0.724903
7949878648cf58b251ae02447bc8c7b4ec031103
12,239
py
Python
apero/recipes/nirps_ha/cal_preprocess_nirps_ha.py
njcuk9999/apero-drs
83b043e9f277a011b03e0227c77307961b200901
[ "MIT" ]
1
2021-03-09T17:49:31.000Z
2021-03-09T17:49:31.000Z
apero/recipes/nirps_ha/cal_preprocess_nirps_ha.py
njcuk9999/apero-drs
83b043e9f277a011b03e0227c77307961b200901
[ "MIT" ]
43
2020-10-06T18:42:24.000Z
2022-03-28T21:23:10.000Z
apero/recipes/nirps_ha/cal_preprocess_nirps_ha.py
njcuk9999/apero-drs
83b043e9f277a011b03e0227c77307961b200901
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ # CODE DESCRIPTION HERE Created on 2019-03-05 16:38 @author: ncook Version 0.0.1 """ import numpy as np import os from apero import core from apero import lang from apero.core import constants from apero.science import preprocessing as pp from apero.io import drs_im...
42.644599
80
0.448158
7949881235fb13f4f1c15113ac4d8fe095de4222
3,521
py
Python
trisicell/tl/partition_function/_clt_sampler.py
faridrashidi/trisicell
4db89edd44c03ccb6c7d3477beff0079c3ff8035
[ "BSD-3-Clause" ]
2
2021-07-02T13:53:15.000Z
2021-11-16T03:14:36.000Z
trisicell/tl/partition_function/_clt_sampler.py
faridrashidi/trisicell
4db89edd44c03ccb6c7d3477beff0079c3ff8035
[ "BSD-3-Clause" ]
58
2021-06-14T17:14:39.000Z
2022-03-11T19:32:54.000Z
trisicell/tl/partition_function/_clt_sampler.py
faridrashidi/trisicell
4db89edd44c03ccb6c7d3477beff0079c3ff8035
[ "BSD-3-Clause" ]
null
null
null
import copy from decimal import Decimal import numpy as np import numpy.linalg as la from scipy.special import softmax from sklearn.metrics.pairwise import pairwise_distances def draw_sample_clt(P, greedy, c=1, coef=2): r""" Draw sample clt. :param P: :param greedy: :param c: gaussian kernel par...
28.168
77
0.618574
7949898777f7cb5036a036ca7691a820932c4476
455
py
Python
manoria_project/apps/manoria/utils.py
jtauber/team566
2884e6bbfd4f8ae0f5e0f09fcee645a6552f1d7a
[ "MIT" ]
1
2019-06-13T16:18:47.000Z
2019-06-13T16:18:47.000Z
manoria_project/apps/manoria/utils.py
jtauber/team566
2884e6bbfd4f8ae0f5e0f09fcee645a6552f1d7a
[ "MIT" ]
null
null
null
manoria_project/apps/manoria/utils.py
jtauber/team566
2884e6bbfd4f8ae0f5e0f09fcee645a6552f1d7a
[ "MIT" ]
null
null
null
import random def weighted_choices(weighted_population, k): s = [] for choice, weight in weighted_population: for i in range(weight): s.append(choice) results = [] while s: r = random.choice(s) results.append(r) if len(results) == k: break ...
25.277778
60
0.582418
7949898f8298628db2fce6d26a61a665a90bc92d
569
py
Python
corpora/test.py
mobarski/sandbox
64ac79143750d5dcbd4d0f3abdab6efeb9bdf50c
[ "MIT" ]
null
null
null
corpora/test.py
mobarski/sandbox
64ac79143750d5dcbd4d0f3abdab6efeb9bdf50c
[ "MIT" ]
null
null
null
corpora/test.py
mobarski/sandbox
64ac79143750d5dcbd4d0f3abdab6efeb9bdf50c
[ "MIT" ]
null
null
null
import sqlite3 db=sqlite3.connect('freq.sqlite') sql = "select count(*) from freq where key=='SC1'" sql = "select * from freq where key=='SC2' limit 90" sql = "select sum(freq) from freq" sql = "create table agg as select * from (select token,sum(freq) as freq group by token) order by freq desc, token asc" #db.execut...
35.5625
119
0.706503
79498a5898b17bec205cfd67c896efc2f998e8a3
2,236
py
Python
gui/constants.py
ErlendHer/AlgoView
946c2bb38e2ab3af011281c9672af4fcca84ae87
[ "Apache-2.0" ]
1
2020-11-26T09:37:28.000Z
2020-11-26T09:37:28.000Z
gui/constants.py
ErlendHer/AlgoView
946c2bb38e2ab3af011281c9672af4fcca84ae87
[ "Apache-2.0" ]
null
null
null
gui/constants.py
ErlendHer/AlgoView
946c2bb38e2ab3af011281c9672af4fcca84ae87
[ "Apache-2.0" ]
1
2020-12-09T17:18:12.000Z
2020-12-09T17:18:12.000Z
import os import sys import yaml from yaml.scanner import ScannerError WIDTH = 0 # Height of our _maze in pixels HEIGHT = 0 # Width of our _maze in pixels SCREEN_WIDTH = 0 # Application width in pixels SCREEN_HEIGHT = 0 # Application height in pixels MAZE_LOC = (0, 0) # Location of the first...
26.939759
99
0.605098
79498ac5dee8c52121bb990e1b193bcffdda1e34
16,115
py
Python
omnizart/patch_cnn/app.py
nicolasanjoran/omnizart
b0e74af39b2e3a312ef32dbf0837626b2e043cb6
[ "MIT" ]
1,145
2020-11-13T10:07:47.000Z
2022-03-29T17:35:36.000Z
omnizart/patch_cnn/app.py
nicolasanjoran/omnizart
b0e74af39b2e3a312ef32dbf0837626b2e043cb6
[ "MIT" ]
44
2020-12-29T04:51:16.000Z
2022-03-15T06:52:04.000Z
omnizart/patch_cnn/app.py
nicolasanjoran/omnizart
b0e74af39b2e3a312ef32dbf0837626b2e043cb6
[ "MIT" ]
61
2020-12-19T09:09:42.000Z
2022-03-23T01:26:22.000Z
import os from os.path import join as jpath from datetime import datetime import h5py import numpy as np import tensorflow as tf from mir_eval import sonify from mir_eval.util import midi_to_hz from scipy.io.wavfile import write as wavwrite from omnizart.io import write_yaml, write_agg_f0_results from omnizart.utils ...
42.407895
119
0.662985
79498ba74276fc1ebed3f588a5106bfd97b96987
4,835
py
Python
setup.py
yuttie/pylti
18a608282e0d5bc941beb2eaaeea3b7ad484b399
[ "BSD-2-Clause" ]
55
2015-03-04T02:08:51.000Z
2022-01-21T20:57:38.000Z
setup.py
yuttie/pylti
18a608282e0d5bc941beb2eaaeea3b7ad484b399
[ "BSD-2-Clause" ]
69
2015-01-07T18:38:37.000Z
2021-08-31T23:35:48.000Z
setup.py
yuttie/pylti
18a608282e0d5bc941beb2eaaeea3b7ad484b399
[ "BSD-2-Clause" ]
44
2015-03-28T01:18:15.000Z
2021-12-28T16:45:09.000Z
#!/usr/bin/env python # Copyright 2009-2014 MIT ODL Engineering # # This file is part of PyLTI. # from __future__ import print_function import os import sys if sys.version_info < (2, 7): error = "ERROR: PyLTI requires Python 2.7+ ... exiting." print(error, file=sys.stderr) sys.exit(1) try: from setu...
34.049296
90
0.562358
79498c9430f1e2aa1df0702c9f5ca1ae38c6a19e
241
py
Python
setup.py
mayabenowitz/neuralcraft
00622818e6a078d906399d2be6d641acf040186c
[ "MIT" ]
1
2020-09-28T21:24:25.000Z
2020-09-28T21:24:25.000Z
setup.py
mayabenowitz/neuralcraft
00622818e6a078d906399d2be6d641acf040186c
[ "MIT" ]
null
null
null
setup.py
mayabenowitz/neuralcraft
00622818e6a078d906399d2be6d641acf040186c
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.1.0', description='A Free Massively Multiplayer Online Learning Platform', author='maya benowitz', license='MIT', )
21.909091
72
0.692946
79498c94f4977fcdf537034c99c52026d5146aae
151
py
Python
src/index.py
oprogramador/facebook-graph-analyser
59c80378d95da10a6ec912b5f0fc1cb9500b03a1
[ "MIT" ]
null
null
null
src/index.py
oprogramador/facebook-graph-analyser
59c80378d95da10a6ec912b5f0fc1cb9500b03a1
[ "MIT" ]
null
null
null
src/index.py
oprogramador/facebook-graph-analyser
59c80378d95da10a6ec912b5f0fc1cb9500b03a1
[ "MIT" ]
null
null
null
import GraphAnalyser import FacebookConnector import sys print GraphAnalyser.findShortestPath(FacebookConnector.getFriends, sys.argv[1], sys.argv[2])
25.166667
92
0.847682
79498e62d8821d2dcf0b7b4ec4ce4f28d37cefcf
8,429
py
Python
ppci/utils/codepage.py
dcoles/ppci-mirror
51181db69d933adbb3c5b5ada2bd427d140b1385
[ "BSD-2-Clause" ]
null
null
null
ppci/utils/codepage.py
dcoles/ppci-mirror
51181db69d933adbb3c5b5ada2bd427d140b1385
[ "BSD-2-Clause" ]
null
null
null
ppci/utils/codepage.py
dcoles/ppci-mirror
51181db69d933adbb3c5b5ada2bd427d140b1385
[ "BSD-2-Clause" ]
null
null
null
""" Cool idea to load actual object code into memory and execute it from python using ctypes Credits for idea: Luke Campagnola """ import inspect import sys import mmap import struct import logging import ctypes from ..arch import get_current_arch from .. import ir from ..binutils import debuginfo, layout from ..binu...
31.569288
78
0.609206
79498f88d2c3e79ed25b04394bb3ec7d080f237a
3,212
py
Python
automox_console_sdk/models/api_keys_id_body.py
AutomoxCommunity/automox-console-sdk-python
9e921b138d63f90750e071d0a40e1d7edfa06733
[ "MIT" ]
1
2021-10-05T22:09:10.000Z
2021-10-05T22:09:10.000Z
automox_console_sdk/models/api_keys_id_body.py
AutomoxCommunity/automox-console-sdk-python
9e921b138d63f90750e071d0a40e1d7edfa06733
[ "MIT" ]
1
2021-09-16T06:00:51.000Z
2021-09-16T06:00:51.000Z
automox_console_sdk/models/api_keys_id_body.py
AutomoxCommunity/automox-console-sdk-python
9e921b138d63f90750e071d0a40e1d7edfa06733
[ "MIT" ]
4
2021-09-16T02:35:32.000Z
2022-02-16T01:09:57.000Z
# coding: utf-8 """ Automox Console API API for use with the Automox Console # noqa: E501 OpenAPI spec version: 2021-11-16 Contact: support@automox.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class ApiKeysIdBody(obj...
28.678571
96
0.565691
794990d322bf21f2201943c7b77f810cd74a33a2
941
py
Python
angr/procedures/libc/strcmp.py
mariusmue/angr
f8304c4b1f0097a721a6692b02a45cabaae137c5
[ "BSD-2-Clause" ]
2
2018-05-02T17:41:36.000Z
2020-05-18T02:49:16.000Z
angr/procedures/libc/strcmp.py
mariusmue/angr
f8304c4b1f0097a721a6692b02a45cabaae137c5
[ "BSD-2-Clause" ]
null
null
null
angr/procedures/libc/strcmp.py
mariusmue/angr
f8304c4b1f0097a721a6692b02a45cabaae137c5
[ "BSD-2-Clause" ]
1
2022-02-10T02:29:38.000Z
2022-02-10T02:29:38.000Z
import angr from angr.sim_type import SimTypeString, SimTypeInt import logging l = logging.getLogger("angr.procedures.libc.strcmp") class strcmp(angr.SimProcedure): #pylint:disable=arguments-differ def run(self, a_addr, b_addr, wchar=False, ignore_case=False): self.argument_types = {0: self.ty_ptr(Si...
40.913043
168
0.706695
794991186df01f8dcad2311738a088ba3bd27824
4,899
py
Python
kitchen/kitchen2/tests/test_text_utf8.py
crylearner/RobotFrameworkAppiumIntegration
895b96025dbc04c152b820faf62ba8525dd7af78
[ "Apache-2.0" ]
2
2017-08-10T16:14:15.000Z
2021-11-28T10:47:46.000Z
kitchen/kitchen2/tests/test_text_utf8.py
crylearner/RobotFrameworkAppiumIntegration
895b96025dbc04c152b820faf62ba8525dd7af78
[ "Apache-2.0" ]
null
null
null
kitchen/kitchen2/tests/test_text_utf8.py
crylearner/RobotFrameworkAppiumIntegration
895b96025dbc04c152b820faf62ba8525dd7af78
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # import unittest from nose import tools import warnings from kitchen.text import utf8 import base_classes class TestUTF8(base_classes.UnicodeTestData, unittest.TestCase): def setUp(self): # All of the utf8* functions are deprecated warnings.simplefilter('ignore', Depreca...
52.677419
227
0.664013
7949911a29de6bbc08f9ad875797e5a2e7b9e706
43,349
py
Python
app/baremetal_service/repository/serializers.py
21vcloud/Controller
63169d220f412330a22e3a2fe9964c73893d4e0f
[ "Apache-2.0" ]
null
null
null
app/baremetal_service/repository/serializers.py
21vcloud/Controller
63169d220f412330a22e3a2fe9964c73893d4e0f
[ "Apache-2.0" ]
null
null
null
app/baremetal_service/repository/serializers.py
21vcloud/Controller
63169d220f412330a22e3a2fe9964c73893d4e0f
[ "Apache-2.0" ]
null
null
null
from django.db import models from rest_framework import serializers from baremetal_service.repository import service_model from drf_yasg import openapi class NoneMeta(models.Model): class Meta: managed = False db_table = 'NoneMeta' CookiesParameter = [ openapi.Parameter( name='COOKIE...
39.44404
123
0.727122
794992c4f0c79775e61c16ae7330e2f96a83c284
2,633
py
Python
projects/cats/gui_files/leaderboard_integrity.py
jjllzhang/CS61A
57b68c7c06999210d96499f6d84e4ec99085d396
[ "MIT" ]
8
2020-07-28T11:10:49.000Z
2021-05-29T15:27:17.000Z
11-Project-CATS/cats/cats/gui_files/leaderboard_integrity.py
ericchen12377/CS61A_LearningDoc
31f23962b0e2834795bf61eeb0f4884cc5da1809
[ "MIT" ]
null
null
null
11-Project-CATS/cats/cats/gui_files/leaderboard_integrity.py
ericchen12377/CS61A_LearningDoc
31f23962b0e2834795bf61eeb0f4884cc5da1809
[ "MIT" ]
1
2022-02-13T08:28:27.000Z
2022-02-13T08:28:27.000Z
import base64 import json import os import random import time from functools import wraps from queue import Queue from threading import Thread import cats fernet = None COMMON_WORDS_SET = set(cats.lines_from_file('data/common_words.txt')) CAPTCHA_QUEUE_LEN = 200 CAPTCHA_LENGTH = 10 CAPTCHA_WORD_LEN = 6 captcha_queu...
23.508929
91
0.643752
7949944cb5c8f3d960ba0835c71b50de9030b414
2,809
py
Python
src/pymor/__init__.py
pdiercks/pymor
e94f05714d666a929113543c49e88f8f494d64e1
[ "Unlicense" ]
null
null
null
src/pymor/__init__.py
pdiercks/pymor
e94f05714d666a929113543c49e88f8f494d64e1
[ "Unlicense" ]
4
2022-03-17T10:07:38.000Z
2022-03-30T12:41:06.000Z
src/pymor/__init__.py
pdiercks/pymor
e94f05714d666a929113543c49e88f8f494d64e1
[ "Unlicense" ]
null
null
null
# This file is part of the pyMOR project (http://www.pymor.org). # Copyright 2013-2020 pyMOR developers and contributors. All rights reserved. # License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) import os def _init_mpi(): """provides a way to manually set the thread init mode for MPI if...
35.556962
121
0.673549
794994c4e2b44e4ea842caa941d2387d73afffc5
5,402
py
Python
waldur_core/cost_tracking/tests/test_price_list_item.py
opennode/nodeconductor
d6c17a9592bb6c49c33567542eef8d099605a46a
[ "MIT" ]
23
2015-01-15T13:29:53.000Z
2017-05-04T05:12:24.000Z
waldur_core/cost_tracking/tests/test_price_list_item.py
opennode/nodeconductor
d6c17a9592bb6c49c33567542eef8d099605a46a
[ "MIT" ]
null
null
null
waldur_core/cost_tracking/tests/test_price_list_item.py
opennode/nodeconductor
d6c17a9592bb6c49c33567542eef8d099605a46a
[ "MIT" ]
8
2015-01-11T18:51:47.000Z
2017-06-29T18:53:12.000Z
from ddt import ddt, data from rest_framework import status from waldur_core.structure.tests import factories as structure_factories from . import factories from .base_test import BaseCostTrackingTest from .. import models @ddt class PriceListItemListTest(BaseCostTrackingTest): def setUp(self): super(P...
45.779661
115
0.735468
7949980584e76fae0bc7a8d70b5c5d9ea227d39a
18,477
py
Python
sdk/python/pulumi_azure_nextgen/network/v20181001/security_rule.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/network/v20181001/security_rule.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/network/v20181001/security_rule.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
61.795987
2,495
0.697083
79499a6ef6b66fd7630e53f9e9779b674794daae
1,477
py
Python
examples/simple_identification.py
murad9001/bluesquall.recurvise_least_squares
83510c575a446ae4be4d031fb16cc42a5724c12f
[ "MIT" ]
8
2015-05-27T08:00:27.000Z
2021-06-02T04:07:43.000Z
examples/simple_identification.py
murad9001/bluesquall.recurvise_least_squares
83510c575a446ae4be4d031fb16cc42a5724c12f
[ "MIT" ]
null
null
null
examples/simple_identification.py
murad9001/bluesquall.recurvise_least_squares
83510c575a446ae4be4d031fb16cc42a5724c12f
[ "MIT" ]
4
2017-07-19T10:59:55.000Z
2021-11-24T20:47:08.000Z
#!/usr/bin/env python """ Simple RLS identification example ================================= """ import numpy as np import rlspy def generate_random_truth_data(order = 3, sigma = 1): return np.random.normal(0, sigma, [order, 1]) def generate_random_coupling_matrix(shape = [4, 3]): return np.random.normal(...
25.465517
77
0.604604
79499b28541ca712e51db51139ab1bb60cc2c643
109,645
py
Python
django/db/models/sql/query.py
Manny27nyc/django
28f66b2783e52d5be51887c31cd2be907b820e11
[ "BSD-3-Clause", "0BSD" ]
1
2021-11-07T12:42:43.000Z
2021-11-07T12:42:43.000Z
django/db/models/sql/query.py
Manny27nyc/django
28f66b2783e52d5be51887c31cd2be907b820e11
[ "BSD-3-Clause", "0BSD" ]
1
2016-02-24T19:56:50.000Z
2016-04-03T11:29:06.000Z
django/db/models/sql/query.py
Manny27nyc/django
28f66b2783e52d5be51887c31cd2be907b820e11
[ "BSD-3-Clause", "0BSD" ]
null
null
null
""" Create SQL statements for QuerySets. The code in here encapsulates all of the SQL construction so that QuerySets themselves do not have to (and could be backed by things other than SQL databases). The abstraction barrier only works one way: this module has to know all about the internals of models in order to get ...
44.661914
119
0.608874
79499c0b454d3795080313931f4ce76b1c451758
9,830
py
Python
kubernetes/client/models/v1_api_group.py
woqer/python
3a6fe8231cefe1fa39a0a69d4b2f33044ab32745
[ "Apache-2.0" ]
1
2019-07-12T05:38:06.000Z
2019-07-12T05:38:06.000Z
kubernetes/client/models/v1_api_group.py
woqer/python
3a6fe8231cefe1fa39a0a69d4b2f33044ab32745
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1_api_group.py
woqer/python
3a6fe8231cefe1fa39a0a69d4b2f33044ab32745
[ "Apache-2.0" ]
1
2021-05-18T12:25:56.000Z
2021-05-18T12:25:56.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.11.3 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re...
36.542751
625
0.649339
79499cf1eb3e39dc24bb2fc222a931ba2e07eed1
941
py
Python
tst/regression/scripts/tests/curvilinear/blast_cyl.py
luminoctum/athena-crm
525ad5d1c442f9f6d66f2307eed88cd6fb723810
[ "BSD-3-Clause" ]
null
null
null
tst/regression/scripts/tests/curvilinear/blast_cyl.py
luminoctum/athena-crm
525ad5d1c442f9f6d66f2307eed88cd6fb723810
[ "BSD-3-Clause" ]
null
null
null
tst/regression/scripts/tests/curvilinear/blast_cyl.py
luminoctum/athena-crm
525ad5d1c442f9f6d66f2307eed88cd6fb723810
[ "BSD-3-Clause" ]
null
null
null
# Regression test to check whether blast wave remains spherical in cylindrical coords # Modules import numpy as np import math import sys import scripts.utils.athena as athena import scripts.utils.comparison as comparison # Prepare Athena++ def prepare(): athena.configure( prob='blast', coord='cylindric...
23.525
85
0.684378
79499dd5422c38e64b12c582fa809e4353e9c9e8
4,199
py
Python
clever_player.py
MarcusRainbow/TwoPlayerGame
a10c0a5f949bcb6e03bdf8197c513511b3c29f98
[ "MIT" ]
null
null
null
clever_player.py
MarcusRainbow/TwoPlayerGame
a10c0a5f949bcb6e03bdf8197c513511b3c29f98
[ "MIT" ]
null
null
null
clever_player.py
MarcusRainbow/TwoPlayerGame
a10c0a5f949bcb6e03bdf8197c513511b3c29f98
[ "MIT" ]
null
null
null
from player import Player from board import Board from game import Game from random import choice from typing import Tuple class CleverPlayer(Player): """ A player that tries to win, assuming it is playing against the same sort of player. """ def __init__(self, game: Game, player: int, d...
36.513043
95
0.522029
79499e9b40ba6bf1da815bb1ab4c657936c1467a
1,481
py
Python
src/ralph/lib/transitions/decorators.py
DoNnMyTh/ralph
97b91639fa68965ad3fd9d0d2652a6545a2a5b72
[ "Apache-2.0" ]
1,668
2015-01-01T12:51:20.000Z
2022-03-29T09:05:35.000Z
src/ralph/lib/transitions/decorators.py
hq-git/ralph
e2448caf02d6e5abfd81da2cff92aefe0a534883
[ "Apache-2.0" ]
2,314
2015-01-02T13:26:26.000Z
2022-03-29T04:06:03.000Z
src/ralph/lib/transitions/decorators.py
hq-git/ralph
e2448caf02d6e5abfd81da2cff92aefe0a534883
[ "Apache-2.0" ]
534
2015-01-05T12:40:28.000Z
2022-03-29T21:10:12.000Z
# -*- coding: utf-8 -*- from functools import wraps from ralph.lib.transitions.conf import TRANSITION_ATTR_TAG def transition_action(method=None, **kwargs): def decorator(func): func.verbose_name = kwargs.get( 'verbose_name', func.__name__.replace('_', ' ').capitalize() ) func...
33.659091
75
0.610398
79499ef663e49ecb1a079713762890f2503c20ef
19,529
py
Python
plotters.py
chris142857/dad_final
e791cf85d4eea2da692c59f371518494caf0670d
[ "MIT" ]
null
null
null
plotters.py
chris142857/dad_final
e791cf85d4eea2da692c59f371518494caf0670d
[ "MIT" ]
null
null
null
plotters.py
chris142857/dad_final
e791cf85d4eea2da692c59f371518494caf0670d
[ "MIT" ]
null
null
null
""" # @Description: Plot utilities for face finding applications """ import os import matplotlib.pyplot as plt import numpy as np from matplotlib.collections import LineCollection as lc from matplotlib.colors import colorConverter from mpl_toolkits.mplot3d.art3d import Line3DCollection as lc3d from scipy.interpolate i...
38.90239
146
0.598443
79499f319389ea63c9924ae6d6656d6fedfd53eb
53,434
py
Python
nio/responses.py
tkjenll/matrix-nio
8ac48ed0fda5da129c008e129305a512e8619cde
[ "Apache-2.0" ]
1
2021-11-19T23:41:23.000Z
2021-11-19T23:41:23.000Z
nio/responses.py
METHLAB-LTD/matrix-nio
8ac48ed0fda5da129c008e129305a512e8619cde
[ "Apache-2.0" ]
null
null
null
nio/responses.py
METHLAB-LTD/matrix-nio
8ac48ed0fda5da129c008e129305a512e8619cde
[ "Apache-2.0" ]
1
2021-11-19T23:41:26.000Z
2021-11-19T23:41:26.000Z
# -*- coding: utf-8 -*- # Copyright © 2018 Damir Jelić <poljar@termina.org.uk> # Copyright © 2020 Famedly GmbH # # Permission to use, copy, modify, and/or distribute this software for # any purpose with or without fee is hereby granted, provided that the # above copyright notice and this permission notice appear in al...
27.844711
96
0.657896
79499fbffbd5e6dd955306e5be5c6c951cd40791
394
py
Python
examples/__init__.py
rishavpramanik/mealpy
d4a4d5810f15837764e4ee61517350fef3dc92b3
[ "MIT" ]
null
null
null
examples/__init__.py
rishavpramanik/mealpy
d4a4d5810f15837764e4ee61517350fef3dc92b3
[ "MIT" ]
null
null
null
examples/__init__.py
rishavpramanik/mealpy
d4a4d5810f15837764e4ee61517350fef3dc92b3
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Created by "Thieu" at 10:07, 02/03/2022 ----------% # Email: nguyenthieu2102@gmail.com % # Github: https://github.com/thieu1995 % ...
65.666667
132
0.253807
7949a2e9b1aa25b53d4552e2044ecdd7b2e275c7
6,900
py
Python
src/solutions/common/bizz/bulk_invite.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
src/solutions/common/bizz/bulk_invite.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
src/solutions/common/bizz/bulk_invite.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Green Valley Belgium NV # # 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 appl...
42.592593
155
0.708841
7949a2fbf4bf59334f5d269f90370e3d17e5be01
3,291
py
Python
covidfaq/scrape/convert_scrape.py
dialoguemd/covidfaq
a493ed72e07b83cdf736684ce1cc9ee47b9bfb3f
[ "MIT" ]
3
2020-06-22T17:05:22.000Z
2021-07-18T20:51:57.000Z
covidfaq/scrape/convert_scrape.py
dialoguemd/covidfaq
a493ed72e07b83cdf736684ce1cc9ee47b9bfb3f
[ "MIT" ]
25
2020-03-21T14:58:05.000Z
2021-04-02T14:27:28.000Z
covidfaq/scrape/convert_scrape.py
dialoguemd/covidfaq
a493ed72e07b83cdf736684ce1cc9ee47b9bfb3f
[ "MIT" ]
6
2020-03-21T23:33:02.000Z
2020-07-27T15:12:22.000Z
import argparse import json import logging import os logger = logging.getLogger(__name__) def collapse_jsons(json_files): collapsed = {} for json_file in json_files: with open(json_file, "r", encoding="utf-8") as fh: faq = json.load(fh) for k, v in faq.items(): ...
30.757009
96
0.614099
7949a3f6da293abdd85512209242bae76ab4d816
13,672
py
Python
tensorflow/contrib/eager/python/evaluator.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/contrib/eager/python/evaluator.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/eager/python/evaluator.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
31
2018-09-11T02:17:17.000Z
2021-12-15T10:33:35.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.654155
96
0.684391
7949a41509759ff35a5b27c6e39e494eb8ab73d7
2,096
py
Python
extensions/.stubs/clrclasses/__clrclasses__/System/Media/__init__.py
vicwjb/Pycad
7391cd694b7a91ad9f9964ec95833c1081bc1f84
[ "MIT" ]
1
2020-03-25T03:27:24.000Z
2020-03-25T03:27:24.000Z
extensions/.stubs/clrclasses/__clrclasses__/System/Media/__init__.py
vicwjb/Pycad
7391cd694b7a91ad9f9964ec95833c1081bc1f84
[ "MIT" ]
null
null
null
extensions/.stubs/clrclasses/__clrclasses__/System/Media/__init__.py
vicwjb/Pycad
7391cd694b7a91ad9f9964ec95833c1081bc1f84
[ "MIT" ]
null
null
null
from __clrclasses__.System import EventHandler as _n_0_t_0 from __clrclasses__.System.ComponentModel import Component as _n_1_t_0 from __clrclasses__.System.ComponentModel import IComponent as _n_1_t_1 from __clrclasses__.System.ComponentModel import AsyncCompletedEventHandler as _n_1_t_2 from __clrclasses__.System.IO ...
41.92
87
0.676527
7949a423d406c26f49a6ef631947026a6f579f79
1,858
py
Python
app/pathfinder.py
Pulotum/BattleSnake2019
87b53fd38ad158b73c3eeb9a651d5339edf103cf
[ "MIT" ]
null
null
null
app/pathfinder.py
Pulotum/BattleSnake2019
87b53fd38ad158b73c3eeb9a651d5339edf103cf
[ "MIT" ]
1
2019-11-06T23:57:51.000Z
2019-11-06T23:57:51.000Z
app/pathfinder.py
Pulotum/BattleSnake
87b53fd38ad158b73c3eeb9a651d5339edf103cf
[ "MIT" ]
null
null
null
import returnMap import returnHazards import mapCoordinates def find_path(data, start, goal): width = data['board']['width'] height = data['board']['height'] map = returnMap.returnMap(data) # dist and visited arrays for visited and unvisited vertices dist = [10000 for x in range(width*height)] ...
29.492063
87
0.583961
7949a471ecdfabe8772a8ec1beedf01c56e025af
1,273
py
Python
examples/units_and_coordinates/planet_locations.py
fluxtransport/sunpy
351d3edca97e779179f367670292c95574c7a222
[ "BSD-2-Clause" ]
1
2021-07-03T14:08:05.000Z
2021-07-03T14:08:05.000Z
examples/units_and_coordinates/planet_locations.py
fluxtransport/sunpy
351d3edca97e779179f367670292c95574c7a222
[ "BSD-2-Clause" ]
null
null
null
examples/units_and_coordinates/planet_locations.py
fluxtransport/sunpy
351d3edca97e779179f367670292c95574c7a222
[ "BSD-2-Clause" ]
null
null
null
""" =================================== Getting the location of the planets =================================== How to get the position of planetary bodies im the solar system using `astropy's solar system ephemeris <http://docs.astropy.org/en/stable/coordinates/solarsystem.html#solar-system-ephemerides>`__ informatio...
39.78125
149
0.628437
7949a4adf673f5c810c5944cdfd7ae2475e44266
7,276
py
Python
wordpress/api.py
DivvyHQ/wp-api-python
6028d265c00f5fb6db0aa10520d649c6696d0dd0
[ "MIT" ]
null
null
null
wordpress/api.py
DivvyHQ/wp-api-python
6028d265c00f5fb6db0aa10520d649c6696d0dd0
[ "MIT" ]
1
2018-07-20T13:46:59.000Z
2018-10-31T17:51:14.000Z
wordpress/api.py
DivvyHQ/wp-api-python
6028d265c00f5fb6db0aa10520d649c6696d0dd0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Wordpress API Class """ from __future__ import unicode_literals import logging from json import dumps as jsonencode from wordpress.auth import BasicAuth, OAuth, OAuth_3Leg, NoAuth from wordpress.helpers import StrUtils, UrlUtils from wordpress.transport import API_Requests_Wrapper __titl...
33.376147
95
0.574079
7949a4e3925ae45f67d1099e076495f2842afb16
5,058
py
Python
websecurityscanner/noxfile.py
hugovk/google-cloud-python
b387134827dbc3be0e1b431201e0875798002fda
[ "Apache-2.0" ]
1
2019-03-26T21:44:51.000Z
2019-03-26T21:44:51.000Z
websecurityscanner/noxfile.py
hugovk/google-cloud-python
b387134827dbc3be0e1b431201e0875798002fda
[ "Apache-2.0" ]
40
2019-07-16T10:04:48.000Z
2020-01-20T09:04:59.000Z
websecurityscanner/noxfile.py
hugovk/google-cloud-python
b387134827dbc3be0e1b431201e0875798002fda
[ "Apache-2.0" ]
2
2019-07-18T00:05:31.000Z
2019-11-27T14:17:22.000Z
# -*- coding: utf-8 -*- # # Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
31.416149
84
0.653618
7949a58fe6ea4495f40bf1fb98bc2818e79a23ba
5,347
py
Python
voicefixer/base.py
anonymous20211004/iclr2022-vf
01464bab64812a299d3e63fbf280ccb8e3c5ab9c
[ "MIT" ]
1
2022-02-21T07:49:20.000Z
2022-02-21T07:49:20.000Z
voicefixer/base.py
anonymous20211004/iclr2022-vf
01464bab64812a299d3e63fbf280ccb8e3c5ab9c
[ "MIT" ]
null
null
null
voicefixer/base.py
anonymous20211004/iclr2022-vf
01464bab64812a299d3e63fbf280ccb8e3c5ab9c
[ "MIT" ]
null
null
null
import librosa.display from voicefixer.tools.pytorch_util import * from voicefixer.tools.wav import * from voicefixer.restorer.model import VoiceFixer as voicefixer_fe import os EPS=1e-8 class VoiceFixer(): def __init__(self): self._model = voicefixer_fe(channels=2, sample_rate=44100) self._model ...
42.436508
166
0.587993
7949a60a26a342498163f65cde07a95bd785da98
7,392
py
Python
src/clients/python/api_v1/examples/simple_shm_string_client.py
AliAzG/triton-inference-server
fbce250035d049d13f32c362e2d76a5cb787da51
[ "BSD-3-Clause" ]
null
null
null
src/clients/python/api_v1/examples/simple_shm_string_client.py
AliAzG/triton-inference-server
fbce250035d049d13f32c362e2d76a5cb787da51
[ "BSD-3-Clause" ]
null
null
null
src/clients/python/api_v1/examples/simple_shm_string_client.py
AliAzG/triton-inference-server
fbce250035d049d13f32c362e2d76a5cb787da51
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # * Redistributions of source code must retain the above copyright # notice...
49.610738
106
0.71131
7949a7a44fab71462847083e9085e08d237760af
4,790
py
Python
homeassistant/components/sensor/dht.py
michaelarnauts/home-assistant
7d905e6c0c99a4454de26d63af0581b454f01ca1
[ "MIT" ]
1
2017-12-02T11:40:01.000Z
2017-12-02T11:40:01.000Z
homeassistant/components/sensor/dht.py
michaelarnauts/home-assistant
7d905e6c0c99a4454de26d63af0581b454f01ca1
[ "MIT" ]
null
null
null
homeassistant/components/sensor/dht.py
michaelarnauts/home-assistant
7d905e6c0c99a4454de26d63af0581b454f01ca1
[ "MIT" ]
null
null
null
""" homeassistant.components.sensor.dht ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Adafruit DHT temperature and humidity sensor. You need a Python3 compatible version of the Adafruit_Python_DHT library (e.g. https://github.com/mala-zaba/Adafruit_Python_DHT, also see requirements.txt). As this requires access to the...
29.030303
76
0.650522
7949a8bc4ea4939bd8bb6c9c28700c7947e7e546
15,137
py
Python
zhusuan/legacy/variational_legacy.py
weiwang2330/BayesNeuralNet
6be81289d9bc46657a1b14ded440c8160721a464
[ "MIT" ]
null
null
null
zhusuan/legacy/variational_legacy.py
weiwang2330/BayesNeuralNet
6be81289d9bc46657a1b14ded440c8160721a464
[ "MIT" ]
null
null
null
zhusuan/legacy/variational_legacy.py
weiwang2330/BayesNeuralNet
6be81289d9bc46657a1b14ded440c8160721a464
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import print_function from __future__ import division import warnings import tensorflow as tf import six from six.moves import zip, map from tensorflow.python.training import moving_averages from zhusuan.utils import...
47.303125
79
0.675101
7949a9ada8a9da49612835b859316455db3c0fbd
1,763
py
Python
sahara/plugins/mapr/versions/version_handler_factory.py
ksshanam/sahara
0d259f7a71447cd0cefe4f11184cc2ee335f4e33
[ "Apache-2.0" ]
null
null
null
sahara/plugins/mapr/versions/version_handler_factory.py
ksshanam/sahara
0d259f7a71447cd0cefe4f11184cc2ee335f4e33
[ "Apache-2.0" ]
1
2020-10-06T07:50:12.000Z
2020-10-06T07:50:12.000Z
sahara/plugins/mapr/versions/version_handler_factory.py
ksshanam/sahara
0d259f7a71447cd0cefe4f11184cc2ee335f4e33
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2015, MapR Technologies # # 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...
30.396552
75
0.695973
7949aac7eedc2737d3d8740ce795efdb018af698
141
py
Python
pyroSAR/tests/test_snap.py
ibaris/pyroSAR
04924500c61674a68e9dc56c1f71b7dd195c480a
[ "MIT" ]
1
2020-03-09T10:33:06.000Z
2020-03-09T10:33:06.000Z
pyroSAR/tests/test_snap.py
ibaris/pyroSAR
04924500c61674a68e9dc56c1f71b7dd195c480a
[ "MIT" ]
null
null
null
pyroSAR/tests/test_snap.py
ibaris/pyroSAR
04924500c61674a68e9dc56c1f71b7dd195c480a
[ "MIT" ]
null
null
null
from pyroSAR.snap import geocode def test_geocode(tmpdir, testdata): scene = testdata['s1'] geocode(scene, str(tmpdir), test=True)
20.142857
42
0.716312
7949aade4a27764ef39330da2261e19b21c9c51f
351
py
Python
renamer.py
Billthedeve/QuRen-Rename-tool
d8c989183a97b607187941b74983062ad6b5ae37
[ "MIT" ]
null
null
null
renamer.py
Billthedeve/QuRen-Rename-tool
d8c989183a97b607187941b74983062ad6b5ae37
[ "MIT" ]
null
null
null
renamer.py
Billthedeve/QuRen-Rename-tool
d8c989183a97b607187941b74983062ad6b5ae37
[ "MIT" ]
null
null
null
import os fpath = input("Enter the directory the file is in... ") if "C:\\" not in fpath: print("invalid directory. File must be in C:/") if "C:\\" in fpath: os.system("cd " + fpath) name = input("Enter file name...") newname = input("Enter new file name...") os.system("ren " + name + " " + newna...
23.4
55
0.586895
7949abc36838e16ca57348298b7a85f1c479f4cb
1,872
py
Python
streamblocks/migrations/0003_auto_20200207_1852.py
andywar65/rpnew_root
9281cb16783313a1cd23b1394f2bad485ac1b33d
[ "BSD-2-Clause" ]
null
null
null
streamblocks/migrations/0003_auto_20200207_1852.py
andywar65/rpnew_root
9281cb16783313a1cd23b1394f2bad485ac1b33d
[ "BSD-2-Clause" ]
null
null
null
streamblocks/migrations/0003_auto_20200207_1852.py
andywar65/rpnew_root
9281cb16783313a1cd23b1394f2bad485ac1b33d
[ "BSD-2-Clause" ]
null
null
null
# Generated by Django 3.0.2 on 2020-02-07 17:52 from django.db import migrations, models import filebrowser.fields class Migration(migrations.Migration): dependencies = [ ('streamblocks', '0002_indexedparagraph_height'), ] operations = [ migrations.CreateModel( name='Downloa...
39.829787
225
0.59188
7949abd1c9e92bd409a495431b195a20387797cc
1,075
py
Python
setup.py
negillett/osc-ingest-tools
c1536771f8a3dee8b0b155542cb57c3d46ab3f21
[ "Apache-2.0" ]
null
null
null
setup.py
negillett/osc-ingest-tools
c1536771f8a3dee8b0b155542cb57c3d46ab3f21
[ "Apache-2.0" ]
null
null
null
setup.py
negillett/osc-ingest-tools
c1536771f8a3dee8b0b155542cb57c3d46ab3f21
[ "Apache-2.0" ]
null
null
null
import pathlib from setuptools import find_packages, setup # The directory containing this file HERE = pathlib.Path(__file__).resolve().parent # The text of the README file is used as a description README = (HERE / "README.md").read_text() setup( name="osc-ingest-tools", version="0.3.1", description="py...
33.59375
111
0.686512
7949ac0ecb939062524779c2c9288726fd866ad9
35,892
py
Python
flavio/statistics/test_probability.py
Felicia56/flavio
ea735bd8febbb961d249eddf338a4960c1fbee69
[ "MIT" ]
61
2016-03-09T16:19:39.000Z
2022-03-30T00:55:51.000Z
flavio/statistics/test_probability.py
Felicia56/flavio
ea735bd8febbb961d249eddf338a4960c1fbee69
[ "MIT" ]
167
2016-03-15T15:25:57.000Z
2022-02-27T22:19:22.000Z
flavio/statistics/test_probability.py
Felicia56/flavio
ea735bd8febbb961d249eddf338a4960c1fbee69
[ "MIT" ]
57
2016-03-15T14:24:23.000Z
2022-01-14T01:00:03.000Z
import unittest import numpy as np import numpy.testing as npt import scipy.stats from math import pi, sqrt, exp, log from flavio.statistics.probability import * import itertools import yaml class TestProbability(unittest.TestCase): def test_multiv_normal(self): # test that the rescaling of the Multivariat...
53.811094
135
0.615374
7949ac1d83c40c7ff3d1e5ad8de3e58b41c1808d
6,833
py
Python
tunas/depthwise_initializers_test.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
23,901
2018-10-04T19:48:53.000Z
2022-03-31T21:27:42.000Z
tunas/depthwise_initializers_test.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
891
2018-11-10T06:16:13.000Z
2022-03-31T10:42:34.000Z
tunas/depthwise_initializers_test.py
deepneuralmachine/google-research
d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231
[ "Apache-2.0" ]
6,047
2018-10-12T06:31:02.000Z
2022-03-31T13:59:28.000Z
# coding=utf-8 # Copyright 2021 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
35.404145
74
0.687985
7949ac7c98e798d33250e6e8b74e8adb5d136331
1,856
py
Python
test/functional/rpc_timestampindex.py
Lucky1689/ukcoin
11bcd6ded7b11a7179e32f1bf0d6f75615c0dde1
[ "MIT" ]
null
null
null
test/functional/rpc_timestampindex.py
Lucky1689/ukcoin
11bcd6ded7b11a7179e32f1bf0d6f75615c0dde1
[ "MIT" ]
null
null
null
test/functional/rpc_timestampindex.py
Lucky1689/ukcoin
11bcd6ded7b11a7179e32f1bf0d6f75615c0dde1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2018 The Bitcoin Core developers # Copyright (c) 2017 The Raven Core developers # Copyright (c) 2018 The Rito Core developers # Copyright (c) 2020 The Ukcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource....
27.701493
69
0.634698
7949ad5253e2bae10b32bd84627ba89dda338ed4
339
py
Python
src/AddressBook/migrations/0002_auto_20180101_1700.py
thunderoy/AddressBook
0d848c1732585c990f057b8e99b4b9290d0b043c
[ "MIT" ]
1
2018-06-13T07:45:13.000Z
2018-06-13T07:45:13.000Z
src/AddressBook/migrations/0002_auto_20180101_1700.py
thunderoy/AddressBook
0d848c1732585c990f057b8e99b4b9290d0b043c
[ "MIT" ]
null
null
null
src/AddressBook/migrations/0002_auto_20180101_1700.py
thunderoy/AddressBook
0d848c1732585c990f057b8e99b4b9290d0b043c
[ "MIT" ]
null
null
null
# Generated by Django 2.0 on 2018-01-01 17:00 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('admin', '0002_logentry_remove_auto_add'), ('AddressBook', '0001_initial'), ] operations = [ migrations.DeleteModel( name='AppUser'...
18.833333
51
0.60472
7949ad602c0a3aa0ff475a786ab5b898c4bccbf8
1,618
py
Python
src/test_receive_addresses/test_receive_addresses.py
ska-telescope/sdp-workflows-procfunc
ef6e7be9584a006e936139ae653902a41af4d906
[ "BSD-3-Clause" ]
null
null
null
src/test_receive_addresses/test_receive_addresses.py
ska-telescope/sdp-workflows-procfunc
ef6e7be9584a006e936139ae653902a41af4d906
[ "BSD-3-Clause" ]
null
null
null
src/test_receive_addresses/test_receive_addresses.py
ska-telescope/sdp-workflows-procfunc
ef6e7be9584a006e936139ae653902a41af4d906
[ "BSD-3-Clause" ]
null
null
null
""" Workflow to test generation of receive addresses. The purpose of this workflow is to test the mechanism for generating SDP receive addresses from the channel link map contained in the SBI. The workflow picks it up from there, uses it to generate the receive addresses for each scan type and writes them to the proce...
26.966667
79
0.767614
7949ae13bd1b600938681275bf3ee97309e995e4
1,652
py
Python
allure-pytest/setup.py
wuhuizuo/allure-python
7285adf0690bb703225d45e236594581bfb62728
[ "Apache-2.0" ]
1
2018-07-23T16:09:54.000Z
2018-07-23T16:09:54.000Z
allure-pytest/setup.py
hosniadala-dt/allure-python
7285adf0690bb703225d45e236594581bfb62728
[ "Apache-2.0" ]
null
null
null
allure-pytest/setup.py
hosniadala-dt/allure-python
7285adf0690bb703225d45e236594581bfb62728
[ "Apache-2.0" ]
1
2020-08-05T05:40:44.000Z
2020-08-05T05:40:44.000Z
import os,sys from setuptools import setup from pkg_resources import require, DistributionNotFound, VersionConflict try: require('pytest-allure-adaptor') print(""" You have pytest-allure-adaptor installed. You need to remove pytest-allure-adaptor from your site-packages before installing allure-pyt...
27.533333
76
0.66586
7949ae3669a030b8cf6b5885d53ca361ba9a6f32
4,468
py
Python
test/confs/sugar.conf.py
Thecarisma/themata
09a8ce670479ea4e9b5a26457f5cb290728f604a
[ "CC0-1.0" ]
2
2020-04-27T10:14:54.000Z
2020-04-28T01:24:59.000Z
test/confs/sugar.conf.py
Thecarisma/themata
09a8ce670479ea4e9b5a26457f5cb290728f604a
[ "CC0-1.0" ]
28
2020-05-16T19:50:54.000Z
2021-12-02T07:38:03.000Z
test/confs/sugar.conf.py
Thecarisma/themata
09a8ce670479ea4e9b5a26457f5cb290728f604a
[ "CC0-1.0" ]
null
null
null
import os import themata project = 'First Doc' copyright = '2020, Adewale Azeez' author = 'Adewale Azeez' html_theme_path = [themata.get_html_theme_path()] extensions = ['recommonmark'] source_suffix = { '.rst': 'restructuredtext', '.txt': 'markdown', '.md': 'markdown', } html_theme_opti...
32.613139
169
0.450761
7949b07f350c247420b50c9a0d607ded2b700d97
4,377
py
Python
db-server/dbcon/views.py
JannisBush/xs-leaks-browser-web
15ed76a87c1c30e15cd7d0b070e2853d17d322bc
[ "MIT" ]
null
null
null
db-server/dbcon/views.py
JannisBush/xs-leaks-browser-web
15ed76a87c1c30e15cd7d0b070e2853d17d322bc
[ "MIT" ]
null
null
null
db-server/dbcon/views.py
JannisBush/xs-leaks-browser-web
15ed76a87c1c30e15cd7d0b070e2853d17d322bc
[ "MIT" ]
null
null
null
import json from django.http import HttpResponse from .models import (Result, Browser, Test, ObjectProperties, GlobalProperties, Events, Observation, WindowProperties, LeakResult, CookieSecFetch) import logging logger = logging.getLogger(__name__) def save_data_v2(request): try: message = "Success" ...
44.212121
112
0.60658
7949b1469ec730f420fdf776fbf81d61e17bfd7a
2,880
py
Python
apps/hashblock_cli/scripts/ucum_to_assets.py
hashblock/sawtooth-uom
0b8f131ee4f2a3a70a19f21bc88fe064d39fe5cd
[ "MIT" ]
5
2018-04-05T07:02:04.000Z
2018-07-10T09:39:03.000Z
apps/hashblock_cli/scripts/ucum_to_assets.py
hashblock/sawtooth-uom
0b8f131ee4f2a3a70a19f21bc88fe064d39fe5cd
[ "MIT" ]
89
2018-03-11T14:46:07.000Z
2018-09-07T14:50:42.000Z
apps/hashblock_cli/scripts/ucum_to_assets.py
hashblock/sawtooth-uom
0b8f131ee4f2a3a70a19f21bc88fe064d39fe5cd
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------ # Copyright 2018 Frank V. Castellucci and Arthur Greef # # 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 # # ...
30.967742
80
0.587847
7949b1a561f113dc5d0f06aa6c43eaa8050dff3a
6,135
py
Python
rp/rsa.py
bptripp/rp
f076034547f7f8afe0f8aad8d0122f7035ca4ed1
[ "MIT" ]
null
null
null
rp/rsa.py
bptripp/rp
f076034547f7f8afe0f8aad8d0122f7035ca4ed1
[ "MIT" ]
null
null
null
rp/rsa.py
bptripp/rp
f076034547f7f8afe0f8aad8d0122f7035ca4ed1
[ "MIT" ]
null
null
null
# Gradient descent to find random activity pattern with given representational # similarity matrix. This works better than taking steps in null space of similarity # matrix. import numpy as np import matplotlib.pyplot as plt import tensorflow as tf def get_random_stimuli(n_stim, dim): """ :param n_stim: Numb...
38.829114
121
0.68639
7949b28ad48d7dda88914ce7fdd42833993026c7
2,442
py
Python
emailnetwork/tests/test_extract.py
supertypeai/emailnetwork
65f8f72301ef40c35fa6e36a8589d27ab961243a
[ "MIT" ]
1
2021-01-29T04:26:36.000Z
2021-01-29T04:26:36.000Z
emailnetwork/tests/test_extract.py
supertypeai/emailnetwork
65f8f72301ef40c35fa6e36a8589d27ab961243a
[ "MIT" ]
null
null
null
emailnetwork/tests/test_extract.py
supertypeai/emailnetwork
65f8f72301ef40c35fa6e36a8589d27ab961243a
[ "MIT" ]
1
2022-01-21T09:03:50.000Z
2022-01-21T09:03:50.000Z
import os import datetime from unittest import TestCase from emailnetwork.extract import MBoxReader, extract_meta from emailnetwork.emails import EmailAddress, EmailMeta MBOX_PATH = f'{os.path.dirname(__file__)}/test.mbox' class TestExtract(TestCase): def setUp(self): self.reader = MBoxReader(MBOX_PATH) ...
37
84
0.677314
7949b2ef91c9a44425e0c4e22666bfc384fc22ad
1,110
py
Python
queue_rules/data/management/commands/clear_user_locks.py
benmckibben/queue-rules
8beaf6e306f42866a6a2ed1b9c67d94e29bacd33
[ "MIT" ]
null
null
null
queue_rules/data/management/commands/clear_user_locks.py
benmckibben/queue-rules
8beaf6e306f42866a6a2ed1b9c67d94e29bacd33
[ "MIT" ]
2
2021-06-10T20:11:42.000Z
2021-09-22T19:36:39.000Z
queue_rules/data/management/commands/clear_user_locks.py
benmckibben/queue-rules
8beaf6e306f42866a6a2ed1b9c67d94e29bacd33
[ "MIT" ]
null
null
null
from datetime import datetime, timezone from django.core.management.base import BaseCommand from data.models import UserLock def _parse_datetime(string_dt: str) -> datetime: return datetime.strptime(string_dt, "%Y-%m-%dT%H:%M:%S").replace( tzinfo=timezone.utc ) class Command(BaseCommand): help...
28.461538
82
0.614414
7949b34c2cd0fcdd01fae1066acd4df3e032196e
2,209
py
Python
tests/tests/correctness/EPLAnalytics/Flow_Manipulation/Filter/f_cor_014/run.py
rpeach-sag/apama-industry-analytics-kit
a3f6039915501d41251b6f7ec41b0cb8111baf7b
[ "Apache-2.0" ]
3
2019-09-02T18:21:22.000Z
2020-04-17T16:34:57.000Z
tests/tests/correctness/EPLAnalytics/Flow_Manipulation/Filter/f_cor_014/run.py
rpeach-sag/apama-industry-analytics-kit
a3f6039915501d41251b6f7ec41b0cb8111baf7b
[ "Apache-2.0" ]
null
null
null
tests/tests/correctness/EPLAnalytics/Flow_Manipulation/Filter/f_cor_014/run.py
rpeach-sag/apama-industry-analytics-kit
a3f6039915501d41251b6f7ec41b0cb8111baf7b
[ "Apache-2.0" ]
null
null
null
# $Copyright (c) 2015 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel an...
46.020833
343
0.732911