hexsha
string
size
int64
ext
string
lang
string
max_stars_repo_path
string
max_stars_repo_name
string
max_stars_repo_head_hexsha
string
max_stars_repo_licenses
list
max_stars_count
int64
max_stars_repo_stars_event_min_datetime
string
max_stars_repo_stars_event_max_datetime
string
max_issues_repo_path
string
max_issues_repo_name
string
max_issues_repo_head_hexsha
string
max_issues_repo_licenses
list
max_issues_count
int64
max_issues_repo_issues_event_min_datetime
string
max_issues_repo_issues_event_max_datetime
string
max_forks_repo_path
string
max_forks_repo_name
string
max_forks_repo_head_hexsha
string
max_forks_repo_licenses
list
max_forks_count
int64
max_forks_repo_forks_event_min_datetime
string
max_forks_repo_forks_event_max_datetime
string
content
string
avg_line_length
float64
max_line_length
int64
alphanum_fraction
float64
qsc_code_num_words_quality_signal
int64
qsc_code_num_chars_quality_signal
float64
qsc_code_mean_word_length_quality_signal
float64
qsc_code_frac_words_unique_quality_signal
float64
qsc_code_frac_chars_top_2grams_quality_signal
float64
qsc_code_frac_chars_top_3grams_quality_signal
float64
qsc_code_frac_chars_top_4grams_quality_signal
float64
qsc_code_frac_chars_dupe_5grams_quality_signal
float64
qsc_code_frac_chars_dupe_6grams_quality_signal
float64
qsc_code_frac_chars_dupe_7grams_quality_signal
float64
qsc_code_frac_chars_dupe_8grams_quality_signal
float64
qsc_code_frac_chars_dupe_9grams_quality_signal
float64
qsc_code_frac_chars_dupe_10grams_quality_signal
float64
qsc_code_frac_chars_replacement_symbols_quality_signal
float64
qsc_code_frac_chars_digital_quality_signal
float64
qsc_code_frac_chars_whitespace_quality_signal
float64
qsc_code_size_file_byte_quality_signal
float64
qsc_code_num_lines_quality_signal
float64
qsc_code_num_chars_line_max_quality_signal
float64
qsc_code_num_chars_line_mean_quality_signal
float64
qsc_code_frac_chars_alphabet_quality_signal
float64
qsc_code_frac_chars_comments_quality_signal
float64
qsc_code_cate_xml_start_quality_signal
float64
qsc_code_frac_lines_dupe_lines_quality_signal
float64
qsc_code_cate_autogen_quality_signal
float64
qsc_code_frac_lines_long_string_quality_signal
float64
qsc_code_frac_chars_string_length_quality_signal
float64
qsc_code_frac_chars_long_word_length_quality_signal
float64
qsc_code_frac_lines_string_concat_quality_signal
float64
qsc_code_cate_encoded_data_quality_signal
float64
qsc_code_frac_chars_hex_words_quality_signal
float64
qsc_code_frac_lines_prompt_comments_quality_signal
float64
qsc_code_frac_lines_assert_quality_signal
float64
qsc_codepython_cate_ast_quality_signal
float64
qsc_codepython_frac_lines_func_ratio_quality_signal
float64
qsc_codepython_cate_var_zero_quality_signal
bool
qsc_codepython_frac_lines_pass_quality_signal
float64
qsc_codepython_frac_lines_import_quality_signal
float64
qsc_codepython_frac_lines_simplefunc_quality_signal
float64
qsc_codepython_score_lines_no_logic_quality_signal
float64
qsc_codepython_frac_lines_print_quality_signal
float64
qsc_code_num_words
int64
qsc_code_num_chars
int64
qsc_code_mean_word_length
int64
qsc_code_frac_words_unique
null
qsc_code_frac_chars_top_2grams
int64
qsc_code_frac_chars_top_3grams
int64
qsc_code_frac_chars_top_4grams
int64
qsc_code_frac_chars_dupe_5grams
int64
qsc_code_frac_chars_dupe_6grams
int64
qsc_code_frac_chars_dupe_7grams
int64
qsc_code_frac_chars_dupe_8grams
int64
qsc_code_frac_chars_dupe_9grams
int64
qsc_code_frac_chars_dupe_10grams
int64
qsc_code_frac_chars_replacement_symbols
int64
qsc_code_frac_chars_digital
int64
qsc_code_frac_chars_whitespace
int64
qsc_code_size_file_byte
int64
qsc_code_num_lines
int64
qsc_code_num_chars_line_max
int64
qsc_code_num_chars_line_mean
int64
qsc_code_frac_chars_alphabet
int64
qsc_code_frac_chars_comments
int64
qsc_code_cate_xml_start
int64
qsc_code_frac_lines_dupe_lines
int64
qsc_code_cate_autogen
int64
qsc_code_frac_lines_long_string
int64
qsc_code_frac_chars_string_length
int64
qsc_code_frac_chars_long_word_length
int64
qsc_code_frac_lines_string_concat
null
qsc_code_cate_encoded_data
int64
qsc_code_frac_chars_hex_words
int64
qsc_code_frac_lines_prompt_comments
int64
qsc_code_frac_lines_assert
int64
qsc_codepython_cate_ast
int64
qsc_codepython_frac_lines_func_ratio
int64
qsc_codepython_cate_var_zero
int64
qsc_codepython_frac_lines_pass
int64
qsc_codepython_frac_lines_import
int64
qsc_codepython_frac_lines_simplefunc
int64
qsc_codepython_score_lines_no_logic
int64
qsc_codepython_frac_lines_print
int64
effective
string
hits
int64
fa557cc870ccb6e7c86cef480041a86947f4dffa
31,531
py
Python
automl/google/cloud/automl_v1/proto/prediction_service_pb2.py
helinwang/google-cloud-python
c5b12d436043ddef33609396fae5281046b36638
[ "Apache-2.0" ]
null
null
null
automl/google/cloud/automl_v1/proto/prediction_service_pb2.py
helinwang/google-cloud-python
c5b12d436043ddef33609396fae5281046b36638
[ "Apache-2.0" ]
null
null
null
automl/google/cloud/automl_v1/proto/prediction_service_pb2.py
helinwang/google-cloud-python
c5b12d436043ddef33609396fae5281046b36638
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/automl_v1/proto/prediction_service.proto import sys _b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf impo...
37.536905
2,633
0.65009
3,400
31,531
5.765882
0.113824
0.03836
0.05504
0.070751
0.729392
0.68537
0.652877
0.607478
0.578096
0.55907
0
0.037872
0.253021
31,531
839
2,634
37.581645
0.794464
0.028321
0
0.692893
1
0.003807
0.335913
0.163695
0
0
0
0
0
1
0
false
0
0.015228
0
0.015228
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
fa5c2f346858494b3b0aa7ed43257f669a14a459
1,300
py
Python
interactions/tests/test_models.py
Ins-V/wc_crm
5d75907bb48e892328712ed0b2cf96b9083239aa
[ "MIT" ]
null
null
null
interactions/tests/test_models.py
Ins-V/wc_crm
5d75907bb48e892328712ed0b2cf96b9083239aa
[ "MIT" ]
null
null
null
interactions/tests/test_models.py
Ins-V/wc_crm
5d75907bb48e892328712ed0b2cf96b9083239aa
[ "MIT" ]
null
null
null
from django.test import TestCase from django.urls import reverse from interactions.models import Interaction from interactions.tests.factories import InteractionFactory class InteractionModelTestCase(TestCase): """Testing the interaction model class.""" def test_create_interaction(self): interaction_...
46.428571
121
0.757692
137
1,300
6.883212
0.335766
0.28632
0.209968
0.159067
0.283139
0.086957
0.086957
0
0
0
0
0.00092
0.163846
1,300
27
122
48.148148
0.866605
0.027692
0
0.090909
0
0
0.099364
0.061208
0
0
0
0
0.363636
1
0.045455
false
0
0.181818
0
0.272727
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
fa67715bda29bbe96a84657bcd067314a9f02f73
640
py
Python
main.py
thisischandanmishra/flight-information
d6c05939bd7d3568b81f1a213776ccf1941d88ef
[ "MIT" ]
2
2021-02-08T15:12:56.000Z
2021-02-08T15:12:58.000Z
main.py
thisischandanmishra/flight-information
d6c05939bd7d3568b81f1a213776ccf1941d88ef
[ "MIT" ]
null
null
null
main.py
thisischandanmishra/flight-information
d6c05939bd7d3568b81f1a213776ccf1941d88ef
[ "MIT" ]
1
2021-02-08T13:10:47.000Z
2021-02-08T13:10:47.000Z
import os from flask import Flask from src.conf.config import SQLALCHEMY_DATABASE_URI from src.conf.routes import generate_routes from src.database.database import db def create_app(): app = Flask(__name__) app.config['DEBUG'] = True app.config['SQLALCHEMY_DATABASE_URI'] = SQLALCHEMY_DATABASE_URI ap...
24.615385
67
0.721875
89
640
4.865169
0.404494
0.166282
0.193995
0
0
0
0
0
0
0
0
0.007619
0.179688
640
25
68
25.6
0.817143
0
0
0
1
0
0.117188
0.082813
0
0
0
0
0
1
0.052632
false
0
0.263158
0
0.368421
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
fa69676745b899f3c6670bc500edfdcbbb0f151b
2,611
py
Python
scripts/append_album_to_clementine.py
Mdlkxzmcp/various_python
be4f873c6263e3db11177bbccce2aa465514294d
[ "MIT" ]
null
null
null
scripts/append_album_to_clementine.py
Mdlkxzmcp/various_python
be4f873c6263e3db11177bbccce2aa465514294d
[ "MIT" ]
null
null
null
scripts/append_album_to_clementine.py
Mdlkxzmcp/various_python
be4f873c6263e3db11177bbccce2aa465514294d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Jan 7 21:25:42 2018 @author: mdlkxzmcp @version: 0.1.0 """ import sys, getopt, os, re, dbus def displayHelpMessage(): print(""" Usage: append_album_to_clementine.py [options] Assumes: Clementine is running. Options:...
30.717647
90
0.587514
314
2,611
4.710191
0.429936
0.048682
0.024341
0.03854
0.11021
0.096011
0.058147
0.058147
0
0
0
0.012644
0.303332
2,611
84
91
31.083333
0.80044
0.072386
0
0.070175
0
0
0.302097
0.047069
0
0
0
0.011905
0
0
null
null
0
0.017544
null
null
0.035088
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
1
0
0
0
0
0
0
0
0
2
fa6da5b50a70a232970740486e8d08282f48fb6c
203
py
Python
test/conftest.py
larsewi/cfbs
b105187251f6b051f286b4eaae57d9c0b7dd93f1
[ "MIT" ]
null
null
null
test/conftest.py
larsewi/cfbs
b105187251f6b051f286b4eaae57d9c0b7dd93f1
[ "MIT" ]
null
null
null
test/conftest.py
larsewi/cfbs
b105187251f6b051f286b4eaae57d9c0b7dd93f1
[ "MIT" ]
null
null
null
import os import pytest @pytest.fixture(scope="function") def chdir(request): os.chdir(os.path.join(os.path.dirname(__file__), request.param)) yield os.chdir(request.config.invocation_dir)
20.3
68
0.738916
29
203
5
0.62069
0.165517
0
0
0
0
0
0
0
0
0
0
0.123153
203
9
69
22.555556
0.814607
0
0
0
0
0
0.039409
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.428571
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d7102eebaebc9e30f5d8d1d2889306ea27340499
316
py
Python
Practicals03/Example01.py
MichalKyjovsky/NPRG065_Programing_in_Python
14436fbf8f0e547ab084083135a84c8ae49e083c
[ "MIT" ]
null
null
null
Practicals03/Example01.py
MichalKyjovsky/NPRG065_Programing_in_Python
14436fbf8f0e547ab084083135a84c8ae49e083c
[ "MIT" ]
null
null
null
Practicals03/Example01.py
MichalKyjovsky/NPRG065_Programing_in_Python
14436fbf8f0e547ab084083135a84c8ae49e083c
[ "MIT" ]
null
null
null
#! /usr/bin/env Python3 list_of_tuples = [] list_of_tuples_comprehension = ([(i, j, i * j) for i in range(1, 11) for j in range(1, 11)]) for i in range(1, 11): for j in range(1, 11): list_of_tuples.append((i, j, i * j)) print(list_of_tuples) print('************') print(list_of_tuples_comprehension)
24.307692
92
0.629747
57
316
3.280702
0.298246
0.160428
0.320856
0.213904
0.299465
0.299465
0.299465
0.299465
0.299465
0.299465
0
0.050193
0.18038
316
12
93
26.333333
0.671815
0.06962
0
0
0
0
0.041096
0
0
0
0
0
0
1
0
false
0
0
0
0
0.375
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d718b8127e1e923054f34abbd4d69c9073b1ac95
126
py
Python
music/class_/audioa/d/base/_key.py
jedhsu/music
dea68c4a82296cd4910e786f533b2cbf861377c3
[ "MIT" ]
null
null
null
music/class_/audioa/d/base/_key.py
jedhsu/music
dea68c4a82296cd4910e786f533b2cbf861377c3
[ "MIT" ]
null
null
null
music/class_/audioa/d/base/_key.py
jedhsu/music
dea68c4a82296cd4910e786f533b2cbf861377c3
[ "MIT" ]
null
null
null
""" *D Key* A key of D. """ from abc import ABCMeta __all__ = ["D_Key"] class D_Key: __metaclass__ = ABCMeta
7.875
27
0.579365
18
126
3.5
0.611111
0.190476
0
0
0
0
0
0
0
0
0
0
0.293651
126
15
28
8.4
0.707865
0.15873
0
0
0
0
0.055556
0
0
0
0
0
0
1
0
false
0
0.25
0
0.75
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
d71e5c53322c7e0fd59ea625eb175e20e78d955d
439
py
Python
shor/operations.py
jywyq/shor
5e38c6875d68207a6d0e492d83f7b1f6ae0afb58
[ "MIT" ]
null
null
null
shor/operations.py
jywyq/shor
5e38c6875d68207a6d0e492d83f7b1f6ae0afb58
[ "MIT" ]
null
null
null
shor/operations.py
jywyq/shor
5e38c6875d68207a6d0e492d83f7b1f6ae0afb58
[ "MIT" ]
null
null
null
from shor.layers import _BaseLayer class _Operation(_BaseLayer): """Abstract base quantum computing operation class """ def __init__(self, **kwargs): super().__init__(**kwargs) def to_gates(self): return [] class Measure(_Operation): def __init__(self, *bits, axis='z', **kwargs...
19.954545
54
0.599089
49
439
4.938776
0.530612
0.057851
0.090909
0
0
0
0
0
0
0
0
0.003115
0.268793
439
21
55
20.904762
0.750779
0.107062
0
0
0
0
0.002625
0
0
0
0
0
0
1
0.25
false
0
0.083333
0.083333
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
d72d29833be867ca6e474b33556450442eb5d79c
3,219
py
Python
pages/mixins.py
rangertaha/django-boilerplate-pages
402e18c52cbea008d3152f719afdaa6af1ae284b
[ "MIT" ]
null
null
null
pages/mixins.py
rangertaha/django-boilerplate-pages
402e18c52cbea008d3152f719afdaa6af1ae284b
[ "MIT" ]
null
null
null
pages/mixins.py
rangertaha/django-boilerplate-pages
402e18c52cbea008d3152f719afdaa6af1ae284b
[ "MIT" ]
null
null
null
#-*- coding:utf-8 -*- """ """ import logging import random from django.contrib.messages.views import SuccessMessageMixin from django.views.generic.list import ListView from django.views.generic.edit import FormView from django.views.generic.base import ContextMixin from django.views.generic import View from django.con...
30.657143
97
0.680646
356
3,219
6.025281
0.241573
0.055944
0.078322
0.047552
0.406527
0.336597
0.307692
0.268531
0.25035
0.179021
0
0.005771
0.192606
3,219
104
98
30.951923
0.819546
0.006213
0
0.173913
0
0
0.023037
0
0
0
0
0
0
1
0.086957
false
0.043478
0.391304
0
0.695652
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
d73df2d1c62b137af789ea59cff2e3b27a875ac8
1,015
py
Python
sliced/datasets/banknote.py
joshloyal/reduce-learn
243bde236d8c615f9563279a0a2095e2fa2f4650
[ "MIT" ]
10
2018-07-31T09:14:01.000Z
2022-03-31T20:38:27.000Z
sliced/datasets/banknote.py
joshloyal/reduce-learn
243bde236d8c615f9563279a0a2095e2fa2f4650
[ "MIT" ]
9
2018-01-20T20:35:59.000Z
2018-06-18T17:04:25.000Z
sliced/datasets/banknote.py
joshloyal/reduce-learn
243bde236d8c615f9563279a0a2095e2fa2f4650
[ "MIT" ]
4
2019-04-29T13:36:51.000Z
2022-01-25T13:31:42.000Z
import csv from os.path import dirname from sliced.datasets.base import load_data def load_banknote(): """Load and return the swiss banknote dataset (classification). Six measurements made on 100 genuine Swiss banknotes and 100 counterfeit ones. Features ======== Length: Length of b...
24.756098
76
0.524138
108
1,015
4.842593
0.564815
0.030593
0.049713
0
0
0
0
0
0
0
0
0.028614
0.345813
1,015
40
77
25.375
0.759036
0.665025
0
0
0
0
0.052402
0
0
0
0
0
0
1
0.142857
false
0
0.428571
0
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
d7528a36c282b0c47d6ca15c3ed3c0872512a652
2,311
py
Python
target.py
kirtis26/PyMissile
964cb7d21e5ddb23c13e890faf5a096ad1cb1b61
[ "MIT" ]
null
null
null
target.py
kirtis26/PyMissile
964cb7d21e5ddb23c13e890faf5a096ad1cb1b61
[ "MIT" ]
null
null
null
target.py
kirtis26/PyMissile
964cb7d21e5ddb23c13e890faf5a096ad1cb1b61
[ "MIT" ]
null
null
null
import numpy as np from math import * from interpolation import InterpVec class Target(object): @classmethod def get_simple_target(cls, pos, vel): velocity_vectors = [[0, np.array(vel)]] vel_interp = InterpVec(velocity_vectors) target = cls(vel_interp=vel_interp) paramet...
25.119565
75
0.540459
313
2,311
3.817891
0.204473
0.075314
0.135565
0.063598
0.193305
0.09205
0.09205
0.09205
0.09205
0.09205
0
0.017162
0.34444
2,311
92
76
25.119565
0.771617
0
0
0.146667
0
0
0.007785
0
0
0
0
0
0
1
0.213333
false
0
0.04
0.106667
0.413333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
d7773bde6f412582599509e1a2498b50c080d245
3,237
py
Python
sqlhandler/custom/executable.py
matthewgdv/sqlhandler
b82fd159195f6bb63175bb8a8d81fc421e7d5835
[ "MIT" ]
null
null
null
sqlhandler/custom/executable.py
matthewgdv/sqlhandler
b82fd159195f6bb63175bb8a8d81fc421e7d5835
[ "MIT" ]
null
null
null
sqlhandler/custom/executable.py
matthewgdv/sqlhandler
b82fd159195f6bb63175bb8a8d81fc421e7d5835
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import Any, TYPE_CHECKING, Optional from abc import ABC, abstractmethod from pathmagic import File, PathLike from miscutils import ParametrizableMixin from sqlhandler.frame import Frame if TYPE_CHECKING: from sqlhandler import Sql class Executable(ParametrizableM...
37.639535
213
0.668829
414
3,237
5.048309
0.294686
0.023445
0.026794
0.028708
0.228708
0.119617
0.097608
0.063158
0.063158
0
0
0.000398
0.224282
3,237
85
214
38.082353
0.831939
0.164659
0
0.107143
0
0
0.060007
0.053671
0
0
0
0
0
1
0.232143
false
0
0.125
0.071429
0.607143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
d791b00cebe3d4fbf6eed6057da5da0ad2869c89
382
py
Python
python/CeaserCipher.py
rishab9750/HacktoberFest_2021
331ea83912c05acfaedc152ca1975073023701a3
[ "MIT" ]
33
2021-10-01T17:51:53.000Z
2022-03-20T11:30:09.000Z
python/CeaserCipher.py
rishab9750/HacktoberFest_2021
331ea83912c05acfaedc152ca1975073023701a3
[ "MIT" ]
69
2021-10-01T09:07:22.000Z
2021-10-20T02:21:12.000Z
python/CeaserCipher.py
rishab9750/HacktoberFest_2021
331ea83912c05acfaedc152ca1975073023701a3
[ "MIT" ]
187
2021-10-01T09:06:51.000Z
2022-01-29T03:18:30.000Z
def encrypt(text,s): result = "" for i in range(len(text)): char = text[i] if (char.isupper()): result += chr((ord(char) + s-65) % 26 + 65) else: result += chr((ord(char) + s - 97) % 26 + 97) return result text = "ATTACKATONCE" s = 4 print "Text : " + text...
22.470588
57
0.5
52
382
3.673077
0.5
0.115183
0.125654
0.167539
0.17801
0
0
0
0
0
0
0.050388
0.324607
382
16
58
23.875
0.689922
0
0
0
0
0
0.094241
0
0
0
0
0
0
0
null
null
0
0
null
null
0.214286
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
d79241f7be4b27effe36b82b770fa45b90b1e65a
1,149
py
Python
models.py
jwadden/invoicinator
f388629a4debb096a5bb03b6034d75059eef29f6
[ "BSD-2-Clause" ]
null
null
null
models.py
jwadden/invoicinator
f388629a4debb096a5bb03b6034d75059eef29f6
[ "BSD-2-Clause" ]
null
null
null
models.py
jwadden/invoicinator
f388629a4debb096a5bb03b6034d75059eef29f6
[ "BSD-2-Clause" ]
null
null
null
import sqlalchemy import sqlalchemy.ext.declarative import sqlalchemy.orm engine = None Session = None Base = sqlalchemy.ext.declarative.declarative_base() def init_engine(settings_dict): global engine global Session engine = sqlalchemy.create_engine(settings_dict['db_engine'], echo=settings_dict['debug'...
33.794118
118
0.721497
140
1,149
5.692857
0.357143
0.120452
0.195734
0.105395
0.332497
0.332497
0.278545
0.278545
0.155583
0
0
0.003061
0.147084
1,149
33
119
34.818182
0.810204
0
0
0.16
0
0
0.08101
0
0
0
0
0
0
1
0.12
false
0
0.12
0.08
0.72
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
ad20ff9678cd8b74630e1e2e8e58d3b9b1b05c41
2,583
py
Python
sysinv/sysinv/sysinv/sysinv/openstack/common/keystone_objects.py
Wind-River/starlingx-config
96b92e5179d54dde10cb84c943eb239adf26b958
[ "Apache-2.0" ]
null
null
null
sysinv/sysinv/sysinv/sysinv/openstack/common/keystone_objects.py
Wind-River/starlingx-config
96b92e5179d54dde10cb84c943eb239adf26b958
[ "Apache-2.0" ]
null
null
null
sysinv/sysinv/sysinv/sysinv/openstack/common/keystone_objects.py
Wind-River/starlingx-config
96b92e5179d54dde10cb84c943eb239adf26b958
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2015 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 # import datetime import iso8601 from oslo_log import log LOG = log.getLogger(__name__) class Token(object): def __init__(self, token_data, token_id, region_name): self.expired = False self.data = token_data ...
33.986842
78
0.617499
318
2,583
4.779874
0.242138
0.072368
0.106579
0.130263
0.406579
0.378289
0.378289
0.378289
0.357237
0.301974
0
0.012055
0.293457
2,583
75
79
34.44
0.820822
0.194735
0
0
0
0
0.046681
0
0
0
0
0
0
1
0.230769
false
0
0.076923
0.025641
0.564103
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
ad21f51ce3ae9efbcf64a022ef438f0e897645ad
104
py
Python
src/util/constants.py
radandreicristian/traffic-ode
2acaa72a51ce08cc39402f589e1cc47301fbee6c
[ "Apache-2.0" ]
2
2021-12-11T09:33:23.000Z
2022-01-28T13:13:36.000Z
src/util/constants.py
radandreicristian/traffic-ode
2acaa72a51ce08cc39402f589e1cc47301fbee6c
[ "Apache-2.0" ]
null
null
null
src/util/constants.py
radandreicristian/traffic-ode
2acaa72a51ce08cc39402f589e1cc47301fbee6c
[ "Apache-2.0" ]
null
null
null
METR_LA_DATASET_NAME = 'metr_la' PEMS_BAY_DATASET_NAME = 'pems_bay' IN_MEMORY = 'mem' ON_DISK = 'disk'
17.333333
34
0.759615
18
104
3.833333
0.611111
0.173913
0
0
0
0
0
0
0
0
0
0
0.125
104
5
35
20.8
0.758242
0
0
0
0
0
0.211538
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ad2561c61a29e5fa724abc1a2f31f60c3ebba77c
485
py
Python
tests/integration/conftest.py
stonepreston/github-runner-operator
b948c051ff7a43290de216349685e89716218ff7
[ "Apache-2.0" ]
2
2021-11-25T10:23:39.000Z
2021-12-14T13:13:34.000Z
tests/integration/conftest.py
stonepreston/github-runner-operator
b948c051ff7a43290de216349685e89716218ff7
[ "Apache-2.0" ]
13
2021-04-12T15:06:00.000Z
2022-02-16T14:30:43.000Z
tests/integration/conftest.py
stonepreston/github-runner-operator
b948c051ff7a43290de216349685e89716218ff7
[ "Apache-2.0" ]
4
2021-11-23T13:51:42.000Z
2022-02-05T11:49:32.000Z
from pathlib import Path import pytest import yaml @pytest.fixture def metadata(): metadata = Path("./metadata.yaml") data = yaml.safe_load(metadata.read_text()) return data @pytest.fixture def model(ops_test): return ops_test.model @pytest.fixture def application(model, metadata): charm_name...
16.166667
47
0.717526
62
485
5.516129
0.387097
0.152047
0.187135
0
0
0
0
0
0
0
0
0
0.183505
485
29
48
16.724138
0.863636
0
0
0.2
0
0
0.039175
0
0
0
0
0
0
1
0.2
false
0
0.15
0.05
0.55
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
ad3507974122ba864b34071222aa4a7664c59663
188,943
py
Python
pyjs9/__init__.py
ericmandel/pyjs9
e4c9fe0de0b720aad94e335ad4e526712dbf3c1b
[ "MIT" ]
14
2015-01-05T08:18:41.000Z
2021-06-24T16:16:21.000Z
pyjs9/__init__.py
ericmandel/pyjs9
e4c9fe0de0b720aad94e335ad4e526712dbf3c1b
[ "MIT" ]
11
2015-03-01T16:53:05.000Z
2022-03-22T21:14:11.000Z
pyjs9/__init__.py
ericmandel/pyjs9
e4c9fe0de0b720aad94e335ad4e526712dbf3c1b
[ "MIT" ]
16
2015-01-05T08:18:39.000Z
2022-01-15T08:57:39.000Z
""" pyjs9.py: connects Python and JS9 via the JS9 (back-end) helper """ from __future__ import print_function import time import json import base64 import logging from traceback import format_exc from threading import Condition from io import BytesIO import requests __all__ = ['JS9', 'js9Globals'] """ pyjs9.py conn...
37.311019
154
0.61906
24,605
188,943
4.747694
0.092583
0.006335
0.016539
0.020083
0.353733
0.312626
0.279788
0.256821
0.23863
0.226559
0
0.01253
0.306833
188,943
5,063
155
37.318388
0.879414
0.726807
0
0.131349
0
0
0.143587
0
0
0
0
0.000198
0
1
0.278459
false
0
0.029772
0
0.607706
0.001751
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
ad444667bb19a3620ac6946d5540d9f87d7c1eb1
3,972
py
Python
Secao8_FuncoesPython/DefinindoFuncoes.py
PauloFTeixeira/curso_python
9040c7dcc5262620f6330bb9637710bb8899bc6b
[ "MIT" ]
null
null
null
Secao8_FuncoesPython/DefinindoFuncoes.py
PauloFTeixeira/curso_python
9040c7dcc5262620f6330bb9637710bb8899bc6b
[ "MIT" ]
null
null
null
Secao8_FuncoesPython/DefinindoFuncoes.py
PauloFTeixeira/curso_python
9040c7dcc5262620f6330bb9637710bb8899bc6b
[ "MIT" ]
null
null
null
""" - Sção pequenas partes de código que realizam tarefas específicas - Pode ou nõa receber entrada de dados e retornar uma saída de dados - Muito úteis para para executar procedimentos similares por repetidas vezes OBS.: Se a função realiza várias tarefas dentro dela, é bom fazer uma verificação para que a função sej...
24.518519
117
0.509567
451
3,972
4.436807
0.379157
0.023988
0.016492
0.023988
0.058971
0
0
0
0
0
0
0.011432
0.163142
3,972
161
118
24.670807
0.590554
0.993454
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
ad84bcb48af0fac00aed380303a9f1374b307c55
2,187
py
Python
tests/_OLD_test_sensor_SenseHat.py
mlanser/sciLab-sensorMod
d014c567a8001ea77e83017579fe5dbf40866cb8
[ "MIT" ]
null
null
null
tests/_OLD_test_sensor_SenseHat.py
mlanser/sciLab-sensorMod
d014c567a8001ea77e83017579fe5dbf40866cb8
[ "MIT" ]
41
2021-12-23T13:24:20.000Z
2022-03-30T13:28:19.000Z
tests/_OLD_test_sensor_SenseHat.py
mlanser/sciLab-sensorMod
d014c567a8001ea77e83017579fe5dbf40866cb8
[ "MIT" ]
null
null
null
import time import pytest from libs.sensorMod.src.sensor_SenseHat import Sensor # ========================================================= # G L O B A L S & P Y T E S T F I X T U R E S # ========================================================= @pytest.fixture() def valid_attribs(): return { '...
39.053571
93
0.629172
262
2,187
4.98855
0.320611
0.182096
0.20811
0.14078
0.55088
0.449885
0.307575
0
0
0
0
0.001647
0.166895
2,187
55
94
39.763636
0.715697
0.25743
0
0
0
0
0.127171
0.031017
0
0
0
0
0.205128
1
0.076923
false
0.051282
0.076923
0.025641
0.205128
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
ad91f0d91139dff81fa91fa9c8f8dd9a33e0e81a
1,232
py
Python
wagtail/core/signals.py
smartfactory-gmbh/wagtail
d6cd16f001244b7c79bc08630f58daedb912636a
[ "BSD-3-Clause" ]
8,851
2016-12-09T19:01:45.000Z
2022-03-31T04:45:06.000Z
wagtail/core/signals.py
smartfactory-gmbh/wagtail
d6cd16f001244b7c79bc08630f58daedb912636a
[ "BSD-3-Clause" ]
5,197
2016-12-09T19:24:37.000Z
2022-03-31T22:17:55.000Z
wagtail/core/signals.py
smartfactory-gmbh/wagtail
d6cd16f001244b7c79bc08630f58daedb912636a
[ "BSD-3-Clause" ]
2,548
2016-12-09T18:16:55.000Z
2022-03-31T21:34:38.000Z
from django.dispatch import Signal # Page signals # provides args: instance, revision page_published = Signal() # provides args: instance page_unpublished = Signal() # provides args: instance, parent_page_before, parent_page_after, url_path_before, url_path_after pre_page_move = Signal() # provides args: instance...
22
97
0.776786
160
1,232
5.76875
0.35
0.169014
0.260022
0.253521
0.526544
0.446371
0.177681
0.177681
0.177681
0.177681
0
0.003781
0.141234
1,232
55
98
22.4
0.86862
0.632305
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.071429
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ad9a7ad979426414cf5ea090764e24721bd485a2
507
py
Python
formulaic/__init__.py
jzaleski/simpleforms
898576920845595927e764d14022cd0c95a793c4
[ "MIT" ]
2
2017-07-11T13:42:43.000Z
2017-12-09T01:17:08.000Z
formulaic/__init__.py
jzaleski/simpleforms
898576920845595927e764d14022cd0c95a793c4
[ "MIT" ]
null
null
null
formulaic/__init__.py
jzaleski/simpleforms
898576920845595927e764d14022cd0c95a793c4
[ "MIT" ]
null
null
null
__version__ = '0.0.1.dev1' from formulaic.attributes import ( Attribute, BooleanAttribute, FloatAttribute, IntegerAttribute, LongAttribute, StringAttribute, TextAttribute, UUIDAttribute, ) from formulaic.formatters import Formatter from formulaic.models import Model from formulaic.pers...
21.125
42
0.767258
49
507
7.857143
0.612245
0.236364
0
0
0
0
0
0
0
0
0
0.009592
0.177515
507
23
43
22.043478
0.913669
0
0
0
0
0
0.019724
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
a8fd6fcd68f1e5a3c93965dc0422a0a8851263f7
256
py
Python
simplepybotsdk/configurations.py
vellons/SimplePYBotSDK
411b516ab1c02c4e789ef54536bee8c1fc888002
[ "MIT" ]
11
2021-04-18T13:03:27.000Z
2021-04-18T13:03:51.000Z
simplepybotsdk/configurations.py
vellons/SimplePYBotSDK
411b516ab1c02c4e789ef54536bee8c1fc888002
[ "MIT" ]
null
null
null
simplepybotsdk/configurations.py
vellons/SimplePYBotSDK
411b516ab1c02c4e789ef54536bee8c1fc888002
[ "MIT" ]
null
null
null
VERSION = "0.7.0" LICENSE = "MIT - Copyright (c) 2021 Alex Vellone" MOTORS_CHECK_PER_SECOND = 20 MOTORS_POINT_TO_POINT_CHECK_PER_SECOND = 10 WEB_SOCKET_SEND_PER_SECOND = 10 SOCKET_SEND_PER_SECOND = 20 SOCKET_INCOMING_LIMIT = 5 SLEEP_AVOID_CPU_WASTE = 0.80
28.444444
49
0.8125
45
256
4.155556
0.644444
0.192513
0.149733
0.203209
0
0
0
0
0
0
0
0.084071
0.117188
256
8
50
32
0.743363
0
0
0
0
0
0.164063
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d10b49d282d440466bbfc1c4d940140f9bb3613b
2,324
py
Python
ems_auth/models.py
Atwinenickson/lendsuphumanresourcemanagement
b46df164d59a4e94300376d679e07bd9a60d6343
[ "MIT", "Unlicense" ]
36
2019-11-26T11:46:32.000Z
2022-02-17T13:18:18.000Z
ems_auth/models.py
Atwinenickson/lendsuphumanresourcemanagement
b46df164d59a4e94300376d679e07bd9a60d6343
[ "MIT", "Unlicense" ]
13
2020-02-14T09:30:16.000Z
2022-03-12T00:58:09.000Z
ems_auth/models.py
Atwinenickson/lendsuphumanresourcemanagement
b46df164d59a4e94300376d679e07bd9a60d6343
[ "MIT", "Unlicense" ]
16
2019-06-14T12:11:29.000Z
2022-02-14T15:16:07.000Z
from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager from django.contrib.auth.models import PermissionsMixin from django.db import models # Create your models here. from employees.models import Employee class UserManager(BaseUserManager): def create_user(self, email, password, **extra_fiel...
33.681159
79
0.703528
273
2,324
5.827839
0.296703
0.062225
0.125707
0.131992
0.251414
0.08171
0.054054
0.054054
0.054054
0
0
0.001076
0.200086
2,324
68
80
34.176471
0.854761
0.022375
0
0.039216
0
0
0.076686
0
0
0
0
0
0
1
0.098039
false
0.098039
0.078431
0.039216
0.647059
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
d10f0bad2b118c1bbe2ae472b4e228ba85a06b7b
204
py
Python
examples/concatenate.py
nvllsvm/consumerpool
89cdb356bde92536c4e6ba6aa000f89a752fb1b7
[ "Apache-2.0" ]
6
2018-01-23T11:23:41.000Z
2019-03-05T18:08:58.000Z
examples/concatenate.py
nvllsvm/consumerpool
89cdb356bde92536c4e6ba6aa000f89a752fb1b7
[ "Apache-2.0" ]
1
2019-08-01T12:16:35.000Z
2019-08-09T08:32:32.000Z
examples/concatenate.py
nvllsvm/consumerpool
89cdb356bde92536c4e6ba6aa000f89a752fb1b7
[ "Apache-2.0" ]
null
null
null
from consumers import Pool def concatenate(letters): return '-'.join(letters) with Pool(concatenate, quantity=2) as pool: for letter in 'abcdef': pool.put(letter) print(pool.results)
15.692308
43
0.691176
27
204
5.222222
0.740741
0
0
0
0
0
0
0
0
0
0
0.006098
0.196078
204
12
44
17
0.853659
0
0
0
0
0
0.034314
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0.142857
0.428571
0.142857
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
2
d1121f9280039b8444664b9cb3378a1b6a53316e
346
py
Python
hackcollab_project/hosts.py
calixo888/hackcollab
e3250b658420e84b6c106bde3f84523e4347e4df
[ "MIT" ]
null
null
null
hackcollab_project/hosts.py
calixo888/hackcollab
e3250b658420e84b6c106bde3f84523e4347e4df
[ "MIT" ]
7
2020-02-12T02:29:34.000Z
2022-02-10T09:12:06.000Z
hackcollab_project/hosts.py
calixo888/hackcollab
e3250b658420e84b6c106bde3f84523e4347e4df
[ "MIT" ]
null
null
null
from django.conf import settings from django_hosts import patterns, host host_patterns = patterns('', host(r'www', 'hackcollab_app.urls', name='www'), host(r'solarhacks', 'hackathon.urls', name='solarhacks'), host(r'testhacks', 'hackathon.urls', name='testhacks'), host(r'waycoolhacks', 'hackathon.urls'...
34.6
65
0.705202
43
346
5.604651
0.418605
0.082988
0.211618
0
0
0
0
0
0
0
0
0
0.121387
346
9
66
38.444444
0.792763
0
0
0
0
0
0.372832
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d126d3a74dd17957119d088180dbc4febcaa9b5b
6,879
py
Python
tests/integration/cmor/_fixes/cmip6/test_access_esm1_5.py
markelg/ESMValCore
b2f7ffc3232f174dd5ebc50ad20b4a02d3517c2c
[ "Apache-2.0" ]
26
2019-06-07T07:50:07.000Z
2022-03-22T21:04:01.000Z
tests/integration/cmor/_fixes/cmip6/test_access_esm1_5.py
markelg/ESMValCore
b2f7ffc3232f174dd5ebc50ad20b4a02d3517c2c
[ "Apache-2.0" ]
1,370
2019-06-06T09:03:07.000Z
2022-03-31T04:37:20.000Z
tests/integration/cmor/_fixes/cmip6/test_access_esm1_5.py
zklaus/ESMValCore
5656fb8b546eeb4d750a424de7ed56a237edfabb
[ "Apache-2.0" ]
26
2019-07-03T13:08:48.000Z
2022-03-02T16:08:47.000Z
"""Tests for the fixes of ACCESS-ESM1-5.""" import unittest.mock import iris import numpy as np import pytest from esmvalcore.cmor._fixes.cmip6.access_esm1_5 import Cl, Cli, Clw, Hus, Zg from esmvalcore.cmor._fixes.common import ClFixHybridHeightCoord from esmvalcore.cmor.fix import Fix from esmvalcore.cmor.table imp...
35.642487
79
0.64617
911
6,879
4.678375
0.18112
0.01267
0.016893
0.020648
0.373768
0.358517
0.329892
0.313468
0.313468
0.311356
0
0.293391
0.199302
6,879
192
80
35.828125
0.480392
0.053787
0
0.201342
0
0
0.063218
0.016309
0
0
0
0
0.161074
1
0.087248
false
0
0.053691
0
0.154362
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d12a072dcb8d782361c7ab446f41dee39702f7a6
7,953
py
Python
rwanda_dummy_deterministic.py
Data-Linkage/Rwandan_linkage
2c9e504b510f5ec54d207779e20b5ad491c4c5df
[ "MIT" ]
null
null
null
rwanda_dummy_deterministic.py
Data-Linkage/Rwandan_linkage
2c9e504b510f5ec54d207779e20b5ad491c4c5df
[ "MIT" ]
null
null
null
rwanda_dummy_deterministic.py
Data-Linkage/Rwandan_linkage
2c9e504b510f5ec54d207779e20b5ad491c4c5df
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Jan 20 14:25:54 2022 @author: collys """ " Rwanda synthetic data - deterministic linkage example" """ Matching vars - Full_name First_name Last_name Month Year Sex Age Head_of_household Telephone_number Province ...
39.964824
218
0.618886
1,172
7,953
4.129693
0.236348
0.153719
0.223141
0.287603
0.444215
0.425207
0.341116
0.30186
0.293802
0.251033
0
0.031656
0.265183
7,953
198
219
40.166667
0.796543
0.371055
0
0.443182
0
0
0.103227
0.013484
0
0
0
0
0
1
0.011364
false
0
0.056818
0
0.079545
0.022727
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d145e9dbc6d3067c978312f902fce12fb0d98eab
759
py
Python
joatu/settings/prod.py
moileretour/joatu
9d18cb58b4280235688e269be6fd2d34b77ccead
[ "MIT" ]
1
2018-05-01T04:54:36.000Z
2018-05-01T04:54:36.000Z
joatu/settings/prod.py
moileretour/joatu
9d18cb58b4280235688e269be6fd2d34b77ccead
[ "MIT" ]
null
null
null
joatu/settings/prod.py
moileretour/joatu
9d18cb58b4280235688e269be6fd2d34b77ccead
[ "MIT" ]
3
2018-04-13T18:28:32.000Z
2018-05-01T01:38:38.000Z
from joatu.settings.base import * DEBUG = False STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') STATICFILES_DIRS = ( os.path.join(BASE_DIR, 'static'), ) MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'whitenoise.middleware.WhiteNoiseMiddleware', 'django.contrib.sessions.middle...
34.5
79
0.781291
66
759
8.909091
0.560606
0.108844
0.034014
0.047619
0.057823
0
0
0
0
0
0
0
0.105402
759
21
80
36.142857
0.865979
0
0
0
0
0
0.650856
0.628459
0
0
0
0
0
1
0
false
0
0.055556
0
0.055556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d14619ee081caa3972b3812b1d611d78d819cdd7
137
py
Python
examples/basic-usage/lambda/main.py
JousP/terraform-aws-lambda-function
7a8c6741b25c2854b3c2bc76f8c153f7ece37050
[ "MIT" ]
null
null
null
examples/basic-usage/lambda/main.py
JousP/terraform-aws-lambda-function
7a8c6741b25c2854b3c2bc76f8c153f7ece37050
[ "MIT" ]
null
null
null
examples/basic-usage/lambda/main.py
JousP/terraform-aws-lambda-function
7a8c6741b25c2854b3c2bc76f8c153f7ece37050
[ "MIT" ]
1
2022-02-22T06:55:24.000Z
2022-02-22T06:55:24.000Z
import logging logger = logging.getLogger() logger.setLevel(logging.INFO) def handler(event, context): logger.info("Hello World!")
17.125
31
0.744526
17
137
6
0.705882
0
0
0
0
0
0
0
0
0
0
0
0.124088
137
7
32
19.571429
0.85
0
0
0
0
0
0.087591
0
0
0
0
0
0
1
0.2
false
0
0.2
0
0.4
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d1510d3568c010000fd867f0347d58d035991280
404
py
Python
lang/py/pylib/code/xml/etree/ElementTree/ElementTree_entity_references.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
13
2020-01-04T07:37:38.000Z
2021-08-31T05:19:58.000Z
lang/py/pylib/code/xml/etree/ElementTree/ElementTree_entity_references.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
3
2020-06-05T22:42:53.000Z
2020-08-24T07:18:54.000Z
lang/py/pylib/code/xml/etree/ElementTree/ElementTree_entity_references.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
9
2020-10-19T04:53:06.000Z
2021-08-31T05:20:01.000Z
#!/usr/bin/env python # encoding: utf-8 # # Copyright (c) 2010 Doug Hellmann. All rights reserved. # """Dump the OPML in plain text """ #end_pymotw_header from xml.etree import ElementTree with open('data.xml', 'rt') as f: tree = ElementTree.parse(f) node = tree.find('entity_expansion') print node.tag print ' ...
21.263158
57
0.688119
60
404
4.583333
0.766667
0.050909
0
0
0
0
0
0
0
0
0
0.014793
0.163366
404
18
58
22.444444
0.798817
0.269802
0
0
0
0
0.254902
0
0
0
0
0
0
0
null
null
0
0.142857
null
null
0.428571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
1
0
2
d1530b636a5cf462ff82ee96887aee58f51fa2cc
116,215
py
Python
cid/cli/framework/js_date.py
zeljko-bal/CID
52ecc445c441ec63386c9f092b226090588a3789
[ "MIT" ]
1
2017-09-15T06:14:54.000Z
2017-09-15T06:14:54.000Z
cid/cli/framework/js_date.py
zeljko-bal/CID
52ecc445c441ec63386c9f092b226090588a3789
[ "MIT" ]
null
null
null
cid/cli/framework/js_date.py
zeljko-bal/CID
52ecc445c441ec63386c9f092b226090588a3789
[ "MIT" ]
null
null
null
__all__ = ['js_date'] # Don't look below, you will not understand this Python code :) I don't. from js2py.pyjs import * # setting scope var = Scope( JS_BUILTINS ) set_global_object(var) # Code follows: var.registers([]) PyJs_Object_1_ = Js({'shortDate':Js('M/d/yyyy'),'longDate':Js('dddd, MMMM dd, yyyy'),'shortTime':...
59.112411
1,552
0.574668
15,900
116,215
4.054906
0.043585
0.132428
0.074682
0.039582
0.776309
0.727266
0.659889
0.578242
0.507577
0.448637
0
0.02949
0.199053
116,215
1,966
1,553
59.112411
0.663157
0.002883
0
0.431373
0
0.001548
0.165566
0.00801
0
0
0
0
0
1
0.084107
false
0.004644
0.000516
0.000516
0.182147
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d157a694c98b6db0e03cd13019e335e1ef4d450e
568
py
Python
inclassapr23.py
seanmacb/COMP-115-Exercises
fbe7e5b158f2db785b886b6c600f1a8beb19ab1f
[ "MIT" ]
null
null
null
inclassapr23.py
seanmacb/COMP-115-Exercises
fbe7e5b158f2db785b886b6c600f1a8beb19ab1f
[ "MIT" ]
null
null
null
inclassapr23.py
seanmacb/COMP-115-Exercises
fbe7e5b158f2db785b886b6c600f1a8beb19ab1f
[ "MIT" ]
null
null
null
#Making a nice litte x o o o x o o o x tic tac toe board def printer(board): for i in range(3): for j in range (3): print(board[i][j], end="") if j<2: print(" | ", end="") print() if i<2: print("--+----+--") def main(): tictactoe=[[...
22.72
59
0.413732
83
568
2.831325
0.301205
0.178723
0.204255
0.187234
0.344681
0.306383
0.306383
0.306383
0.306383
0.306383
0
0.02454
0.426056
568
25
60
22.72
0.696319
0.096831
0
0.210526
0
0
0.031189
0
0
0
0
0
0
1
0.105263
false
0
0
0
0.105263
0.315789
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
d15f5b5e2f1cd1327965d16aa3d9c049272d52fd
391
py
Python
test_mptt/models.py
kollivier/django-tree-tests
13cd72d83a3967f2a3c011ea1dbe5ccf9fd9af31
[ "MIT" ]
null
null
null
test_mptt/models.py
kollivier/django-tree-tests
13cd72d83a3967f2a3c011ea1dbe5ccf9fd9af31
[ "MIT" ]
1
2021-06-10T20:47:50.000Z
2021-06-10T20:47:50.000Z
test_mptt/models.py
kollivier/django-tree-tests
13cd72d83a3967f2a3c011ea1dbe5ccf9fd9af31
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. from django.db import models from mptt.models import MPTTModel, TreeForeignKey class Object(models.Model): name = models.CharField(max_length=50) class TreeNode(MPTTModel): name = models.CharField(max_length=50) parent = TreeForeignKey('self', on_...
26.066667
109
0.767263
53
391
5.584906
0.566038
0.067568
0.081081
0.121622
0.364865
0.202703
0
0
0
0
0
0.011799
0.132992
391
14
110
27.928571
0.861357
0.061381
0
0.5
0
0
0.032877
0
0
0
0
0
0
1
0
false
0
0.375
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
66f25bb68416bf5f1c7d8848168bcef34ddf6b3f
2,062
py
Python
api-server/apps/resource/hyperv/hypervisor.py
run4life/hyperv-api-server
52ea5da59cd878e78797f0ff3771ccca397f4df3
[ "Apache-2.0" ]
null
null
null
api-server/apps/resource/hyperv/hypervisor.py
run4life/hyperv-api-server
52ea5da59cd878e78797f0ff3771ccca397f4df3
[ "Apache-2.0" ]
null
null
null
api-server/apps/resource/hyperv/hypervisor.py
run4life/hyperv-api-server
52ea5da59cd878e78797f0ff3771ccca397f4df3
[ "Apache-2.0" ]
null
null
null
import wmi class HypervisorClient(object): def get_wmi_client(self, server, user, password): conn = wmi.connect_server(server=server, user=user, password=password) client = wmi.WMI(wmi=conn) return client def _get_cpu_info(self,client): # cpus = client.query( # ...
42.081633
113
0.586324
194
2,062
6.030928
0.329897
0.029915
0.030769
0.02735
0.092308
0.092308
0.092308
0.092308
0.092308
0.092308
0
0.025
0.321048
2,062
49
114
42.081633
0.810714
0.320563
0
0
0
0
0.11288
0.034009
0
0
0
0
0
0
null
null
0.096774
0.032258
null
null
0.096774
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
1
0
0
0
0
0
2
66f96ebb7fd3f517538686deca77175935d70cb0
306
py
Python
setup.py
chvogl/snII_cosmo_tools
b688a4be96ce82a25f71964a9cbdbc7460dd140f
[ "BSD-3-Clause" ]
null
null
null
setup.py
chvogl/snII_cosmo_tools
b688a4be96ce82a25f71964a9cbdbc7460dd140f
[ "BSD-3-Clause" ]
null
null
null
setup.py
chvogl/snII_cosmo_tools
b688a4be96ce82a25f71964a9cbdbc7460dd140f
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup, find_packages setup( name='snII_cosmo_tools', url='https://github.com/chvogl/snII_cosmo_tools.git', author='Christian Vogl', author_email='cvogl@mpa-garching.mpg.de', packages=find_packages(), package_data={'snII_cosmo_tools': ['templates/*.html']} )
27.818182
59
0.715686
40
306
5.225
0.725
0.129187
0.200957
0
0
0
0
0
0
0
0
0
0.130719
306
10
60
30.6
0.785714
0
0
0
0
0
0.434641
0.081699
0
0
0
0
0
1
0
true
0
0.111111
0
0.111111
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
0f05cafdd6a8fcf921719f17f6c44a4f64ee004f
748
py
Python
scripts/data-restification-kit/import_data.py
AuthEceSoftEng/ma-made-core
466c09fca4d8a77bff93926a0b44285f76565221
[ "MIT" ]
null
null
null
scripts/data-restification-kit/import_data.py
AuthEceSoftEng/ma-made-core
466c09fca4d8a77bff93926a0b44285f76565221
[ "MIT" ]
null
null
null
scripts/data-restification-kit/import_data.py
AuthEceSoftEng/ma-made-core
466c09fca4d8a77bff93926a0b44285f76565221
[ "MIT" ]
null
null
null
from datasetsHandler import datasetsHandler import dataImporter from settings import HOST as host from settings import SERVICE_PORT as host_port import json def importData(dataset, port): # Initialize the datasets handler dH = datasetsHandler('datasets') # Initialize the data importer dI = dataImporter.dataImport...
34
120
0.705882
92
748
5.695652
0.445652
0.080153
0.068702
0.061069
0
0
0
0
0
0
0
0.00314
0.148396
748
21
121
35.619048
0.819466
0.164439
0
0
0
0
0.164251
0
0
0
0
0
0
1
0.071429
false
0
0.571429
0
0.785714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
0f08eda7249c2682e577b0e98f922aff6ee3d031
346
py
Python
libs/Utils.py
leftstick/sublime-quick-move
f30acee91e1e798e640d2d825d10a51af3596185
[ "MIT" ]
null
null
null
libs/Utils.py
leftstick/sublime-quick-move
f30acee91e1e798e640d2d825d10a51af3596185
[ "MIT" ]
null
null
null
libs/Utils.py
leftstick/sublime-quick-move
f30acee91e1e798e640d2d825d10a51af3596185
[ "MIT" ]
null
null
null
import sublime import os.path def getBaseName(fullpath): return os.path.basename(fullpath) def oneThingSelected(paths): return len(paths) == 1 def removeNonPathEnd(path): return path.rstrip('\\/') def getParent(path): return os.path.dirname(path) def revert(view): while view.is_dirty(): ...
19.222222
37
0.696532
45
346
5.311111
0.555556
0.075314
0.100418
0
0
0
0
0
0
0
0
0.003484
0.17052
346
18
38
19.222222
0.829268
0
0
0
0
0
0.020173
0
0
0
0
0
0
1
0.384615
false
0
0.153846
0.307692
0.846154
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
0f09ffd7d45ea19a84d0978fec768fb26bcb61c5
250
py
Python
Python/293.py
JWang169/LintCodeJava
b75b06fa1551f5e4d8a559ef64e1ac29db79c083
[ "CNRI-Python" ]
1
2020-12-10T05:36:15.000Z
2020-12-10T05:36:15.000Z
Python/293.py
JWang169/LintCodeJava
b75b06fa1551f5e4d8a559ef64e1ac29db79c083
[ "CNRI-Python" ]
null
null
null
Python/293.py
JWang169/LintCodeJava
b75b06fa1551f5e4d8a559ef64e1ac29db79c083
[ "CNRI-Python" ]
3
2020-04-06T05:55:08.000Z
2021-08-29T14:26:54.000Z
class Solution: def generatePossibleNextMoves(self, s: str) -> List[str]: results = [] for i in range(len(s) - 1): if s[i: i + 2] == "++": results.append(s[:i] + "--" + s[i + 2:]) return results
35.714286
61
0.464
31
250
3.741935
0.612903
0.051724
0
0
0
0
0
0
0
0
0
0.018519
0.352
250
7
62
35.714286
0.697531
0
0
0
1
0
0.015936
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0f21a8a458c011030f9fb6a25fbc132503d7517f
4,266
py
Python
app/app/models.py
UWA-CITS3200-18-2021/ReSQ
324e639b91666b38ad88931ceb9583a84f18755d
[ "CC0-1.0" ]
1
2022-03-19T23:05:34.000Z
2022-03-19T23:05:34.000Z
app/app/models.py
UWA-CITS3200-18-2021/ReSQ
324e639b91666b38ad88931ceb9583a84f18755d
[ "CC0-1.0" ]
71
2021-08-05T01:45:24.000Z
2021-10-20T04:49:39.000Z
app/app/models.py
UWA-CITS3200-18-2021/ReSQ
324e639b91666b38ad88931ceb9583a84f18755d
[ "CC0-1.0" ]
null
null
null
from sqlalchemy.sql.expression import null from app import db, login_manager from app.globals import queueType, statusType, roleType, invalidChar from flask_login import UserMixin from sqlalchemy import Column, Integer, String, Enum, DateTime, Text from sqlalchemy.orm import validates from werkzeug.security import gene...
34.682927
157
0.680497
493
4,266
5.787018
0.281947
0.045566
0.025237
0.032247
0.044164
0.037855
0
0
0
0
0
0.004541
0.225738
4,266
122
158
34.967213
0.859219
0.048758
0
0.075269
0
0.010753
0.092076
0.005184
0
0
0
0
0
1
0.150538
false
0.064516
0.096774
0.053763
0.580645
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
0f3c437fcb73cb8a73856dff70ac420f7b421296
280,525
py
Python
pysnmp/HUAWEI-BRAS-SBC-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/HUAWEI-BRAS-SBC-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/HUAWEI-BRAS-SBC-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module HUAWEI-BRAS-SBC-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HUAWEI-BRAS-SBC-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:31:26 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default...
167.577658
22,282
0.766374
31,045
280,525
6.924754
0.037107
0.010196
0.012057
0.01576
0.405654
0.383437
0.365668
0.353235
0.325088
0.312249
0
0.09491
0.082581
280,525
1,673
22,283
167.677824
0.740417
0.00133
0
0.007836
0
0
0.156088
0.061105
0
0
0
0
0
1
0
false
0.012055
0.004822
0
0.019289
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0f4430e0968a812fb2ecdee603f6ef0661b0ed8c
1,056
py
Python
jdxapi/wait_for_db.py
jobdataexchange/jdx-api
7815a6463de56423c3b4196648607c4ebe56828c
[ "Apache-2.0" ]
null
null
null
jdxapi/wait_for_db.py
jobdataexchange/jdx-api
7815a6463de56423c3b4196648607c4ebe56828c
[ "Apache-2.0" ]
9
2019-12-26T17:39:58.000Z
2022-01-13T01:59:49.000Z
jdxapi/wait_for_db.py
jobdataexchange/jdx-api
7815a6463de56423c3b4196648607c4ebe56828c
[ "Apache-2.0" ]
null
null
null
import psycopg2 # TODO pull from env dbname = 'jdx_reference_backend_application' user = 'postgres' host = 'jdx-postgres' password = 'password' try: db = psycopg2.connect( f"dbname={dbname} user={user} host={host} password={password}" ) print("Established connection with database!") except BaseEx...
24
104
0.65625
119
1,056
5.739496
0.420168
0.070278
0.04978
0.04978
0.243045
0.131772
0.131772
0.131772
0.131772
0
0
0.007255
0.216856
1,056
43
105
24.55814
0.818622
0.640152
0
0
0
0
0.442254
0.092958
0
0
0
0.023256
0
1
0
false
0.153846
0.076923
0
0.076923
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
1
0
0
0
0
0
2
0f45561731e0576f45b1d1dcc6a76e36391f23b4
279
py
Python
ex8.py
ppedraum/infosatc-lp-avaliativo-02
c86deb42b7e9cd49b921c109f16073cede610d8b
[ "MIT" ]
null
null
null
ex8.py
ppedraum/infosatc-lp-avaliativo-02
c86deb42b7e9cd49b921c109f16073cede610d8b
[ "MIT" ]
null
null
null
ex8.py
ppedraum/infosatc-lp-avaliativo-02
c86deb42b7e9cd49b921c109f16073cede610d8b
[ "MIT" ]
null
null
null
#8 - LISTA DE COMPONENTES -> PC GAMER comp = ["Nvidia GeForce GTX 2080Ti", "Gabinete Cooler Master", "Kit RAM GSkill DDR4 3.6GHz 8x2GB", "Placa Mãe ASUSTeK ROG MAXIMUS XI EXTREME", "Processador Intel i9", "SSD NVMe Samsung 970 1TB"] del comp[0] del comp[0] print(comp)
34.875
103
0.698925
44
279
4.431818
0.886364
0.071795
0.082051
0
0
0
0
0
0
0
0
0.075221
0.189964
279
7
104
39.857143
0.787611
0.132616
0
0.4
0
0
0.676349
0
0
0
0
0
0
1
0
false
0
0
0
0
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0f5ed13d1b5cf5703bfbbec2d307213084b9c5c8
1,980
py
Python
unittests/libtests/feassemble/data/ElasticityImplicit.py
joegeisz/pylith
f74060b7b19d7e90abf8597bbe9250c96593c0ad
[ "MIT" ]
1
2021-09-09T06:24:11.000Z
2021-09-09T06:24:11.000Z
unittests/libtests/feassemble/data/ElasticityImplicit.py
joegeisz/pylith
f74060b7b19d7e90abf8597bbe9250c96593c0ad
[ "MIT" ]
null
null
null
unittests/libtests/feassemble/data/ElasticityImplicit.py
joegeisz/pylith
f74060b7b19d7e90abf8597bbe9250c96593c0ad
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # ---------------------------------------------------------------------- # # Brad T. Aagaard, U.S. Geological Survey # Charles A. Williams, GNS Science # Matthew G. Knepley, University of Chicago # # This code was developed as part of the Computational Infrastructure # for Geodynamics (http://ge...
25.063291
73
0.565152
172
1,980
6.447674
0.552326
0.029757
0.036069
0.054103
0.201984
0.135257
0.135257
0.135257
0.135257
0.135257
0
0.004813
0.160606
1,980
78
74
25.384615
0.662455
0.619192
0
0.125
0
0
0.044073
0
0
0
0
0
0
1
0.25
false
0
0.125
0.0625
0.6875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
0f68b87da8aa272f23232190d40762c276a4bdfe
5,577
py
Python
workalendar/tests/test_mozambique.py
taiyeoguns/workalendar
35ef15b0fe166ab2e73e419c83ad45738a62ac8d
[ "MIT" ]
405
2017-11-21T14:33:58.000Z
2021-06-03T01:58:55.000Z
workalendar/tests/test_mozambique.py
taiyeoguns/workalendar
35ef15b0fe166ab2e73e419c83ad45738a62ac8d
[ "MIT" ]
236
2017-11-20T16:11:50.000Z
2021-05-28T08:02:53.000Z
workalendar/tests/test_mozambique.py
taiyeoguns/workalendar
35ef15b0fe166ab2e73e419c83ad45738a62ac8d
[ "MIT" ]
126
2017-12-12T14:04:25.000Z
2021-05-29T14:27:11.000Z
from datetime import date from . import GenericCalendarTest from ..africa.mozambique import Mozambique class MozambiqueTest(GenericCalendarTest): cal_class = Mozambique def test_year_new_year_shift(self): holidays = self.cal.holidays_set(2019) self.assertIn(date(2019, 1, 1), holidays) ...
35.980645
72
0.60875
709
5,577
4.693935
0.09732
0.115385
0.153846
0.154147
0.790865
0.757512
0.692007
0.620493
0.620493
0.478065
0
0.109708
0.275955
5,577
154
73
36.214286
0.714463
0.120316
0
0.368932
0
0
0.032225
0
0
0
0
0
0.436893
1
0.145631
false
0
0.029126
0
0.194175
0.009709
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
2
0f7402485312b5196464b2b53814bbc75f723a75
262
py
Python
Syshub/syshub_example_slave.py
voussoir/else
7a7c17999702ade9791c30b8734e565cb9112d34
[ "BSD-3-Clause" ]
13
2015-03-17T20:21:48.000Z
2022-02-01T10:24:26.000Z
Syshub/syshub_example_slave.py
voussoir/else
7a7c17999702ade9791c30b8734e565cb9112d34
[ "BSD-3-Clause" ]
null
null
null
Syshub/syshub_example_slave.py
voussoir/else
7a7c17999702ade9791c30b8734e565cb9112d34
[ "BSD-3-Clause" ]
3
2019-05-11T14:19:09.000Z
2020-12-11T16:53:35.000Z
''' Notice how this file does not import syshub or know about it in any way. ''' import sys def say_something(): print('hello') def input_something(): print('prompt: ', end='') print(sys.stdin.readline()) def raise_something(): raise ValueError
18.714286
60
0.679389
37
262
4.72973
0.756757
0.16
0
0
0
0
0
0
0
0
0
0
0.187023
262
14
61
18.714286
0.821596
0.274809
0
0
0
0
0.071038
0
0
0
0
0
0
1
0.375
true
0
0.125
0
0.5
0.375
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
0
0
0
0
2
7e212d54360d7331bac5f1b809acbedd41f2cf3f
671
py
Python
koocook_core/views/__init__.py
KooCook/koocook-dj
33bfaf48e8363013ddd083d5d8542496c50fd5d3
[ "BSD-3-Clause" ]
1
2020-10-19T04:44:49.000Z
2020-10-19T04:44:49.000Z
koocook_core/views/__init__.py
KooCook/koocook-dj
33bfaf48e8363013ddd083d5d8542496c50fd5d3
[ "BSD-3-Clause" ]
26
2019-11-11T03:37:03.000Z
2019-12-15T23:18:18.000Z
koocook_core/views/__init__.py
KooCook/koocook-dj
33bfaf48e8363013ddd083d5d8542496c50fd5d3
[ "BSD-3-Clause" ]
1
2020-11-08T14:36:21.000Z
2020-11-08T14:36:21.000Z
from django.contrib.auth.models import User from django.db.models.signals import post_save from django.dispatch import receiver from .comments import * from .posts import * from .recipes import * from .handlers import * from .ingredients import * from .forms import RecipeForm from .profile import UserProfileInfoView, ...
29.173913
62
0.752608
87
671
5.735632
0.390805
0.1002
0
0
0
0
0
0
0
0
0
0
0.160954
671
22
63
30.5
0.886323
0
0
0
0
0
0
0
0
0
0
0
0
1
0.052632
false
0
0.631579
0
0.684211
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
7e2a245e6417f1a0e60531f8a5d498a27d24fa5c
6,321
py
Python
simpleapi/message/formatter.py
ghuntley/simpleapi
e64e05e9b2276098d3442db174a4d0204be56b39
[ "MIT" ]
1
2019-06-27T11:41:03.000Z
2019-06-27T11:41:03.000Z
simpleapi/message/formatter.py
ghuntley/simpleapi
e64e05e9b2276098d3442db174a4d0204be56b39
[ "MIT" ]
null
null
null
simpleapi/message/formatter.py
ghuntley/simpleapi
e64e05e9b2276098d3442db174a4d0204be56b39
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import cPickle from common import json try: import yaml has_yaml = True except ImportError: has_yaml = False from py2xml import PythonToXML from sajson import SimpleAPIEncoder, SimpleAPIDecoder __all__ = ('formatters', 'Formatter') class FormattersSingleton(object): """This...
31.137931
98
0.650372
751
6,321
5.340879
0.274301
0.049364
0.041137
0.029668
0.255797
0.224632
0.186487
0.186487
0.186487
0.186487
0
0.001258
0.245531
6,321
202
99
31.292079
0.839799
0.232242
0
0.416
0
0
0.086671
0.014198
0
0
0
0
0
1
0.232
false
0
0.048
0.104
0.648
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
7e2afa536415867b87f56402c8f731ca03ad5984
950
py
Python
streammorphology/__init__.py
adrn/StreamMorphology
99a2da560b58e6e47259d1cd2f0cc9ba1641424d
[ "MIT" ]
null
null
null
streammorphology/__init__.py
adrn/StreamMorphology
99a2da560b58e6e47259d1cd2f0cc9ba1641424d
[ "MIT" ]
1
2015-01-28T18:37:06.000Z
2015-01-28T18:37:06.000Z
streammorphology/__init__.py
adrn/StreamMorphology
99a2da560b58e6e47259d1cd2f0cc9ba1641424d
[ "MIT" ]
null
null
null
import os project_path = os.path.split(os.path.split(__file__)[0])[0] del os # Three orbits: import numpy as np from collections import OrderedDict three_orbits = OrderedDict([ ('near-resonant', np.array([17.0, 0.0, 26.060606060606062, 0.0, 0.12912205829404055, 0.0])), # resonant ('non-resonant', np.array([17...
32.758621
109
0.690526
137
950
4.737226
0.379562
0.064715
0.03698
0.061633
0.114022
0.114022
0.114022
0
0
0
0
0.214896
0.137895
950
28
110
33.928571
0.577534
0.062105
0
0.086957
0
0
0.110734
0
0
0
0
0
0
1
0
false
0
0.391304
0
0.391304
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
7e2ca97f5629dc75a8ec14ba0313d523e42878ee
324
py
Python
usenester.py
ColorPenBoy/PythonClass
524caf644c6dc7cd09edf9741d25224cd446968a
[ "MIT" ]
null
null
null
usenester.py
ColorPenBoy/PythonClass
524caf644c6dc7cd09edf9741d25224cd446968a
[ "MIT" ]
null
null
null
usenester.py
ColorPenBoy/PythonClass
524caf644c6dc7cd09edf9741d25224cd446968a
[ "MIT" ]
null
null
null
import colorpennester print ("------------------我是分割线-------------------") movies = ["The Holy Grail", 1975, "Terry Jones & Terry Gilliam", 91, ["Graham Chapman", ["Michael Palin", "John Cleese", "Terry Jones", "Eric Idle", "Terry Gilliam"]]] # 调用函数 # 函数前面需要加上命名空间 -> 名字与包同名 colorpennester.printListMethod(movies,True...
32.4
167
0.626543
34
324
5.970588
0.794118
0.098522
0
0
0
0
0
0
0
0
0
0.024476
0.117284
324
9
168
36
0.685315
0.083333
0
0
0
0
0.52381
0.142857
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.5
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
2
7e42f7787096628788381e1460df409e48b18319
316
py
Python
Desafios/desafio019.py
sthe-eduarda/Curso-de-python
524f6cc132a5746bc039921f954f941e63aaede0
[ "MIT" ]
null
null
null
Desafios/desafio019.py
sthe-eduarda/Curso-de-python
524f6cc132a5746bc039921f954f941e63aaede0
[ "MIT" ]
null
null
null
Desafios/desafio019.py
sthe-eduarda/Curso-de-python
524f6cc132a5746bc039921f954f941e63aaede0
[ "MIT" ]
null
null
null
from random import randint a = input('Nome do 1° aluno: ') b = input('Nome do 2° aluno: ') c = input('Nome do 3° aluno: ') d = input('Nome do 4° aluno: ') esc = randint(1, 4) print('=' * 12) print(f'Aluno 1: {a}') print(f'Aluno 2: {b}') print(f'Aludo 3: {c}') print(f'Aludo 4: {d}') print(f'Escolhido: aluno {esc}')
24.307692
32
0.598101
63
316
3.063492
0.365079
0.15544
0.227979
0
0
0
0
0
0
0
0
0.045802
0.170886
316
12
33
26.333333
0.675573
0
0
0
0
0
0.452532
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0.5
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
2
7e517ecfb2a9f338d390446fde69b53923f89d53
738
py
Python
lang/py/cookbook/v2/source/cb2_15_5_sol_1.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/cookbook/v2/source/cb2_15_5_sol_1.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/cookbook/v2/source/cb2_15_5_sol_1.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
# give the base class a short, readable nickname from SimpleXMLRPCServer import SimpleXMLRPCServer as BaseServer class Server(BaseServer): def __init__(self, host, port): # accept separate hostname and portnumber and group them BaseServer.__init__(self, (host, port)) def server_bind(self): ...
46.125
73
0.719512
95
738
5.431579
0.610526
0.031008
0.046512
0.062016
0
0
0
0
0
0
0
0.028961
0.204607
738
15
74
49.2
0.850085
0.273713
0
0
0
0
0.039548
0
0
0
0
0
0
1
0.272727
false
0
0.181818
0.090909
0.727273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
7e581ceb77468e296ca79817958c44115c1c826d
1,395
py
Python
proj03/proj03.py
dstingley22/project
6557409ae149d24791c8f2da4f8d7b9be62c8012
[ "MIT" ]
null
null
null
proj03/proj03.py
dstingley22/project
6557409ae149d24791c8f2da4f8d7b9be62c8012
[ "MIT" ]
null
null
null
proj03/proj03.py
dstingley22/project
6557409ae149d24791c8f2da4f8d7b9be62c8012
[ "MIT" ]
null
null
null
# Name: # Date: """ proj 03: Guessing Game Generate a random number between 1 and 9 (including 1 and 9). Ask the user to guess the number, then tell them whether they guessed too low, too high, or exactly right. Keep the game going until the user types exit. Keep track of how many guesses the user has taken, and ...
30.326087
90
0.511111
194
1,395
3.649485
0.402062
0.056497
0.063559
0.079096
0.265537
0.265537
0.265537
0.206215
0.115819
0.115819
0
0.028846
0.403584
1,395
46
91
30.326087
0.822115
0.014337
0
0.387097
1
0
0.261165
0
0
0
0
0
0
0
null
null
0
0.032258
null
null
0.193548
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
7e5b5b82ffc9ccce53233b42a367c8caf12e5ba5
4,606
py
Python
misc/audio/save_block.py
Wenhao-Yang/TwoWayRadio
3558bfb2229113574ba728a2971901b0f7d3703a
[ "MIT" ]
1
2021-10-09T06:14:05.000Z
2021-10-09T06:14:05.000Z
misc/audio/save_block.py
Wenhao-Yang/TwoWayRadio
3558bfb2229113574ba728a2971901b0f7d3703a
[ "MIT" ]
null
null
null
misc/audio/save_block.py
Wenhao-Yang/TwoWayRadio
3558bfb2229113574ba728a2971901b0f7d3703a
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- ################################################## # GNU Radio Python Flow Graph # Title: Top Block # Generated: Mon Jul 13 23:11:42 2020 ################################################## from gnuradio import analog from gnuradio import audio from gnuradio import blocks ...
35.984375
113
0.6066
617
4,606
4.212318
0.278768
0.046172
0.104656
0.110812
0.484032
0.414775
0.335898
0.204694
0.14621
0.119277
0
0.045604
0.20495
4,606
127
114
36.267717
0.664118
0.105949
0
0.025641
1
0
0.048431
0.006223
0.012821
0
0
0
0
1
0.076923
false
0.064103
0.115385
0.025641
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
7e644293fc16afd5c9cfdc097c722730ed2e2801
812
py
Python
securetea/common.py
adeyosemanputra/SecureTea-Project
e9acd07afac0f6f8d838434ce0a8dfa6852d2f5e
[ "MIT" ]
null
null
null
securetea/common.py
adeyosemanputra/SecureTea-Project
e9acd07afac0f6f8d838434ce0a8dfa6852d2f5e
[ "MIT" ]
null
null
null
securetea/common.py
adeyosemanputra/SecureTea-Project
e9acd07afac0f6f8d838434ce0a8dfa6852d2f5e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- u"""Common module for SecureTea. Project: ╔═╗┌─┐┌─┐┬ ┬┬─┐┌─┐╔╦╗┌─┐┌─┐ ╚═╗├┤ │ │ │├┬┘├┤ ║ ├┤ ├─┤ ╚═╝└─┘└─┘└─┘┴└─└─┘ ╩ └─┘┴ ┴ Author: Rejah Rehim <rejah@appfabs.com> , Jan 30 2019 Version: 1.1 Module: SecureTea """ import time def getdatetime(): """Date and time....
16.916667
57
0.482759
101
812
4.554455
0.722772
0.030435
0.047826
0
0
0
0
0
0
0
0
0.016071
0.310345
812
47
58
17.276596
0.682143
0.628079
0
0
0
0
0.096774
0
0
0
0
0
0
1
0.222222
false
0
0.111111
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
7e73e47e66c12d4c20a0f2c31208ffa0f9f6ae64
380
py
Python
footkit/__init__.py
KhaitovR/footkit
a989e30bbfa14d4e5a3c1e0a3f9c57a1d02cb521
[ "Apache-2.0" ]
1
2020-11-03T18:42:43.000Z
2020-11-03T18:42:43.000Z
footkit/__init__.py
KhaitovR/footkit
a989e30bbfa14d4e5a3c1e0a3f9c57a1d02cb521
[ "Apache-2.0" ]
null
null
null
footkit/__init__.py
KhaitovR/footkit
a989e30bbfa14d4e5a3c1e0a3f9c57a1d02cb521
[ "Apache-2.0" ]
null
null
null
from .Parser import Parser from .Preprocess import Preprocess from .models import Validation from .Odds import OddsParser from .Calculation import Calculation from .ImageDraw import PlotPredict # from .Insta import InstaBot from .FeatureSelector import FeatureSelector # InstaBot, __all__ = [Parser, Preprocess, Validat...
34.545455
97
0.828947
41
380
7.585366
0.365854
0
0
0
0
0
0
0
0
0
0
0
0.118421
380
10
98
38
0.928358
0.097368
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.875
0
0.875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
7e877d8f97e8f18f92477ddb25cd9a6d7f368a5e
954
py
Python
memcards/tests/test_models.py
machine23/memmage
211a92d435580c833a71c4a603939faeb2b60fdd
[ "MIT" ]
null
null
null
memcards/tests/test_models.py
machine23/memmage
211a92d435580c833a71c4a603939faeb2b60fdd
[ "MIT" ]
null
null
null
memcards/tests/test_models.py
machine23/memmage
211a92d435580c833a71c4a603939faeb2b60fdd
[ "MIT" ]
null
null
null
# from ..models import Tag, Question, Answer import pytest from mixer.backend.django import mixer pytestmark = pytest.mark.django_db class TestTag: def test_model(self): obj = mixer.blend('memcards.Tag') assert obj.pk == 1 def test_str(self): tag = mixer.blend('memcards.Tag', name='t...
25.105263
69
0.641509
123
954
4.845528
0.252033
0.07047
0.181208
0.080537
0.441275
0.364094
0.364094
0.364094
0.134228
0.134228
0
0.004155
0.243187
954
37
70
25.783784
0.82133
0.044025
0
0.346154
0
0
0.140659
0
0
0
0
0
0.230769
1
0.230769
false
0
0.076923
0
0.423077
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
7e9e79c2239ece21a2728cc67ed81f0b8c85afd6
630
py
Python
first_non_repeating_letter.py
rmayherr/python
830aec82e3ab155b66d01032eac71bbe6f961fce
[ "MIT" ]
null
null
null
first_non_repeating_letter.py
rmayherr/python
830aec82e3ab155b66d01032eac71bbe6f961fce
[ "MIT" ]
null
null
null
first_non_repeating_letter.py
rmayherr/python
830aec82e3ab155b66d01032eac71bbe6f961fce
[ "MIT" ]
null
null
null
def first_non_repeating_letter(string): lowercase_string = string.lower() result = [] for i in lowercase_string: if (lowercase_string.count(i) == 1): result.append(i) if (len(result) == 0): return "" else: if (string.find(result[0]) == -1 ): return re...
31.5
55
0.611111
76
630
4.776316
0.355263
0.132231
0.280992
0.380165
0.421488
0.404959
0.404959
0.286501
0.286501
0
0
0.012739
0.252381
630
19
56
33.157895
0.757962
0
0
0.111111
0
0
0.028571
0
0
0
0
0
0.222222
1
0.111111
false
0
0
0
0.277778
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
7ea2b3bd09df56bfa53f1487bf500399c055801c
186
py
Python
dev/a_covidcases.py
exaxorg/pycon20-nyc-taxi-covid-movie
181126be6368eeae42827133328460da7f7a69a3
[ "MIT" ]
2
2020-11-20T07:25:01.000Z
2022-01-03T23:29:04.000Z
dev/a_covidcases.py
exaxorg/pycon20-nyc-taxi-covid-movie
181126be6368eeae42827133328460da7f7a69a3
[ "MIT" ]
null
null
null
dev/a_covidcases.py
exaxorg/pycon20-nyc-taxi-covid-movie
181126be6368eeae42827133328460da7f7a69a3
[ "MIT" ]
null
null
null
datasets = ('source',) def synthesis(job): d = {} agg = 0 for dt, x in datasets.source.iterate('roundrobin', ('DATE_OF_INTEREST', 'CASE_COUNT')): agg += x d[dt] = agg return d
16.909091
88
0.623656
28
186
4.035714
0.714286
0.247788
0
0
0
0
0
0
0
0
0
0.006667
0.193548
186
10
89
18.6
0.746667
0
0
0
0
0
0.225806
0
0
0
0
0
0
1
0.125
false
0
0
0
0.25
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
7ea6e49d326d58586fb2225abe66e43adafaf9e4
18,906
py
Python
pyvisdk/mo/host_system.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/mo/host_system.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
pyvisdk/mo/host_system.py
Infinidat/pyvisdk
f2f4e5f50da16f659ccc1d84b6a00f397fa997f8
[ "MIT" ]
null
null
null
from pyvisdk.base.managed_object_types import ManagedObjectTypes from pyvisdk.mo.managed_entity import ManagedEntity import logging ######################################## # Automatically generated, do not edit. ######################################## log = logging.getLogger(__name__) class HostSystem(ManagedEn...
57.290909
587
0.707871
2,487
18,906
5.367913
0.173301
0.042472
0.028315
0.01573
0.602547
0.590112
0.569738
0.569738
0.562397
0.548315
0
0.000419
0.241775
18,906
329
588
57.465046
0.930869
0.697556
0
0.141176
0
0
0.135267
0.071899
0
0
0
0
0
1
0.4
false
0
0.035294
0.023529
0.835294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
7eb077f57f0364e96b4d0371bf8ef10851f16adf
2,493
py
Python
tests/integration/test_requirements.py
Darsstar/pipenv
2bf70b74167868133809a926aa6393438fb06db4
[ "MIT" ]
null
null
null
tests/integration/test_requirements.py
Darsstar/pipenv
2bf70b74167868133809a926aa6393438fb06db4
[ "MIT" ]
null
null
null
tests/integration/test_requirements.py
Darsstar/pipenv
2bf70b74167868133809a926aa6393438fb06db4
[ "MIT" ]
null
null
null
import pytest @pytest.mark.requirements def test_requirements_generates_requirements_from_lockfile(PipenvInstance): with PipenvInstance(chdir=True) as p: packages = ('requests', '2.14.0') dev_packages = ('flask', '0.12.2') with open(p.pipfile_path, 'w') as f: contents = f""" ...
36.130435
92
0.552748
304
2,493
4.424342
0.217105
0.114498
0.062454
0.080297
0.747955
0.701859
0.663197
0.663197
0.663197
0.524907
0
0.024859
0.290012
2,493
68
93
36.661765
0.735028
0
0
0.566667
1
0
0.419575
0.105094
0
0
0
0
0.266667
1
0.033333
false
0
0.016667
0
0.05
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
7eb4051a57eb9e453be7fac60bc6f979a27984c1
1,107
py
Python
prev_ob_models/KaplanLansner2014/plotting_and_analysis/plot_gauss.py
fameshpatel/olfactorybulb
8d7a644b4560309ef177c0590ff73ed4c2432604
[ "MIT" ]
5
2019-10-03T14:49:02.000Z
2022-01-13T13:37:34.000Z
prev_ob_models/KaplanLansner2014/plotting_and_analysis/plot_gauss.py
fameshpatel/olfactorybulb
8d7a644b4560309ef177c0590ff73ed4c2432604
[ "MIT" ]
4
2019-12-30T15:57:24.000Z
2020-10-07T22:42:50.000Z
prev_ob_models/KaplanLansner2014/plotting_and_analysis/plot_gauss.py
fameshpatel/olfactorybulb
8d7a644b4560309ef177c0590ff73ed4c2432604
[ "MIT" ]
2
2020-05-19T20:12:48.000Z
2020-11-04T17:17:44.000Z
import numpy as np import matplotlib.mlab as mlab import pylab p = [1.631787e+02, 6.670855e+00, 1.977871e+00, \ 1.909487e+01, 1.110809e+01, 3.353855e+00, \ 4.188897e+00, 4.088460e+01, 4.966478e-01] def trimodal_gauss(x, p): w1 = p[0] mu1 = p[1] sigma1 = p[2] w2 = p[3] mu2 = p[4] si...
24.065217
116
0.565492
216
1,107
2.893519
0.310185
0.088
0.0576
0.0224
0.1248
0.048
0.048
0
0
0
0
0.204338
0.208672
1,107
45
117
24.6
0.509132
0.047877
0
0
0
0
0.018095
0
0
0
0
0
0
0
null
null
0
0.090909
null
null
0.121212
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
7eb4d9ec2bf90841e11406d287cf09022ca93e48
1,401
py
Python
plugins/snortlabslist/komand_snortlabslist/actions/lookup/schema.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
plugins/snortlabslist/komand_snortlabslist/actions/lookup/schema.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
plugins/snortlabslist/komand_snortlabslist/actions/lookup/schema.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
# GENERATED BY KOMAND SDK - DO NOT EDIT import komand import json class Component: DESCRIPTION = "IP Check" class Input: ADDRESS = "address" class Output: ADDRESS = "address" FOUND = "found" STATUS = "status" URL = "url" class LookupInput(komand.Input): schema = json.loads(""...
17.5125
57
0.521056
131
1,401
5.389313
0.374046
0.056657
0.084986
0.053824
0.373938
0.373938
0.373938
0.373938
0.373938
0.373938
0
0.00611
0.299072
1,401
79
58
17.734177
0.712831
0.02641
0
0.393939
1
0
0.643172
0
0
0
0
0
0
1
0.030303
false
0
0.030303
0
0.257576
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
7eb561239e8e1478bf77038daaecd9bc606a0c70
1,597
py
Python
envs/meta/__init__.py
twni2016/pomdp-baselines
59eb6092c9c89e89aec0473c4346733e574cbd9a
[ "MIT" ]
40
2021-10-15T14:53:00.000Z
2022-03-31T02:27:20.000Z
envs/meta/__init__.py
twni2016/pomdp-baselines
59eb6092c9c89e89aec0473c4346733e574cbd9a
[ "MIT" ]
1
2022-03-13T04:02:30.000Z
2022-03-13T04:02:30.000Z
envs/meta/__init__.py
twni2016/pomdp-baselines
59eb6092c9c89e89aec0473c4346733e574cbd9a
[ "MIT" ]
5
2021-11-28T04:08:13.000Z
2022-03-17T02:33:51.000Z
from gym.envs.registration import register ## off-policy variBAD benchmark register( "PointRobot-v0", entry_point="envs.meta.toy_navigation.point_robot:PointEnv", kwargs={"max_episode_steps": 60, "n_tasks": 2}, ) register( "PointRobotSparse-v0", entry_point="envs.meta.toy_navigation.point_robot:S...
23.835821
77
0.66938
191
1,597
5.319372
0.298429
0.108268
0.151575
0.194882
0.61122
0.61122
0.61122
0.57874
0.476378
0.391732
0
0.030139
0.189731
1,597
66
78
24.19697
0.755023
0.035066
0
0.472727
0
0
0.485026
0.289714
0
0
0
0
0
1
0
true
0
0.018182
0
0.018182
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
0e17efdd740c87dc00f74448eb330e995e85838d
2,781
py
Python
prev_ob_models/exclude/GilraBhalla2015/generators/generate_firerates_sinusoids.py
fameshpatel/olfactorybulb
8d7a644b4560309ef177c0590ff73ed4c2432604
[ "MIT" ]
null
null
null
prev_ob_models/exclude/GilraBhalla2015/generators/generate_firerates_sinusoids.py
fameshpatel/olfactorybulb
8d7a644b4560309ef177c0590ff73ed4c2432604
[ "MIT" ]
null
null
null
prev_ob_models/exclude/GilraBhalla2015/generators/generate_firerates_sinusoids.py
fameshpatel/olfactorybulb
8d7a644b4560309ef177c0590ff73ed4c2432604
[ "MIT" ]
null
null
null
import sys, pickle from pylab import * import numpy sys.path.extend(["..","../networks","../simulations"]) from networkConstants import * from stimuliConstants import * #### Generate sinusoids of different frequencies and amplitudes #### to feed to gloms individually to obtain frequency response. #### Cut off at zer...
37.08
93
0.692916
364
2,781
5.186813
0.480769
0.03178
0.014831
0.022246
0
0
0
0
0
0
0
0.013292
0.188421
2,781
74
94
37.581081
0.823217
0.386192
0
0.05
1
0
0.096539
0.020644
0
0
0
0
0
0
null
null
0
0.125
null
null
0.025
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
2
0e1bd5897499171f13f5f1b04ae76e34a35fe264
620
py
Python
tests/test_a0179largestnumber.py
nirofang/pyleet
600d58ad97028c9a14148af4ef468683a011a515
[ "MIT" ]
3
2019-11-06T13:10:38.000Z
2021-11-17T07:29:54.000Z
tests/test_a0179largestnumber.py
nirofang/pyleet
600d58ad97028c9a14148af4ef468683a011a515
[ "MIT" ]
1
2020-12-17T22:18:05.000Z
2020-12-17T22:18:05.000Z
tests/test_a0179largestnumber.py
nirofang/pyleet
600d58ad97028c9a14148af4ef468683a011a515
[ "MIT" ]
1
2019-11-06T13:10:45.000Z
2019-11-06T13:10:45.000Z
from solutions.a0179largestnumber import Solution solution = Solution() def test_largestNumber1(): nums = [10, 2] expect = "210" actual = solution.largestNumber(nums) assert actual == expect def test_largestNumber2(): nums = [3, 30, 34, 5, 9] expect = "9534330" actual = solution.largestNumber(nums) ...
19.375
49
0.690323
73
620
5.808219
0.39726
0.066038
0.254717
0.292453
0.511792
0.511792
0.511792
0.396226
0.396226
0
0
0.101594
0.190323
620
31
50
20
0.743028
0
0
0.363636
0
0
0.033871
0
0
0
0
0
0.181818
1
0.181818
false
0
0.045455
0
0.227273
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0e241217cd7c21b53180903a0ad3899cff803f47
5,202
py
Python
GPyOpt/testing/util_tests/test_general_utils.py
RaulAstudillo/bocf
cd84eab2d1b4ea5a4bdeeb452df92296afbafb87
[ "BSD-3-Clause" ]
9
2019-06-16T01:18:52.000Z
2021-11-03T15:43:55.000Z
GPyOpt/testing/util_tests/test_general_utils.py
RaulAstudillo/bocf
cd84eab2d1b4ea5a4bdeeb452df92296afbafb87
[ "BSD-3-Clause" ]
3
2020-09-09T06:12:51.000Z
2021-06-01T23:46:18.000Z
GPyOpt/testing/util_tests/test_general_utils.py
RaulAstudillo/bocf
cd84eab2d1b4ea5a4bdeeb452df92296afbafb87
[ "BSD-3-Clause" ]
5
2019-07-07T13:17:44.000Z
2020-09-09T06:06:17.000Z
import numpy as np import unittest from numpy.testing import assert_array_less from GPyOpt.core.errors import InvalidConfigError from GPyOpt.core.task.space import Design_space from GPyOpt.experiment_design import initial_design class TestInitialDesign(unittest.TestCase): def setUp(self): self.space = [ ...
43.35
123
0.677432
645
5,202
5.151938
0.127132
0.102618
0.103822
0.080048
0.775805
0.728859
0.66446
0.653927
0.621426
0.60006
0
0.022695
0.19531
5,202
119
124
43.714286
0.771142
0
0
0.494624
0
0
0.086697
0
0
0
0
0
0.27957
1
0.11828
false
0
0.064516
0
0.193548
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0e3e35fd91f4c77945488f5236fa6cb03b0f4566
614
py
Python
services/core-api/app/api/mines/government_agencies/models/government_agency_type.py
bcgov/mds
6c427a66a5edb4196222607291adef8fd6677038
[ "Apache-2.0" ]
25
2018-07-09T19:04:37.000Z
2022-03-15T17:27:10.000Z
services/core-api/app/api/mines/government_agencies/models/government_agency_type.py
areyeslo/mds
e8c38e593e09b78e2a57009c0d003d6c4bfa32e6
[ "Apache-2.0" ]
983
2018-04-25T20:08:07.000Z
2022-03-31T21:45:20.000Z
services/core-api/app/api/mines/government_agencies/models/government_agency_type.py
areyeslo/mds
e8c38e593e09b78e2a57009c0d003d6c4bfa32e6
[ "Apache-2.0" ]
58
2018-05-15T22:35:50.000Z
2021-11-29T19:40:52.000Z
from sqlalchemy.schema import FetchedValue from app.api.utils.models_mixins import AuditMixin, Base from app.extensions import db class GovernmentAgencyType(AuditMixin, Base): __tablename__ = 'government_agency_type' government_agency_type_code = db.Column(db.String, primary_key=True) description = db.Co...
34.111111
85
0.7557
78
614
5.576923
0.576923
0.110345
0.137931
0.110345
0
0
0
0
0
0
0
0
0.14658
614
18
86
34.111111
0.830153
0
0
0
0
0
0.136585
0.134959
0
0
0
0
0
1
0.153846
false
0
0.230769
0.153846
0.923077
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
0e5ce9213ba2e8bdfc45f4a3aff3af216ac17308
511
py
Python
server/app/services/content_element_service.py
bibbox/app-video-score
5318e3a134fa24fbdda423cad3764efa0aa88a93
[ "MIT" ]
2
2019-12-16T10:58:09.000Z
2021-01-30T06:02:47.000Z
server/app/services/content_element_service.py
bibbox/app-video-score
5318e3a134fa24fbdda423cad3764efa0aa88a93
[ "MIT" ]
11
2020-03-15T18:45:42.000Z
2021-10-12T22:55:58.000Z
server/app/services/content_element_service.py
bibbox/app-video-score
5318e3a134fa24fbdda423cad3764efa0aa88a93
[ "MIT" ]
3
2020-03-19T12:43:35.000Z
2021-02-15T08:55:00.000Z
# -*- coding: utf-8 -*- """ MovieService class - This class holds the method related to User manipulations. """ from server.app.models.content_element import ContentElement from server.app.services import SQLAlchemyService from server.app import db class ContentElementService(SQLAlchemyService): __model__ = Con...
28.388889
79
0.745597
58
511
6.344828
0.637931
0.081522
0.105978
0
0
0
0
0
0
0
0
0.002381
0.178082
511
18
80
28.388889
0.87381
0.317025
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.375
0
0.875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
0e5ed50148f58d5ee1b9f7da4f7de7b97b35ee95
590
py
Python
core/migrations/0005_auto_20210422_2040.py
Neelamegam2000/QRcode-for-license
a6d4c9655c5ba52b24c1ea737797557f06e0fcbf
[ "MIT" ]
null
null
null
core/migrations/0005_auto_20210422_2040.py
Neelamegam2000/QRcode-for-license
a6d4c9655c5ba52b24c1ea737797557f06e0fcbf
[ "MIT" ]
null
null
null
core/migrations/0005_auto_20210422_2040.py
Neelamegam2000/QRcode-for-license
a6d4c9655c5ba52b24c1ea737797557f06e0fcbf
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-04-22 15:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0004_auto_20210414_1640'), ] operations = [ migrations.AddField( model_name='document', name='...
24.583333
64
0.561017
60
590
5.383333
0.7
0.055728
0.105263
0.130031
0.235294
0.235294
0.235294
0
0
0
0
0.09068
0.327119
590
23
65
25.652174
0.722922
0.076271
0
0.235294
1
0
0.113462
0.044231
0
0
0
0
0
1
0
false
0.058824
0.058824
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
2
0e62668ac376a01d0302d87045f11cd8ca33eb29
1,309
py
Python
bridges/api/endpoints/votes.py
pegasystems/building-bridges
1a278df62c56421ab08b9ad14395fe9bf57cd32f
[ "MIT" ]
20
2021-04-14T13:03:49.000Z
2022-03-29T17:56:26.000Z
bridges/api/endpoints/votes.py
pegasystems/building-bridges
1a278df62c56421ab08b9ad14395fe9bf57cd32f
[ "MIT" ]
50
2021-04-16T17:32:14.000Z
2022-03-04T12:27:37.000Z
bridges/api/endpoints/votes.py
pegasystems/building-bridges
1a278df62c56421ab08b9ad14395fe9bf57cd32f
[ "MIT" ]
2
2021-07-23T01:52:38.000Z
2022-03-30T15:42:32.000Z
import logging from http import HTTPStatus from typing import Dict, Tuple from flask import request from flask_restx import Resource from bridges.api.endpoints.surveys import survey_api from bridges.api.parse_args import put_question_parser from bridges.api import logic from bridges.api.restplus import api from bridg...
29.088889
78
0.702063
168
1,309
5.291667
0.434524
0.07874
0.062992
0.049494
0.209224
0.152981
0.152981
0.087739
0
0
0
0
0.202445
1,309
44
79
29.75
0.851533
0.065699
0
0.076923
0
0
0.084702
0.048401
0
0
0
0
0
1
0.076923
false
0
0.384615
0
0.576923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
0e6425832047694b4e5e06d66808782e8ddc5c57
2,731
py
Python
tests/frontend/test_lib.py
CNR-ITTIG/plasodfaxp
923797fc00664fa9e3277781b0334d6eed5664fd
[ "Apache-2.0" ]
1
2019-09-26T08:16:30.000Z
2019-09-26T08:16:30.000Z
tests/frontend/test_lib.py
CNR-ITTIG/plasodfaxp
923797fc00664fa9e3277781b0334d6eed5664fd
[ "Apache-2.0" ]
null
null
null
tests/frontend/test_lib.py
CNR-ITTIG/plasodfaxp
923797fc00664fa9e3277781b0334d6eed5664fd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Front-end related functions and classes for testing.""" import io import os import unittest from plaso.analysis import interface as analysis_interface class StringIOOutputWriter(object): """Class that implements a StringIO output writer.""" def __init__(self): """Initialize the s...
27.867347
77
0.694617
356
2,731
5.196629
0.36236
0.037838
0.038919
0.019459
0.105946
0.105946
0.105946
0.105946
0.076757
0.076757
0
0.000931
0.213475
2,731
97
78
28.154639
0.860335
0.508971
0
0.0625
0
0
0.027708
0
0
0
0
0
0
1
0.28125
false
0
0.125
0
0.78125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
0e6ab3a3fd48bc5db11881bd7a1d5650b68821d5
1,252
py
Python
_assignments/pandas/dataframe/pandas_df_groupby_a.py
sages-pl/2022-01-pythonsqlalchemy-aptiv
1d6d856608e9dbe25b139e8968c48b7f46753b84
[ "MIT" ]
null
null
null
_assignments/pandas/dataframe/pandas_df_groupby_a.py
sages-pl/2022-01-pythonsqlalchemy-aptiv
1d6d856608e9dbe25b139e8968c48b7f46753b84
[ "MIT" ]
null
null
null
_assignments/pandas/dataframe/pandas_df_groupby_a.py
sages-pl/2022-01-pythonsqlalchemy-aptiv
1d6d856608e9dbe25b139e8968c48b7f46753b84
[ "MIT" ]
null
null
null
""" * Assignment: DataFrame Groupby Phones * Complexity: easy * Lines of code: 5 lines * Time: 8 min English: 1. Read data from `DATA` as `df: pd.DataFrame` 2. Give information about total number of all phone calls for each calendar month 3. Run doctests - all must succeed Polish: 1. Wczytaj dane z `D...
25.55102
112
0.634984
168
1,252
4.690476
0.678571
0.019036
0.041878
0.068528
0.053299
0
0
0
0
0
0
0.07684
0.261981
1,252
48
113
26.083333
0.775974
0.910543
0
0
0
0
0.5
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
0e6b47093ede6cbe098bacf7c6aeed7e24d636cf
36,488
py
Python
models_nonconvex_simple2/waternd2.py
grossmann-group/pyomo-MINLP-benchmarking
714f0a0dffd61675649a805683c0627af6b4929e
[ "MIT" ]
null
null
null
models_nonconvex_simple2/waternd2.py
grossmann-group/pyomo-MINLP-benchmarking
714f0a0dffd61675649a805683c0627af6b4929e
[ "MIT" ]
null
null
null
models_nonconvex_simple2/waternd2.py
grossmann-group/pyomo-MINLP-benchmarking
714f0a0dffd61675649a805683c0627af6b4929e
[ "MIT" ]
null
null
null
# MINLP written by GAMS Convert at 08/20/20 01:30:51 # # Equation counts # Total E G L N X C B # 250 105 0 145 0 0 0 0 # # Variable counts # x b i s1s s2s sc ...
43.961446
120
0.600088
6,887
36,488
3.179323
0.085959
0.039459
0.115638
0.146145
0.481823
0.426516
0.39409
0.39409
0.39409
0.101754
0
0.25713
0.178442
36,488
829
121
44.014475
0.473296
0.018636
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.001795
0
0.001795
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0e6e85d882a7d50e9794b5be760226f4347b67ea
285
py
Python
gsa_framework/models/__init__.py
aleksandra-kim/gsa_framework
d119755cd96a31827f499f09a3a203aed295ba46
[ "BSD-3-Clause" ]
2
2020-12-28T17:11:47.000Z
2021-11-20T19:59:33.000Z
gsa_framework/models/__init__.py
aleksandra-kim/gsa_framework
d119755cd96a31827f499f09a3a203aed295ba46
[ "BSD-3-Clause" ]
7
2020-09-09T10:12:21.000Z
2021-11-25T09:54:14.000Z
gsa_framework/models/__init__.py
aleksandra-kim/gsa_framework
d119755cd96a31827f499f09a3a203aed295ba46
[ "BSD-3-Clause" ]
3
2020-09-08T09:41:28.000Z
2021-12-28T03:21:40.000Z
from .life_cycle_assessment import LCAModel from .test_functions import ( Morris, Morris4, Borehole, Wingweight, OTLcircuit, Piston, Moon, SobolLevitan, SobolGstar, SobolG, ) from .model_base import ModelBase from .test_functions import Morris4
17.8125
43
0.708772
30
285
6.566667
0.7
0.081218
0.172589
0.233503
0
0
0
0
0
0
0
0.009174
0.235088
285
15
44
19
0.894495
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.266667
0
0.266667
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
0e6f977cf27cacfcaf3bae96a85dedd2ecd19132
1,915
py
Python
resource_emulation.py
sogeti-esec-lab/LKD
f388b5f8c08b7bba2a31c5a16ea64add6cc2dd1a
[ "BSD-3-Clause" ]
102
2015-10-21T10:58:06.000Z
2021-06-07T17:59:52.000Z
resource_emulation.py
a1ext/LKD
f388b5f8c08b7bba2a31c5a16ea64add6cc2dd1a
[ "BSD-3-Clause" ]
1
2019-09-24T20:45:57.000Z
2019-09-24T20:45:57.000Z
resource_emulation.py
w4kfu/LKD
f388b5f8c08b7bba2a31c5a16ea64add6cc2dd1a
[ "BSD-3-Clause" ]
16
2015-10-29T14:10:14.000Z
2019-10-27T18:58:52.000Z
import ctypes import itertools import windows import windows.hooks from windows.generated_def.winstructs import * class Ressource(object): def __init__(self, filename, lpName, lpType): self.filename = filename self.lpName = lpName self.lpType = lpType self.driver_data = None ...
27.753623
75
0.698172
236
1,915
5.457627
0.279661
0.07764
0.065217
0.05823
0.180124
0.110248
0.110248
0.110248
0.110248
0.110248
0
0.006008
0.217755
1,915
68
76
28.161765
0.853805
0
0
0.173077
1
0
0.001044
0
0
0
0.005222
0
0
1
0.173077
false
0
0.096154
0.019231
0.519231
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
0e74497ba3056049c6be043d39c6615b3d1cac3b
580
py
Python
src/symmetry.py
Antoinehoff/Project_II
120209e695f4f25ecdc6797f683e2b23894689f4
[ "MIT" ]
null
null
null
src/symmetry.py
Antoinehoff/Project_II
120209e695f4f25ecdc6797f683e2b23894689f4
[ "MIT" ]
null
null
null
src/symmetry.py
Antoinehoff/Project_II
120209e695f4f25ecdc6797f683e2b23894689f4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Third party libs import numpy import nlopt # Local libs import images from common import ProblemType from filter import Filter from topopt import TopoptProblem from appearance import AppearanceCL import solver class Symmetric_Solver(Solver): def design_variable_merge(self, x, nelx, ne...
20.714286
59
0.725862
82
580
5.073171
0.609756
0.048077
0
0
0
0
0
0
0
0
0
0.010684
0.193103
580
27
60
21.481481
0.878205
0.284483
0
0
0
0
0
0
0
0
0
0
0
1
0.153846
false
0
0.615385
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
0e74fbcee38613d7833e5514ca3ab2f67741298d
76,283
py
Python
azure/Kqlmagic/kql_magic_core.py
appsworld/jupyter-Kqlmagic
d9e759b77f20c938fea6fed8edf791997d1a1de3
[ "MIT" ]
null
null
null
azure/Kqlmagic/kql_magic_core.py
appsworld/jupyter-Kqlmagic
d9e759b77f20c938fea6fed8edf791997d1a1de3
[ "MIT" ]
null
null
null
azure/Kqlmagic/kql_magic_core.py
appsworld/jupyter-Kqlmagic
d9e759b77f20c938fea6fed8edf791997d1a1de3
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- import os...
59.134109
6,109
0.671526
7,316
76,283
6.759568
0.163614
0.014357
0.016015
0.009605
0.302085
0.234344
0.181627
0.149253
0.111298
0.081593
0
0.043195
0.247657
76,283
1,289
6,110
59.179984
0.818491
0.209273
0
0.224944
0
0.011136
0.338461
0.162866
0
1
0
0.000776
0
1
0.028953
false
0.006682
0.045657
0
0.116927
0.002227
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
2
0e86b511c01d63214e779256a463e1da3964492b
2,412
py
Python
electionleaflets/apps/parties/migrations/0002_auto__add_field_party_show_on_add_page.py
electionleaflets/electionleaflets
4110e96a3035c32d0b6ff3c9f832c5e003728170
[ "MIT" ]
null
null
null
electionleaflets/apps/parties/migrations/0002_auto__add_field_party_show_on_add_page.py
electionleaflets/electionleaflets
4110e96a3035c32d0b6ff3c9f832c5e003728170
[ "MIT" ]
23
2015-02-19T14:02:23.000Z
2015-04-30T11:14:01.000Z
electionleaflets/apps/parties/migrations/0002_auto__add_field_party_show_on_add_page.py
electionleaflets/electionleaflets
4110e96a3035c32d0b6ff3c9f832c5e003728170
[ "MIT" ]
2
2015-02-02T19:39:54.000Z
2017-02-08T09:19:53.000Z
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Party.show_on_add_page' db.add_column(u'party', 'show_on_add_page', self.gf('django.db.mod...
50.25
135
0.568823
267
2,412
4.992509
0.310861
0.114029
0.189047
0.270068
0.532633
0.393098
0.393098
0.109527
0.076519
0.076519
0
0.013055
0.206053
2,412
47
136
51.319149
0.683029
0.038557
0
0
0
0
0.492441
0.269546
0
0
0
0
0
1
0.057143
false
0
0.114286
0
0.257143
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0e8c4a9131e50294eacf5cbe3bd231b1655558a1
609
py
Python
hello.py
sandipsahajoy/CMPUT404-Lab3
386f8d56faa460abd7ce0f842cf09d2ee51ffbbb
[ "Apache-2.0" ]
null
null
null
hello.py
sandipsahajoy/CMPUT404-Lab3
386f8d56faa460abd7ce0f842cf09d2ee51ffbbb
[ "Apache-2.0" ]
null
null
null
hello.py
sandipsahajoy/CMPUT404-Lab3
386f8d56faa460abd7ce0f842cf09d2ee51ffbbb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import os, json ### Print python env variables as plain text # print("Content-Type: text/plain") # print() # print(os.environ) ### Print python env variables as json # print("Content-Type: application/json") # print() # print(json.dumps(dict(os.environ), indent=2)) ### Print query parameter d...
26.478261
73
0.699507
91
609
4.615385
0.373626
0.114286
0.152381
0.142857
0.37619
0.257143
0.257143
0.257143
0.257143
0.257143
0
0.003683
0.108374
609
22
74
27.681818
0.769797
0.720854
0
0
0
0
0.425676
0.148649
0
0
0
0
0
1
0
true
0
0.25
0
0.25
0.75
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
1
0
2
0e950fc238acd123811a7cffd815f129e12c3000
2,168
py
Python
yacht/__init__.py
IusztinPaul/yacht
c68ab7c66bde860bb91534c29e97772ba328adb5
[ "Apache-2.0" ]
5
2021-09-03T10:16:50.000Z
2022-02-28T07:32:43.000Z
yacht/__init__.py
IusztinPaul/yacht
c68ab7c66bde860bb91534c29e97772ba328adb5
[ "Apache-2.0" ]
null
null
null
yacht/__init__.py
IusztinPaul/yacht
c68ab7c66bde860bb91534c29e97772ba328adb5
[ "Apache-2.0" ]
1
2022-03-05T16:06:46.000Z
2022-03-05T16:06:46.000Z
from enum import Enum __author__ = "Iusztin Paul-Emil" __copyright__ = "Copyright 2021, Yacht" __credits__ = ["Iusztin Paul-Emil"] __license__ = "Apache-2.0" __version__ = "1.0.0" __maintainer__ = "Iusztin Paul-Emil" __email__ = "p.e.iusztin@gmail.com" __status__ = "Development" class Mode(Enum): Download = 'd...
29.297297
83
0.66928
224
2,168
6.160714
0.308036
0.032609
0.091304
0.104348
0.288406
0.256522
0.189855
0.189855
0
0
0
0.005428
0.23524
2,168
73
84
29.69863
0.8269
0
0
0.107143
0
0
0.152675
0.052122
0
0
0
0
0
1
0.196429
false
0
0.017857
0.178571
0.607143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
0e9681de1ad45040c9c502baac281864fd56ea15
988
py
Python
RecoHI/HiTracking/python/HIPixelVertices_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
RecoHI/HiTracking/python/HIPixelVertices_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
RecoHI/HiTracking/python/HIPixelVertices_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms # pixel cluster vertex finder from RecoHI.HiTracking.HIPixelClusterVertex_cfi import * # pixel track producer from RecoHI.HiTracking.HIPixel3ProtoTracks_cfi import * # fast vertex finding from RecoHI.HiTracking.HIPixelMedianVertex_cfi import * # selected pixel tracks from R...
34.068966
57
0.680162
77
988
8.649351
0.506494
0.09009
0.18018
0.069069
0.099099
0
0
0
0
0
0
0.002809
0.279352
988
28
58
35.285714
0.932584
0.149798
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.466667
0
0.466667
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
2
0eae92b85f6a6c449ed4b86fb348dc1b6c7a96d5
518
py
Python
part/utils.py
chdemko/py-part
8ad8bd4eac15b9a4924daaf83808e09792000957
[ "BSD-3-Clause" ]
null
null
null
part/utils.py
chdemko/py-part
8ad8bd4eac15b9a4924daaf83808e09792000957
[ "BSD-3-Clause" ]
4
2020-05-11T18:56:23.000Z
2021-03-24T15:59:49.000Z
part/utils.py
chdemko/py-part
8ad8bd4eac15b9a4924daaf83808e09792000957
[ "BSD-3-Clause" ]
null
null
null
"""Utility module that defines the :class:`Singleton` class.""" class Singleton: """ Singleton class. The :class:`Singleton` class is used to force a unique instantiation. """ _instance = None def __new__(cls, *args) -> "Singleton": """Control single instance creation.""" if...
23.545455
73
0.598456
58
518
5.068966
0.517241
0.142857
0.115646
0.14966
0
0
0
0
0
0
0
0
0.26834
518
21
74
24.666667
0.775726
0.382239
0
0
0
0
0.031579
0
0
0
0
0
0
1
0.25
false
0
0
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
2
7ebcc77fad7f29734283adac2cea74183f32af09
526
py
Python
noxfile.py
stbraun/loganalyzer
a783906d945df65b92ce91e81af4cc8d0458be29
[ "MIT" ]
null
null
null
noxfile.py
stbraun/loganalyzer
a783906d945df65b92ce91e81af4cc8d0458be29
[ "MIT" ]
null
null
null
noxfile.py
stbraun/loganalyzer
a783906d945df65b92ce91e81af4cc8d0458be29
[ "MIT" ]
null
null
null
# coding=utf-8 """ Configuration of nox test automation tool. """ import nox @nox.session(python=['3.8', '3.9']) def lint(session): """Run static analysis.""" session.run("pipenv", "install", "--dev", external=True) session.run("pipenv", "run", "flake8", "loganalysis/", "tests/") @nox.session(python=['...
27.684211
68
0.621673
69
526
4.73913
0.463768
0.183486
0.195719
0.103976
0.489297
0.489297
0.489297
0.489297
0.348624
0.348624
0
0.022272
0.146388
526
18
69
29.222222
0.706013
0.239544
0
0.444444
0
0
0.266319
0
0
0
0
0
0
1
0.222222
false
0
0.111111
0
0.333333
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
2
7ed5306e357e8071e5b14ba82477adccd12316a4
736
py
Python
utilityhelper/common/HelperMagic.py
leileigong/utility-helper
0494658440432554d100109b6e3c2ba044cd560a
[ "MIT" ]
null
null
null
utilityhelper/common/HelperMagic.py
leileigong/utility-helper
0494658440432554d100109b6e3c2ba044cd560a
[ "MIT" ]
null
null
null
utilityhelper/common/HelperMagic.py
leileigong/utility-helper
0494658440432554d100109b6e3c2ba044cd560a
[ "MIT" ]
1
2019-01-29T06:37:38.000Z
2019-01-29T06:37:38.000Z
#coding:utf-8 from __future__ import (print_function, unicode_literals) def wrapper_round_n_float(radix): def flyable_to_return(cls): def r(self, num): return round(num, radix) cls.r = r return cls return flyable_to_return @wrapper_round_n_float(5) class R(float): pass ...
23
63
0.653533
96
736
4.552083
0.479167
0.05492
0.059497
0.08238
0
0
0
0
0
0
0
0.037168
0.232337
736
32
64
23
0.736283
0.230978
0
0
0
0
0.014519
0
0
0
0
0
0
1
0.210526
false
0.052632
0.052632
0.052632
0.578947
0.105263
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
7ef90643220df5ab1f07adf47d728593857fd2cc
470
py
Python
photo-page/getImgHTML.py
alex-law/personal-website
3648ffeebac22b5077667cdbf0c911aae376d449
[ "MIT" ]
null
null
null
photo-page/getImgHTML.py
alex-law/personal-website
3648ffeebac22b5077667cdbf0c911aae376d449
[ "MIT" ]
1
2021-05-11T09:58:19.000Z
2021-05-11T09:58:19.000Z
photo-page/getImgHTML.py
alex-law/personal-website
3648ffeebac22b5077667cdbf0c911aae376d449
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Apr 12 15:26:52 2020 @author: alexw """ import os out = '<div class="col-sm-12 col-md-4">\n<a class="lightbox" href="img/1.jpg">\n<img src="img/1.jpg" alt="1">\n</a>\n</div>\n' for n in range(2, 139): base = '<div class="col-sm-12 col-md-4">\n<a class="lightbox" href="i...
29.375
148
0.565957
96
470
2.770833
0.489583
0.030075
0.082707
0.097744
0.473684
0.323308
0.323308
0.323308
0.323308
0.323308
0
0.064838
0.146809
470
16
149
29.375
0.598504
0.157447
0
0
0
0.285714
0.647815
0.246787
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
7efc9258f1318fd1c1aa5c1a1fd1028225d1858a
560
py
Python
ozone-framework-python-server/config/serializers.py
aamduka/ozone
3fdbf232f5ea70661204a632e45310ca9d374973
[ "Apache-2.0" ]
6
2020-02-21T22:06:31.000Z
2020-12-08T10:48:07.000Z
ozone-framework-python-server/config/serializers.py
aamduka/ozone
3fdbf232f5ea70661204a632e45310ca9d374973
[ "Apache-2.0" ]
12
2019-12-26T17:38:40.000Z
2022-02-10T14:15:55.000Z
ozone-framework-python-server/config/serializers.py
aamduka/ozone
3fdbf232f5ea70661204a632e45310ca9d374973
[ "Apache-2.0" ]
4
2019-09-20T01:20:33.000Z
2020-09-05T01:15:51.000Z
from django.contrib.auth import authenticate from rest_framework import serializers class LoginSerializer(serializers.Serializer): username = serializers.CharField() password = serializers.CharField() def validate(self, attrs): user = authenticate(username=attrs['username'], password=attrs['passw...
29.473684
83
0.701786
57
560
6.859649
0.526316
0.102302
0.066496
0.086957
0
0
0
0
0
0
0
0
0.205357
560
18
84
31.111111
0.878652
0
0
0
0
0
0.121429
0
0
0
0
0
0
1
0.083333
false
0.25
0.166667
0
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
1
0
0
2
7efe91aae3deedf2efdf46b70ade6a3bdf7749da
2,598
py
Python
solvate/__init__.py
michaltykac/SolvateAminoAcids
cde6364a1ab9f4188975e1e4ea7296d6655cc6a9
[ "BSD-3-Clause" ]
1
2020-12-08T16:24:33.000Z
2020-12-08T16:24:33.000Z
solvate/__init__.py
michaltykac/SolvateAminoAcids
cde6364a1ab9f4188975e1e4ea7296d6655cc6a9
[ "BSD-3-Clause" ]
null
null
null
solvate/__init__.py
michaltykac/SolvateAminoAcids
cde6364a1ab9f4188975e1e4ea7296d6655cc6a9
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: UTF-8 -*- # \file __init__.py # \brief This file initialises the package. # # This file firstly denotes this folder as containing python package and secondly it makes some of the solvate # parts easily accessible. # # Copyright by the Authors and individual contributors. All rights reserved. # #...
74.228571
760
0.789838
345
2,598
5.904348
0.504348
0.059401
0.097202
0.068729
0.229259
0.066765
0.066765
0.066765
0.066765
0.066765
0
0.005005
0.153965
2,598
34
761
76.411765
0.921747
0.719784
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
2
7d04e5335572f6997d6d215a735f2ea5c2f09b90
516
py
Python
resources/scripts/pytest_otel/docs/demos/test/test_demo.py
and-blk/apm-pipeline-library
3e09b7e2c7a270895b6a5b6601b3934408e890d9
[ "Apache-2.0" ]
null
null
null
resources/scripts/pytest_otel/docs/demos/test/test_demo.py
and-blk/apm-pipeline-library
3e09b7e2c7a270895b6a5b6601b3934408e890d9
[ "Apache-2.0" ]
null
null
null
resources/scripts/pytest_otel/docs/demos/test/test_demo.py
and-blk/apm-pipeline-library
3e09b7e2c7a270895b6a5b6601b3934408e890d9
[ "Apache-2.0" ]
null
null
null
# Copyright The OpenTelemetry Authors # SPDX-License-Identifier: Apache-2.0 pytest_plugins = ["pytester"] import time import logging import pytest def test_basic(): time.sleep(5) pass def test_success(): assert True def test_failure(): assert 1 < 0 def test_failure_code(): d = 1/0 pass @...
14.333333
37
0.699612
76
516
4.605263
0.5
0.14
0.08
0
0
0
0
0
0
0
0
0.016787
0.19186
516
35
38
14.742857
0.822542
0.137597
0
0.26087
0
0
0.033937
0
0
0
0
0
0.217391
1
0.304348
false
0.086957
0.130435
0
0.434783
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
7d0873455c93fe09da6df57531fad84d86aea13b
350
py
Python
test_tools.py
gonzatorte/sw-utils
767ec4aa8cbe1e0143f601482024ba1d9b76da64
[ "MIT" ]
null
null
null
test_tools.py
gonzatorte/sw-utils
767ec4aa8cbe1e0143f601482024ba1d9b76da64
[ "MIT" ]
null
null
null
test_tools.py
gonzatorte/sw-utils
767ec4aa8cbe1e0143f601482024ba1d9b76da64
[ "MIT" ]
null
null
null
class SWTestCase: def __init__(self): pass @classmethod def configure(cls): pass def setUp(self): pass def tearDown(self): pass def run_all_test_case(self): for test in self.test_to_run: self.setUp() test() self.te...
15.217391
37
0.522857
40
350
4.3
0.45
0.139535
0.127907
0
0
0
0
0
0
0
0
0
0.391429
350
23
38
15.217391
0.807512
0
0
0.25
0
0
0
0
0
0
0
0
0
1
0.3125
false
0.25
0
0
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
7d206fcd544c99bba1f53f56efa0977a203b4dd2
1,029
py
Python
accelerator/tests/factories/application_factory.py
masschallenge/django-accelerator
8af898b574be3b8335edc8961924d1c6fa8b5fd5
[ "MIT" ]
6
2017-06-14T19:34:01.000Z
2020-03-08T07:16:59.000Z
accelerator/tests/factories/application_factory.py
masschallenge/django-accelerator
8af898b574be3b8335edc8961924d1c6fa8b5fd5
[ "MIT" ]
160
2017-06-20T17:12:13.000Z
2022-03-30T13:53:12.000Z
accelerator/tests/factories/application_factory.py
masschallenge/django-accelerator
8af898b574be3b8335edc8961924d1c6fa8b5fd5
[ "MIT" ]
null
null
null
# MIT License # Copyright (c) 2017 MassChallenge, Inc. from __future__ import unicode_literals from datetime import ( datetime, timedelta, ) import swapper from factory import SubFactory from factory.django import DjangoModelFactory from pytz import utc from accelerator.tests.factories.application_type_fact...
26.384615
70
0.797862
104
1,029
7.701923
0.451923
0.064919
0.074906
0.108614
0
0
0
0
0
0
0
0.00565
0.139942
1,029
38
71
27.078947
0.899435
0.048591
0
0
0
0
0.022541
0
0
0
0
0
0
1
0
false
0
0.357143
0
0.607143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
2
7d403af311064b14655f25e0106d525b25120eee
1,427
py
Python
herbieapp/models/message_models_and_serializers.py
merltron-pa/herbie-test
2dd601ed09045fd109fde4f56c8412fd0fd0df11
[ "MIT" ]
null
null
null
herbieapp/models/message_models_and_serializers.py
merltron-pa/herbie-test
2dd601ed09045fd109fde4f56c8412fd0fd0df11
[ "MIT" ]
null
null
null
herbieapp/models/message_models_and_serializers.py
merltron-pa/herbie-test
2dd601ed09045fd109fde4f56c8412fd0fd0df11
[ "MIT" ]
null
null
null
from rest_framework import serializers from rest_framework.fields import JSONField from herbieapp.constants import MessageActionConstants as Constants class EntityUpdateMessage: def __init__(self, _type, key, version, payload, created, modified, tags): self.tags = tags self.action = Constants.UPD...
29.122449
78
0.70918
134
1,427
7.432836
0.261194
0.200803
0.034137
0.03012
0.383534
0.331325
0.281125
0.281125
0.281125
0.200803
0
0
0.212334
1,427
48
79
29.729167
0.886121
0
0
0.432432
0
0
0
0
0
0
0
0
0
1
0.108108
false
0
0.081081
0.054054
0.675676
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
2
7d40d55aa5353fe5ead67764b709e308a6ebe2d7
252
py
Python
codewars/omnibool.py
TimothyDJones/learn-python
687239572bee5e5c94bebb6b175b3fba4d47600e
[ "MIT" ]
null
null
null
codewars/omnibool.py
TimothyDJones/learn-python
687239572bee5e5c94bebb6b175b3fba4d47600e
[ "MIT" ]
null
null
null
codewars/omnibool.py
TimothyDJones/learn-python
687239572bee5e5c94bebb6b175b3fba4d47600e
[ "MIT" ]
null
null
null
# omnibool.py # https://www.codewars.com/kata/5a5f9f80f5dc3f942b002309/train/python class Omnibool(): def __eq__(self, x): return True if __name__ == "__main__": omnibool = Omnibool() print(omnibool == True and omnibool == False)
22.909091
69
0.68254
29
252
5.517241
0.793103
0
0
0
0
0
0
0
0
0
0
0.078049
0.186508
252
10
70
25.2
0.702439
0.313492
0
0
0
0
0.047059
0
0
0
0
0
0
1
0.166667
false
0
0
0.166667
0.5
0.166667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
2
7d433afde3c83fe11d88e3e4139384d5386c6f5b
444
py
Python
install.py
ktiwary2/nerf_pl
99d40cba3a2d9a11d6988cb1a74cf29035a1ab5e
[ "MIT" ]
null
null
null
install.py
ktiwary2/nerf_pl
99d40cba3a2d9a11d6988cb1a74cf29035a1ab5e
[ "MIT" ]
null
null
null
install.py
ktiwary2/nerf_pl
99d40cba3a2d9a11d6988cb1a74cf29035a1ab5e
[ "MIT" ]
null
null
null
import os from os.path import exists, join, basename project_name = "pyrender" if not exists(project_name): # clone and install !git clone -q https://github.com/mmatl/pyrender.git #requirements file gives the wrong pyglet #ERROR: pyrender 0.1.23 has requirement pyglet==1.4.0b1, but you'll have pyglet 1.4.0a1 w...
34.153846
112
0.75
73
444
4.506849
0.671233
0.133739
0.048632
0
0
0
0
0
0
0
0
0.031746
0.148649
444
13
113
34.153846
0.838624
0.497748
0
0
0
0
0.03653
0
0
0
0
0
0
0
null
null
0
0.428571
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
2
7d4588ead252b4e32af292a3502579b4014c6b58
336
py
Python
src/com/python/demo/tuple_Demo.py
Leeo1124/pythonDemo
72e2209c095301a3f1f61edfe03ea69c3c05be40
[ "Apache-2.0" ]
null
null
null
src/com/python/demo/tuple_Demo.py
Leeo1124/pythonDemo
72e2209c095301a3f1f61edfe03ea69c3c05be40
[ "Apache-2.0" ]
null
null
null
src/com/python/demo/tuple_Demo.py
Leeo1124/pythonDemo
72e2209c095301a3f1f61edfe03ea69c3c05be40
[ "Apache-2.0" ]
null
null
null
''' Created on 2016年7月27日 @author: Administrator 元组:tuple。tuple和list非常类似,但是tuple一旦初始化就不能修改 ''' classmates = ('Michael', 'Bob', 'Tracy') print(classmates) print(len(classmates)) print(classmates[0]) print(classmates[-1]) #只有1个元素的tuple定义时必须加一个逗号,,来消除歧义 t = (1,) print(t) t = ('a', 'b', ['A', 'B']) t[2][0] = 'X' t[2][1...
16
41
0.654762
45
336
4.888889
0.555556
0.204545
0
0
0
0
0
0
0
0
0
0.050336
0.113095
336
21
42
16
0.687919
0.35119
0
0.181818
0
0
0.099526
0
0
0
0
0
0
1
0
false
0
0
0
0
0.545455
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
2
7d48a02294529f8f130608de373cf1020f52a9bf
325
py
Python
app.py
ikhichar/toplay
7f4804f74c4259a148b0627eeb2148a2073c78b4
[ "MIT" ]
2
2022-03-24T16:26:40.000Z
2022-03-24T17:38:54.000Z
app.py
ikhichar/toplay
7f4804f74c4259a148b0627eeb2148a2073c78b4
[ "MIT" ]
1
2022-03-24T18:17:46.000Z
2022-03-24T18:17:46.000Z
app.py
ikhichar/toplay
7f4804f74c4259a148b0627eeb2148a2073c78b4
[ "MIT" ]
29
2019-09-25T06:53:57.000Z
2022-03-24T16:42:57.000Z
from flask import Flask app = Flask("toplay") import random choices=['Hilary','Trump','Jill','Gary'] @app.route('/') def is_nuts(): return "{} is nuts!".format(random.choice(choices)) @app.route('/<person>') def is_nuts_person(person): return "{} is nuts!".format(person) if __name__ == '__main__': app.r...
19.117647
55
0.652308
44
325
4.568182
0.522727
0.119403
0.089552
0.179104
0
0
0
0
0
0
0
0
0.138462
325
16
56
20.3125
0.717857
0
0
0
0
0
0.2
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0.166667
0.5
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
2
adae6d5bfd2a91e803ae81297644538da478d15d
2,135
py
Python
alipay/aop/api/domain/StageGroupInfoVO.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/StageGroupInfoVO.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/StageGroupInfoVO.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.StageCateInfoVO import StageCateInfoVO class StageGroupInfoVO(object): def __init__(self): self._group_name = None self._stage_cate_infos = None @propert...
31.397059
86
0.60281
264
2,135
4.545455
0.200758
0.1575
0.245
0.195
0.335833
0.2225
0.145
0.11
0
0
0
0.001351
0.306792
2,135
67
87
31.865672
0.809459
0.019672
0
0.09434
0
0
0.06989
0
0
0
0
0
0
1
0.132075
false
0
0.056604
0.037736
0.301887
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
adc9ac3fe5ebaaf6aea4b84327e443fd4793f1a6
1,155
py
Python
tests/test_speed.py
TobiasKonradsen/Chessure
cb1dc20465258b74edc4969264061b93c8e92644
[ "MIT" ]
1
2022-02-23T18:21:22.000Z
2022-02-23T18:21:22.000Z
tests/test_speed.py
TobiasKonradsen/Chessure
cb1dc20465258b74edc4969264061b93c8e92644
[ "MIT" ]
null
null
null
tests/test_speed.py
TobiasKonradsen/Chessure
cb1dc20465258b74edc4969264061b93c8e92644
[ "MIT" ]
null
null
null
# import unittest # import time # from game_logic.moves import Moves as SlowMoves, SlowMoves as Moves # n = 100_000 # class TestSpeed(unittest.TestCase): # def createMoves(self): # j = 0 # for i in range(n): # m = Moves([1]*64) # j += 1 # def createSlowMoves(self): #...
22.211538
69
0.501299
135
1,155
4.148148
0.274074
0.171429
0.1625
0.078571
0.471429
0.366071
0.366071
0.366071
0.366071
0.298214
0
0.024161
0.354978
1,155
51
70
22.647059
0.727517
0.922078
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
add2867c98a542e11740a54f205486e075951ef7
161
py
Python
fee_calculator/settings/docker.py
ministryofjustice/laa-fee-calcualtor
361bdd724997c4355b8045acb0abcaa77076eb90
[ "MIT" ]
1
2019-06-03T11:30:33.000Z
2019-06-03T11:30:33.000Z
fee_calculator/settings/docker.py
ministryofjustice/laa-fee-calcualtor
361bdd724997c4355b8045acb0abcaa77076eb90
[ "MIT" ]
120
2016-10-28T11:51:40.000Z
2022-03-29T17:09:46.000Z
fee_calculator/settings/docker.py
ministryofjustice/laa-fee-calcualtor
361bdd724997c4355b8045acb0abcaa77076eb90
[ "MIT" ]
4
2018-06-19T11:37:21.000Z
2021-04-11T06:18:40.000Z
from .base import * # noqa SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY') ALLOWED_HOSTS = [ 'localhost', '.dsd.io', '.service.justice.gov.uk' ]
16.1
48
0.639752
21
161
4.714286
0.904762
0.181818
0
0
0
0
0
0
0
0
0
0
0.192547
161
9
49
17.888889
0.761538
0.024845
0
0
0
0
0.36129
0.148387
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
add8107864ec27728779dfcda1d60116b9dedd4d
136
py
Python
codes/course2/demo1.py
BigShuang/big-shuang-python-introductory-course
c4fd1343c4c539567180072c749b68bda7c28075
[ "MIT" ]
null
null
null
codes/course2/demo1.py
BigShuang/big-shuang-python-introductory-course
c4fd1343c4c539567180072c749b68bda7c28075
[ "MIT" ]
null
null
null
codes/course2/demo1.py
BigShuang/big-shuang-python-introductory-course
c4fd1343c4c539567180072c749b68bda7c28075
[ "MIT" ]
null
null
null
names = ["Alan", "Bruce", "Carlos", "David", "Emma"] scores = [90, 80, 85, 92, 81] for name in names: print("hello, %s!" % name)
17
52
0.544118
20
136
3.7
0.9
0
0
0
0
0
0
0
0
0
0
0.093458
0.213235
136
7
53
19.428571
0.598131
0
0
0
0
0
0.25
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2