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
5b8dec39e4dcffcbe21b052a1d8080631863cd63
3,720
py
Python
examples/examples/usage.py
alexa984/django-enum-choices
2eb9f1faea2133d65350a3f05f59d6ba72050925
[ "MIT" ]
null
null
null
examples/examples/usage.py
alexa984/django-enum-choices
2eb9f1faea2133d65350a3f05f59d6ba72050925
[ "MIT" ]
null
null
null
examples/examples/usage.py
alexa984/django-enum-choices
2eb9f1faea2133d65350a3f05f59d6ba72050925
[ "MIT" ]
null
null
null
from .enumerations import MyEnum from .models import MyModel, MyModelMultiple from .serializers import ( MySerializer, MyModelSerializer, ImplicitMyModelSerializer, MultipleMySerializer, ImplicitMultipleMyModelSerializer, CustomChoiceBuilderSerializer ) from .forms import StandardEnumForm, Model...
21.627907
80
0.735753
32ef7c3230ea0f500f3ff52337125416351c1d35
3,865
py
Python
mmtbx/building/alternate_conformations/scripts/flatten_map_outside_selection.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
mmtbx/building/alternate_conformations/scripts/flatten_map_outside_selection.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
mmtbx/building/alternate_conformations/scripts/flatten_map_outside_selection.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
""" For the obsessive-compulsive who absolutely must have perfectly contoured density around their ligand. Handy for making figures, but prone to abuse, which is why it's not in the command_line directory. """ from __future__ import division import sys def flatten_map(map, xray_structure, selection): from cctbx i...
33.903509
75
0.674774
10779cb6aa8890398d873218aa3258d504a0f5a0
2,307
py
Python
tests/test_0674-categorical-validation.py
colesbury/awkward-1.0
d036ab18eb54de8a2571d9f179d315ac8ee22119
[ "BSD-3-Clause" ]
null
null
null
tests/test_0674-categorical-validation.py
colesbury/awkward-1.0
d036ab18eb54de8a2571d9f179d315ac8ee22119
[ "BSD-3-Clause" ]
null
null
null
tests/test_0674-categorical-validation.py
colesbury/awkward-1.0
d036ab18eb54de8a2571d9f179d315ac8ee22119
[ "BSD-3-Clause" ]
null
null
null
# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE import pytest # noqa: F401 import numpy as np # noqa: F401 import awkward as ak # noqa: F401 pyarrow = pytest.importorskip("pyarrow") def test_categorical_is_valid(): # validate a categorical array by its content ar...
35.492308
88
0.724317
0137994cd83185a8460d0d88709255369b9509b0
12,320
py
Python
py3/nn/experiments/wgan/wgan_mnist_fc.py
fr42k/gap-wgan-gp
4e373c43d606a1b83f76893d93f9cf8be8cd460d
[ "MIT" ]
null
null
null
py3/nn/experiments/wgan/wgan_mnist_fc.py
fr42k/gap-wgan-gp
4e373c43d606a1b83f76893d93f9cf8be8cd460d
[ "MIT" ]
null
null
null
py3/nn/experiments/wgan/wgan_mnist_fc.py
fr42k/gap-wgan-gp
4e373c43d606a1b83f76893d93f9cf8be8cd460d
[ "MIT" ]
null
null
null
"""Generative Adversarial Network for MNIST.""" import os, sys sys.path.append(os.getcwd()) try: # This only matters on Ishaan's computer import experiment_tools experiment_tools.wait_for_gpu(tf=True) except ImportError: pass import tflib as lib import tflib.debug import tflib.ops.linear import tflib.ops...
40.526316
427
0.695455
2220161f721fd331cfc53582d8139ae98f3bcf04
2,154
py
Python
model/model_esdr.py
liwanjunit/ASRGAN
ac01e546939c435c246fbdce64606464f8fdfc00
[ "MIT" ]
null
null
null
model/model_esdr.py
liwanjunit/ASRGAN
ac01e546939c435c246fbdce64606464f8fdfc00
[ "MIT" ]
null
null
null
model/model_esdr.py
liwanjunit/ASRGAN
ac01e546939c435c246fbdce64606464f8fdfc00
[ "MIT" ]
null
null
null
import math import torch from torch import nn class EDSR(nn.Module): def __init__(self, scale_factor, img_range=255., rgb_mean=(0.4488, 0.4371, 0.4040)): upsample_block_num = int(math.log(scale_factor, 2)) super(EDSR, self).__init__() self.img_range = img_range self.mean = torch....
31.676471
97
0.620241
2207ed32cc6e975e47c0cce89f1a0a9874d8a5c7
7,774
py
Python
doc/conf.py
nkuttler/flaskwallet
87fe06fdffd424341305a79e7a61c56254bdd6c9
[ "BSD-3-Clause" ]
17
2015-01-18T23:24:37.000Z
2021-06-26T17:31:07.000Z
doc/conf.py
nkuttler/flaskwallet
87fe06fdffd424341305a79e7a61c56254bdd6c9
[ "BSD-3-Clause" ]
1
2016-07-29T11:26:37.000Z
2016-07-29T11:38:14.000Z
doc/conf.py
nkuttler/flaskwallet
87fe06fdffd424341305a79e7a61c56254bdd6c9
[ "BSD-3-Clause" ]
10
2015-03-10T06:07:01.000Z
2021-06-26T17:31:18.000Z
# -*- coding: utf-8 -*- # # Flaskwallet documentation build configuration file, created by # sphinx-quickstart on Thu Oct 17 14:33:26 2013. # # 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. # #...
31.99177
80
0.715719
c15d05c04c1b14e06769e70780eb0a21c32e61fd
3,029
py
Python
cleanup.py
dotran/namesilo-letsencrypt
9d1a5d8875d3253afa18cb0d4c3184fa74d9b248
[ "BSD-3-Clause" ]
27
2019-06-20T08:39:56.000Z
2022-03-23T22:48:01.000Z
cleanup.py
dotran/namesilo-letsencrypt
9d1a5d8875d3253afa18cb0d4c3184fa74d9b248
[ "BSD-3-Clause" ]
2
2020-03-14T19:49:47.000Z
2020-06-12T00:33:47.000Z
cleanup.py
dotran/namesilo-letsencrypt
9d1a5d8875d3253afa18cb0d4c3184fa74d9b248
[ "BSD-3-Clause" ]
14
2019-06-20T08:40:02.000Z
2022-03-07T01:25:57.000Z
#!/usr/bin/env python3 # cleanup.py # # Copyright (c) 2019-2020, Erik C. Thauvin (erik@thauvin.net) # 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...
36.059524
80
0.690657
c73157f297cb593759f6f6026d9cae285aa78547
1,432
py
Python
mrcnn/structs/tensor_container.py
darolt/mask_rcnn
680e960ddc70ec912c4d7084b7b15c9e3e6632a7
[ "MIT" ]
40
2018-09-04T15:06:50.000Z
2021-07-17T13:51:26.000Z
mrcnn/structs/tensor_container.py
conanhung/mask_rcnn-1
fd594b726a33432d7d8d326bddf35d0093ad90fa
[ "MIT" ]
6
2019-06-06T14:38:48.000Z
2021-07-29T14:46:47.000Z
mrcnn/structs/tensor_container.py
conanhung/mask_rcnn-1
fd594b726a33432d7d8d326bddf35d0093ad90fa
[ "MIT" ]
9
2019-04-03T15:55:15.000Z
2020-05-20T10:24:33.000Z
""" Tensor container is represents a set of tensors. It is used by other structures to share common logic. Licensed under The MIT License Written by Jean Da Rolt """ class TensorContainer(): def to(self, device): # !pylint: disable=C0103 """Apply pytorch's to() to all tensors in this container.""" ...
31.130435
71
0.592877
0bb9d7a7c5b0c8c569ce65bd83b38022d5ac6f2a
5,967
py
Python
homeassistant/components/opengarage/cover.py
olbjan/home-assistant-1
1adb45f74e96fc5eff137a3727647a7e428e123c
[ "Apache-2.0" ]
7
2019-02-07T14:14:12.000Z
2019-07-28T06:56:10.000Z
homeassistant/components/opengarage/cover.py
olbjan/home-assistant-1
1adb45f74e96fc5eff137a3727647a7e428e123c
[ "Apache-2.0" ]
null
null
null
homeassistant/components/opengarage/cover.py
olbjan/home-assistant-1
1adb45f74e96fc5eff137a3727647a7e428e123c
[ "Apache-2.0" ]
null
null
null
"""Platform for the opengarage.io cover component.""" import logging import requests import voluptuous as vol from homeassistant.components.cover import ( DEVICE_CLASS_GARAGE, PLATFORM_SCHEMA, SUPPORT_CLOSE, SUPPORT_OPEN, CoverDevice, ) from homeassistant.const import ( CONF_COVERS, CONF_H...
30.443878
86
0.627283
73a712943abfc1738ee31e4062e185c34d7da598
1,440
py
Python
salt/output/yaml_out.py
pass-by-value/salt
2ede44fe54516242e10fe428629d5f5a18e5f7ea
[ "Apache-2.0", "MIT" ]
2
2015-09-21T14:13:30.000Z
2016-02-12T11:33:46.000Z
salt/output/yaml_out.py
pass-by-value/salt
2ede44fe54516242e10fe428629d5f5a18e5f7ea
[ "Apache-2.0", "MIT" ]
1
2019-09-06T13:57:28.000Z
2019-09-06T13:57:28.000Z
salt/output/yaml_out.py
pass-by-value/salt
2ede44fe54516242e10fe428629d5f5a18e5f7ea
[ "Apache-2.0", "MIT" ]
2
2017-01-05T16:14:59.000Z
2019-01-31T23:15:25.000Z
# -*- coding: utf-8 -*- ''' Display return data in YAML format ================================== This outputter defaults to printing in YAML block mode for better readability. Example output:: saltmine: foo: bar: baz dictionary: abc: 123 def: 456 list: ...
23.606557
86
0.622222
283c2528669b7de7f4ac93855bc8bfc9ed87c717
529
py
Python
uploads/urls.py
rahulkushwah/appEngineTest
2717d41cc0413045e42004c1cf93f04030d32891
[ "MIT" ]
null
null
null
uploads/urls.py
rahulkushwah/appEngineTest
2717d41cc0413045e42004c1cf93f04030d32891
[ "MIT" ]
null
null
null
uploads/urls.py
rahulkushwah/appEngineTest
2717d41cc0413045e42004c1cf93f04030d32891
[ "MIT" ]
null
null
null
from django.conf.urls import url from django.contrib import admin from django.conf import settings from django.conf.urls.static import static from uploads.core import views urlpatterns = [ url(r'^$', views.home, name='home'), url(r'^uploads/simple/$', views.simple_upload, name='simple_upload'), #url(r'^u...
29.388889
80
0.73535
f5a7f85f0b91cf4c68259a114270ff772ab6d03d
9,587
py
Python
word_sense/wordsense.py
logicalfarhad/word-sense-disambiguation
7929f3a770f7628a4e0ab7c6f76c5964a90bae75
[ "Apache-2.0" ]
2
2020-04-03T15:38:25.000Z
2021-02-01T09:36:51.000Z
word_sense/wordsense.py
logicalfarhad/word-sense-disambiguation
7929f3a770f7628a4e0ab7c6f76c5964a90bae75
[ "Apache-2.0" ]
null
null
null
word_sense/wordsense.py
logicalfarhad/word-sense-disambiguation
7929f3a770f7628a4e0ab7c6f76c5964a90bae75
[ "Apache-2.0" ]
1
2019-04-14T22:06:21.000Z
2019-04-14T22:06:21.000Z
import nltk # nltk.download('wordnet') # nltk.download('punkt') # nltk.download('averaged_perceptron_tagger') from nltk.corpus import wordnet as wn import numpy as np from numpy import dot from numpy import average from numpy.linalg import norm import os def load_glove_vectors(glove_file): f = open(g...
42.799107
165
0.625013
ff348cd63cc44f7f1dfff63308e5ee46fbea2515
34,801
py
Python
vipe_dataset/keypoint.py
jhong93/vpd
1ed3e8631c46e078ecb9a7756dba1f1c14aead5b
[ "BSD-3-Clause" ]
7
2021-11-26T01:15:23.000Z
2022-03-15T10:51:47.000Z
vipe_dataset/keypoint.py
jhong93/vpd
1ed3e8631c46e078ecb9a7756dba1f1c14aead5b
[ "BSD-3-Clause" ]
4
2022-01-15T09:46:00.000Z
2022-02-05T07:10:18.000Z
vipe_dataset/keypoint.py
jhong93/vpd
1ed3e8631c46e078ecb9a7756dba1f1c14aead5b
[ "BSD-3-Clause" ]
1
2021-09-18T16:50:14.000Z
2021-09-18T16:50:14.000Z
import os import math import random from collections import Counter, defaultdict import torch from torch.utils.data import Dataset import numpy as np from tqdm import tqdm from . import human36m, people3d, nba2k, amass from .util import flip_skeleton_offsets from .dataset_base import ( D3KeypointDataset, MAX_NEG_S...
36.479036
84
0.574983
d1d5ad5909c1f7aeff2c57a2a2ce89566588da27
2,686
py
Python
platformio/commands/settings.py
awachtler/platformio-core
bf9552bd562bc15fe5912631e6da378b2088f7db
[ "Apache-2.0" ]
null
null
null
platformio/commands/settings.py
awachtler/platformio-core
bf9552bd562bc15fe5912631e6da378b2088f7db
[ "Apache-2.0" ]
null
null
null
platformio/commands/settings.py
awachtler/platformio-core
bf9552bd562bc15fe5912631e6da378b2088f7db
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014-present PlatformIO <contact@platformio.org> # # 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
75
0.641102
02bcdbac028e102733e25e78af33b137ba4a798c
546
py
Python
blast_api/urls.py
carrierx/carrierx-blast-api
86e71bdddce272003805bb7a37ad9ad7f8de323a
[ "MIT" ]
null
null
null
blast_api/urls.py
carrierx/carrierx-blast-api
86e71bdddce272003805bb7a37ad9ad7f8de323a
[ "MIT" ]
1
2021-06-10T22:32:51.000Z
2021-06-10T22:32:51.000Z
blast_api/urls.py
carrierx/carrierx-blast-api
86e71bdddce272003805bb7a37ad9ad7f8de323a
[ "MIT" ]
null
null
null
from django.urls import include, path from . import views urlpatterns = [ path('shouts/<int:shout_id>;cancel', views.cancel_shout, name='cancel_shout'), path('shouts/<int:shout_id>', views.get_shout, name='get_shout'), path('shouts', views.shouts, name='shouts'), path('calls', views.calls, name='calls...
39
82
0.681319
f6568e8aea40f0f4fe37d0c274b0d3b0e5330adb
847
py
Python
tests/test_phpstorm.py
henriklynggaard/ansible-role-phpstorm
3f5eb9fa2c3173b09f44733336503348ae131958
[ "MIT" ]
null
null
null
tests/test_phpstorm.py
henriklynggaard/ansible-role-phpstorm
3f5eb9fa2c3173b09f44733336503348ae131958
[ "MIT" ]
null
null
null
tests/test_phpstorm.py
henriklynggaard/ansible-role-phpstorm
3f5eb9fa2c3173b09f44733336503348ae131958
[ "MIT" ]
null
null
null
import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( '.molecule/ansible_inventory').get_hosts('all') desktop_file_location = "/root/.local/share/applications/phpstorm-2017.2.desktop" def test_desktop_file_exists(File): f = File(desktop_file_location) as...
24.2
81
0.756789
057ccd1dad5757f92d0626f2d2e329241e2f3f92
1,415
py
Python
var/spack/repos/builtin/packages/bismark/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2020-10-15T01:08:42.000Z
2021-10-18T01:28:18.000Z
var/spack/repos/builtin/packages/bismark/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2019-07-30T10:12:28.000Z
2019-12-17T09:02:27.000Z
var/spack/repos/builtin/packages/bismark/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
5
2019-07-30T09:42:14.000Z
2021-01-25T05:39:20.000Z
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Bismark(Package): """A tool to map bisulfite converted sequence reads and determine cytosi...
39.305556
96
0.711661
516862444c68745f7cf6b36e806fa0e01bced2d8
247
py
Python
test_url.py
thedognexttothetrashcan/taobao
c796ec1f61a5443406686f65badc1df6aaf7b711
[ "Apache-2.0" ]
null
null
null
test_url.py
thedognexttothetrashcan/taobao
c796ec1f61a5443406686f65badc1df6aaf7b711
[ "Apache-2.0" ]
1
2020-12-05T15:32:37.000Z
2020-12-05T15:32:37.000Z
test_url.py
xwh-p/taobao
c796ec1f61a5443406686f65badc1df6aaf7b711
[ "Apache-2.0" ]
null
null
null
ul = 'https://list.tmall.com/search_product.htm?spm=a220m.1000858.0.0.785d7b19nELJh6&s={}&q=iiphone+x&sort=s&style=g&from=.list.pc_1_searchbutton&smAreaId=110100&type=pc#J_Filter' for i in range(120, 900, 60): url = ul.format(i) print(url)
61.75
179
0.728745
1b000be70ffbe52fa86011f6b827dc7e3756feba
1,124
py
Python
sigmapiweb/apps/PartyListV2/migrations/0014_alter_admin_form.py
Jacobvs/sigmapi-web
ca8d5a5294385fe5f4634c483a1278df904e2f85
[ "MIT" ]
null
null
null
sigmapiweb/apps/PartyListV2/migrations/0014_alter_admin_form.py
Jacobvs/sigmapi-web
ca8d5a5294385fe5f4634c483a1278df904e2f85
[ "MIT" ]
null
null
null
sigmapiweb/apps/PartyListV2/migrations/0014_alter_admin_form.py
Jacobvs/sigmapi-web
ca8d5a5294385fe5f4634c483a1278df904e2f85
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.18 on 2019-02-18 13:51 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 = [ ("PartyListV2", "0013_party...
28.1
62
0.580071
20a707f7b22ebfedd9251ac2aa52cf45a800f382
2,456
py
Python
autotest/gdrivers/pcraster.py
ajolma/gdal
19d847c8519919fcd1e7e7247644d28771034317
[ "MIT" ]
1
2018-12-19T14:08:20.000Z
2018-12-19T14:08:20.000Z
autotest/gdrivers/pcraster.py
ajolma/gdal
19d847c8519919fcd1e7e7247644d28771034317
[ "MIT" ]
3
2019-02-27T00:43:06.000Z
2019-06-28T21:57:10.000Z
autotest/gdrivers/pcraster.py
ajolma/gdal
19d847c8519919fcd1e7e7247644d28771034317
[ "MIT" ]
1
2019-11-01T15:17:09.000Z
2019-11-01T15:17:09.000Z
#!/usr/bin/env pytest ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: Test PCRaster driver support. # Author: Frank Warmerdam <warmerdam@pobox.com> # ############################################################################### # C...
33.643836
116
0.605863
01ffbb83743724b757a9147f57c06457be825e62
944
py
Python
rss_downloader/files.py
blade2005/rss-downloader
5fabedc62e86067e4a95b90db84a4fa324ad314e
[ "Apache-2.0" ]
null
null
null
rss_downloader/files.py
blade2005/rss-downloader
5fabedc62e86067e4a95b90db84a4fa324ad314e
[ "Apache-2.0" ]
19
2022-02-22T19:42:53.000Z
2022-03-28T12:26:10.000Z
rss_downloader/files.py
blade2005/rss-downloader
5fabedc62e86067e4a95b90db84a4fa324ad314e
[ "Apache-2.0" ]
null
null
null
"""File related functions for RSS Downloader.""" import argparse import pathlib from typing import Generator, List, Tuple import feedparser def _output_path(output_dir: str, title: str, href: str) -> pathlib.PurePath: """Join path from the base dir, title, and href.""" return pathlib.PurePath(output_dir, tit...
32.551724
78
0.630297
fa3a4aec8ed68823753a55c4b952048600d10f52
2,245
py
Python
acapy_client/models/dif_proof_request.py
dbluhm/acapy-client
d92ef607ba2ff1152ec15429f2edb20976991424
[ "Apache-2.0" ]
4
2021-08-05T09:20:34.000Z
2021-08-08T19:37:29.000Z
acapy_client/models/dif_proof_request.py
dbluhm/acapy-client
d92ef607ba2ff1152ec15429f2edb20976991424
[ "Apache-2.0" ]
null
null
null
acapy_client/models/dif_proof_request.py
dbluhm/acapy-client
d92ef607ba2ff1152ec15429f2edb20976991424
[ "Apache-2.0" ]
2
2021-08-12T18:18:45.000Z
2021-08-14T13:22:28.000Z
from typing import Any, Dict, List, Type, TypeVar, Union import attr from ..models.dif_options import DIFOptions from ..models.presentation_definition import PresentationDefinition from ..types import UNSET, Unset T = TypeVar("T", bound="DIFProofRequest") @attr.s(auto_attribs=True) class DIFProofRequest: """ "...
30.337838
100
0.656125
ebfc39e9737cdae10eaa4074332e93e9e3e112c2
56
py
Python
setup.py
jbalooka/falcon-rest
eafffe6dc6709f8f48b3b3d5afec903b6a3c366d
[ "Apache-2.0" ]
null
null
null
setup.py
jbalooka/falcon-rest
eafffe6dc6709f8f48b3b3d5afec903b6a3c366d
[ "Apache-2.0" ]
null
null
null
setup.py
jbalooka/falcon-rest
eafffe6dc6709f8f48b3b3d5afec903b6a3c366d
[ "Apache-2.0" ]
null
null
null
falcon, falcon-jsonify, falconjsonio, peewee, jsonpickle
56
56
0.839286
b1fc900b4399142f997d712f12965ab2f61106be
2,446
py
Python
summarize_from_feedback/model_layout.py
lumaway/summarize-from-feedback
065ea4e1607a5822a3d78cc13a8cec63a2919c1b
[ "MIT" ]
365
2020-09-04T15:50:14.000Z
2022-03-31T04:54:32.000Z
summarize_from_feedback/model_layout.py
ArturTtoptal/summarize-from-feedback
56b6bb613a1b58a8aa7a5e29266f65c7b980ee48
[ "CC-BY-4.0" ]
14
2020-09-06T14:52:29.000Z
2022-02-18T08:05:06.000Z
summarize_from_feedback/model_layout.py
ArturTtoptal/summarize-from-feedback
56b6bb613a1b58a8aa7a5e29266f65c7b980ee48
[ "CC-BY-4.0" ]
60
2020-09-04T16:33:48.000Z
2022-01-28T19:01:42.000Z
import math import numpy as np class ModelLayout: """Holds the structure of the model and the current rank's position within it""" @classmethod def standard(cls, *, total_gpus, my_rank, n_shards=1): assert my_rank < total_gpus, f"Bad rank {my_rank} for total_gpus = {total_gpus}" ranks =...
33.506849
89
0.636549
66343a2f5710e3c98d4b2358e0b8f66072a9ac72
5,381
py
Python
model/statistics_model.py
trinity-project/trinity-eth
a4e4fff1d1dbc0b422d7acc21ed95a308cf51967
[ "MIT" ]
15
2018-05-11T06:09:47.000Z
2020-07-30T05:59:41.000Z
model/statistics_model.py
trinity-project/trinity-eth
a4e4fff1d1dbc0b422d7acc21ed95a308cf51967
[ "MIT" ]
null
null
null
model/statistics_model.py
trinity-project/trinity-eth
a4e4fff1d1dbc0b422d7acc21ed95a308cf51967
[ "MIT" ]
6
2018-08-06T19:00:35.000Z
2020-12-03T02:13:45.000Z
# --*-- coding : utf-8 --*-- """Author: Trinity Core Team MIT License Copyright (c) 2018 Trinity Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation...
34.49359
105
0.637056
fe44484a1c17283af04fa43a93be203f22375d22
1,315
py
Python
maize_detrend_lowess.py
limanqing/crop_climate
bfc50fbf57ce3a96ba7d29de53a76fc7a1dc2d2f
[ "MIT" ]
null
null
null
maize_detrend_lowess.py
limanqing/crop_climate
bfc50fbf57ce3a96ba7d29de53a76fc7a1dc2d2f
[ "MIT" ]
null
null
null
maize_detrend_lowess.py
limanqing/crop_climate
bfc50fbf57ce3a96ba7d29de53a76fc7a1dc2d2f
[ "MIT" ]
null
null
null
#coding=utf-8 import pandas as pd import statsmodels.api as sm #import pylab import glob def Lowess_detrend(x,y): # z = sm.nonparametric.lowess(y, x) # z1 = sm.nonparametric.lowess(y, x, frac=0.1) # z45 = sm.nonparametric.lowess(y, x, frac=0.45) z9 = sm.nonparametric.lowess(y, x, frac=0.9) # ...
39.848485
112
0.609125
4431dcac4b07789aa2a79c12e58b8b19a9bb45d6
5,780
py
Python
PA1/Assignment1/submit.py
csMOOC/UIUC.TR
6b3692d06e09eacdebe0571862da60392bc2b038
[ "MIT" ]
null
null
null
PA1/Assignment1/submit.py
csMOOC/UIUC.TR
6b3692d06e09eacdebe0571862da60392bc2b038
[ "MIT" ]
null
null
null
PA1/Assignment1/submit.py
csMOOC/UIUC.TR
6b3692d06e09eacdebe0571862da60392bc2b038
[ "MIT" ]
null
null
null
import urllib import urllib2 import hashlib import random import email import email.message import email.encoders import StringIO import sys """""""""""""""""""" """""""""""""""""""" class NullDevice: def write(self, s): pass def submit(): print '==\n== Submitting Solutions \n==' (login, password) = ...
29.191919
179
0.631661
e1de7e886625e7d82deca3644552eba94a72f718
51,981
py
Python
holoviews/plotting/util.py
TheoMathurin/holoviews
0defcef994d6dd6d2054f75a0e332d02d121f8b0
[ "BSD-3-Clause" ]
864
2019-11-13T08:18:27.000Z
2022-03-31T13:36:13.000Z
holoviews/plotting/util.py
chrinide/holoviews
e1234a60ae0809ac561c204b1998dff0452b2bf0
[ "BSD-3-Clause" ]
1,117
2019-11-12T16:15:59.000Z
2022-03-30T22:57:59.000Z
holoviews/plotting/util.py
chrinide/holoviews
e1234a60ae0809ac561c204b1998dff0452b2bf0
[ "BSD-3-Clause" ]
180
2019-11-19T16:44:44.000Z
2022-03-28T22:49:18.000Z
import re import traceback import warnings import bisect from collections import defaultdict, namedtuple import numpy as np import param from ..core import ( HoloMap, DynamicMap, CompositeOverlay, Layout, Overlay, GridSpace, NdLayout, NdOverlay, AdjointLayout ) from ..core.options import CallbackError, Cycle...
40.295349
111
0.582655
d45ed175d16c434c7a64393ee3241a7778c9dc6b
418
py
Python
assignment_5/eclipse.py
slchangtw/Advanced_Programming_in_Python_Jacobs
46df6a77e23d92fc97c15b6112a3f428b2bbcb42
[ "MIT" ]
null
null
null
assignment_5/eclipse.py
slchangtw/Advanced_Programming_in_Python_Jacobs
46df6a77e23d92fc97c15b6112a3f428b2bbcb42
[ "MIT" ]
null
null
null
assignment_5/eclipse.py
slchangtw/Advanced_Programming_in_Python_Jacobs
46df6a77e23d92fc97c15b6112a3f428b2bbcb42
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # JTSK-350112 # a5_4.py # Shun-Lung Chang # sh.chang@jacobs-university.de import datetime if __name__ == '__main__': # compute days that have passed last_eclipse = datetime.date(2017, 8, 21) today = datetime.date.today() delta = (today - last_eclips...
20.9
79
0.650718
7ba09212a24ff95d81c179d32d15cfd3c1e8afcd
40,584
py
Python
venv/Lib/site-packages/win32/test/test_win32file.py
dasxran/seleniumMachineLearning
3098f836913a89847cb9e308189383a4ea981139
[ "MIT" ]
64
2020-07-22T06:24:18.000Z
2022-03-27T10:48:15.000Z
venv/Lib/site-packages/win32/test/test_win32file.py
dasxran/seleniumMachineLearning
3098f836913a89847cb9e308189383a4ea981139
[ "MIT" ]
9
2019-12-28T06:18:53.000Z
2022-01-13T01:54:21.000Z
venv/Lib/site-packages/win32/test/test_win32file.py
dasxran/seleniumMachineLearning
3098f836913a89847cb9e308189383a4ea981139
[ "MIT" ]
17
2020-09-14T02:46:41.000Z
2022-03-01T09:52:33.000Z
import unittest from pywin32_testutil import str2bytes, TestSkipped, testmain import win32api, win32file, win32pipe, pywintypes, winerror, win32event import win32con, ntsecuritycon import sys import os import tempfile import threading import time import shutil import socket import datetime import random import win32tim...
42.407524
148
0.598339
6f1fed352744dad8240466872e2dae8b0272c69c
819
py
Python
stats.py
jivitesh-sharma/Drop-Clause-Interpretable-TM
4fb4d4be0f24a0c30f13fbcca974390889d7fe84
[ "MIT" ]
1
2022-01-28T18:01:34.000Z
2022-01-28T18:01:34.000Z
stats.py
jivitesh-sharma/Drop-Clause-Interpretable-TM
4fb4d4be0f24a0c30f13fbcca974390889d7fe84
[ "MIT" ]
1
2021-09-22T17:39:16.000Z
2021-09-22T17:39:16.000Z
stats.py
jivitesh-sharma/Drop-Clause-Interpretable-TM
4fb4d4be0f24a0c30f13fbcca974390889d7fe84
[ "MIT" ]
2
2021-05-26T07:45:29.000Z
2021-05-26T13:05:25.000Z
import numpy as np import sys m = np.loadtxt(sys.argv[1]) start = int(sys.argv[2]) #length = int(sys.argv[3]) print("MIN", m[np.logical_and(m[:,1] >= start, m[:,1] < start+25),:].min(axis=0)) print("MEAN", m[np.logical_and(m[:,1] >= start, m[:,1] < start+25),:].mean(axis=0)) print("MEDIAN", np.median(m[np.logical_and...
39
96
0.603175
41c11e2b952473d80c398211bc2b8a11806b5d3c
755
py
Python
cloud.py
ricoen/IoT-monitoring
731d549c59cd53fd89e3be1ae5d6434c1c0fc281
[ "MIT" ]
null
null
null
cloud.py
ricoen/IoT-monitoring
731d549c59cd53fd89e3be1ae5d6434c1c0fc281
[ "MIT" ]
null
null
null
cloud.py
ricoen/IoT-monitoring
731d549c59cd53fd89e3be1ae5d6434c1c0fc281
[ "MIT" ]
null
null
null
import psutil import influxdb_client from influxdb_client.client.write_api import SYNCHRONOUS from time import sleep bucket = "<my-bucket>" org = "<my-org>" token = "<my-token>" url = "https://ap-southeast-2-1.aws.cloud2.influxdata.com" client = influxdb_client.InfluxDBClient( token=token, org=org, url=u...
21.571429
105
0.682119
de2f362d21c8360f3fb283485c5fa9d648bd3388
1,728
py
Python
app/user/serializers.py
howard5248/django-restAPI-1
988f9e4efe3f63481323e242f0b96c215ac440e5
[ "MIT" ]
null
null
null
app/user/serializers.py
howard5248/django-restAPI-1
988f9e4efe3f63481323e242f0b96c215ac440e5
[ "MIT" ]
null
null
null
app/user/serializers.py
howard5248/django-restAPI-1
988f9e4efe3f63481323e242f0b96c215ac440e5
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model, authenticate from django.utils.translation import ugettext_lazy as _ from rest_framework import serializers class UserSerializer(serializers.ModelSerializer): '''Serializer for the users object''' class Meta: model = get_user_model() fields = (...
31.418182
74
0.646412
68f3c444e0ca269cecd365e1d90b6f242019d544
7,012
py
Python
custom_conf/etc/calamares/src/modules/rawfs/main.py
ix-os/IXOS
840abf7e022f46073d898fed5adb667bb5cb7166
[ "CC0-1.0" ]
null
null
null
custom_conf/etc/calamares/src/modules/rawfs/main.py
ix-os/IXOS
840abf7e022f46073d898fed5adb667bb5cb7166
[ "CC0-1.0" ]
13
2020-07-30T19:55:36.000Z
2020-12-07T16:57:23.000Z
custom_conf/etc/calamares/src/modules/rawfs/main.py
ix-os/IXOS
840abf7e022f46073d898fed5adb667bb5cb7166
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # === This file is part of Calamares - <https://github.com/calamares> === # # Copyright 2019, Collabora Ltd <arnaud.ferraris@collabora.com> # # Calamares is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License ...
36.520833
99
0.6081
d49263d65535f41a4e1c076a3d0e4ebc7b140829
4,254
py
Python
main.py
nimashoghi/ocp
9c8d2eafa0cae80f0a9ae76aa563c4bf84887682
[ "MIT", "BSD-3-Clause" ]
null
null
null
main.py
nimashoghi/ocp
9c8d2eafa0cae80f0a9ae76aa563c4bf84887682
[ "MIT", "BSD-3-Clause" ]
null
null
null
main.py
nimashoghi/ocp
9c8d2eafa0cae80f0a9ae76aa563c4bf84887682
[ "MIT", "BSD-3-Clause" ]
null
null
null
""" Copyright (c) Facebook, Inc. and its affiliates. This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. """ import copy import logging import os import sys import time from pathlib import Path import submitit from ocpmodels.common import distutils...
33.761905
79
0.600376
ec7d69fe1824fb800fa8b1dfb91c7b84856e2a76
2,403
py
Python
example/wide_n_deep/make_data.py
eddyJ/fedlearner
d31ef4b3ffe2f166dc738131359a98390c354a7c
[ "Apache-2.0" ]
1
2020-03-10T07:26:07.000Z
2020-03-10T07:26:07.000Z
example/wide_n_deep/make_data.py
eddyJ/fedlearner
d31ef4b3ffe2f166dc738131359a98390c354a7c
[ "Apache-2.0" ]
null
null
null
example/wide_n_deep/make_data.py
eddyJ/fedlearner
d31ef4b3ffe2f166dc738131359a98390c354a7c
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The FedLearner 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...
34.328571
79
0.669996
ee84c84b67ca493865c6de9ba918bed30e6ef892
20,730
py
Python
r2l.py
Zeda/sqr2plsql
ba94943a49b834c7695d2949f26f62c27a28db0f
[ "RSA-MD" ]
1
2020-07-23T11:37:31.000Z
2020-07-23T11:37:31.000Z
r2l.py
Zeda/sqr2plsql
ba94943a49b834c7695d2949f26f62c27a28db0f
[ "RSA-MD" ]
1
2020-07-21T18:50:01.000Z
2020-07-21T18:50:01.000Z
r2l.py
Zeda/sqr2plsql
ba94943a49b834c7695d2949f26f62c27a28db0f
[ "RSA-MD" ]
null
null
null
#!/usr/bin/python3 import sys import re from os import listdir from os.path import isfile, join # To Do: # Currently am auto-generating `col_<<column name>>` as a var # Should instead: # register column names that don't have an alias used in SELECT queries # and occurence of that column name being used outside of...
30.087083
114
0.429571
a387787f7a105390526b501b3c3003fb72a66390
8,982
py
Python
tfx/orchestration/launcher/kubernetes_component_launcher.py
suryaavala/tfx
c315e7cf75822088e974e15b43c96fab86746733
[ "Apache-2.0" ]
1
2021-05-10T10:41:06.000Z
2021-05-10T10:41:06.000Z
tfx/orchestration/launcher/kubernetes_component_launcher.py
suryaavala/tfx
c315e7cf75822088e974e15b43c96fab86746733
[ "Apache-2.0" ]
null
null
null
tfx/orchestration/launcher/kubernetes_component_launcher.py
suryaavala/tfx
c315e7cf75822088e974e15b43c96fab86746733
[ "Apache-2.0" ]
null
null
null
# Lint as: python2, python3 # Copyright 2019 Google LLC. 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 req...
39.394737
123
0.691494
04e8e3089be7716286daa298c66787746a4e98c2
1,840
py
Python
administrator/controller/loginController.py
augustoberwaldt/skin-system
4ca878d3062abcf3f68c044abaaa631c88f40c5b
[ "MIT" ]
2
2017-08-29T14:17:44.000Z
2017-08-31T14:40:39.000Z
administrator/controller/loginController.py
augustoberwaldt/diseases-recognition
4ca878d3062abcf3f68c044abaaa631c88f40c5b
[ "MIT" ]
2
2020-02-11T23:27:55.000Z
2020-06-05T17:30:29.000Z
administrator/controller/loginController.py
augustoberwaldt/diseases-recognition
4ca878d3062abcf3f68c044abaaa631c88f40c5b
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from django.contrib.auth import authenticate, login, logout from administrator.formsModel import FormUser from django.contrib import messages import json def do_login(request): if request.method == 'POST' : username = request.POST['username'] passwor...
32.857143
105
0.640761
1b6a13978c52501014801c6f8f69c14017ce7de3
25,885
py
Python
EfficientNet/utils.py
DaikiSannoXC/SmoothAdversarialTraining
fa33249377fb181df65b055ccc04707138127346
[ "MIT" ]
61
2020-09-25T05:34:52.000Z
2022-03-18T02:32:43.000Z
EfficientNet/utils.py
DaikiSannoXC/SmoothAdversarialTraining
fa33249377fb181df65b055ccc04707138127346
[ "MIT" ]
1
2021-03-26T13:29:07.000Z
2021-03-26T13:29:07.000Z
EfficientNet/utils.py
DaikiSannoXC/SmoothAdversarialTraining
fa33249377fb181df65b055ccc04707138127346
[ "MIT" ]
2
2021-02-11T08:35:17.000Z
2021-07-13T05:04:09.000Z
# Copyright 2019 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...
39.884438
91
0.664362
8efec28a01a88f628caca162b724c7249514af5b
94,610
py
Python
MetaScreener/external_sw/mgltools/MGLToolsPckgs/ViewerFramework/basicCommand.py
bio-hpc/metascreener
6900497629f601c4b6c0c37da26de58ffa221988
[ "Apache-2.0" ]
8
2021-12-14T21:30:01.000Z
2022-02-14T11:30:03.000Z
MetaScreener/external_sw/mgltools/MGLToolsPckgs/ViewerFramework/basicCommand.py
bio-hpc/metascreener
6900497629f601c4b6c0c37da26de58ffa221988
[ "Apache-2.0" ]
null
null
null
MetaScreener/external_sw/mgltools/MGLToolsPckgs/ViewerFramework/basicCommand.py
bio-hpc/metascreener
6900497629f601c4b6c0c37da26de58ffa221988
[ "Apache-2.0" ]
null
null
null
## Automatically adapted for numpy.oldnumeric Jul 23, 2007 by ############################################################################ # # Author: Michel F. SANNER # # Copyright: M. Sanner TSRI 2000 # ############################################################################# """ Module implementing the basic c...
40.293867
203
0.520072
7d7f2e4efc55d4c2d3526d9ccc55cad1a50d40ef
9,807
py
Python
tests/generator/test_compression.py
mediaxina/chia-blockchain
44ba53550dde479d2ad5a1c4fc2fa70e17dceed1
[ "Apache-2.0" ]
1
2021-06-15T16:06:06.000Z
2021-06-15T16:06:06.000Z
tests/generator/test_compression.py
mediaxina/chia-blockchain
44ba53550dde479d2ad5a1c4fc2fa70e17dceed1
[ "Apache-2.0" ]
19
2021-06-27T23:17:14.000Z
2022-03-29T06:10:30.000Z
tests/generator/test_compression.py
mediaxina/chia-blockchain
44ba53550dde479d2ad5a1c4fc2fa70e17dceed1
[ "Apache-2.0" ]
null
null
null
# flake8: noqa: F501 from unittest import TestCase from chia.full_node.bundle_tools import ( bundle_suitable_for_compression, simple_solution_generator, compressed_spend_bundle_solution, match_standard_transaction_at_any_index, ) from chia.full_node.generator import run_generator, create_generator_args...
45.193548
792
0.744162
0bc23cf87fa43662a21fd698b99ce731e5c1b4ed
5,259
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_04_01/operations/_usages_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_04_01/operations/_usages_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
null
null
null
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_04_01/operations/_usages_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
44.567797
134
0.649173
a4360e297625ffc7cb602f5e2ee4dc8ae23db5ba
2,816
py
Python
examples/04_Resonator_Mask/write_mask.py
nanophysics/nanoGDS
606ca36bafb4ff844b70cfe46520e62df35edc6f
[ "MIT" ]
1
2020-09-15T15:27:13.000Z
2020-09-15T15:27:13.000Z
examples/04_Resonator_Mask/write_mask.py
nanophysics/nanoGDS
606ca36bafb4ff844b70cfe46520e62df35edc6f
[ "MIT" ]
null
null
null
examples/04_Resonator_Mask/write_mask.py
nanophysics/nanoGDS
606ca36bafb4ff844b70cfe46520e62df35edc6f
[ "MIT" ]
null
null
null
import nanogds import gdspy import numpy as np import helpers PI = np.pi def save_single_design(save_name, shape): lib = nanogds.GDS() lib.load_gds("Markerchip Variant B", "markerchip_variant_B.gds") lib.add("Resonator", shape) lib.save(f"designs/{save_name}") if __name__ == "__main__": RESONA...
28.444444
87
0.595881
4b24102db5d7776974ec35fa8b4242b93b37ef52
3,845
py
Python
tests/lambda_handlers_tests/test_checkDownloadHandler.py
mondele/tx-manager
ddbbeeae5990a327ffc14b42c478d3ea435c0533
[ "MIT" ]
3
2017-03-17T02:25:21.000Z
2017-05-18T22:18:20.000Z
tests/lambda_handlers_tests/test_checkDownloadHandler.py
mondele/tx-manager
ddbbeeae5990a327ffc14b42c478d3ea435c0533
[ "MIT" ]
184
2016-10-13T02:56:16.000Z
2021-03-25T21:27:20.000Z
tests/lambda_handlers_tests/test_checkDownloadHandler.py
mondele/tx-manager
ddbbeeae5990a327ffc14b42c478d3ea435c0533
[ "MIT" ]
16
2016-09-15T23:34:19.000Z
2019-07-25T07:06:32.000Z
from __future__ import absolute_import, unicode_literals, print_function import json import unittest from libraries.door43_tools.download_metrics import DownloadMetrics from libraries.lambda_handlers.check_download_handler import CheckDownloadHandler from moto import mock_s3 from libraries.app.app import App @mock_s3...
29.128788
98
0.584135
0853cf3f3bd4befb0a01c480739645e6dd67072e
790
py
Python
HackerRank Solutions/Algorithms/Strings/Game of Thrones - I/Game of Thrones - I.py
DevashishPathrabe/Competetive-Coding
91049459359854b7834cbfb31415682600dc9c57
[ "MIT" ]
null
null
null
HackerRank Solutions/Algorithms/Strings/Game of Thrones - I/Game of Thrones - I.py
DevashishPathrabe/Competetive-Coding
91049459359854b7834cbfb31415682600dc9c57
[ "MIT" ]
null
null
null
HackerRank Solutions/Algorithms/Strings/Game of Thrones - I/Game of Thrones - I.py
DevashishPathrabe/Competetive-Coding
91049459359854b7834cbfb31415682600dc9c57
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys from collections import Counter # # Complete the 'gameOfThrones' function below. # # The function is expected to return a STRING. # The function accepts STRING s as parameter. # def gameOfThrones(s): # Write your code here count = Counter...
19.268293
70
0.596203
26e6dfaa0baa43f868ae61dffcda47140e2647fe
39,041
py
Python
HelpDesk-LabReport.py
flopezag/fiware-scrum-reports
56773c2b1d0603f019f08ca7b66fc091e2b975a0
[ "Apache-2.0" ]
null
null
null
HelpDesk-LabReport.py
flopezag/fiware-scrum-reports
56773c2b1d0603f019f08ca7b66fc091e2b975a0
[ "Apache-2.0" ]
6
2018-09-04T08:49:29.000Z
2018-09-05T10:31:32.000Z
HelpDesk-LabReport.py
flopezag/fiware-scrum-reports
56773c2b1d0603f019f08ca7b66fc091e2b975a0
[ "Apache-2.0" ]
null
null
null
import os import operator from collections import OrderedDict from datetime import date, datetime import xlsxwriter from xlsxwriter.utility import xl_range from kernel.Calendar import agileCalendar from kernel.DataBoard import Data from kernel.DataFactory import DataEngine from kernel.NM_Aggregates import Deck, LabD...
40.331612
119
0.551113
b5678081ceee9c4ade219212a828fe9a02d02676
1,027
py
Python
flask_talisman/__init__.py
eelkevdbos/flask-talisman
a7a36f58c0b2f75ed6c0b5d1dc56fb97dae3414a
[ "Apache-2.0" ]
null
null
null
flask_talisman/__init__.py
eelkevdbos/flask-talisman
a7a36f58c0b2f75ed6c0b5d1dc56fb97dae3414a
[ "Apache-2.0" ]
null
null
null
flask_talisman/__init__.py
eelkevdbos/flask-talisman
a7a36f58c0b2f75ed6c0b5d1dc56fb97dae3414a
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
32.09375
74
0.742941
73969307a5e8d8e1c7e123e57c96d62cc3750ba5
98,580
py
Python
python/pyspark/rdd.py
cchung100m/spark
1ed1b4d8e1a5b9ca0ec8b15f36542d7a63eebf94
[ "Apache-2.0" ]
2
2019-03-02T16:08:01.000Z
2020-11-25T10:10:17.000Z
python/pyspark/rdd.py
cchung100m/spark
1ed1b4d8e1a5b9ca0ec8b15f36542d7a63eebf94
[ "Apache-2.0" ]
1
2020-05-22T22:46:36.000Z
2020-05-29T01:53:42.000Z
python/pyspark/rdd.py
cchung100m/spark
1ed1b4d8e1a5b9ca0ec8b15f36542d7a63eebf94
[ "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 not us...
38.38785
100
0.583739
bcca24e7e4f877ed1981607759a5322fe34eedfa
1,204
py
Python
src/ir_encoder/ir_command_merge.py
deaddevils/core
286541c974f96656c3340cb1dd37df116e3dfd67
[ "MIT" ]
5
2021-01-09T17:08:05.000Z
2022-03-29T08:00:05.000Z
src/ir_encoder/ir_command_merge.py
deaddevils/core
286541c974f96656c3340cb1dd37df116e3dfd67
[ "MIT" ]
null
null
null
src/ir_encoder/ir_command_merge.py
deaddevils/core
286541c974f96656c3340cb1dd37df116e3dfd67
[ "MIT" ]
15
2020-12-07T03:50:58.000Z
2022-03-29T07:59:32.000Z
#!/usr/bin/env python # coding=utf-8 # # created by strawmanbobi 2016-11-10 import sys import os for root, dirs, files in os.walk(sys.argv[1]): for i in files: fileType = i.split('.') if cmp(fileType[1], 'bin') == 0: print root + i print "========================list======...
35.411765
110
0.450166
b78b321bce37029496e2e13761c32f870158de14
6,251
py
Python
client/modules/Weather.py
overflOw11/lola
fc0e85305a07c93d4cc684543b7d5ac722df8758
[ "MIT" ]
null
null
null
client/modules/Weather.py
overflOw11/lola
fc0e85305a07c93d4cc684543b7d5ac722df8758
[ "MIT" ]
null
null
null
client/modules/Weather.py
overflOw11/lola
fc0e85305a07c93d4cc684543b7d5ac722df8758
[ "MIT" ]
null
null
null
# -*- coding: utf-8-*- import re import datetime import struct import urllib import feedparser import requests import bs4 import logging from client.app_utils import getTimezone from semantic.dates import DateService WORDS = ["TEMPS", "MÉTÉO", "AUJOURD'HUI", "DEMAIN"] def replaceAcronyms(text): """ Replaces ...
31.570707
129
0.579587
5cd04029a528f9573a2f96f38e3c19771f05a6b5
686
py
Python
app/core/migrations/0003_ingredient.py
coredmp95/recipe-app-api
f8d7ffe2f1c58143dc0c083c9491f338a283a978
[ "MIT" ]
null
null
null
app/core/migrations/0003_ingredient.py
coredmp95/recipe-app-api
f8d7ffe2f1c58143dc0c083c9491f338a283a978
[ "MIT" ]
null
null
null
app/core/migrations/0003_ingredient.py
coredmp95/recipe-app-api
f8d7ffe2f1c58143dc0c083c9491f338a283a978
[ "MIT" ]
null
null
null
# Generated by Django 2.1.14 on 2019-11-18 15:16 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0002_tag'), ] operations = [ migrations.CreateModel( ...
28.583333
118
0.618076
cf43597c5a2149d0b14a44adf64925b05da33e63
1,023
py
Python
task1.py
akselhm/BigDataProject
21ea7a503ce6eaf8daeb777a55fb22badd938013
[ "MIT" ]
1
2020-07-04T14:12:09.000Z
2020-07-04T14:12:09.000Z
task1.py
akselhm/BigDataProject
21ea7a503ce6eaf8daeb777a55fb22badd938013
[ "MIT" ]
null
null
null
task1.py
akselhm/BigDataProject
21ea7a503ce6eaf8daeb777a55fb22badd938013
[ "MIT" ]
null
null
null
from pyspark import SparkContext, SparkConf # Configure Spark sparkConf = SparkConf().setAppName("Yelp").setMaster("local") sc = SparkContext(conf = sparkConf) # Set data folder, inputs and output folder_name = "./data/" input_businesses = "yelp_businesses.csv.gz" input_reviewers = "yelp_top_reviewers_with_r...
37.888889
93
0.792766
015425e155b502d9b0213b025007b30b35cee48e
17,319
py
Python
falcon/asgi/stream.py
jssparas/falcon
c550eb39575ce46d43fa7af3d838aebd08332c6b
[ "Apache-2.0" ]
null
null
null
falcon/asgi/stream.py
jssparas/falcon
c550eb39575ce46d43fa7af3d838aebd08332c6b
[ "Apache-2.0" ]
34
2021-01-27T18:02:31.000Z
2021-01-27T18:08:37.000Z
falcon/asgi/stream.py
jssparas/falcon
c550eb39575ce46d43fa7af3d838aebd08332c6b
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 by Kurt Griffiths # # 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 writ...
37.487013
84
0.583175
c3f5cca54c4067bcecfc2aada04da1af4267a2f8
174
py
Python
Python OOP Retake Exam - 19 Dec 2020/problem1/supply/water_supply.py
DiyanKalaydzhiev23/OOP---Python
7ac424d5fb08a6bd28dc36593e45d949b3ac0cd0
[ "MIT" ]
null
null
null
Python OOP Retake Exam - 19 Dec 2020/problem1/supply/water_supply.py
DiyanKalaydzhiev23/OOP---Python
7ac424d5fb08a6bd28dc36593e45d949b3ac0cd0
[ "MIT" ]
null
null
null
Python OOP Retake Exam - 19 Dec 2020/problem1/supply/water_supply.py
DiyanKalaydzhiev23/OOP---Python
7ac424d5fb08a6bd28dc36593e45d949b3ac0cd0
[ "MIT" ]
null
null
null
from problem1.supply.supply import Supply class WaterSupply(Supply): def __init__(self): self.needs_increase = 40 super().__init__(self.needs_increase)
21.75
45
0.712644
7ee3906514caf03f988d10e7d6d62b798244fe76
4,952
py
Python
infoblox/_internal/srv.py
dylanfmarquis/python-infoblox
046b2b6b5a3974f86a22de934560254618f652c0
[ "MIT" ]
5
2016-08-23T20:34:21.000Z
2022-03-22T01:52:08.000Z
infoblox/_internal/srv.py
dylanfmarquis/python-infoblox
046b2b6b5a3974f86a22de934560254618f652c0
[ "MIT" ]
9
2016-08-24T20:29:47.000Z
2019-03-01T09:13:08.000Z
infoblox/_internal/srv.py
dylanfmarquis/python-infoblox
046b2b6b5a3974f86a22de934560254618f652c0
[ "MIT" ]
null
null
null
""" A warapper around record:srv objects. This allows for the modification of DNS SRV objects WAPI documentation can be found here: https://ipam.illinois.edu/wapidoc/objects/record.srv.html """ import json class _srv(object): def __init__(self, infoblox_, name, port): """ class constructor - Auto...
37.233083
85
0.476373
e0e7984b4a667556824f4bcd798c3c0c473a28dd
785
py
Python
Desafios/Mundo 3/ex079.py
lucasllimati/CursoEmVideo
01d75626baf8b82f141d62f681e55a9bda0099fd
[ "MIT" ]
null
null
null
Desafios/Mundo 3/ex079.py
lucasllimati/CursoEmVideo
01d75626baf8b82f141d62f681e55a9bda0099fd
[ "MIT" ]
null
null
null
Desafios/Mundo 3/ex079.py
lucasllimati/CursoEmVideo
01d75626baf8b82f141d62f681e55a9bda0099fd
[ "MIT" ]
null
null
null
# 79 # Crie um programa onde o usuário possa digitar vários valores numéricos e cadastre-os em uma lista. Caso o número já exista lá dentro, ele não será adicionado. No final, serão exibidos todos os valores únicos digitados, em ordem crescente. lista = list() while True: num = int(input('Digite um valor: ')) ...
34.130435
240
0.631847
7ad67a3e47c82bf9e408c8b91daaff70f4e3e284
7,093
py
Python
arty_a7/extra1/workshop_extra1.py
fjullien/migen_litex_tutorials
ce128a94fc3ddae534c39430f10fb4caa72d1cab
[ "MIT" ]
null
null
null
arty_a7/extra1/workshop_extra1.py
fjullien/migen_litex_tutorials
ce128a94fc3ddae534c39430f10fb4caa72d1cab
[ "MIT" ]
null
null
null
arty_a7/extra1/workshop_extra1.py
fjullien/migen_litex_tutorials
ce128a94fc3ddae534c39430f10fb4caa72d1cab
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from migen import * from migen.genlib.cdc import * from litex.soc.interconnect import stream from litex.build.generic_platform import * from litex_boards.platforms import arty from litex.soc.cores.clock import * # We want to continuously stream the memory content (looping over its address). ...
32.240909
103
0.489215
33d1a54e4d6eb234ce0486854de3a5410970574f
3,375
py
Python
day_12/run.py
aghontpi/AdventOfCode2020
43ee0415f8be0f8bf1abd4f746a9153ccc2e7406
[ "MIT" ]
null
null
null
day_12/run.py
aghontpi/AdventOfCode2020
43ee0415f8be0f8bf1abd4f746a9153ccc2e7406
[ "MIT" ]
null
null
null
day_12/run.py
aghontpi/AdventOfCode2020
43ee0415f8be0f8bf1abd4f746a9153ccc2e7406
[ "MIT" ]
null
null
null
#! /usr/bin/python3 # Action N means to move north by the given value. # Action S means to move south by the given value. # Action E means to move east by the given value. # Action W means to move west by the given value. # Action L means to turn left the given number of degrees. # Action R means to turn right the giv...
35.15625
106
0.577778
bf9600915ee5eddf3f02a35636850a2c983ea259
1,471
py
Python
source/commons/message.py
julio9246/hg-poker-api
56805601bc26bf8bb80e05235ae22a59a174af09
[ "Apache-2.0" ]
null
null
null
source/commons/message.py
julio9246/hg-poker-api
56805601bc26bf8bb80e05235ae22a59a174af09
[ "Apache-2.0" ]
null
null
null
source/commons/message.py
julio9246/hg-poker-api
56805601bc26bf8bb80e05235ae22a59a174af09
[ "Apache-2.0" ]
null
null
null
BAD_REQUEST_VALIDATION = 'Erro de validação.' # Validation VALIDATION_ERROR = 'Erro de validação.' VALIDATION_DATE_ERROR = 'Data inicial posterior a Data Final.' # Register REGISTER_ALREADY_EXIST = 'Registro já existente.' REGISTER_NO_CONTENT = 'Nenhum Registro encontrado.' REGISTER_NOT_FOUND = 'Registro não encontra...
34.209302
77
0.804895
32c9518a1841570e0225b233fcac03dd5b8f33c5
5,982
py
Python
tensorflow_datasets/core/community/register_package_test.py
shubhamkumaR630/datasets
fe9ee91849cefed0953141ea3588f73b7def78fd
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/core/community/register_package_test.py
shubhamkumaR630/datasets
fe9ee91849cefed0953141ea3588f73b7def78fd
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/core/community/register_package_test.py
shubhamkumaR630/datasets
fe9ee91849cefed0953141ea3588f73b7def78fd
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2022 The TensorFlow Datasets 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 appl...
37.15528
93
0.752424
09aef82f1134119b07e990a00bb3ba631f764048
4,855
py
Python
pkg/Python27/Lib/site-packages/envoy/core.py
jkolokotronis/ds_mod_tools
d9fd4def34f6adfd0e2b176d0a9bf2a3dfd43f93
[ "MIT" ]
null
null
null
pkg/Python27/Lib/site-packages/envoy/core.py
jkolokotronis/ds_mod_tools
d9fd4def34f6adfd0e2b176d0a9bf2a3dfd43f93
[ "MIT" ]
null
null
null
pkg/Python27/Lib/site-packages/envoy/core.py
jkolokotronis/ds_mod_tools
d9fd4def34f6adfd0e2b176d0a9bf2a3dfd43f93
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ envoy.core ~~~~~~~~~~ This module provides """ import os import shlex import subprocess import threading __version__ = '0.0.2' __license__ = 'MIT' __author__ = 'Kenneth Reitz' class Command(object): def __init__(self, cmd): self.cmd = cmd self.process = None ...
22.581395
71
0.571782
ac60b1a69a7b17e6be475d977f82b408506884a1
1,397
py
Python
setup.py
greenbender/django-gravy-bitfield
e43a0b5244455077d10f95a89e5f98eac7c57d6b
[ "Apache-2.0" ]
null
null
null
setup.py
greenbender/django-gravy-bitfield
e43a0b5244455077d10f95a89e5f98eac7c57d6b
[ "Apache-2.0" ]
null
null
null
setup.py
greenbender/django-gravy-bitfield
e43a0b5244455077d10f95a89e5f98eac7c57d6b
[ "Apache-2.0" ]
null
null
null
import os from setuptools import setup, find_packages with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-gravy-bitfiel...
27.392157
78
0.598425
e4030b4aea2f04ae8e4fc24f8e8f32ca53363ccd
27
py
Python
src/staticlocal/__init__.py
billsix/staticlocal
fe99ec9008a0c248830b17551ffd9ae1e4a0ca3e
[ "MIT" ]
null
null
null
src/staticlocal/__init__.py
billsix/staticlocal
fe99ec9008a0c248830b17551ffd9ae1e4a0ca3e
[ "MIT" ]
null
null
null
src/staticlocal/__init__.py
billsix/staticlocal
fe99ec9008a0c248830b17551ffd9ae1e4a0ca3e
[ "MIT" ]
null
null
null
from .staticlocal import *
13.5
26
0.777778
495784a69d05e7768b7c5312feef90aac85ea3e4
2,307
py
Python
tests/test_io.py
jwcarr/eyek
78375e0a3a28610bfbcd2d17345d8336374ca5d8
[ "MIT" ]
10
2020-11-21T19:36:03.000Z
2022-03-10T12:37:56.000Z
tests/test_io.py
jwcarr/eyek
78375e0a3a28610bfbcd2d17345d8336374ca5d8
[ "MIT" ]
1
2020-10-21T16:40:38.000Z
2021-01-10T19:17:08.000Z
tests/test_io.py
jwcarr/eyek
78375e0a3a28610bfbcd2d17345d8336374ca5d8
[ "MIT" ]
3
2021-02-02T18:37:38.000Z
2021-11-12T08:51:27.000Z
from tempfile import TemporaryDirectory from pathlib import Path import eyekit EXAMPLE_DATA = Path("example") / "example_data.json" EXAMPLE_TEXTS = Path("example") / "example_texts.json" EXAMPLE_ASC = Path("example") / "example_data.asc" EXAMPLE_CSV = Path("example") / "example_data.csv" def test_load_data(): da...
37.209677
76
0.686173
f0042c498192140ec8b725cc5caffb7194603c6a
4,810
py
Python
pydlbot_ui - Copy.py
iarwain8a/pydlbot
3d471795da3f5f17f2e784a9fa508f9dd5613bd3
[ "MIT" ]
null
null
null
pydlbot_ui - Copy.py
iarwain8a/pydlbot
3d471795da3f5f17f2e784a9fa508f9dd5613bd3
[ "MIT" ]
null
null
null
pydlbot_ui - Copy.py
iarwain8a/pydlbot
3d471795da3f5f17f2e784a9fa508f9dd5613bd3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'pydlbot.ui' # # Created by: PyQt5 UI code generator 5.5.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): cont = 0 def setupUi(self, MainWindow): ...
47.623762
75
0.706445
4eea5513c721706412c5c576bac1bc5b7f062779
6,452
py
Python
hashgraph.py
prakashcc/HashPay
437324e39fa71494324d1a9718e252314d76735d
[ "MIT" ]
null
null
null
hashgraph.py
prakashcc/HashPay
437324e39fa71494324d1a9718e252314d76735d
[ "MIT" ]
null
null
null
hashgraph.py
prakashcc/HashPay
437324e39fa71494324d1a9718e252314d76735d
[ "MIT" ]
1
2019-01-04T16:04:04.000Z
2019-01-04T16:04:04.000Z
# -*- coding: utf-8 -*- from random import shuffle import sys from base64 import b64encode from time import localtime, strftime from bokeh.io import curdoc from bokeh.layouts import layout, widgetbox, row from bokeh.plotting import figure from bokeh.palettes import plasma, small_palettes from bokeh.models import ( ...
39.10303
98
0.522164
39d9229198f1d1cfbef78c0352541def56c7d3c1
708
py
Python
migrations/versions/f98defc5cf6a_add_column_picture_path_in_users_for_.py
Nyota254/the-pitch
b3015c8ebc62a91085c39cf23e2feab0bd9b3b89
[ "MIT" ]
null
null
null
migrations/versions/f98defc5cf6a_add_column_picture_path_in_users_for_.py
Nyota254/the-pitch
b3015c8ebc62a91085c39cf23e2feab0bd9b3b89
[ "MIT" ]
null
null
null
migrations/versions/f98defc5cf6a_add_column_picture_path_in_users_for_.py
Nyota254/the-pitch
b3015c8ebc62a91085c39cf23e2feab0bd9b3b89
[ "MIT" ]
null
null
null
"""add column picture path in Users for profile picture Revision ID: f98defc5cf6a Revises: 2eb7d837048f Create Date: 2019-09-16 14:24:51.233455 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'f98defc5cf6a' down_revision = '2eb7d837048f' branch_labels = None de...
24.413793
85
0.704802
ba756816c8a43e99dee2e3368a56a9de4d2fab78
4,491
py
Python
hyppo/kgof/data.py
zdbzdb123123/hyppo
c22dcfb7bdf25c9945e6d4ddd7c6bfe5fcdd0cde
[ "MIT" ]
116
2020-02-28T10:29:22.000Z
2022-03-22T12:19:39.000Z
hyppo/kgof/data.py
zdbzdb123123/hyppo
c22dcfb7bdf25c9945e6d4ddd7c6bfe5fcdd0cde
[ "MIT" ]
253
2020-02-17T16:18:56.000Z
2022-03-30T16:55:02.000Z
hyppo/kgof/data.py
zdbzdb123123/hyppo
c22dcfb7bdf25c9945e6d4ddd7c6bfe5fcdd0cde
[ "MIT" ]
27
2020-03-02T21:07:41.000Z
2022-03-08T08:33:23.000Z
""" Module containing data structures for representing datasets. Contains overlapping functionality with sims that exist in hyppo.tools. Module will be refactored to remove dependencies on this object. """ from __future__ import print_function, division from builtins import range, object from past.utils import old_div...
28.605096
76
0.598085
00311eac42692ad013fb815547595a18d3a99999
764
py
Python
model/formulas/__init__.py
thieu1995/IFCB
4a5936f93e4e317915dfcd12682829cf20a39552
[ "MIT" ]
4
2021-02-05T13:45:23.000Z
2022-03-09T05:44:58.000Z
model/formulas/__init__.py
bkc-group/IFCB
1ada1151eb057510c16b0ed66b980b736603a0e5
[ "MIT" ]
null
null
null
model/formulas/__init__.py
bkc-group/IFCB
1ada1151eb057510c16b0ed66b980b736603a0e5
[ "MIT" ]
2
2021-02-15T14:55:22.000Z
2021-03-13T08:48:17.000Z
#!/usr/bin/env python # ------------------------------------------------------------------------------------------------------% # Created by "Thieu" at 15:47, 06/01/2021 % # ...
84.888889
105
0.197644
549df2c3702bdfde163db777fdf555e0acec323a
1,146
py
Python
leadgen_viewer/contrib/sites/migrations/0002_set_site_domain_and_name.py
sujitmaharjan/mytestrepo
5a38550317120f6639e5a4e825372502f6a6312b
[ "MIT" ]
null
null
null
leadgen_viewer/contrib/sites/migrations/0002_set_site_domain_and_name.py
sujitmaharjan/mytestrepo
5a38550317120f6639e5a4e825372502f6a6312b
[ "MIT" ]
null
null
null
leadgen_viewer/contrib/sites/migrations/0002_set_site_domain_and_name.py
sujitmaharjan/mytestrepo
5a38550317120f6639e5a4e825372502f6a6312b
[ "MIT" ]
null
null
null
""" To understand why this file is here, please read: http://cookiecutter-django.readthedocs.org/en/latest/faq.html#why-is-there-a-django-contrib-sites-directory-in-cookiecutter-django """ # -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf import settings from django.db import migration...
24.382979
130
0.643979
539ae3ce09506220cd980048185ff686ffb30c8f
67,585
py
Python
docs.py
bdmbdsm/openprocurement.auctions.geb
7d4db2c0c66fbe896dc76cead44bbb0f701c2353
[ "Apache-2.0" ]
null
null
null
docs.py
bdmbdsm/openprocurement.auctions.geb
7d4db2c0c66fbe896dc76cead44bbb0f701c2353
[ "Apache-2.0" ]
null
null
null
docs.py
bdmbdsm/openprocurement.auctions.geb
7d4db2c0c66fbe896dc76cead44bbb0f701c2353
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import json import os from datetime import timedelta, datetime from openprocurement.auctions.core.utils import get_now from openprocurement.auctions.core.tests.base import PrefixedRequestClass import openprocurement.auctions.geb.tests.base as base_test from openprocurement.auctions.geb.tests.b...
44.522398
145
0.517289
9e118a0f9fc03cff8cca5ff5cc6487e2ef41c93a
9,218
py
Python
sdks/python/apache_beam/coders/standard_coders_test.py
jxub/beam
8222fcc978a54d98d385c108fb5fcf7615d74829
[ "Apache-2.0" ]
35
2016-09-22T22:53:14.000Z
2020-02-13T15:12:21.000Z
sdks/python/apache_beam/coders/standard_coders_test.py
jxub/beam
8222fcc978a54d98d385c108fb5fcf7615d74829
[ "Apache-2.0" ]
71
2018-05-23T22:20:02.000Z
2019-04-30T15:37:46.000Z
sdks/python/apache_beam/coders/standard_coders_test.py
jxub/beam
8222fcc978a54d98d385c108fb5fcf7615d74829
[ "Apache-2.0" ]
88
2016-11-27T02:16:11.000Z
2020-02-28T05:10:26.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 us...
36.291339
80
0.681384
b7689c1017c3abeac14a53884ae5c3439e0dde37
294
py
Python
houdini/houdini_server/apps.py
TrianglePlusPlus/houdini
292b1fb395fc34dbefa8f891cc94bb811f5805bb
[ "MIT" ]
2
2017-09-25T00:30:22.000Z
2021-02-04T22:11:54.000Z
houdini/houdini_server/apps.py
TrianglePlusPlus/houdini
292b1fb395fc34dbefa8f891cc94bb811f5805bb
[ "MIT" ]
11
2016-12-29T22:05:57.000Z
2020-06-05T17:23:10.000Z
houdini/houdini_server/apps.py
TrianglePlusPlus/houdini
292b1fb395fc34dbefa8f891cc94bb811f5805bb
[ "MIT" ]
null
null
null
from django.apps import AppConfig class HoudiniServerConfig(AppConfig): name = 'houdini_server' verbose_name = 'Houdini Server' def ready(self): """ Connects up the signal receivers in signals.py :return: """ import houdini_server.signals
21
54
0.642857
4f1cfe270815971dba33c2b46e4db2539a50a9ca
54,460
py
Python
packages/vaex-core/vaex/expression.py
yohplala/vaex
ca7927a19d259576ca0403ee207a597aaef6adc2
[ "MIT" ]
null
null
null
packages/vaex-core/vaex/expression.py
yohplala/vaex
ca7927a19d259576ca0403ee207a597aaef6adc2
[ "MIT" ]
null
null
null
packages/vaex-core/vaex/expression.py
yohplala/vaex
ca7927a19d259576ca0403ee207a597aaef6adc2
[ "MIT" ]
null
null
null
import ast import os import base64 import cloudpickle as pickle import functools import operator import six import collections import weakref from future.utils import with_metaclass import numpy as np import tabulate import pyarrow as pa from vaex.datatype import DataType from vaex.docstrings import docsubst from vae...
40.044118
184
0.587899
61d8e9a4a5c1c584941837fddb3a82e0ed11d430
810
py
Python
pytorch_unet/utils/metrics.py
mukeshmithrakumar/UNet
3f83f5116cd897293f1075f448703b75930707d5
[ "MIT" ]
11
2019-02-03T14:20:24.000Z
2021-06-28T15:18:59.000Z
pytorch_unet/utils/metrics.py
mukeshmithrakumar/radnet
3f83f5116cd897293f1075f448703b75930707d5
[ "MIT" ]
null
null
null
pytorch_unet/utils/metrics.py
mukeshmithrakumar/radnet
3f83f5116cd897293f1075f448703b75930707d5
[ "MIT" ]
2
2019-07-19T20:00:24.000Z
2020-02-18T04:49:49.000Z
import numpy as np def dice(image1, image2, empty_score=1.0): """Dice score implementation. Note: The F1 score is also known as the Sørensen–Dice coefficient or Dice similarity coefficient (DSC). :param image1 : The prediction :param image2 : The label :param empty_scor...
31.153846
105
0.635802
6fa38cf1a1fc3cf983b70ab26586f733f0d30b81
1,938
py
Python
cyborg/common/nova_client.py
ChameleonCloud/cyborg
f3ab2f37dd973aad30b7364c0dea5b610309f250
[ "Apache-2.0" ]
null
null
null
cyborg/common/nova_client.py
ChameleonCloud/cyborg
f3ab2f37dd973aad30b7364c0dea5b610309f250
[ "Apache-2.0" ]
null
null
null
cyborg/common/nova_client.py
ChameleonCloud/cyborg
f3ab2f37dd973aad30b7364c0dea5b610309f250
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Intel, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
36.566038
78
0.635707
f20a94f618790315b2c17ab64aa3f7324f6bdf13
16,122
py
Python
typhon/retrieval/qrnn/models/pytorch/common.py
simonpf/typhon
2a353f5adff0ff9470dffaded4e4d367e85340d2
[ "MIT" ]
1
2020-12-18T17:19:16.000Z
2020-12-18T17:19:16.000Z
typhon/retrieval/qrnn/models/pytorch/common.py
simonpf/typhon
2a353f5adff0ff9470dffaded4e4d367e85340d2
[ "MIT" ]
null
null
null
typhon/retrieval/qrnn/models/pytorch/common.py
simonpf/typhon
2a353f5adff0ff9470dffaded4e4d367e85340d2
[ "MIT" ]
null
null
null
""" models.pytorch.common ===================== This module provides common functionality required to realize QRNNs in pytorch. """ import torch import numpy as np from torch import nn from torch import optim from torch.optim.lr_scheduler import ReduceLROnPlateau from torch.utils.data import Dataset from tqdm import t...
31.183752
116
0.528036
9df5b396dcabedd02e2ef955cce766661f250ab2
608
py
Python
ui-tests/jupyter_server_test_config.py
madhur-tandon/search-replace
1ed21545577afd3a9c7a611011e0862ee1c07d03
[ "BSD-3-Clause" ]
null
null
null
ui-tests/jupyter_server_test_config.py
madhur-tandon/search-replace
1ed21545577afd3a9c7a611011e0862ee1c07d03
[ "BSD-3-Clause" ]
null
null
null
ui-tests/jupyter_server_test_config.py
madhur-tandon/search-replace
1ed21545577afd3a9c7a611011e0862ee1c07d03
[ "BSD-3-Clause" ]
null
null
null
"""Server configuration for integration tests. !! Never use this configuration in production because it opens the server to the world and provide access to JupyterLab JavaScript objects through the global window variable. """ from tempfile import mkdtemp c.ServerApp.port = 8888 c.ServerApp.port_retries = 0 c.ServerApp...
30.4
62
0.786184
61ef90719b5d5d759de1a6b80a1ea748d8bb0911
3,562
py
Python
hooks/charmhelpers/__init__.py
CanonicalBootStack/charm-neutron-openvswitch
b404c18a506c4dcb0967b85cbafb0d238bc3f773
[ "ECL-2.0", "Apache-2.0" ]
1
2021-09-17T02:50:45.000Z
2021-09-17T02:50:45.000Z
hooks/charmhelpers/__init__.py
CanonicalBootStack/charm-neutron-openvswitch
b404c18a506c4dcb0967b85cbafb0d238bc3f773
[ "ECL-2.0", "Apache-2.0" ]
3
2019-07-10T15:27:36.000Z
2019-07-10T15:28:05.000Z
hooks/charmhelpers/__init__.py
CanonicalBootStack/charm-neutron-openvswitch
b404c18a506c4dcb0967b85cbafb0d238bc3f773
[ "ECL-2.0", "Apache-2.0" ]
3
2020-03-25T20:07:06.000Z
2021-03-25T19:54:26.000Z
# Copyright 2014-2015 Canonical Limited. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
36.346939
79
0.633352
2906bb96bd420a575de0e2c08b0206ef4d45e5c9
1,818
py
Python
kitsune/announcements/tasks.py
turtleloveshoes/kitsune
7e5524644eab7f608a44c44c63d242cda3aef7f0
[ "BSD-3-Clause" ]
1
2017-07-03T12:11:03.000Z
2017-07-03T12:11:03.000Z
kitsune/announcements/tasks.py
rlr/kitsune
591e996a3a115a7b235cbca19f5dec58fc9b6249
[ "BSD-3-Clause" ]
8
2020-06-05T18:42:14.000Z
2022-03-11T23:26:51.000Z
kitsune/announcements/tasks.py
rlr/kitsune
591e996a3a115a7b235cbca19f5dec58fc9b6249
[ "BSD-3-Clause" ]
1
2020-11-03T23:47:55.000Z
2020-11-03T23:47:55.000Z
from django.conf import settings from django.contrib.auth.models import User from django.contrib.sites.models import Site import bleach from celery import task from tower import ugettext as _ from kitsune.announcements.models import Announcement from kitsune.sumo.decorators import timeit from kitsune.sumo.email_utils...
33.666667
79
0.665017
12a64ad282463fd34cc1cf8075f0941d0366a00d
12,684
py
Python
laygo/generators/splash/clk_dis_htree_layout_generator.py
tinapiao/Software-IC-Automation
74b23cd94aa6e4658b110e93b5deb635e014f3a6
[ "BSD-3-Clause" ]
26
2017-07-07T08:06:31.000Z
2021-11-25T06:41:24.000Z
laygo/generators/splash/clk_dis_htree_layout_generator.py
tinapiao/Software-IC-Automation
74b23cd94aa6e4658b110e93b5deb635e014f3a6
[ "BSD-3-Clause" ]
9
2016-12-28T03:08:29.000Z
2019-01-30T16:00:28.000Z
laygo/generators/splash/clk_dis_htree_layout_generator.py
tinapiao/Software-IC-Automation
74b23cd94aa6e4658b110e93b5deb635e014f3a6
[ "BSD-3-Clause" ]
10
2018-07-14T01:31:28.000Z
2021-08-21T10:18:30.000Z
#!/usr/bin/python ######################################################################################################################## # # Copyright (c) 2014, Regents of the University of California # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, are perm...
40.394904
213
0.585304
18d35d1bf0769171fe1d14d95aae2c8384d5a0be
13,673
py
Python
oasislmf/cli/api.py
augustoproiete-forks/OasisLMF--OasisLMF
560749e9dd7d8bd84307cd2767517b3e1d3a1c01
[ "BSD-3-Clause" ]
null
null
null
oasislmf/cli/api.py
augustoproiete-forks/OasisLMF--OasisLMF
560749e9dd7d8bd84307cd2767517b3e1d3a1c01
[ "BSD-3-Clause" ]
null
null
null
oasislmf/cli/api.py
augustoproiete-forks/OasisLMF--OasisLMF
560749e9dd7d8bd84307cd2767517b3e1d3a1c01
[ "BSD-3-Clause" ]
null
null
null
import getpass import io import json import sys from argparse import RawDescriptionHelpFormatter from ..api.client import APIClient from ..utils.exceptions import OasisException from ..utils.path import PathCleaner from ..utils.defaults import API_EXAMPLE_AUTH from .base import OasisBaseCommand from .inputs import I...
37.357923
181
0.580999
a1681fcb135caed5a8d6681297e0adf162a4c88f
156,321
py
Python
lib/galaxy/tools/__init__.py
alex-k8s/galaxy
d37bda41ebbde79c1c0a77d8490505bb940de38d
[ "CC-BY-3.0" ]
1
2021-12-14T15:19:25.000Z
2021-12-14T15:19:25.000Z
lib/galaxy/tools/__init__.py
Stark-F/galaxy
7f0519ff20ac90736ad86d06ff7bae17e8456c36
[ "CC-BY-3.0" ]
11
2021-06-08T00:26:51.000Z
2021-06-22T16:12:03.000Z
lib/galaxy/tools/__init__.py
alex-k8s/galaxy
d37bda41ebbde79c1c0a77d8490505bb940de38d
[ "CC-BY-3.0" ]
null
null
null
""" Classes encapsulating galaxy tools and tool configuration. """ import itertools import json import logging import os import re import tarfile import tempfile import threading from datetime import datetime from pathlib import Path from typing import cast, Dict, List, NamedTuple, Optional, Tuple, Type, Union from url...
45.468586
225
0.630357
589dcfdaa03f9a2ad818ddc51d71f34225785942
1,844
py
Python
cwgithub/cwgithub/spiders/github.py
trujunzhang/djzhang-targets
c2e327acde9d51f0455e7243f17d93d74b579501
[ "MIT" ]
2
2018-12-03T16:30:55.000Z
2019-04-03T13:29:20.000Z
cwgithub/cwgithub/spiders/github.py
trujunzhang/djzhang-targets
c2e327acde9d51f0455e7243f17d93d74b579501
[ "MIT" ]
null
null
null
cwgithub/cwgithub/spiders/github.py
trujunzhang/djzhang-targets
c2e327acde9d51f0455e7243f17d93d74b579501
[ "MIT" ]
1
2019-04-03T13:29:25.000Z
2019-04-03T13:29:25.000Z
# -*- coding: utf-8 -*- import scrapy from selenium import webdriver import time from cwgithub.items import GithubItem class GithubSpider(scrapy.Spider): name = "github" allowed_domains = ["github.com"] start_urls = [ 'https://github.com/login', ] def __init__(self): self.driver...
30.229508
101
0.603037
25628b507eafd88f9c5f1685524f5654b6918292
60
py
Python
src/spacel/provision/app/db/__init__.py
mycloudandme/spacel-provision
900b8ada0017f727163c5c2ae464e17d747ba0e8
[ "MIT" ]
2
2016-05-18T11:10:27.000Z
2016-05-18T13:25:04.000Z
src/spacel/provision/app/db/__init__.py
mycloudandme/spacel-provision
900b8ada0017f727163c5c2ae464e17d747ba0e8
[ "MIT" ]
null
null
null
src/spacel/provision/app/db/__init__.py
mycloudandme/spacel-provision
900b8ada0017f727163c5c2ae464e17d747ba0e8
[ "MIT" ]
null
null
null
from .cache import CacheFactory from .rds import RdsFactory
20
31
0.833333
2689734c07d079150e4b295ad5ab24d6bf93bc44
4,418
py
Python
dm_alchemy/types/helpers.py
locross93/dm_alchemy
35449de51d56c427959ae6a3be13d6c6ab738be5
[ "Apache-2.0" ]
182
2021-02-08T15:25:06.000Z
2022-03-31T00:46:23.000Z
dm_alchemy/types/helpers.py
locross93/dm_alchemy
35449de51d56c427959ae6a3be13d6c6ab738be5
[ "Apache-2.0" ]
6
2021-02-12T10:42:51.000Z
2022-03-14T23:59:45.000Z
dm_alchemy/types/helpers.py
locross93/dm_alchemy
35449de51d56c427959ae6a3be13d6c6ab738be5
[ "Apache-2.0" ]
18
2021-02-08T20:37:22.000Z
2022-03-15T20:54:14.000Z
# Lint as: python3 # Copyright 2020 DeepMind Technologies Limited. 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 # # U...
37.440678
109
0.714124
14231afcc422af9d209945d5157198c402ead5c5
1,667
py
Python
examples/quantities_ex.py
melissawm/PyLaTeX-1
125611520b783293e925dc8770af5c3b39f2926f
[ "MIT" ]
null
null
null
examples/quantities_ex.py
melissawm/PyLaTeX-1
125611520b783293e925dc8770af5c3b39f2926f
[ "MIT" ]
null
null
null
examples/quantities_ex.py
melissawm/PyLaTeX-1
125611520b783293e925dc8770af5c3b39f2926f
[ "MIT" ]
1
2018-09-27T01:02:55.000Z
2018-09-27T01:02:55.000Z
#!/usr/bin/python """ This example shows quantities functionality. .. :copyright: (c) 2014 by Jelte Fennema. :license: MIT, see License for more details. """ # begin-doc-include import quantities as pq from pylatex import Document, Section, Subsection, Math, Quantity if __name__ == '__main__': doc = Docume...
34.729167
74
0.656269
f8e96340c34e18f0e214b3a91bc8c732a103a080
16,172
py
Python
qa/rpc-tests/p2p-fullblocktest.py
CollegicoinCLG/collegicoin-old
a82417e181df0798d9186aae458dbc3ff87f6de2
[ "MIT" ]
1
2019-12-21T23:25:47.000Z
2019-12-21T23:25:47.000Z
qa/rpc-tests/p2p-fullblocktest.py
CollegicoinCLG/collegicoin-old
a82417e181df0798d9186aae458dbc3ff87f6de2
[ "MIT" ]
null
null
null
qa/rpc-tests/p2p-fullblocktest.py
CollegicoinCLG/collegicoin-old
a82417e181df0798d9186aae458dbc3ff87f6de2
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # # Distributed under the MIT/X11 software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # from test_framework.test_framework import ComparisonTestFramework from test_framework.util import * from test_framework.comptool import TestManager, T...
40.129032
106
0.536606
77af8f947adf75bf371079eeae4b841a80d12028
1,876
py
Python
ngcasa/deconvolution/deconvolve_multiterm_clean.py
wxiongccnu1990/cngi_prototype
7a7230485acc9f8f2be534a832522339153d521e
[ "Apache-2.0" ]
null
null
null
ngcasa/deconvolution/deconvolve_multiterm_clean.py
wxiongccnu1990/cngi_prototype
7a7230485acc9f8f2be534a832522339153d521e
[ "Apache-2.0" ]
null
null
null
ngcasa/deconvolution/deconvolve_multiterm_clean.py
wxiongccnu1990/cngi_prototype
7a7230485acc9f8f2be534a832522339153d521e
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 AUI, Inc. Washington DC, USA # # 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 ...
36.784314
106
0.678038
06248a71896a187b4c6ae43ae63535ba8d309551
1,252
py
Python
gaze_estimation/gaze_estimator/head_pose_estimation/face_landmark_estimator.py
hysts/pytorch_mpiigaze
34d7d2fd9102688bc7a523a6f1d9542f8b934aa8
[ "MIT" ]
240
2018-01-24T19:43:27.000Z
2022-03-29T17:46:54.000Z
gaze_estimation/gaze_estimator/head_pose_estimation/face_landmark_estimator.py
hysts/pytorch_mpiigaze
34d7d2fd9102688bc7a523a6f1d9542f8b934aa8
[ "MIT" ]
54
2018-01-20T23:25:55.000Z
2022-02-26T06:34:36.000Z
gaze_estimation/gaze_estimator/head_pose_estimation/face_landmark_estimator.py
hysts/pytorch_mpiigaze
34d7d2fd9102688bc7a523a6f1d9542f8b934aa8
[ "MIT" ]
74
2018-01-20T20:51:20.000Z
2022-03-07T10:50:13.000Z
from typing import List import dlib import numpy as np import yacs.config from ..common import Face class LandmarkEstimator: def __init__(self, config: yacs.config.CfgNode): self.mode = config.face_detector.mode if self.mode == 'dlib': self.detector = dlib.get_frontal_face_detector()...
32.947368
78
0.559904
6825f6b3c50a037c935fc02116bad3a0da894d7a
13,829
py
Python
toolbox/db/write/rebuild.py
Alexd14/toolbox
cf834994352d2d997124e69bc7ff43bcd6ac145f
[ "MIT" ]
null
null
null
toolbox/db/write/rebuild.py
Alexd14/toolbox
cf834994352d2d997124e69bc7ff43bcd6ac145f
[ "MIT" ]
null
null
null
toolbox/db/write/rebuild.py
Alexd14/toolbox
cf834994352d2d997124e69bc7ff43bcd6ac145f
[ "MIT" ]
null
null
null
from toolbox.db.read.etf_universe import clear_cache from toolbox.db.write.create_tables import IngestDataBase from toolbox.db.write.make_universes import compustat_us_universe, crsp_us_universe def rebuild_db(drop: bool = False): """ code to rebuild the database from scratch :param drop: should we drop t...
50.105072
182
0.472051
46cc08f8ebe5f9e9ae77869e33fe70e8b7670cac
1,008
py
Python
tests/data23/recipe-414879.py
JohannesBuchner/pystrict3
f442a89ac6a23f4323daed8ef829d8e9e1197f90
[ "BSD-2-Clause" ]
1
2020-06-05T08:53:26.000Z
2020-06-05T08:53:26.000Z
tests/data23/recipe-414879.py
JohannesBuchner/pystrict3
f442a89ac6a23f4323daed8ef829d8e9e1197f90
[ "BSD-2-Clause" ]
1
2020-06-04T13:47:19.000Z
2020-06-04T13:47:57.000Z
tests/data23/recipe-414879.py
JohannesBuchner/pystrict3
f442a89ac6a23f4323daed8ef829d8e9e1197f90
[ "BSD-2-Clause" ]
1
2020-11-07T17:02:46.000Z
2020-11-07T17:02:46.000Z
import ctypes ODBC_ADD_DSN = 1 # Add data source ODBC_CONFIG_DSN = 2 # Configure (edit) data source ODBC_REMOVE_DSN = 3 # Remove data source ODBC_ADD_SYS_DSN = 4 # add a system DSN ODBC_CONFIG_SYS_DSN = 5 # Configure a system DSN ODBC_REMOVE_SYS_DSN = 6 # remove a system DSN def create_sys_dsn(drive...
32.516129
161
0.654762
7dd2b64c2193625d7e77a285f12740b15be3f26e
8,371
py
Python
frappe/desk/form/document_follow.py
naderelabed/frappe
4d6fefaf6b5af594180c0f9f31c7e28e6f514348
[ "MIT" ]
null
null
null
frappe/desk/form/document_follow.py
naderelabed/frappe
4d6fefaf6b5af594180c0f9f31c7e28e6f514348
[ "MIT" ]
null
null
null
frappe/desk/form/document_follow.py
naderelabed/frappe
4d6fefaf6b5af594180c0f9f31c7e28e6f514348
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: MIT. See LICENSE import frappe import frappe.utils from frappe.utils import get_url_to_form from frappe.model import log_types from frappe import _ from frappe.query_builder import DocType @frappe.whitelist() def update_follow(doctype, do...
26.490506
115
0.687254
bb8f9b466484e7d22770dafee69a3a588ee9248c
2,343
py
Python
setup.py
Bduz/safelife
cab43b41a5eb73e3f0d27d0435b6e30973b770b2
[ "Apache-2.0" ]
null
null
null
setup.py
Bduz/safelife
cab43b41a5eb73e3f0d27d0435b6e30973b770b2
[ "Apache-2.0" ]
null
null
null
setup.py
Bduz/safelife
cab43b41a5eb73e3f0d27d0435b6e30973b770b2
[ "Apache-2.0" ]
null
null
null
import os import glob import setuptools import platform class get_numpy_include(object): def __str__(self): import numpy return numpy.get_include() base_dir = os.path.abspath(os.path.dirname(__file__)) ext_path = os.path.join(base_dir, 'safelife', 'speedups_src') levels_path = os.path.join(base_...
31.24
82
0.588988
5d3e361ac660a5c9175721fc4a8b66d5c81a6b64
23,743
py
Python
tests/test_core/test_models.py
dinojugosloven/pymalcolm
0b856ee1113efdb42f2f3b15986f8ac5f9e1b35a
[ "Apache-2.0" ]
null
null
null
tests/test_core/test_models.py
dinojugosloven/pymalcolm
0b856ee1113efdb42f2f3b15986f8ac5f9e1b35a
[ "Apache-2.0" ]
null
null
null
tests/test_core/test_models.py
dinojugosloven/pymalcolm
0b856ee1113efdb42f2f3b15986f8ac5f9e1b35a
[ "Apache-2.0" ]
null
null
null
from collections import OrderedDict import unittest import numpy as np from mock import Mock from annotypes import Serializable from malcolm.core import BlockModel, StringMeta, Alarm, \ AlarmSeverity, AlarmStatus, TimeStamp, VMeta, TableMeta, StringArrayMeta, \ NumberMeta, NumberArrayMeta, MethodModel, Choice...
32.391542
79
0.616476
dce325f559cbd1c821085bb4a7854c77a1d271e0
1,070
py
Python
setup.py
krakozaure/pyzzy
17a316c0ced8095b671186c73fb5bf1daa2c140b
[ "MIT" ]
null
null
null
setup.py
krakozaure/pyzzy
17a316c0ced8095b671186c73fb5bf1daa2c140b
[ "MIT" ]
null
null
null
setup.py
krakozaure/pyzzy
17a316c0ced8095b671186c73fb5bf1daa2c140b
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="pyzzy", version="0.0.11", author="krakozaure", license="MIT License", author_email="", description="Set of packages to simplify development in Python", long_description=long_descri...
34.516129
70
0.63271
6ad28d6862d99a54dc5a880e2a3de9e6744d4d08
4,009
py
Python
src/design_storage/jwt.py
DD-DeCaF/design-storage
0c0e07f0dc505eb4a1e4521a87f5f7ac6f879b6d
[ "Apache-2.0" ]
null
null
null
src/design_storage/jwt.py
DD-DeCaF/design-storage
0c0e07f0dc505eb4a1e4521a87f5f7ac6f879b6d
[ "Apache-2.0" ]
4
2019-01-08T13:43:13.000Z
2020-04-30T01:43:03.000Z
src/design_storage/jwt.py
DD-DeCaF/design-storage
0c0e07f0dc505eb4a1e4521a87f5f7ac6f879b6d
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018, Novo Nordisk Foundation Center for Biosustainability, # Technical University of Denmark. # # 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/lic...
31.566929
80
0.629833
505d044daf02ad603fa15d47f1c9d802217306c6
1,960
py
Python
gym/envs/debugging/two_round_nondeterministic_reward.py
zdx3578/gym-zdx
b72e638095e23b256fe72fc38ef45d2ca1652b6c
[ "MIT" ]
null
null
null
gym/envs/debugging/two_round_nondeterministic_reward.py
zdx3578/gym-zdx
b72e638095e23b256fe72fc38ef45d2ca1652b6c
[ "MIT" ]
null
null
null
gym/envs/debugging/two_round_nondeterministic_reward.py
zdx3578/gym-zdx
b72e638095e23b256fe72fc38ef45d2ca1652b6c
[ "MIT" ]
null
null
null
""" Simple environment with known optimal policy and value function. Action 0 then 0 yields randomly -1 or 1 reward and terminates the session. Action 0 then 1 yields randomly 0, 0, or 9 reward and terminates the session. Action 0 then 0 yields randomly 0 or 2 reward and terminates the session. Action 1 then 1 yields ...
29.253731
93
0.615306
6593b32c3daf5dce72ab9a22eb051607e488851d
613
py
Python
Unsupervised ML/K-Means Clustering/Test_K.py
marcelkotze007/mk007---ML-Python-library
307e51762fc821588206440daa2c18a6128f4aec
[ "MIT" ]
null
null
null
Unsupervised ML/K-Means Clustering/Test_K.py
marcelkotze007/mk007---ML-Python-library
307e51762fc821588206440daa2c18a6128f4aec
[ "MIT" ]
null
null
null
Unsupervised ML/K-Means Clustering/Test_K.py
marcelkotze007/mk007---ML-Python-library
307e51762fc821588206440daa2c18a6128f4aec
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from K_Means import K_means def create_data(D = 2, S = 4, N = 900): mu1 = np.array([0,0]) mu2 = np.array([S,S]) mu3 = np.array([0,S]) X = np.zeros((N, D)) X[:300, :] = np.random.randn(300, D) + mu1 X[300:600, :] = np.random.randn(300, D) + mu...
22.703704
98
0.5677