hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
7a41f0c3764e71077fc7420e76ea9cf370051a97
1,047
py
Python
civil/library/fields/base64.py
christopinka/django-civil
d134624da9d36c4ba0bea2df8a21698df196bdf6
[ "Apache-2.0" ]
3
2020-06-15T21:01:06.000Z
2022-02-17T17:41:57.000Z
civil/library/fields/base64.py
christopinka/django-civil
d134624da9d36c4ba0bea2df8a21698df196bdf6
[ "Apache-2.0" ]
null
null
null
civil/library/fields/base64.py
christopinka/django-civil
d134624da9d36c4ba0bea2df8a21698df196bdf6
[ "Apache-2.0" ]
1
2021-11-06T18:33:29.000Z
2021-11-06T18:33:29.000Z
# -*- coding: utf-8 -*- #==============================================================================
31.727273
79
0.596944
# -*- coding: utf-8 -*- import base64 from django.db.models import fields #============================================================================== class Base64Field(models.TextField): """ A base64 field to store binary data into a text field in django. class Foo(models.Model): data...
0
0
0
869
0
0
0
6
67
6a8aa891bdbb93f9c5072560a632cfbbae4db48c
10,227
py
Python
examples/text_embeddings/export.py
hrishikeshmane/hub
d6ee95376e80ce8e1df9a1f1057402c7ca98d4fa
[ "Apache-2.0" ]
2
2020-06-20T14:10:42.000Z
2020-10-12T07:10:30.000Z
examples/text_embeddings/export.py
hrishikeshmane/hub
d6ee95376e80ce8e1df9a1f1057402c7ca98d4fa
[ "Apache-2.0" ]
null
null
null
examples/text_embeddings/export.py
hrishikeshmane/hub
d6ee95376e80ce8e1df9a1f1057402c7ca98d4fa
[ "Apache-2.0" ]
1
2020-08-03T21:04:29.000Z
2020-08-03T21:04:29.000Z
# Copyright 2018 The TensorFlow Hub Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
35.884211
80
0.706757
# Copyright 2018 The TensorFlow Hub Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
0
0
0
0
0
599
0
0
46
af79c8bc2aaa0db59e64d6db07e973d2301ac6fb
16,588
py
Python
witsenhausen/Witsenhausen+Counterexample+TF.py
jain-nikunj/radioML
24bcfce5f189e22679881c3eea3819e7a19e7301
[ "MIT" ]
5
2018-03-07T03:46:32.000Z
2021-02-20T11:59:40.000Z
witsenhausen/Witsenhausen+Counterexample+TF.py
jain-nikunj/radioML
24bcfce5f189e22679881c3eea3819e7a19e7301
[ "MIT" ]
1
2018-03-11T03:19:03.000Z
2018-03-11T03:19:03.000Z
witsenhausen/Witsenhausen+Counterexample+TF.py
jain-nikunj/radioML
24bcfce5f189e22679881c3eea3819e7a19e7301
[ "MIT" ]
3
2018-03-14T18:16:25.000Z
2018-11-14T07:19:41.000Z
# coding: utf-8 # In[1]: import numpy as np import tensorflow as tf import matplotlib.pyplot as plt # fix random seed for reproducibility np.random.seed() m = 1 # dimension k_squared = 0.04 m_inv = 1.0 learning_rate = 1e-5 # epochs = 20000 epochs = 10000 batch_size = 1000000 x_stddev = 5 test_averaging=100 decay = ...
32.209709
92
0.574753
# coding: utf-8 # In[1]: import numpy as np from numpy import linalg as LA import tensorflow as tf import matplotlib.pyplot as plt # fix random seed for reproducibility np.random.seed() m = 1 # dimension k_squared = 0.04 m_inv = 1.0 learning_rate = 1e-5 # epochs = 20000 epochs = 10000 batch_size = 1000000 x_stddev ...
0
0
0
0
0
0
0
9
22
1102de456e3b2a8e2b9a1ef25114dac7839e6ac4
264
py
Python
plaso/__init__.py
Defense-Cyber-Crime-Center/plaso
4f3a85fbea10637c1cdbf0cde9fc539fdcea9c47
[ "Apache-2.0" ]
2
2016-02-18T12:46:29.000Z
2022-03-13T03:04:59.000Z
plaso/__init__.py
Defense-Cyber-Crime-Center/plaso
4f3a85fbea10637c1cdbf0cde9fc539fdcea9c47
[ "Apache-2.0" ]
null
null
null
plaso/__init__.py
Defense-Cyber-Crime-Center/plaso
4f3a85fbea10637c1cdbf0cde9fc539fdcea9c47
[ "Apache-2.0" ]
6
2016-12-18T08:05:36.000Z
2021-04-06T14:19:11.000Z
# -*- coding: utf-8 -*- __version__ = '1.3.1' VERSION_DEV = True VERSION_DATE = '20150826' def GetVersion(): """Returns version information for plaso.""" if not VERSION_DEV: return __version__ return u'{0:s}_{1:s}'.format(__version__, VERSION_DATE)
17.6
57
0.67803
# -*- coding: utf-8 -*- __version__ = '1.3.1' VERSION_DEV = True VERSION_DATE = '20150826' def GetVersion(): """Returns version information for plaso.""" if not VERSION_DEV: return __version__ return u'{0:s}_{1:s}'.format(__version__, VERSION_DATE)
0
0
0
0
0
0
0
0
0
1fe160fa3816cc0e9274f4aecaa8ff412a49705a
884
py
Python
mip_table_analysis.py
ESGF/esgf-drslib
1518180c7a5d6f2fe3de112942a5af32527d55f0
[ "BSD-3-Clause-Clear" ]
null
null
null
mip_table_analysis.py
ESGF/esgf-drslib
1518180c7a5d6f2fe3de112942a5af32527d55f0
[ "BSD-3-Clause-Clear" ]
null
null
null
mip_table_analysis.py
ESGF/esgf-drslib
1518180c7a5d6f2fe3de112942a5af32527d55f0
[ "BSD-3-Clause-Clear" ]
null
null
null
# BSD Licence # Copyright (c) 2011, Science & Technology Facilities Council (STFC) # All rights reserved. # # See the LICENSE file in the source distribution of this software for # the full license text. """ Some sanity checking code for the CMIP5 MIP tables. """ import sqlite3 from drslib import cmip5 table_store...
21.560976
83
0.660633
# BSD Licence # Copyright (c) 2011, Science & Technology Facilities Council (STFC) # All rights reserved. # # See the LICENSE file in the source distribution of this software for # the full license text. """ Some sanity checking code for the CMIP5 MIP tables. """ import sqlite3 from drslib import cmip5 table_store...
0
0
0
0
0
0
0
0
0
dde8dd947bcb2d76c31a7d65442f53f082866ee0
320
py
Python
server/tasks/urls.py
Vamshi399/project_management_tool
658af1c87b18d5e76e34c0b48ccf418c9f353423
[ "Apache-2.0" ]
null
null
null
server/tasks/urls.py
Vamshi399/project_management_tool
658af1c87b18d5e76e34c0b48ccf418c9f353423
[ "Apache-2.0" ]
null
null
null
server/tasks/urls.py
Vamshi399/project_management_tool
658af1c87b18d5e76e34c0b48ccf418c9f353423
[ "Apache-2.0" ]
1
2021-05-12T19:08:52.000Z
2021-05-12T19:08:52.000Z
from django.urls import path from .views import TasksListView, Tasks2ListView, ProjectListView, RoleListView app_name = 'tasks' urlpatterns = [ path('', TasksListView.as_view()), path('take2', Tasks2ListView.as_view()), path('project', ProjectListView.as_view()), path('role', RoleListView.as_view()) ]
29.090909
79
0.721875
from django.urls import path from .views import TasksListView, Tasks2ListView, ProjectListView, RoleListView app_name = 'tasks' urlpatterns = [ path('', TasksListView.as_view()), path('take2', Tasks2ListView.as_view()), path('project', ProjectListView.as_view()), path('role', RoleListView.as_view()) ]
0
0
0
0
0
0
0
0
0
7e817db03df0fb5a18a8791c5c1777dfdd527646
18,852
py
Python
latexbot/latexbot/trivia.py
tylertian123/ryver-latexbot
83e4964911dc2dd5b1f6c0bdc83a1aba13ce6425
[ "MIT" ]
2
2020-10-07T21:12:28.000Z
2021-08-23T18:50:30.000Z
latexbot/latexbot/trivia.py
tylertian123/ryver-latexbot
83e4964911dc2dd5b1f6c0bdc83a1aba13ce6425
[ "MIT" ]
47
2020-02-22T04:25:57.000Z
2021-12-17T23:50:33.000Z
latexbot/latexbot/trivia.py
tylertian123/ryver-latexbot
83e4964911dc2dd5b1f6c0bdc83a1aba13ce6425
[ "MIT" ]
null
null
null
""" Uses the Open Trivia Database https://opentdb.com/ for a game of trivia. """ import typing CUSTOM_TRIVIA_QUESTIONS = {} def get_custom_categories() -> typing.List[str]: """ Get all the custom trivia question categories. """ return list(CUSTOM_TRIVIA_QUESTIONS.keys()) def set_custom_trivia...
35.704545
213
0.598928
""" Uses the Open Trivia Database https://opentdb.com/ for a game of trivia. """ import aiohttp import asyncio import html import pyryver import random import typing CUSTOM_TRIVIA_QUESTIONS = {} class OpenTDBError(Exception): """ An exception raised when an error occurs when interfacing OpenTDB. The c...
0
540
10,630
6,175
0
0
0
-39
249
d1e2e209fe4bdb127a4715bd3d73dedeaebb5785
2,165
py
Python
telemetry/telemetry/internal/browser/ui_devtools.py
Pirouf/catapult
c8248182dbaaf337c1f61c77bb54b8e00be4d2e0
[ "BSD-3-Clause" ]
1
2021-04-21T07:55:55.000Z
2021-04-21T07:55:55.000Z
telemetry/telemetry/internal/browser/ui_devtools.py
Keshawnjones/catapult
b226a4b7af31ec65e2c3ae3fcf3f46eb89df28ac
[ "BSD-3-Clause" ]
null
null
null
telemetry/telemetry/internal/browser/ui_devtools.py
Keshawnjones/catapult
b226a4b7af31ec65e2c3ae3fcf3f46eb89df28ac
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2021 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. MOUSE_EVENT_TYPE_MOUSE_PRESSED = 'mousePressed' MOUSE_EVENT_TYPE_MOUSE_DRAGGED = 'mouseDragged' MOUSE_EVENT_TYPE_MOUSE_RELEASED = 'mouseReleased' MOUSE_EVENT...
38.660714
102
0.65358
# Copyright 2021 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. MOUSE_EVENT_TYPE_MOUSE_PRESSED = 'mousePressed' MOUSE_EVENT_TYPE_MOUSE_DRAGGED = 'mouseDragged' MOUSE_EVENT_TYPE_MOUSE_RELEASED = 'mouseReleased' MOUSE_EVENT...
0
0
0
1,230
0
0
0
0
23
7d5110fcfca13f38c7ede77cd3944a3af2451988
1,491
py
Python
scripts/export_bookmarks.py
kylewm/redwind
7ad807b5ab2dd74a8d470dbea9dd4baf5567d9c6
[ "BSD-2-Clause" ]
35
2015-01-08T03:26:39.000Z
2020-09-16T00:42:17.000Z
scripts/export_bookmarks.py
thedod/redwind
4a0f21164078d97b3569064d9f482c8b2ccf2008
[ "BSD-2-Clause" ]
47
2015-01-05T23:22:08.000Z
2021-02-02T21:43:26.000Z
scripts/export_bookmarks.py
thedod/redwind
4a0f21164078d97b3569064d9f482c8b2ccf2008
[ "BSD-2-Clause" ]
10
2015-02-20T00:51:37.000Z
2022-01-11T10:59:32.000Z
import pystache from redwind.models import Post from sqlalchemy import desc import isodate FEED_TEMPLATE = """ <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>{{{title}}}</title> <style> body { font-family: sans-serif; max-width:800px; } h1,h2,h3,h4 { font-size: 1em; } li { list-st...
20.148649
93
0.594232
import pystache from redwind.models import Post from sqlalchemy import desc import isodate FEED_TEMPLATE = """ <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>{{{title}}}</title> <style> body { font-family: sans-serif; max-width:800px; } h1,h2,h3,h4 { font-size: 1em; } li { list-st...
0
0
0
0
0
0
0
0
0
49de1d72ce46de99fc7531c62db1ee917d45f776
5,066
py
Python
obsolete/pipeline_rnaseq/trackers/QC.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
49
2015-04-13T16:49:25.000Z
2022-03-29T10:29:14.000Z
obsolete/pipeline_rnaseq/trackers/QC.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
252
2015-04-08T13:23:34.000Z
2019-03-18T21:51:29.000Z
obsolete/pipeline_rnaseq/trackers/QC.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
22
2015-05-21T00:37:52.000Z
2019-09-25T05:04:27.000Z
# tracks taken from geneset comparison # need to integrated ########################################################################## ########################################################################## ########################################################################## # Coverage of transcript models #...
41.867769
172
0.510857
# tracks taken from geneset comparison # need to integrated from RnaseqReport import * class AnnotationsAssociated: pass ########################################################################## ########################################################################## #########################################...
0
0
0
3,888
0
0
0
5
114
24abf4eae5ee3f3472c4303879239a4cdc0c3132
1,122
py
Python
setup.py
jpfxgood/slides-sound
45fab67ddf14efe37805b7f7c54ac6ee5cdc7e0b
[ "MIT" ]
null
null
null
setup.py
jpfxgood/slides-sound
45fab67ddf14efe37805b7f7c54ac6ee5cdc7e0b
[ "MIT" ]
null
null
null
setup.py
jpfxgood/slides-sound
45fab67ddf14efe37805b7f7c54ac6ee5cdc7e0b
[ "MIT" ]
null
null
null
from setuptools import setup with open("README.md", "r") as fh: long_description = fh.read() with open("VERSION", "r") as fh: version = fh.read().strip() setup( name='slides-sound', version=version, url='http://github.com/jpfxgood/slides-sound', author="James Goodwin", author_email="slide...
24.391304
81
0.593583
from setuptools import setup with open("README.md", "r") as fh: long_description = fh.read() with open("VERSION", "r") as fh: version = fh.read().strip() setup( name='slides-sound', version=version, url='http://github.com/jpfxgood/slides-sound', author="James Goodwin", author_email="slide...
0
0
0
0
0
0
0
0
0
2a6fe4217a0e371384653d1e5727375b8be73d25
13,337
py
Python
gym_idsgame/envs/util/idsgame_util.py
lrakotoarivony/gym-idsgame
b5eb2583e87dc37ac1735d28b97241fd51199374
[ "MIT" ]
null
null
null
gym_idsgame/envs/util/idsgame_util.py
lrakotoarivony/gym-idsgame
b5eb2583e87dc37ac1735d28b97241fd51199374
[ "MIT" ]
null
null
null
gym_idsgame/envs/util/idsgame_util.py
lrakotoarivony/gym-idsgame
b5eb2583e87dc37ac1735d28b97241fd51199374
[ "MIT" ]
1
2022-01-11T13:25:16.000Z
2022-01-11T13:25:16.000Z
""" Utility functions for the gym-idsgame environment """ from typing import Union, List import matplotlib.pyplot as plt import numpy as np import seaborn as sns import io import cv2 #from gym_idsgame.envs.dao.idsgame_config import IdsGameConfig #from gym_idsgame.envs.dao.game_config import GameConfig #from gym_idsgame...
40.051051
155
0.699333
""" Utility functions for the gym-idsgame environment """ from typing import Union, List import matplotlib.pyplot as plt import numpy as np import seaborn as sns import io import cv2 #from gym_idsgame.envs.dao.idsgame_config import IdsGameConfig #from gym_idsgame.envs.dao.game_config import GameConfig #from gym_idsgame...
0
0
0
0
0
1,864
0
0
69
4f5be6c414be1fa8d9af88ad144b10f726c5b948
16,966
py
Python
chemberta/finetune/finetune_with_freeze.py
BogdanDidenko/bert-loves-chemistry
87cdddc1303c7d07f81613dbb3cb28c8bf910592
[ "MIT" ]
183
2020-04-07T18:57:16.000Z
2022-03-25T08:10:28.000Z
chemberta/finetune/finetune_with_freeze.py
BogdanDidenko/bert-loves-chemistry
87cdddc1303c7d07f81613dbb3cb28c8bf910592
[ "MIT" ]
11
2020-05-12T00:04:20.000Z
2021-07-14T12:39:38.000Z
chemberta/finetune/finetune_with_freeze.py
BogdanDidenko/bert-loves-chemistry
87cdddc1303c7d07f81613dbb3cb28c8bf910592
[ "MIT" ]
35
2020-04-03T01:24:06.000Z
2022-03-26T12:30:55.000Z
"""Script for finetuning and evaluating pre-trained ChemBERTa models on MoleculeNet tasks. [classification] python finetune.py --datasets=bbbp --pretrained_model_name_or_path=DeepChem/ChemBERTa-SM-015 [regression] python finetune.py --datasets=delaney --pretrained_model_name_or_path=DeepChem/ChemBERTa-SM-015 [csv] p...
35.126294
199
0.687905
"""Script for finetuning and evaluating pre-trained ChemBERTa models on MoleculeNet tasks. [classification] python finetune.py --datasets=bbbp --pretrained_model_name_or_path=DeepChem/ChemBERTa-SM-015 [regression] python finetune.py --datasets=delaney --pretrained_model_name_or_path=DeepChem/ChemBERTa-SM-015 [csv] p...
0
250
0
594
0
10,808
0
393
515
55396921fd3a769b3b49e4efa49ebbac55691e76
762
py
Python
todo.txt/parser.py
kaushik-rohit/CSF363-Compilers-Construction
b0ff9db3aab237c97c04079a68a81463c8458d27
[ "MIT" ]
null
null
null
todo.txt/parser.py
kaushik-rohit/CSF363-Compilers-Construction
b0ff9db3aab237c97c04079a68a81463c8458d27
[ "MIT" ]
null
null
null
todo.txt/parser.py
kaushik-rohit/CSF363-Compilers-Construction
b0ff9db3aab237c97c04079a68a81463c8458d27
[ "MIT" ]
null
null
null
import ply.lex as lex import ply.yacc as yacc # List of tokens tokens = ( 'COMPLETE', 'PRIORITY', 'DATE', 'LIST', 'PARENT', 'COLOR', 'DUE', 'DESC' ) t_DESC = r'[a-zA-Z_]+' t_COMPLETE = r'x' t_PRIORITY = r'\([a-zA-Z]\)' t_DATE = '(\d+[-/]\d+[-/]\d+)' t_LIST = r'\@[a-zA-Z_]+' t_P...
16.565217
48
0.534121
import ply.lex as lex import ply.yacc as yacc # List of tokens tokens = ( 'COMPLETE', 'PRIORITY', 'DATE', 'LIST', 'PARENT', 'COLOR', 'DUE', 'DESC' ) t_DESC = r'[a-zA-Z_]+' t_COMPLETE = r'x' t_PRIORITY = r'\([a-zA-Z]\)' t_DATE = '(\d+[-/]\d+[-/]\d+)' t_LIST = r'\@[a-zA-Z_]+' t_P...
0
0
0
0
0
63
0
0
22
32c5825b2dcf80127ee4910eb7a38b1507d697c7
850
py
Python
test/test_workflow_metadata.py
CiscoDevNet/python-msx-sdk
d7e0a08c656504b4f4551d263e67c671a2a04b3f
[ "MIT" ]
null
null
null
test/test_workflow_metadata.py
CiscoDevNet/python-msx-sdk
d7e0a08c656504b4f4551d263e67c671a2a04b3f
[ "MIT" ]
null
null
null
test/test_workflow_metadata.py
CiscoDevNet/python-msx-sdk
d7e0a08c656504b4f4551d263e67c671a2a04b3f
[ "MIT" ]
null
null
null
""" MSX SDK MSX SDK client. # noqa: E501 The version of the OpenAPI document: 1.0.9 Generated by: https://openapi-generator.tech """ import unittest from python_msx_sdk.model.workflow_metadata_git_info import WorkflowMetadataGitInfo globals()['WorkflowMetadataGitInfo'] = WorkflowMetadataGitInfo i...
22.368421
83
0.712941
""" MSX SDK MSX SDK client. # noqa: E501 The version of the OpenAPI document: 1.0.9 Generated by: https://openapi-generator.tech """ import sys import unittest import python_msx_sdk from python_msx_sdk.model.workflow_metadata_git_info import WorkflowMetadataGitInfo globals()['WorkflowMetadataGitIn...
0
0
0
358
0
0
0
35
91
c2d78af1e2955305bfe301906b38330f78d059ab
4,823
py
Python
modernrpc/tests/testsite/settings.py
diegoduncan21/django-modern-rpc
559f17dec2e584a800b19c760a15e230a126a66f
[ "MIT" ]
null
null
null
modernrpc/tests/testsite/settings.py
diegoduncan21/django-modern-rpc
559f17dec2e584a800b19c760a15e230a126a66f
[ "MIT" ]
null
null
null
modernrpc/tests/testsite/settings.py
diegoduncan21/django-modern-rpc
559f17dec2e584a800b19c760a15e230a126a66f
[ "MIT" ]
null
null
null
# coding: utf-8 import os from distutils.version import StrictVersion from os.path import dirname, realpath, join import django from django.utils import six DEBUG = True ALLOWED_HOSTS = ['*'] SECRET_KEY = 'dummy' ROOT_URLCONF = 'testsite.urls' SITE_ROOT = dirname(realpath(__file__)) DATABASES = { 'default': { ...
31.940397
112
0.603359
# coding: utf-8 import os from distutils.version import StrictVersion from os.path import dirname, realpath, join import django from django.utils import six DEBUG = True ALLOWED_HOSTS = ['*'] SECRET_KEY = 'dummy' ROOT_URLCONF = 'testsite.urls' SITE_ROOT = dirname(realpath(__file__)) DATABASES = { 'default': { ...
0
0
0
0
0
0
0
0
0
f0371d492cbbf2edaa25dac469d22985ade7b7d5
489
py
Python
backend/apps/testing/migrations/0005_auto_20180830_1846.py
mkokotovich/cbcl_scoring
86d8f636a980bce45fcf5fc7eccac5dffddfd3b8
[ "MIT" ]
null
null
null
backend/apps/testing/migrations/0005_auto_20180830_1846.py
mkokotovich/cbcl_scoring
86d8f636a980bce45fcf5fc7eccac5dffddfd3b8
[ "MIT" ]
17
2019-12-26T16:45:10.000Z
2022-03-21T22:16:37.000Z
backend/apps/testing/migrations/0005_auto_20180830_1846.py
mkokotovich/testscoring
bc176caf37a2980d85a722efa919f416c9758a0e
[ "MIT" ]
null
null
null
# Generated by Django 2.1 on 2018-08-30 18:46
25.736842
154
0.617587
# Generated by Django 2.1 on 2018-08-30 18:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('testing', '0004_auto_20180830_1639'), ] operations = [ migrations.AlterField( model_name='test', name='test_type', ...
0
0
0
377
0
0
0
19
46
92e7004e87e4349ca02dc74ace434287041cebcb
1,354
py
Python
stickybeak/vendored/pip/_internal/operations/build/metadata.py
reloadware/stickybeak
8ac52a80849a3098fb6b2f47115970a734a73c14
[ "Apache-2.0" ]
null
null
null
stickybeak/vendored/pip/_internal/operations/build/metadata.py
reloadware/stickybeak
8ac52a80849a3098fb6b2f47115970a734a73c14
[ "Apache-2.0" ]
null
null
null
stickybeak/vendored/pip/_internal/operations/build/metadata.py
reloadware/stickybeak
8ac52a80849a3098fb6b2f47115970a734a73c14
[ "Apache-2.0" ]
1
2022-01-01T15:14:42.000Z
2022-01-01T15:14:42.000Z
"""Metadata generation logic for source distributions. """ import os from stickybeak.vendored.pip._internal.utils.subprocess import runner_with_spinner_message from stickybeak.vendored.pip._internal.utils.temp_dir import TempDirectory from stickybeak.vendored.pip._internal.utils.typing import MYPY_CHECK_RUNNING if M...
35.631579
90
0.754062
"""Metadata generation logic for source distributions. """ import os from stickybeak.vendored.pip._internal.utils.subprocess import runner_with_spinner_message from stickybeak.vendored.pip._internal.utils.temp_dir import TempDirectory from stickybeak.vendored.pip._internal.utils.typing import MYPY_CHECK_RUNNING if M...
0
0
0
0
0
0
0
106
52
6c7c1092d541ebd020ef8fc25654c1ca2e79b7ec
2,255
py
Python
underworld/systems/sle/_eqnum.py
longgangfan/underworld2
5c8acc17fa4d97e86a62b13b8bfb2af6e81a8ee4
[ "CC-BY-4.0" ]
116
2015-09-28T10:30:55.000Z
2022-03-22T04:12:38.000Z
underworld/systems/sle/_eqnum.py
longgangfan/underworld2
5c8acc17fa4d97e86a62b13b8bfb2af6e81a8ee4
[ "CC-BY-4.0" ]
561
2015-09-29T06:05:50.000Z
2022-03-22T23:37:29.000Z
underworld/systems/sle/_eqnum.py
longgangfan/underworld2
5c8acc17fa4d97e86a62b13b8bfb2af6e81a8ee4
[ "CC-BY-4.0" ]
68
2015-12-14T21:57:46.000Z
2021-08-25T04:54:26.000Z
##~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~## ## ## ## This file forms part of the Underworld geophysics modelling application. ## ## ...
46.979167
133
0.552993
##~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~## ## ## ## This file forms part of the Underworld geophysics modelling application. ## ## ...
0
50
0
1,411
0
0
0
2
45
5000f33d611388cf6c48f4a87a51d3bbc04bfcc2
3,988
py
Python
plots/fig11.py
julianrojas87/lc-evaluation-swj
9c734a8513eec758bc59a728c9f9cc73acfa5ab2
[ "MIT" ]
null
null
null
plots/fig11.py
julianrojas87/lc-evaluation-swj
9c734a8513eec758bc59a728c9f9cc73acfa5ab2
[ "MIT" ]
null
null
null
plots/fig11.py
julianrojas87/lc-evaluation-swj
9c734a8513eec758bc59a728c9f9cc73acfa5ab2
[ "MIT" ]
null
null
null
import matplotlib from matplotlib import pyplot as plt # Function to calculate server CPU values # Function to calculate average response time values # Get X and Y axises for each setup base_cpu_x, base_cpu_y = get_resource_usage("base", "cpu") base_ram_x, base_ram_y = get_resource_usage("base", "ram") base_arp_x, ...
39.485149
106
0.706871
import matplotlib from matplotlib import pyplot as plt import csv import json # Function to calculate server CPU values def get_resource_usage(server, resource): root_path = "../scalability-test/server/results/nmbs/" + server + "/" x = [1, 2, 5, 10, 20, 50] y = [] res = 2 if resource == "cpu" else 3 ...
0
0
0
0
0
855
0
-21
88
9c2865147bae458ad0c666a097cd180b844b95db
6,590
py
Python
tools/metadata_tools/process_metadata.py
jf990/arcgis-runtime-samples-dotnet
15ec602fc64b09d1f63f5ac4ae4feeec59097334
[ "Apache-2.0" ]
null
null
null
tools/metadata_tools/process_metadata.py
jf990/arcgis-runtime-samples-dotnet
15ec602fc64b09d1f63f5ac4ae4feeec59097334
[ "Apache-2.0" ]
null
null
null
tools/metadata_tools/process_metadata.py
jf990/arcgis-runtime-samples-dotnet
15ec602fc64b09d1f63f5ac4ae4feeec59097334
[ "Apache-2.0" ]
null
null
null
import sys import os def get_platform_samples_root(platform, sample_root): ''' Gets the root directory for each platform ''' if (platform == "UWP"): return os.path.join(sample_root, "UWP", "ArcGISRuntime.UWP.Viewer", "Samples") if (platform == "WPF"): return os.path.join(sample_roo...
46.408451
197
0.651442
from sample_metadata import * import sys import os def get_platform_samples_root(platform, sample_root): ''' Gets the root directory for each platform ''' if (platform == "UWP"): return os.path.join(sample_root, "UWP", "ArcGISRuntime.UWP.Viewer", "Samples") if (platform == "WPF"): ...
0
0
0
0
0
343
0
8
45
f0cf0fdcf79dcd3caafbae221628202638ece9fe
16,687
py
Python
scripts/file_manipulation/examine_bin_fibers.py
maierbn/opendihu
577650e2f6b36a7306766b0f4176f8124458cbf0
[ "MIT" ]
17
2018-11-25T19:29:34.000Z
2021-09-20T04:46:22.000Z
scripts/file_manipulation/examine_bin_fibers.py
maierbn/opendihu
577650e2f6b36a7306766b0f4176f8124458cbf0
[ "MIT" ]
1
2020-11-12T15:15:58.000Z
2020-12-29T15:29:24.000Z
scripts/file_manipulation/examine_bin_fibers.py
maierbn/opendihu
577650e2f6b36a7306766b0f4176f8124458cbf0
[ "MIT" ]
4
2018-10-17T12:18:10.000Z
2021-05-28T13:24:20.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # This scripts reads a fibers.bin file which is generated by opendihu parallel_fiber_estimation. It outputs a stl file and a pickle file containing all fibers. # The purpose of this script is to inspect the fibers.bin file and manually evaluate the outcome. # # usage: ./e...
38.806977
233
0.610116
#!/usr/bin/env python # -*- coding: utf-8 -*- # # This scripts reads a fibers.bin file which is generated by opendihu parallel_fiber_estimation. It outputs a stl file and a pickle file containing all fibers. # The purpose of this script is to inspect the fibers.bin file and manually evaluate the outcome. # # usage: ./e...
0
0
0
0
0
0
0
-11
22
5d5431db276d57ec52f6945403b721a5d4b52a8e
101
py
Python
app/endpoints/common/models/__init__.py
brauls/ingredients-service
67c1408f96f4b407d7e7b3e5e62406a6931de1c1
[ "MIT" ]
null
null
null
app/endpoints/common/models/__init__.py
brauls/ingredients-service
67c1408f96f4b407d7e7b3e5e62406a6931de1c1
[ "MIT" ]
1
2021-06-01T23:34:40.000Z
2021-06-01T23:34:40.000Z
app/endpoints/common/models/__init__.py
brauls/ingredients-service
67c1408f96f4b407d7e7b3e5e62406a6931de1c1
[ "MIT" ]
null
null
null
"""Initialize the SQLAlchemy object. """ from flask_sqlalchemy import SQLAlchemy DB = SQLAlchemy()
14.428571
39
0.762376
"""Initialize the SQLAlchemy object. """ from flask_sqlalchemy import SQLAlchemy DB = SQLAlchemy()
0
0
0
0
0
0
0
0
0
d7ff4b5f9719ee9d0c361996d435ab639d240ab1
3,613
py
Python
AutoWorkup/BAW/DTIPrepext.py
pnlbwh/BRAINSTools
a2fe63ab5b795f03da140a4081d1fef6314dab95
[ "Apache-2.0" ]
89
2015-02-09T16:47:09.000Z
2022-02-21T07:19:27.000Z
AutoWorkup/BAW/DTIPrepext.py
pnlbwh/BRAINSTools
a2fe63ab5b795f03da140a4081d1fef6314dab95
[ "Apache-2.0" ]
166
2015-01-07T22:14:05.000Z
2021-12-26T06:58:00.000Z
AutoWorkup/BAW/DTIPrepext.py
BRAINSia/BRAINSTools
f09f74bd28ad07cd2347c2528921b1a43b97fa1d
[ "Apache-2.0" ]
80
2015-01-05T17:18:07.000Z
2022-01-06T12:46:29.000Z
""" DTIPrepext.py =========================== Description: Author: Usage: """ """ This class represents a... """ # outputQCedBaseline = traits.Either(File(exists=True), None) # outputQCedDTI = traits.Either(File(exists=True), None) # outputQCedDTI_FA = traits.Either(File(exists=True), None) # outputQCedDTI_MD = ...
35.772277
149
0.665098
""" DTIPrepext.py =========================== Description: Author: Usage: """ import os from nipype.interfaces.base import ( CommandLine, CommandLineInputSpec, TraitedSpec, File, Directory, traits, isdefined, InputMultiPath, OutputMultiPath, ) from nipype.interfaces.semtools.diff...
0
0
0
2,655
0
0
0
255
113
d51f27d3c4829fa0b154d434cb4ed7b693cfd02d
380
py
Python
{{cookiecutter.project_slug}}/backend/app/app/schemas/user.py
tiangolo/full-stack-flask-couchbase
d79d4c2159632dfac47051ff65119b6a6b73b2cd
[ "MIT" ]
51
2018-10-22T14:14:49.000Z
2021-12-02T07:07:50.000Z
{{cookiecutter.project_slug}}/backend/app/app/schemas/user.py
blockchain-Bobby/full-stack-flask-couchbase
d79ed8d6cd1f610fd68a7cd234a0104deb874933
[ "MIT" ]
11
2018-11-02T21:50:22.000Z
2020-02-07T18:48:48.000Z
{{cookiecutter.project_slug}}/backend/app/app/schemas/user.py
blockchain-Bobby/full-stack-flask-couchbase
d79ed8d6cd1f610fd68a7cd234a0104deb874933
[ "MIT" ]
9
2019-03-29T09:26:18.000Z
2021-07-09T09:37:45.000Z
# Import standard library packages # Import installed packages # Import app code
22.352941
46
0.721053
# Import standard library packages # Import installed packages from marshmallow import fields # Import app code from .base import BaseSchema class UserSchema(BaseSchema): username = fields.Str() full_name = fields.Str() email = fields.Str() admin_roles = fields.List(fields.Str()) admin_channels ...
0
0
0
213
0
0
0
16
67
48f418fc8cf6fc6f8905caead3afccfc8f007849
2,547
py
Python
pilbox/errors.py
joevandyk/pilbox
b84732a78e5bdb2d24bf7ef4177d45806ac03ea6
[ "Apache-2.0" ]
null
null
null
pilbox/errors.py
joevandyk/pilbox
b84732a78e5bdb2d24bf7ef4177d45806ac03ea6
[ "Apache-2.0" ]
null
null
null
pilbox/errors.py
joevandyk/pilbox
b84732a78e5bdb2d24bf7ef4177d45806ac03ea6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2013 Adam Gschwender # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
23.366972
75
0.723596
#!/usr/bin/env python # # Copyright 2013 Adam Gschwender # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
0
323
0
767
0
0
0
-3
752
64782e82f238b101a75e51b7e166317fd700156b
758
py
Python
setup.py
simrit1/mydbot
51960f5cf1c04a494a6756f4c2d52f259e17c09d
[ "MIT" ]
1
2021-06-13T04:45:46.000Z
2021-06-13T04:45:46.000Z
setup.py
simrit1/mydbot
51960f5cf1c04a494a6756f4c2d52f259e17c09d
[ "MIT" ]
null
null
null
setup.py
simrit1/mydbot
51960f5cf1c04a494a6756f4c2d52f259e17c09d
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name="mydbot", version="0.1", description="hmmm", long_description=open("README.md").read(), long_description_content_type="text/markdown", url="https://github.com/Datavorous/sbutilcog", author="Datavorous", author_email="digestingdata1...
31.583333
113
0.653034
from setuptools import find_packages, setup setup( name="mydbot", version="0.1", description="hmmm", long_description=open("README.md").read(), long_description_content_type="text/markdown", url="https://github.com/Datavorous/sbutilcog", author="Datavorous", author_email="digestingdata1...
0
0
0
0
0
0
0
0
0
4060bc2e860efb7d20242f247f1136770831d189
1,968
py
Python
ggr/util/go_utils.py
vervacity/ggr-project
7a9155c5fb573f7b877c63390f8052fcda5b6f6e
[ "MIT" ]
1
2021-11-19T15:15:04.000Z
2021-11-19T15:15:04.000Z
ggr/util/go_utils.py
vervacity/ggr-project
7a9155c5fb573f7b877c63390f8052fcda5b6f6e
[ "MIT" ]
null
null
null
ggr/util/go_utils.py
vervacity/ggr-project
7a9155c5fb573f7b877c63390f8052fcda5b6f6e
[ "MIT" ]
null
null
null
"""description: helpful fns for GO terms """ import pandas as pd def is_enriched(go_file, filter_good_terms=False): """clean up terms and check if any terms in desired list """ # pull in go terms go_terms = pd.read_csv(go_file, sep="\t") go_terms = go_terms[go_terms["domain"] == "BP"] go_term...
22.883721
60
0.54624
"""description: helpful fns for GO terms """ import pandas as pd class GoParams(object): """clean up and othe fns """ REMOVE_SUBSTRINGS = [ "anatomical", "ameboidal", "animal organ", "multicellular organism", "cellular developmental", "tube", "regul...
0
0
0
993
0
0
0
0
23
9b58ace25ce47aa23c1a569a4be2518f7db36e67
3,199
py
Python
GPUPerfStudio/Server/ClientScripts/PS2DataMiner.py
davidlee80/amd-gpuperfstudio-dx12
4ce82d2eb0c9b8a8fc2889372b370ab23383a0fe
[ "MIT" ]
1
2017-03-25T02:09:15.000Z
2017-03-25T02:09:15.000Z
GPUPerfStudio/Server/ClientScripts/PS2DataMiner.py
davidlee80/amd-gpuperfstudio-dx12
4ce82d2eb0c9b8a8fc2889372b370ab23383a0fe
[ "MIT" ]
null
null
null
GPUPerfStudio/Server/ClientScripts/PS2DataMiner.py
davidlee80/amd-gpuperfstudio-dx12
4ce82d2eb0c9b8a8fc2889372b370ab23383a0fe
[ "MIT" ]
3
2017-03-15T03:35:13.000Z
2022-02-23T06:29:02.000Z
import urllib2 import re # input: # address: the address of a machine running PerfStudio Server # frames: number of frames to capture # # Connects to the specified URL an returns a list of api calls in the following format: # <interface> <function name> <parameter list> <returned value> # the last parameter is ...
18.707602
96
0.509534
import urllib2 import re # input: # address: the address of a machine running PerfStudio Server # frames: number of frames to capture # # Connects to the specified URL an returns a list of api calls in the following format: # <interface> <function name> <parameter list> <returned value> # the last parameter is ...
0
0
0
0
0
2,258
0
0
112
27ca40da609e0679957abe3b19a564363fa252d8
1,497
py
Python
file/minmax.py
guisolski/checkersGame
c69cb761994ab5a9275cd02cf65f1c90e1341f9d
[ "MIT" ]
2
2020-04-17T22:32:15.000Z
2020-06-28T13:06:46.000Z
file/minmax.py
guisolski/checkersGame
c69cb761994ab5a9275cd02cf65f1c90e1341f9d
[ "MIT" ]
null
null
null
file/minmax.py
guisolski/checkersGame
c69cb761994ab5a9275cd02cf65f1c90e1341f9d
[ "MIT" ]
null
null
null
import sys # Python3 program to demonstrate # working of Alpha-Beta Pruning # Initial values of Aplha and Beta MAX, MIN = sys.maxsize, sys.maxsize*-1 # Returns optimal value for current player #(Initially called for root and maximizer)
27.722222
66
0.488978
import sys # Python3 program to demonstrate # working of Alpha-Beta Pruning # Initial values of Aplha and Beta MAX, MIN = sys.maxsize, sys.maxsize*-1 # Returns optimal value for current player #(Initially called for root and maximizer) def minimax(depth, nodeIndex, maximizingPlayer, value...
0
0
0
0
0
1,212
0
0
24
3c39904a84d6f502c15f3de25f5bc635eee688bf
1,303
py
Python
shift_cipher.py
GanSama/Crypto_Func
43e5e86391d9b10a942bb850ac57a287fe280dc0
[ "MIT" ]
null
null
null
shift_cipher.py
GanSama/Crypto_Func
43e5e86391d9b10a942bb850ac57a287fe280dc0
[ "MIT" ]
null
null
null
shift_cipher.py
GanSama/Crypto_Func
43e5e86391d9b10a942bb850ac57a287fe280dc0
[ "MIT" ]
null
null
null
# File Name : shift_cipher.py # Description : implement functions related to shift_cipher # Author : Ganyuan Cao # encrypt function # encrypt function # brute force # main if __name__ == "__main__": main()
26.591837
228
0.623945
# File Name : shift_cipher.py # Description : implement functions related to shift_cipher # Author : Ganyuan Cao # encrypt function def encrypt(key, plain): plain = plain.lower() cipher = "The ciphertext is: " for i in range(0, len(plain)): ci = (ord(plain[i]) - 97 + key) % 26 cc = chr(ci ...
0
0
0
0
0
993
0
0
90
4b9d07cd3748b3137700f58f41deea530b27573c
985
py
Python
applications/api.py
xzzy/statdev
b2c3eb3ad4d8aab44d0f67fc526da1a69b4d86a2
[ "Apache-2.0" ]
null
null
null
applications/api.py
xzzy/statdev
b2c3eb3ad4d8aab44d0f67fc526da1a69b4d86a2
[ "Apache-2.0" ]
7
2017-03-13T02:00:21.000Z
2018-01-02T04:03:02.000Z
applications/api.py
xzzy/statdev
b2c3eb3ad4d8aab44d0f67fc526da1a69b4d86a2
[ "Apache-2.0" ]
2
2017-02-16T02:18:21.000Z
2017-02-16T02:22:02.000Z
""" This is a upload wrapper for the ajax uploader widget for django forms. """
31.774194
83
0.782741
from django.http import HttpResponse from django.template import Context from django.template.loader import render_to_string, get_template from django.conf import settings from django.core.exceptions import ValidationError from confy import env import json from django.utils.safestring import SafeText from django.utils....
0
0
0
0
0
426
0
146
331
ce9aa7d7e7f1b88e9aab1b9dd6b8caf2edcfdb96
1,127
py
Python
helpers/funcs.py
sujaldev/skylon-core
af6657b1e806854d862e5731e39dba8aad6f0d01
[ "MIT" ]
1
2021-08-29T03:53:40.000Z
2021-08-29T03:53:40.000Z
helpers/funcs.py
sujaldev/skylon2
af6657b1e806854d862e5731e39dba8aad6f0d01
[ "MIT" ]
null
null
null
helpers/funcs.py
sujaldev/skylon2
af6657b1e806854d862e5731e39dba8aad6f0d01
[ "MIT" ]
null
null
null
def inside(constant, char): """ NORMALLY THE STATEMENT "" in "any_string" WILL RETURN TRUE, THIS FUNCTION AVOIDS THAT READ AS: "IF INSIDE CONSTANT IS CHAR" """ if char != "": return char in constant else: return False
24.5
89
0.65661
from helpers.CONSTANTS import WHITESPACE, ASCII_DIGIT, ASCII_ALPHA def is_whitespace(string): return all([char in WHITESPACE for char in string]) def inside(constant, char): """ NORMALLY THE STATEMENT "" in "any_string" WILL RETURN TRUE, THIS FUNCTION AVOIDS THAT READ AS: "IF INSIDE CONSTANT IS CHAR...
3
0
0
0
0
678
0
45
137
8ff4d46cef1208c9f8f13eec3900fff12d250367
5,754
py
Python
cpanel/models/app/dataset/dataset_torch.py
NikolayZakharevich/music-processing
516a3bca585f211d232cac7ede6cc417fb8878fe
[ "MIT" ]
null
null
null
cpanel/models/app/dataset/dataset_torch.py
NikolayZakharevich/music-processing
516a3bca585f211d232cac7ede6cc417fb8878fe
[ "MIT" ]
null
null
null
cpanel/models/app/dataset/dataset_torch.py
NikolayZakharevich/music-processing
516a3bca585f211d232cac7ede6cc417fb8878fe
[ "MIT" ]
null
null
null
BATCH_SIZE = 9 TEST_SPLIT_SEED = 2021
31.442623
105
0.633994
import os from typing import Optional, Callable, Union, Any import numpy as np import torch from sklearn.model_selection import train_test_split from sklearn.preprocessing import LabelEncoder, MultiLabelBinarizer from torch import Tensor from torch.utils.data import Dataset, DataLoader from app.common.utils import co...
0
0
0
2,514
0
2,477
0
290
427
20031ca0b4e6ea53128a03099a9c9c2a965fd603
488
py
Python
backend/django_app/core/api/serializers/commission.py
bekurmann/BA_polity
933c9df9d935066cc498c5da8e1e0f68742f6ee5
[ "MIT" ]
null
null
null
backend/django_app/core/api/serializers/commission.py
bekurmann/BA_polity
933c9df9d935066cc498c5da8e1e0f68742f6ee5
[ "MIT" ]
null
null
null
backend/django_app/core/api/serializers/commission.py
bekurmann/BA_polity
933c9df9d935066cc498c5da8e1e0f68742f6ee5
[ "MIT" ]
null
null
null
# import models # ***************************************************************************************** # Commission # *****************************************************************************************
32.533333
91
0.444672
from rest_framework import serializers # import models from core.models import Commission # ***************************************************************************************** # Commission # ***************************************************************************************** class CommissionSerializer(seri...
0
0
0
178
0
0
0
30
66
868ca74980db5d9fdd69cf1ca47c14f6da50669b
537
py
Python
classical_control_theory/core.py
andreamunafo/automatic_control
dd1d89f732bfd8d95b0ebef6fe99df29b18a1fc2
[ "Apache-2.0" ]
null
null
null
classical_control_theory/core.py
andreamunafo/automatic_control
dd1d89f732bfd8d95b0ebef6fe99df29b18a1fc2
[ "Apache-2.0" ]
null
null
null
classical_control_theory/core.py
andreamunafo/automatic_control
dd1d89f732bfd8d95b0ebef6fe99df29b18a1fc2
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: 99_refs.ipynb (unless otherwise specified). __all__ = [] # Cell import matplotlib.pyplot as plt plt.style.use('seaborn-white') # Cell
24.409091
87
0.668529
# AUTOGENERATED! DO NOT EDIT! File to edit: 99_refs.ipynb (unless otherwise specified). __all__ = [] # Cell import numpy as np import matplotlib.pyplot as plt from matplotlib.animation import FuncAnimation plt.style.use('seaborn-white') # Cell def _subfigure(rows, cols): fig = plt.figure() fig.subplots_adj...
0
0
0
0
0
267
0
22
67
018ba419db263144ea880926799b5afc312bd110
5,494
py
Python
run.py
philipkariuki/password-locker
241527e1ad13231347c0070c9f1c67e85bf620d0
[ "MIT" ]
null
null
null
run.py
philipkariuki/password-locker
241527e1ad13231347c0070c9f1c67e85bf620d0
[ "MIT" ]
null
null
null
run.py
philipkariuki/password-locker
241527e1ad13231347c0070c9f1c67e85bf620d0
[ "MIT" ]
null
null
null
from user import User # Importing the user class from credentials import Credentials # Importing credentials class def create_user(first_name,last_name,email,password): """ Function to create new user """ new_user = User(first_name,last_name,email,password) return new_user def save_user(user): ''' Function to...
29.068783
213
0.641063
from user import User # Importing the user class from credentials import Credentials # Importing credentials class def create_user(first_name,last_name,email,password): """ Function to create new user """ new_user = User(first_name,last_name,email,password) return new_user def save_user(user): ''' Function to...
3
0
0
0
0
4,502
0
0
139
727889f84bdda65ba74ef4dfad1fd655008267e7
409
py
Python
modules/database/engine.py
chrisdewa/kaggle-basic-antiraid
cf26678acb2e3a563e1a9e0cec89417c6e3b6983
[ "MIT" ]
null
null
null
modules/database/engine.py
chrisdewa/kaggle-basic-antiraid
cf26678acb2e3a563e1a9e0cec89417c6e3b6983
[ "MIT" ]
null
null
null
modules/database/engine.py
chrisdewa/kaggle-basic-antiraid
cf26678acb2e3a563e1a9e0cec89417c6e3b6983
[ "MIT" ]
null
null
null
from odmantic import AIOEngine __all__ = ( 'engine', ) # Engine for a local database from config import DATABASE_NAME engine = AIOEngine(database=DATABASE_NAME) # Engine for an atlas or hosted database # from motor.motor_asyncio import AsyncIOMotorClient # from config import DATABASE_URL # client = AsyncIOMotor...
22.722222
66
0.789731
from odmantic import AIOEngine __all__ = ( 'engine', ) # Engine for a local database from config import DATABASE_NAME engine = AIOEngine(database=DATABASE_NAME) # Engine for an atlas or hosted database # from motor.motor_asyncio import AsyncIOMotorClient # from config import DATABASE_URL # client = AsyncIOMotor...
0
0
0
0
0
0
0
0
0
c64ce83957c6eaa971e150b3c43a9b70c07a9bc3
2,009
py
Python
main.py
MatheusRV/Analysis-of-Algorithms-Course
4c1f4ccb8349b894653128be7e38d3045b0f5c13
[ "MIT" ]
null
null
null
main.py
MatheusRV/Analysis-of-Algorithms-Course
4c1f4ccb8349b894653128be7e38d3045b0f5c13
[ "MIT" ]
null
null
null
main.py
MatheusRV/Analysis-of-Algorithms-Course
4c1f4ccb8349b894653128be7e38d3045b0f5c13
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Module Docstring """ __author__ = "Matheus Rocha Vieira" __version__ = "0.0.1" __license__ = "GNU GPLv3" import argparse import numpy as np def main(args): """ Main entry point of the app """ unsorted_array = [] if args.order == 'ASC': unsorted_array = list(range(0, int(args.instanc...
20.927083
77
0.6889
#!/usr/bin/env python3 """ Module Docstring """ __author__ = "Matheus Rocha Vieira" __version__ = "0.0.1" __license__ = "GNU GPLv3" import argparse import numpy as np from algorithms import * def main(args): """ Main entry point of the app """ unsorted_array = [] if args.order == 'ASC': unsorted_array = list(...
0
0
0
0
0
0
0
3
22
c9e9fe020400afcf44abd6e53f9ff649df9fdedd
4,716
py
Python
cpp/tools/utils/generate_model_header.py
SiliconLabs/mltk
56b19518187e9d1c8a0d275de137fc9058984a1f
[ "Zlib" ]
null
null
null
cpp/tools/utils/generate_model_header.py
SiliconLabs/mltk
56b19518187e9d1c8a0d275de137fc9058984a1f
[ "Zlib" ]
1
2021-11-19T20:10:09.000Z
2021-11-19T20:10:09.000Z
cpp/tools/utils/generate_model_header.py
sldriedler/mltk
d82a60359cf875f542a2257f1bc7d8eb4bdaa204
[ "Zlib" ]
null
null
null
import os import argparse import json from mltk.core.model import load_mltk_model from mltk.core.tflite_model import TfliteModel from mltk.core.tflite_micro import TfliteMicro from mltk.utils.bin2header import bin2header from mltk.utils.path import fullpath, create_tempdir from mltk.utils.hasher import hash_file from...
37.728
150
0.681298
import os import argparse import json from mltk.core.model import load_mltk_model from mltk.core.tflite_model import TfliteModel from mltk.core.tflite_micro import TfliteMicro from mltk.utils.bin2header import bin2header from mltk.utils.path import fullpath, create_tempdir from mltk.utils.hasher import hash_file from...
0
0
0
0
0
0
0
0
0
b123cb6fefe1d848e5e7c6311c77846d2b00c334
603
py
Python
classes_lecture/classscratch.py
brittainhard/py
aede05530ad05a8319fef7e76b49e4bf3cebebac
[ "MIT" ]
null
null
null
classes_lecture/classscratch.py
brittainhard/py
aede05530ad05a8319fef7e76b49e4bf3cebebac
[ "MIT" ]
null
null
null
classes_lecture/classscratch.py
brittainhard/py
aede05530ad05a8319fef7e76b49e4bf3cebebac
[ "MIT" ]
null
null
null
import sys a = One(1) b = Two(2) print(sys.getsizeof(a)) print(sys.getsizeof(b))
14.023256
34
0.593698
import sys from example import Circle class Potato: __slots__ = ["apple"] def __init__(self, potato): self.potato = potato @property def potato(self): return self.two + self.one @potato.setter def potato(self, potato): self.apple = 1 def print_attributes(self):...
0
91
0
330
0
0
0
5
91
18e2e220676f21a6a68c1034917cc258cdc610d6
9,991
py
Python
tbias/metrics/WEAT.py
mikecunha/textbias
ddb5997f346e757a1e43d9edfa5d4946aaa5977a
[ "MIT" ]
4
2017-12-26T21:23:14.000Z
2018-04-03T15:45:52.000Z
tbias/metrics/WEAT.py
mikecunha/tbias
ddb5997f346e757a1e43d9edfa5d4946aaa5977a
[ "MIT" ]
null
null
null
tbias/metrics/WEAT.py
mikecunha/tbias
ddb5997f346e757a1e43d9edfa5d4946aaa5977a
[ "MIT" ]
null
null
null
CACHE_SIZE = 2**8 # 256
37.988593
79
0.558503
import numpy as np from scipy.misc import comb import functools from itertools import combinations from random import shuffle import logging CACHE_SIZE = 2**8 # 256 class WEAT(object): """Word Embedding Association Test""" def __init__(self, model, logger=None): # pass in a an embedding as a gensi...
0
749
0
9,050
0
0
0
9
156
7ee8ac1c79191f59103989b876c6cea41095dfc1
558
py
Python
plot4.py
andrewrgarcia/hello-world-python
6eca2a03b48c9d254bfaed52653fec7eca5bcb0c
[ "MIT" ]
1
2020-07-20T04:52:48.000Z
2020-07-20T04:52:48.000Z
plot4.py
andrewrgarcia/hello-world-python
6eca2a03b48c9d254bfaed52653fec7eca5bcb0c
[ "MIT" ]
null
null
null
plot4.py
andrewrgarcia/hello-world-python
6eca2a03b48c9d254bfaed52653fec7eca5bcb0c
[ "MIT" ]
2
2019-02-17T02:33:06.000Z
2020-01-15T22:55:58.000Z
import numpy as np import matplotlib.pyplot as plt 'data building' x=np.linspace(-5,5,20) y=x**2 z=5*np.sin(x) 'plotting' #make plots #plt figure is a good way to return and number (or name) separate figures plt.figure(2) plt.plot(x,y,'k',label = 'black') plt.plot(x,z,'b',label = 'blue') plt.legend(title='line colo...
18.6
73
0.65233
import numpy as np import matplotlib.pyplot as plt 'data building' x=np.linspace(-5,5,20) y=x**2 z=5*np.sin(x) 'plotting' #make plots #plt figure is a good way to return and number (or name) separate figures plt.figure(2) plt.plot(x,y,'k',label = 'black') plt.plot(x,z,'b',label = 'blue') plt.legend(title='line colo...
0
0
0
0
0
0
0
0
0
a256ee95692465e97f0bdecb9b4e2f2b5bc09d7b
84
py
Python
index.py
MozillaReality/aws-cfn-ses-domain
e94c1213527b9c51677dfe714b4b0fe520a20763
[ "Apache-2.0" ]
null
null
null
index.py
MozillaReality/aws-cfn-ses-domain
e94c1213527b9c51677dfe714b4b0fe520a20763
[ "Apache-2.0" ]
1
2020-01-10T20:47:26.000Z
2020-01-10T20:47:26.000Z
index.py
MozillaReality/aws-cfn-ses-domain
e94c1213527b9c51677dfe714b4b0fe520a20763
[ "Apache-2.0" ]
null
null
null
# noinspection PyUnresolvedReferences
28
45
0.904762
# noinspection PyUnresolvedReferences from aws_cfn_ses_domain import lambda_handler
0
0
0
0
0
0
0
24
22
47160b2336a2f9f21ba32520b60dfbb450a829ed
1,778
py
Python
2018/day03.py
harendra263/AdventOfCode
86db33409961681dcb05be9bf9197f7464ee7697
[ "MIT" ]
null
null
null
2018/day03.py
harendra263/AdventOfCode
86db33409961681dcb05be9bf9197f7464ee7697
[ "MIT" ]
null
null
null
2018/day03.py
harendra263/AdventOfCode
86db33409961681dcb05be9bf9197f7464ee7697
[ "MIT" ]
null
null
null
from typing import Tuple rgx = "#([0-9]+) @ ([0-9]+),([0-9]+): ([0-9]+)x([0-9]+)" Coord = Tuple[int, int] # assert Rectangle.from_claim("#123 @ 3,2: 5x4") == Rectangle(123,3, 2,8, 6) # print(Rectangle.all_squares("#123 @ 3,2: 5x4")) with open("data/day03.txt") as f: claims = [line.strip() for line in f] p...
25.042254
86
0.637233
from typing import NamedTuple, Iterator, Tuple, Dict, List import re from collections import Counter rgx = "#([0-9]+) @ ([0-9]+),([0-9]+): ([0-9]+)x([0-9]+)" Coord = Tuple[int, int] class Rectangle(NamedTuple): id: int x_lo: int y_lo: int x_hi: int y_hi: int @staticmethod def from_claim(...
0
196
0
278
0
744
0
32
136
e0b54bbb7e2eb21e2f7ab6a556d6aad1c2739d4d
11,826
py
Python
swpt_creditors/procedures/creditors.py
epandurski/swpt_creditors
35b9c6fa8ec84fe26e203a2604aff9cd5280dc4c
[ "MIT" ]
null
null
null
swpt_creditors/procedures/creditors.py
epandurski/swpt_creditors
35b9c6fa8ec84fe26e203a2604aff9cd5280dc4c
[ "MIT" ]
null
null
null
swpt_creditors/procedures/creditors.py
epandurski/swpt_creditors
35b9c6fa8ec84fe26e203a2604aff9cd5280dc4c
[ "MIT" ]
1
2020-01-16T13:24:31.000Z
2020-01-16T13:24:31.000Z
from typing import TypeVar, Callable from swpt_creditors.extensions import db from swpt_creditors.models import Creditor, LogEntry T = TypeVar('T') atomic: Callable[[T], T] = db.atomic ACTIVATION_STATUS_MASK = Creditor.STATUS_IS_ACTIVATED_FLAG | Creditor.STATUS_IS_DEACTIVATED_FLAG LOG_ENTRY_NONE_AUX_FIELDS_EXCLUDED_T...
31.705094
108
0.701674
from typing import TypeVar, Callable, List, Tuple, Optional, Iterable from random import randint from datetime import datetime, timezone, timedelta from sqlalchemy.exc import IntegrityError from sqlalchemy.sql.expression import func from sqlalchemy.orm import exc, joinedload from swpt_creditors.extensions import db fro...
0
6,031
0
0
0
4,344
0
228
706
27590c36dbe740d219d3211a27582c376b167192
20,849
py
Python
duden/main.py
wyleyr/duden
88ad75b9e729093c1dfcc2dd0512243e74c97d31
[ "MIT" ]
null
null
null
duden/main.py
wyleyr/duden
88ad75b9e729093c1dfcc2dd0512243e74c97d31
[ "MIT" ]
null
null
null
duden/main.py
wyleyr/duden
88ad75b9e729093c1dfcc2dd0512243e74c97d31
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Dudendown This script takes a german word as a commandline input and returns its meaning overview, as parsed from the dictionary on the website `www.duden.de`. Words with non-ascii characters should be given using following transliteration: * -> ae * -> oe * -> ue...
30.979198
79
0.577006
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Dudendown This script takes a german word as a commandline input and returns its meaning overview, as parsed from the dictionary on the website `www.duden.de`. Words with non-ascii characters should be given using following transliteration: * ä -> ae * ö -> oe * ü ->...
21
4,916
0
6,934
0
2,309
0
91
136
cfd14a5551d09a201c59145ffd7ad54f5cd8ca73
1,274
py
Python
imperfect/verify.py
7imbrook/imperfect
9bb7e6eee27dcff34ccd1795c53764329c27d33f
[ "MIT" ]
1
2021-03-30T05:09:01.000Z
2021-03-30T05:09:01.000Z
imperfect/verify.py
7imbrook/imperfect
9bb7e6eee27dcff34ccd1795c53764329c27d33f
[ "MIT" ]
1
2020-10-02T20:31:34.000Z
2020-10-02T20:31:34.000Z
imperfect/verify.py
7imbrook/imperfect
9bb7e6eee27dcff34ccd1795c53764329c27d33f
[ "MIT" ]
2
2020-12-02T01:02:49.000Z
2022-01-27T13:05:26.000Z
import sys if __name__ == "__main__": # pragma: no cover for f in sys.argv[1:]: verify(f)
26
70
0.548666
import configparser import io import sys from imperfect import parse_string def verify(name: str) -> None: with open(name) as f: data = f.read() conf = parse_string(data) buf = io.StringIO() conf.build(buf) if data != buf.getvalue(): print(name, "FAIL ROUND TRIP") return ...
0
0
0
0
0
1,079
0
-1
90
017617040cf76d6f6bd327a7e03057734197c52a
439
py
Python
apps/accounts/migrations/0006_auto_20200111_2216.py
akaytatsu/incricao_conferencia
9ab774c6fe30cdb1a45d3732ade394df6e3b4258
[ "MIT" ]
null
null
null
apps/accounts/migrations/0006_auto_20200111_2216.py
akaytatsu/incricao_conferencia
9ab774c6fe30cdb1a45d3732ade394df6e3b4258
[ "MIT" ]
3
2019-12-22T22:07:48.000Z
2019-12-23T21:38:31.000Z
apps/accounts/migrations/0006_auto_20200111_2216.py
akaytatsu/inscricao_conferencia
9ab774c6fe30cdb1a45d3732ade394df6e3b4258
[ "MIT" ]
null
null
null
# Generated by Django 3.0.1 on 2020-01-11 22:16
23.105263
99
0.621868
# Generated by Django 3.0.1 on 2020-01-11 22:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0005_auto_20200111_2109'), ] operations = [ migrations.AlterField( model_name='account', name='telefone'...
0
0
0
325
0
0
0
19
46
bcd84032e5fa2056ebc208aca2616756ef4558e3
2,910
py
Python
catalogs/generateContCat.py
tvwenger/tmbidl
7a2e53f103877bb8f0e6f2f6211c660395ed85fb
[ "MIT" ]
1
2016-10-17T16:13:43.000Z
2016-10-17T16:13:43.000Z
catalogs/generateContCat.py
tvwenger/tmbidl
7a2e53f103877bb8f0e6f2f6211c660395ed85fb
[ "MIT" ]
null
null
null
catalogs/generateContCat.py
tvwenger/tmbidl
7a2e53f103877bb8f0e6f2f6211c660395ed85fb
[ "MIT" ]
null
null
null
# generateContCat.py - generate continuum catalog # # Usage: # # > python generateContCat.py <catalog name> # if __name__=="__main__": import sys generateContCat(str(sys.argv[1]).strip())
35.487805
259
0.520619
# generateContCat.py - generate continuum catalog # # Usage: # # > python generateContCat.py <catalog name> # def generateContCat(proj='hii'): # set the output file outfile = 'source_catalog' fout = open(outfile, 'w') print " " print "Reading data from proj :", proj print " " # define ...
0
0
0
0
0
2,672
0
-11
49
69dd9e7b18ffc69350d5b562f67ede0c60cddfe8
18,308
py
Python
matteautils/dataset/dataset_pb2.py
mattea/mattea-utils
030ba2d4014b62b05eb8e00006d6e98c790b5650
[ "Apache-2.0" ]
null
null
null
matteautils/dataset/dataset_pb2.py
mattea/mattea-utils
030ba2d4014b62b05eb8e00006d6e98c790b5650
[ "Apache-2.0" ]
null
null
null
matteautils/dataset/dataset_pb2.py
mattea/mattea-utils
030ba2d4014b62b05eb8e00006d6e98c790b5650
[ "Apache-2.0" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: dataset.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 import message as _message from google.protobuf import reflection as _refle...
39.036247
1,659
0.735908
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: dataset.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 import message as _message from google.protobuf import reflection as _refle...
0
0
0
0
0
0
0
0
0
c833f12dc33355ecb77713d3dc4ee174e9879a7e
13,369
py
Python
ai/Algorithm/PathfinderRRT.py
wonwon0/RobocupStrategyIA
891028f616d476b05b23b40924d7c99502a718e3
[ "MIT" ]
null
null
null
ai/Algorithm/PathfinderRRT.py
wonwon0/RobocupStrategyIA
891028f616d476b05b23b40924d7c99502a718e3
[ "MIT" ]
null
null
null
ai/Algorithm/PathfinderRRT.py
wonwon0/RobocupStrategyIA
891028f616d476b05b23b40924d7c99502a718e3
[ "MIT" ]
null
null
null
# Under MIT License, see LICENSE.txt """ Module intelligent contenant l'implementation d'un Rapidly exploring Random Tree. Le module contient une classe qui peut tre instancie et qui calcule les trajectoires des robots de l'quipe. Les dtails de l'algorithme sont disponibles sur la page wikipedia. Code o...
31.906921
125
0.601167
# Under MIT License, see LICENSE.txt """ Module intelligent contenant l'implementation d'un Rapidly exploring Random Tree. Le module contient une classe qui peut être instanciée et qui calcule les trajectoires des robots de l'équipe. Les détails de l'algorithme sont disponibles sur la page wikipedia. Co...
108
0
0
8,463
0
686
0
116
292
042950172b9f65af3799e877802ec8d2c6f52d37
11,594
py
Python
organice/management/settings.py
bittner/django-organice
7621e4cf2361db84b42d77e5e72e341559eb9906
[ "Apache-2.0" ]
34
2015-04-22T12:47:32.000Z
2022-03-18T02:16:17.000Z
organice/management/settings.py
TebelloX/django-organice
7621e4cf2361db84b42d77e5e72e341559eb9906
[ "Apache-2.0" ]
13
2015-07-24T05:25:56.000Z
2020-09-02T17:38:35.000Z
organice/management/settings.py
TebelloX/django-organice
7621e4cf2361db84b42d77e5e72e341559eb9906
[ "Apache-2.0" ]
14
2015-05-01T20:42:49.000Z
2022-03-25T01:12:34.000Z
# # Copyright 2014-2015 Peter Bittner <django@bittner.it> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
39.037037
106
0.589874
# # Copyright 2014-2015 Peter Bittner <django@bittner.it> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
0
823
0
10,013
0
0
0
-24
90
23431f128855baf4e7c89d2e13d640c5759caea6
8,884
py
Python
cookschedule/tests.py
yuxuan-bill/Cook-Scheduler
1bd9699ab1f8ba711987c0494a207961d859ec12
[ "MIT" ]
null
null
null
cookschedule/tests.py
yuxuan-bill/Cook-Scheduler
1bd9699ab1f8ba711987c0494a207961d859ec12
[ "MIT" ]
null
null
null
cookschedule/tests.py
yuxuan-bill/Cook-Scheduler
1bd9699ab1f8ba711987c0494a207961d859ec12
[ "MIT" ]
null
null
null
# Create your tests here. leo = Schedule.leo darcy = Schedule.darcy bill = Schedule.bill daniel = Schedule.daniel participants = [x for x, _ in Schedule.participants] user = "fake_test_user"
37.485232
80
0.565061
from django.test import TestCase from .models import * # Create your tests here. leo = Schedule.leo darcy = Schedule.darcy bill = Schedule.bill daniel = Schedule.daniel participants = [x for x, _ in Schedule.participants] user = "fake_test_user" class ScheduleModelTests(TestCase): def setUp(self): sel...
0
0
0
8,612
0
0
0
11
67
f22b5e0a4896b7df824569a5e7b65c126fca1c36
6,885
py
Python
model/tfkg_model.py
dumpmemory/tfkg
fe642f12c6b41a60b0ac3d96458d6ad6be626e2e
[ "MIT" ]
32
2021-12-07T08:28:15.000Z
2022-03-14T06:57:44.000Z
model/tfkg_model.py
dumpmemory/tfkg
fe642f12c6b41a60b0ac3d96458d6ad6be626e2e
[ "MIT" ]
1
2022-03-08T10:42:48.000Z
2022-03-08T10:42:48.000Z
model/tfkg_model.py
dumpmemory/tfkg
fe642f12c6b41a60b0ac3d96458d6ad6be626e2e
[ "MIT" ]
4
2021-12-07T08:53:50.000Z
2022-03-07T18:21:10.000Z
import json import os import logging import sys import tensorflow as tf os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' # ERROR logging.getLogger('tensorflow').setLevel(logging.ERROR) logging.disable(logging.WARNING) custom_objects = {} # tfkg-custom-definitions with open(sys.argv[1], "r") as f: config = json.load(f...
29.173729
102
0.567466
import json import os import logging import sys import tensorflow as tf import numpy as np os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' # ERROR logging.getLogger('tensorflow').setLevel(logging.ERROR) logging.disable(logging.WARNING) custom_objects = {} # tfkg-custom-definitions with open(sys.argv[1], "r") as f: c...
0
1,424
0
1,692
0
3,265
0
-3
45
43d8908f19f27c4985428ca6f435679b7ebdb92a
683
py
Python
sub2/retrain.py
myccpb08/AI_2nd_Pos_Neg
31cd77ea4189173ef3bea9b517278a13b6050721
[ "Apache-2.0" ]
null
null
null
sub2/retrain.py
myccpb08/AI_2nd_Pos_Neg
31cd77ea4189173ef3bea9b517278a13b6050721
[ "Apache-2.0" ]
null
null
null
sub2/retrain.py
myccpb08/AI_2nd_Pos_Neg
31cd77ea4189173ef3bea9b517278a13b6050721
[ "Apache-2.0" ]
null
null
null
""" Req 1-1-1. read_data(): """ """ Req 1-1-2. tokenize(): KoNLPy okt """
22.032258
92
0.560761
from konlpy.tag import Okt """ Req 1-1-1. 데이터 읽기 read_data(): 데이터를 읽어서 저장하는 함수 """ def read_data(filename): data = [] with open(filename, 'r',encoding='UTF-8') as f: for line in f: temp = line.split('\t') if temp[1] != "document": data += [temp] return d...
135
0
0
0
0
475
0
5
68
79ed925e1ae866f2ebb6f78066bb10c97b4897c2
168
py
Python
code/part1/font_translator_gan/_train.py
mmiikeke/calligraphy_project
7ed9b709cd4f31207386de6a5a034c1a9bd28c47
[ "MIT" ]
null
null
null
code/part1/font_translator_gan/_train.py
mmiikeke/calligraphy_project
7ed9b709cd4f31207386de6a5a034c1a9bd28c47
[ "MIT" ]
null
null
null
code/part1/font_translator_gan/_train.py
mmiikeke/calligraphy_project
7ed9b709cd4f31207386de6a5a034c1a9bd28c47
[ "MIT" ]
null
null
null
import os os.system("python train.py --dataroot .\\datasets\\font --model font_translator_gan --name test_new_dataset --no_dropout --batch_size 128 --style_channel 10")
84
158
0.779762
import os os.system("python train.py --dataroot .\\datasets\\font --model font_translator_gan --name test_new_dataset --no_dropout --batch_size 128 --style_channel 10")
0
0
0
0
0
0
0
0
0
3d73d1e006c93f092cc1973c8bea99079ad7990f
6,831
py
Python
HIsomap/HIsomap.py
LynneYan/HIsomap
48a7be138de2ea4652e60c3a9fc80f6377cbbab0
[ "MIT" ]
2
2020-01-23T02:34:41.000Z
2020-03-04T05:26:26.000Z
HIsomap/HIsomap.py
LynneYan/HIsomap
48a7be138de2ea4652e60c3a9fc80f6377cbbab0
[ "MIT" ]
null
null
null
HIsomap/HIsomap.py
LynneYan/HIsomap
48a7be138de2ea4652e60c3a9fc80f6377cbbab0
[ "MIT" ]
null
null
null
from __future__ import division
35.764398
250
0.558044
from __future__ import division import km import sklearn from sklearn.base import BaseEstimator, TransformerMixin from sklearn.neighbors import kneighbors_graph from sklearn.neighbors import NearestNeighbors from sklearn.utils.graph import graph_shortest_path import json import numpy as np import KernelPCA from skle...
0
90
0
6,325
0
0
0
114
268
e07305189a058b6fa85684b64a0cd055fc9e2e5d
172
py
Python
Python Fundamentals/Functions/Lab/Task06.py
DonikaChervenkova/SoftUni
bff579c037ec48f39ed193b34bc3502a32e90732
[ "MIT" ]
null
null
null
Python Fundamentals/Functions/Lab/Task06.py
DonikaChervenkova/SoftUni
bff579c037ec48f39ed193b34bc3502a32e90732
[ "MIT" ]
null
null
null
Python Fundamentals/Functions/Lab/Task06.py
DonikaChervenkova/SoftUni
bff579c037ec48f39ed193b34bc3502a32e90732
[ "MIT" ]
1
2021-12-04T12:30:57.000Z
2021-12-04T12:30:57.000Z
width = int(input()) height = int(input()) print(calculate_rectangle_area(width, height))
17.2
46
0.709302
width = int(input()) height = int(input()) def calculate_rectangle_area(w, h): rect_area = w * h return rect_area print(calculate_rectangle_area(width, height))
0
0
0
0
0
57
0
0
23
720fe76e4dffc600ae441370bab011b2274edeff
19,325
py
Python
stdnet/odm/base.py
stuaxo/python-stdnet
78db5320bdedc3f28c5e4f38cda13a4469e35db7
[ "BSD-3-Clause" ]
61
2015-01-13T23:41:10.000Z
2021-09-14T03:23:59.000Z
stdnet/odm/base.py
drscream/python-stdnet
78db5320bdedc3f28c5e4f38cda13a4469e35db7
[ "BSD-3-Clause" ]
4
2015-02-28T08:57:14.000Z
2020-12-29T17:14:43.000Z
stdnet/odm/base.py
drscream/python-stdnet
78db5320bdedc3f28c5e4f38cda13a4469e35db7
[ "BSD-3-Clause" ]
12
2015-01-01T09:23:06.000Z
2021-09-16T08:09:13.000Z
'''Defines Metaclasses and Base classes for stdnet Models.''' __all__ = ['ModelMeta', 'Model', 'ModelBase', 'ModelState', 'autoincrement', 'ModelType'] ModelBase = ModelType('ModelBase', (Model,), {'abstract': True})
33.903509
80
0.580906
'''Defines Metaclasses and Base classes for stdnet Models.''' import sys from copy import copy, deepcopy from inspect import isclass from stdnet.utils.exceptions import * from stdnet.utils import UnicodeMixin, unique_tuple from stdnet.utils.structures import OrderedDict from .globals import hashmodel, JSPLIT...
0
1,726
0
15,711
0
1,080
0
142
410
c88cee4014eb78a2320f0b66444c58bbe3b081a4
521
py
Python
examples/alembic/migrations/2020-04-15_user_93d219eb7328.py
lzukowski/lzukowski.github.io
ef697005098e3c48d74092a1064f05b6cf2e3e1a
[ "MIT" ]
15
2020-04-12T11:49:33.000Z
2022-03-27T17:14:35.000Z
examples/alembic/migrations/2020-04-15_user_93d219eb7328.py
lzukowski/lzukowski.github.io
ef697005098e3c48d74092a1064f05b6cf2e3e1a
[ "MIT" ]
null
null
null
examples/alembic/migrations/2020-04-15_user_93d219eb7328.py
lzukowski/lzukowski.github.io
ef697005098e3c48d74092a1064f05b6cf2e3e1a
[ "MIT" ]
8
2020-05-04T06:50:15.000Z
2022-02-18T08:35:21.000Z
"""User Revision ID: 93d219eb7328 Revises: Create Date: 2020-04-15 16:00:18.696276 """ # revision identifiers, used by Alembic. revision = '93d219eb7328' down_revision = None branch_labels = None depends_on = None
17.965517
74
0.68714
"""User Revision ID: 93d219eb7328 Revises: Create Date: 2020-04-15 16:00:18.696276 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '93d219eb7328' down_revision = None branch_labels = None depends_on = None def upgrade(): op.create_table( 'users',...
0
0
0
0
0
207
0
3
90
53d204ec1503d8e653f745ada20621fb4b25d129
1,153
py
Python
scripts/cli.py
Skalwalker/SpamRecognition
f550e9a0ac46bd43f378af915611d3c97010e8a5
[ "MIT" ]
null
null
null
scripts/cli.py
Skalwalker/SpamRecognition
f550e9a0ac46bd43f378af915611d3c97010e8a5
[ "MIT" ]
null
null
null
scripts/cli.py
Skalwalker/SpamRecognition
f550e9a0ac46bd43f378af915611d3c97010e8a5
[ "MIT" ]
1
2020-11-10T15:09:24.000Z
2020-11-10T15:09:24.000Z
DEFAULT_ALGORITHM = 'mlp'
42.703704
151
0.712056
import argparse from adapter import Adapter DEFAULT_ALGORITHM = 'mlp' def getAdapter(): parser = argparse.ArgumentParser(description='An Artificial Neural Network model comparison using MLP and FBR to recognise spam.') parser.add_argument('--algorithm', dest='algorithm', choices=['mlp', 'fbr'], type=str, de...
0
0
0
0
0
1,059
0
0
67
f6174beaea4c135ab29708edc5da9a3c16571040
3,325
py
Python
animations/utils_v1/ggr.py
TristanCacqueray/demo-render
4c8403e684165e5e75c046ee023c1f794a6650a8
[ "Apache-2.0" ]
9
2018-02-19T14:17:12.000Z
2021-03-27T14:46:28.000Z
animations/utils_v1/ggr.py
TristanCacqueray/demo-render
4c8403e684165e5e75c046ee023c1f794a6650a8
[ "Apache-2.0" ]
null
null
null
animations/utils_v1/ggr.py
TristanCacqueray/demo-render
4c8403e684165e5e75c046ee023c1f794a6650a8
[ "Apache-2.0" ]
null
null
null
""" Read Gimp .ggr gradient files. Ned Batchelder, http://nedbatchelder.com This code is in the public domain. Update 2018: port to py3 and return uint value """ __version__ = '1.0.20180113'
31.367925
74
0.461654
""" Read Gimp .ggr gradient files. Ned Batchelder, http://nedbatchelder.com This code is in the public domain. Update 2018: port to py3 and return uint value """ __version__ = '1.0.20180113' import colorsys import math class GimpGradient: """ Read and interpret a Gimp .ggr gradient file. """ ...
0
0
0
3,066
0
0
0
-16
68
3ede11575f94aed3e24e365af1841125a593ca60
4,894
py
Python
opt/exasol/monitoring/check_backup.py
mdescobar/nagios-monitoring
86532b45b0c9f3c6b6029c7556641dab77a566db
[ "MIT" ]
5
2019-05-24T05:28:46.000Z
2020-08-14T19:42:02.000Z
opt/exasol/monitoring/check_backup.py
mdescobar/nagios-monitoring
86532b45b0c9f3c6b6029c7556641dab77a566db
[ "MIT" ]
9
2017-04-03T10:06:39.000Z
2018-10-24T15:30:57.000Z
opt/exasol/monitoring/check_backup.py
mdescobar/nagios-monitoring
86532b45b0c9f3c6b6029c7556641dab77a566db
[ "MIT" ]
7
2019-07-15T11:16:40.000Z
2020-07-29T15:37:17.000Z
#!/usr/bin/python3 import time from sys import exit, argv, maxsize from getopt import getopt from urllib.parse import quote_plus pluginVersion = "18.10" databaseName = None hostName = None userName = None password = None opts, args ...
34.223776
155
0.612178
#!/usr/bin/python3 import ssl, json, time from os.path import isfile, getctime from os import sep, remove, name from sys import exit, argv, version_info, stdout, stderr, maxsize from getopt import getopt from datetime import datetime from urllib.parse ...
0
0
0
0
0
513
0
166
134
58e99354ab33a6b61aeeea173df68be1e1a5ab94
10,264
py
Python
pytest_regtest.py
gdvenugopal88/pytest-regtest
05b457552dd736032d4fe4e2bd5057427c40a630
[ "MIT" ]
null
null
null
pytest_regtest.py
gdvenugopal88/pytest-regtest
05b457552dd736032d4fe4e2bd5057427c40a630
[ "MIT" ]
null
null
null
pytest_regtest.py
gdvenugopal88/pytest-regtest
05b457552dd736032d4fe4e2bd5057427c40a630
[ "MIT" ]
null
null
null
# encoding: utf-8 from __future__ import absolute_import, division, print_function import functools import sys import pkg_resources import py pytest_plugins = ["pytester"] _version = pkg_resources.require("pytest-regtest")[0].version.split(".") __version__ = tuple(map(int, _version)) del _version IS_PY3 = sys.ver...
28.353591
97
0.6212
# encoding: utf-8 from __future__ import absolute_import, division, print_function import difflib import functools import os import re import sys import tempfile import pkg_resources import py import pytest from _pytest._code.code import ExceptionInfo, TerminalRepr from _pytest.outcomes import skip from hashlib impor...
0
2,527
0
1,217
904
3,422
0
21
578
bc2f9198571f8fb74ab620396e6bf677b0f46788
4,026
py
Python
src/nxml2txt/rewritemmla.py
GullyBurns/nxml2txt
51b890d12755cc2dfd1d94b4e7077288d90817c8
[ "MIT" ]
null
null
null
src/nxml2txt/rewritemmla.py
GullyBurns/nxml2txt
51b890d12755cc2dfd1d94b4e7077288d90817c8
[ "MIT" ]
null
null
null
src/nxml2txt/rewritemmla.py
GullyBurns/nxml2txt
51b890d12755cc2dfd1d94b4e7077288d90817c8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Moves the text content of MathML <annotation> elements into an # attribute in XML files, thus removing the annotations from the file # text content. # This is a component in a pipeline to convert PMC NXML files into # text and standoffs. The whole pipeline can be run as # # python rewritete...
31.952381
154
0.682563
#!/usr/bin/env python # Moves the text content of MathML <annotation> elements into an # attribute in XML files, thus removing the annotations from the file # text content. # This is a component in a pipeline to convert PMC NXML files into # text and standoffs. The whole pipeline can be run as # # python rewritete...
0
0
0
0
0
2,181
0
-25
231
41e150da97d1944f8a13b9fb34a0db4f39ccfa3c
3,285
py
Python
schematizer/models/meta_attribute_mapping_store.py
Yelp/schematizer
035845d27945a05db475f00eb76f59e8825dbaa4
[ "Apache-2.0" ]
86
2016-11-17T17:39:13.000Z
2021-06-01T15:19:05.000Z
schematizer/models/meta_attribute_mapping_store.py
tomzhang/schematizer
035845d27945a05db475f00eb76f59e8825dbaa4
[ "Apache-2.0" ]
2
2016-12-01T20:57:43.000Z
2021-09-28T09:26:25.000Z
schematizer/models/meta_attribute_mapping_store.py
tomzhang/schematizer
035845d27945a05db475f00eb76f59e8825dbaa4
[ "Apache-2.0" ]
26
2016-11-29T22:38:11.000Z
2021-03-02T19:44:17.000Z
# -*- coding: utf-8 -*- # Copyright 2016 Yelp Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
32.524752
79
0.695282
# -*- coding: utf-8 -*- # Copyright 2016 Yelp Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
0
656
0
1,543
0
0
0
160
247
31f9fc3bfbdd32aa7b981741cfaa641c9c898445
2,532
py
Python
what_apps/utility/tests.py
SlashRoot/WHAT
69e78d01065142446234e77ea7c8c31e3482af29
[ "MIT" ]
null
null
null
what_apps/utility/tests.py
SlashRoot/WHAT
69e78d01065142446234e77ea7c8c31e3482af29
[ "MIT" ]
null
null
null
what_apps/utility/tests.py
SlashRoot/WHAT
69e78d01065142446234e77ea7c8c31e3482af29
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User def test_user_factory(number_of_users_to_create): ''' pseudo factory. takes an integer. returns a list of users. Obviously, don't use this to make production users. Dominick. ''' users = [] while len(users) < number_of_users_to_cre...
32.050633
110
0.657583
from django.test import TestCase from django.contrib.auth.models import User from what_apps.people.models import GenericParty from django.test.simple import DjangoTestSuiteRunner from django.conf import settings class WHATTestRunner(DjangoTestSuiteRunner): def run_tests(self, extra_tests=None, **kwargs): ...
0
0
0
1,525
0
250
0
80
158
bbf032f9ff3536027b2da4e3503c709083d67bb9
76,844
py
Python
BPt/main/eval.py
sahahn/ABCD_ML
a8b1c48c33f3fdc046c8922964f1c456273238da
[ "MIT" ]
1
2019-09-25T23:23:49.000Z
2019-09-25T23:23:49.000Z
BPt/main/eval.py
sahahn/ABCD_ML
a8b1c48c33f3fdc046c8922964f1c456273238da
[ "MIT" ]
1
2020-04-20T20:53:27.000Z
2020-04-20T20:53:27.000Z
BPt/main/eval.py
sahahn/ABCD_ML
a8b1c48c33f3fdc046c8922964f1c456273238da
[ "MIT" ]
1
2019-06-21T14:44:40.000Z
2019-06-21T14:44:40.000Z
_base_docs = {} _base_docs['dataset'] = """dataset : :class:`Dataset` The instance of :class:`Dataset` originally passed to :func:`evaluate`. .. note:: If a different dataset is passed, then unexpected behavior may occur. """ # @TODO # 1. ...
34.336014
118
0.585394
import pandas as pd import numpy as np from tqdm import tqdm from tqdm.notebook import tqdm as tqdm_notebook from sklearn.base import clone import time import warnings from ..dataset.helpers import verbose_print from ..pipeline.helpers import get_mean_fis from sklearn.utils import Bunch from scipy.stats import t from p...
2
34,393
0
38,674
0
2,221
0
316
737
6c0cd6bb0deb47761e559591b778a23acf15bc8b
2,114
py
Python
DataReader.py
ltz0120/Graph-attentive-Convolutional-Hawkes-Processes-GACHP
07be432e5fa760d634a36823d95ad3a809960d98
[ "MIT" ]
5
2021-06-29T02:53:22.000Z
2021-09-14T11:48:40.000Z
DataReader.py
ltz0120/Graph-attentive-Convolutional-Hawkes-Processes-GACHP
07be432e5fa760d634a36823d95ad3a809960d98
[ "MIT" ]
null
null
null
DataReader.py
ltz0120/Graph-attentive-Convolutional-Hawkes-Processes-GACHP
07be432e5fa760d634a36823d95ad3a809960d98
[ "MIT" ]
1
2022-01-31T03:10:02.000Z
2022-01-31T03:10:02.000Z
""" This script contains the function loading data from csv file with or without header. the csv file must has the first column as the timestamps, while the other columns are features. """ from dev.util import logger import numpy as np import pandas as pd def load_csv(file, single_realization=False, categorical=Fals...
38.436364
138
0.660833
""" This script contains the function loading data from csv file with or without header. the csv file must has the first column as the timestamps, while the other columns are features. """ from dev.util import logger import numpy as np import pandas as pd import copy import time from typing import Dict def load_csv(...
0
0
0
0
0
0
0
-18
66
2864bacbf0ffe68db8070d06f96f21a6e16c6ed8
3,303
py
Python
google/cloud/security/inventory/pipelines/load_appengine_pipeline.py
joshiumang107/forseti-security
c088e677426ec60daae0e44a5d1acbb337386ddb
[ "Apache-2.0" ]
null
null
null
google/cloud/security/inventory/pipelines/load_appengine_pipeline.py
joshiumang107/forseti-security
c088e677426ec60daae0e44a5d1acbb337386ddb
[ "Apache-2.0" ]
null
null
null
google/cloud/security/inventory/pipelines/load_appengine_pipeline.py
joshiumang107/forseti-security
c088e677426ec60daae0e44a5d1acbb337386ddb
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The Forseti Security Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
38.858824
78
0.629428
# Copyright 2017 The Forseti Security Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
0
0
0
2,309
0
0
0
132
90
64d12b382e0de14bd0b59a6b0283527033e6af1b
10,546
py
Python
pandas3js/models/idobject.py
chrisjsewell/pandas3js
efdae29dd5c9c1236cb27a7bd809730106fad08d
[ "MIT" ]
6
2017-06-07T19:51:39.000Z
2020-07-19T00:16:12.000Z
pandas3js/models/idobject.py
chrisjsewell/pandas3js
efdae29dd5c9c1236cb27a7bd809730106fad08d
[ "MIT" ]
15
2017-06-06T10:02:31.000Z
2019-06-21T08:16:13.000Z
pandas3js/models/idobject.py
chrisjsewell/pandas3js
efdae29dd5c9c1236cb27a7bd809730106fad08d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ providing trait objects with an id """ def default_viewmap(label_height=None): """ a wrapper to signal that all subclass attributes should be directly linked to the default view mapping Properties ---------- label_height : ...
25.47343
120
0.560687
#!/usr/bin/env python # -*- coding: utf-8 -*- """ providing trait objects with an id """ from collections import Hashable import uuid import traitlets as trait import ipywidgets as widgets from matplotlib import colors import pandas as pd class HashableType(trait.TraitType): """ Examples -------- ...
0
2,069
0
7,189
0
81
0
18
555
650b8cb9c1f12955c0ae9ade01308fb30ac10493
1,125
py
Python
chapter04/pipeline/register_model.py
PacktPublishing/Practical-Deep-Learning-at-Scale-with-MLFlow
a4f5ec294de26675c5d3aefde890465dfc833763
[ "MIT" ]
48
2021-10-17T02:58:22.000Z
2022-03-19T18:21:42.000Z
chapter04/pipeline/register_model.py
PacktPublishing/Practical-Deep-Learning-at-Scale-with-MLFlow
a4f5ec294de26675c5d3aefde890465dfc833763
[ "MIT" ]
null
null
null
chapter04/pipeline/register_model.py
PacktPublishing/Practical-Deep-Learning-at-Scale-with-MLFlow
a4f5ec294de26675c5d3aefde890465dfc833763
[ "MIT" ]
7
2021-11-01T16:12:21.000Z
2022-01-17T07:27:58.000Z
import logging logging.basicConfig(level=logging.INFO, format="%(asctime)-15s %(message)s") logger = logging.getLogger() if __name__ == '__main__': task()
38.793103
113
0.722667
import click import mlflow import logging logging.basicConfig(level=logging.INFO, format="%(asctime)-15s %(message)s") logger = logging.getLogger() @click.command(help="This program registers a trained model .") @click.option("--mlflow_run_id", default=None, help="This is the mlflow run id") @click.opt...
0
912
0
0
0
0
0
-17
67
cc11c0716ca1e16c18ae57ddffb936242ecbf112
6,557
py
Python
history/generate_timeline.py
raffaelfoidl/noworkflow
aa4ca189df24fec6c7abd32bcca6a097b21fdf31
[ "MIT" ]
108
2015-02-04T14:16:51.000Z
2022-03-06T13:52:45.000Z
history/generate_timeline.py
raffaelfoidl/noworkflow
aa4ca189df24fec6c7abd32bcca6a097b21fdf31
[ "MIT" ]
92
2015-01-19T14:58:06.000Z
2021-04-19T17:28:50.000Z
history/generate_timeline.py
raffaelfoidl/noworkflow
aa4ca189df24fec6c7abd32bcca6a097b21fdf31
[ "MIT" ]
31
2015-03-03T23:53:59.000Z
2021-11-11T04:23:44.000Z
if __name__ == "__main__": import sys name = sys.argv[1] if len(sys.argv) > 2 else "history.svg" create_timeline(name)
34.151042
121
0.580296
import re import svgwrite from collections import OrderedDict from datetime import datetime, timezone from dateutil.relativedelta import relativedelta from subprocess import check_output from config import configuration from svgwrite import Drawing from svgwrite.shapes import Rect, Circle from svgwrite.text import T...
0
0
0
3,549
1,474
793
0
112
468
046c4223704cbe9e1290bd08e2ea4ed5caa2e804
487
py
Python
02_SentenceTokenize.py
pemagrg1/SPACY-for-Beginners
b4647a5b7b1a784cfe86d594cb045337bef198fc
[ "MIT" ]
4
2019-03-16T04:16:27.000Z
2020-02-15T13:46:26.000Z
02_SentenceTokenize.py
pemagrg1/Natural-Language-Processing-NLP-using-Spacy
b4647a5b7b1a784cfe86d594cb045337bef198fc
[ "MIT" ]
null
null
null
02_SentenceTokenize.py
pemagrg1/Natural-Language-Processing-NLP-using-Spacy
b4647a5b7b1a784cfe86d594cb045337bef198fc
[ "MIT" ]
1
2019-10-17T14:55:41.000Z
2019-10-17T14:55:41.000Z
import spacy nlp = spacy.load("en") text = """Natural Language Toolkit, or more commonly NLTK, is a suite of libraries and programs for symbolic and statistical natural language processing (NLP) for English written in the Python programming language. It was developed by Steven Bird and Edward Loper in the Department of...
69.571429
355
0.784394
import spacy nlp = spacy.load("en") text = """Natural Language Toolkit, or more commonly NLTK, is a suite of libraries and programs for symbolic and statistical natural language processing (NLP) for English written in the Python programming language. It was developed by Steven Bird and Edward Loper in the Department of...
0
0
0
0
0
0
0
0
0
42de7a91f846bea13527583cd4c3d24cb7a870c5
11,453
py
Python
SRC/common/IO/reporterror.py
usnistgov/OOF3D
4fd423a48aea9c5dc207520f02de53ae184be74c
[ "X11" ]
31
2015-04-01T15:59:36.000Z
2022-03-18T20:21:47.000Z
SRC/common/IO/reporterror.py
usnistgov/OOF3D
4fd423a48aea9c5dc207520f02de53ae184be74c
[ "X11" ]
3
2015-02-06T19:30:24.000Z
2017-05-25T14:14:31.000Z
SRC/common/IO/reporterror.py
usnistgov/OOF3D
4fd423a48aea9c5dc207520f02de53ae184be74c
[ "X11" ]
7
2015-01-23T15:19:22.000Z
2021-06-09T09:03:59.000Z
# -*- python -*- # This software was produced by NIST, an agency of the U.S. government, # and by statute is not subject to copyright in the United States. # Recipients of this software assume all responsibilities associated # with its operation, modification and maintenance. However, to # facilitate maintenance we as...
34.08631
158
0.676591
# -*- python -*- # This software was produced by NIST, an agency of the U.S. government, # and by statute is not subject to copyright in the United States. # Recipients of this software assume all responsibilities associated # with its operation, modification and maintenance. However, to # facilitate maintenance we as...
0
0
0
272
0
8,421
0
43
517
2532cdca6d0d686ed0a63e9c7dce9842d38be22a
527
py
Python
main.py
nullmaxwell/genetic-pathfinder-ex
92c8158d296132c5bda0b971721a03787620b928
[ "CC0-1.0" ]
null
null
null
main.py
nullmaxwell/genetic-pathfinder-ex
92c8158d296132c5bda0b971721a03787620b928
[ "CC0-1.0" ]
null
null
null
main.py
nullmaxwell/genetic-pathfinder-ex
92c8158d296132c5bda0b971721a03787620b928
[ "CC0-1.0" ]
null
null
null
# Traveling Salesman # # Author: Maxwell Rahmani # Date: September 18, 2020 # Version: 1.0.0 # Python Version: 2.7.16 # Description: # ------------------------------------------------------------------------------ # Imports import sys if __name__ == '__main__': main(sys.argv[1:])
20.269231
80
0.586338
# Traveling Salesman # # Author: Maxwell Rahmani # Date: September 18, 2020 # Version: 1.0.0 # Python Version: 2.7.16 # Description: # ------------------------------------------------------------------------------ # Imports import sys from src.Model import * from src.Environment import * from src.Hyperparameters impo...
0
0
0
0
0
128
0
22
89
974769d243303bfca7857638ccac4f33683909a5
1,447
py
Python
facultad/migrations/0001_initial.py
nicolasmontenegro/emprenred
906ea24e8b6357b109e24c140fd92fc24bb33e79
[ "Apache-2.0" ]
null
null
null
facultad/migrations/0001_initial.py
nicolasmontenegro/emprenred
906ea24e8b6357b109e24c140fd92fc24bb33e79
[ "Apache-2.0" ]
null
null
null
facultad/migrations/0001_initial.py
nicolasmontenegro/emprenred
906ea24e8b6357b109e24c140fd92fc24bb33e79
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2016-11-15 19:00 from __future__ import unicode_literals
30.145833
105
0.532135
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2016-11-15 19:00 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Crea...
0
0
0
1,235
0
0
0
30
68
ae8f7b6e707ffa0849bcbe9610b0f6244fc02d29
412
py
Python
stg4x/test/test_temporary_datfile_saving.py
GerJuli/ctrl-stg4000
6d3b7325c1f0eb5fb600a4b62f3dc5a04fbeebdb
[ "MIT" ]
null
null
null
stg4x/test/test_temporary_datfile_saving.py
GerJuli/ctrl-stg4000
6d3b7325c1f0eb5fb600a4b62f3dc5a04fbeebdb
[ "MIT" ]
null
null
null
stg4x/test/test_temporary_datfile_saving.py
GerJuli/ctrl-stg4000
6d3b7325c1f0eb5fb600a4b62f3dc5a04fbeebdb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ test temporary saving of stm files """
29.428571
61
0.657767
# -*- coding: utf-8 -*- """ test temporary saving of stm files """ from stg4x.helper import tempdir from stg4x.stm import PulseFile def test_saving(): dat = PulseFile() import os with tempdir() as dirpath: source_fname = os.path.join(dirpath, 'temporary.dat') dat.save(source_fname) ...
0
0
0
0
0
259
0
21
66
4554dc87d361816f09cd286b6bfdd979b9154967
3,404
py
Python
Learnings/exercise02.py
LopezMDidac/python-for-brodas
3ad600e507681c6cccf1a0c67d96ea7b3a6522ee
[ "MIT" ]
null
null
null
Learnings/exercise02.py
LopezMDidac/python-for-brodas
3ad600e507681c6cccf1a0c67d96ea7b3a6522ee
[ "MIT" ]
null
null
null
Learnings/exercise02.py
LopezMDidac/python-for-brodas
3ad600e507681c6cccf1a0c67d96ea7b3a6522ee
[ "MIT" ]
null
null
null
# Lista de la compra. # # Este ejercicio consiste en la digitalizacin de una lista de la compra totalmente funcional. # Esta lista de la compra ser una aplicacin de consola basada en menus. # # En caso que el usuario de una opcion no valida, se debera informar que la opcin no es valida # y volver a mostrar actua...
29.094017
99
0.648649
# Lista de la compra. # # Este ejercicio consiste en la digitalización de una lista de la compra totalmente funcional. # Esta lista de la compra será una aplicación de consola basada en menus. # # En caso que el usuario de una opcion no valida, se debera informar que la opción no es valida # y volver a mostrar a...
42
0
0
0
0
0
0
0
0
d297bff636268ba5f0550890e350a28033dd800b
398
py
Python
setup.py
adi2768/GoodRepoProject
7587e68c2986e32e8f8937cf0aec145b6c1533e0
[ "MIT" ]
null
null
null
setup.py
adi2768/GoodRepoProject
7587e68c2986e32e8f8937cf0aec145b6c1533e0
[ "MIT" ]
null
null
null
setup.py
adi2768/GoodRepoProject
7587e68c2986e32e8f8937cf0aec145b6c1533e0
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup setup(name='GoodRepoProject', version='1.0', description='Software Engineering Homework Assignment 2b', author='Aditya, Harsh, Ashritha, Abhishek, Akash', author_email='adityajadhavncsu@gmail.com', url='https://github.com/adi2768/GoodRep...
28.428571
64
0.683417
#!/usr/bin/env python from setuptools import setup setup(name='GoodRepoProject', version='1.0', description='Software Engineering Homework Assignment 2b', author='Aditya, Harsh, Ashritha, Abhishek, Akash', author_email='adityajadhavncsu@gmail.com', url='https://github.com/adi2768/GoodRep...
0
0
0
0
0
0
0
0
0
2736a18da7f8a6f0fb9fad46d5bfabde63ba780c
1,948
py
Python
sponge-jython/examples/script/py/knowledge_base_callbacks.py
mnpas/sponge
7190f23ae888bbef49d0fbb85157444d6ea48bcd
[ "Apache-2.0" ]
9
2017-12-16T21:48:57.000Z
2022-01-06T12:22:24.000Z
sponge-jython/examples/script/py/knowledge_base_callbacks.py
mnpas/sponge
7190f23ae888bbef49d0fbb85157444d6ea48bcd
[ "Apache-2.0" ]
3
2020-12-18T11:56:46.000Z
2022-03-31T18:37:10.000Z
sponge-jython/examples/script/py/knowledge_base_callbacks.py
mnpas/sponge
7190f23ae888bbef49d0fbb85157444d6ea48bcd
[ "Apache-2.0" ]
2
2019-12-29T16:08:32.000Z
2020-06-15T14:05:34.000Z
""" Sponge Knowledge Base Using knowledge base callbacks. """
33.586207
81
0.721253
""" Sponge Knowledge Base Using knowledge base callbacks. """ from java.util.concurrent.atomic import AtomicBoolean, AtomicInteger from org.openksavi.sponge.examples.util import TestStatus class ReloadTrigger(Trigger): def onConfigure(self): self.withEvent("reload") def onRun(self, event): ...
0
0
0
185
0
1,341
0
83
273
174a8e2f7aea9d445e0d59388c52eba5688e47fa
135
py
Python
timetablebackend/subject/urls.py
GGolfz/timetable
33552fdc02aebf2fa957487259557ba6ba134d97
[ "MIT" ]
null
null
null
timetablebackend/subject/urls.py
GGolfz/timetable
33552fdc02aebf2fa957487259557ba6ba134d97
[ "MIT" ]
null
null
null
timetablebackend/subject/urls.py
GGolfz/timetable
33552fdc02aebf2fa957487259557ba6ba134d97
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('', views.subject), path('clear', views.clear), ]
22.5
36
0.681481
from django.urls import path,include from . import views urlpatterns = [ path('', views.subject), path('clear', views.clear), ]
0
0
0
0
0
0
0
8
0
512a8619073f15987c8f5f8cfef20ee1fb3274ed
15,638
py
Python
apps/DeepFaceLive/backend/FaceDetector.py
jkennedyvz/DeepFaceLive
274c20808da089eb7fc0fc0e8abe649379a29ffe
[ "MIT" ]
null
null
null
apps/DeepFaceLive/backend/FaceDetector.py
jkennedyvz/DeepFaceLive
274c20808da089eb7fc0fc0e8abe649379a29ffe
[ "MIT" ]
null
null
null
apps/DeepFaceLive/backend/FaceDetector.py
jkennedyvz/DeepFaceLive
274c20808da089eb7fc0fc0e8abe649379a29ffe
[ "MIT" ]
null
null
null
DetectorTypeNames = ['CenterFace', 'S3FD', 'YoloV5'] FaceSortByNames = ['@FaceDetector.LARGEST', '@FaceDetector.DIST_FROM_CENTER', '@FaceDetector.LEFT_RIGHT', '@FaceDetector.RIGHT_LEFT', '@FaceDetector.TOP_BOTTOM', '@FaceDetector.BOTTOM_TOP' ]
45.859238
159
0.626679
import time from enum import IntEnum import numpy as np from modelhub import onnx as onnx_models from xlib import os as lib_os from xlib.face import FRect from xlib.image import ImageProcessor from xlib.mp import csw as lib_csw from xlib.python import all_is_not_None from .BackendBase import (BackendConnection, Backe...
0
0
0
14,643
0
0
0
257
452
a857528043e8a8afc6f419b897bfd208015a1e2b
11,869
py
Python
lasagne/layers/cuda_convnet.py
dimatura/nntools
4a1cfe984bdcfbf00c6e35fe8e53aec25da02acd
[ "MIT" ]
null
null
null
lasagne/layers/cuda_convnet.py
dimatura/nntools
4a1cfe984bdcfbf00c6e35fe8e53aec25da02acd
[ "MIT" ]
null
null
null
lasagne/layers/cuda_convnet.py
dimatura/nntools
4a1cfe984bdcfbf00c6e35fe8e53aec25da02acd
[ "MIT" ]
null
null
null
import theano from .. import init from .. import nonlinearities __all__ = [ "CCLayer", "Conv2DCCLayer", "MaxPool2DCCLayer", "ShuffleBC01ToC01BLayer", "bc01_to_c01b", "ShuffleC01BToBC01Layer", "c01b_to_bc01", "NINLayer_c01b", ] if not theano.config.device.startswith("gpu"): raise...
35.858006
79
0.591794
import numpy as np import theano import theano.tensor as T from .. import init from .. import nonlinearities from .base import Layer from theano.sandbox.cuda.basic_ops import gpu_contiguous from pylearn2.sandbox.cuda_convnet.filter_acts import FilterActs __all__ = [ "CCLayer", "Conv2DCCLayer", "MaxPool...
0
0
0
10,613
0
0
0
81
249
72150968d30e95d745fb3e4402026e6dd5f2dbe7
141
py
Python
tests/missing_data/test_missing_data_air_passengers_DiscardRow_Interpolate.py
shaido987/pyaf
b9afd089557bed6b90b246d3712c481ae26a1957
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/missing_data/test_missing_data_air_passengers_DiscardRow_Interpolate.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/missing_data/test_missing_data_air_passengers_DiscardRow_Interpolate.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
63
2017-03-09T14:51:18.000Z
2022-03-27T20:52:57.000Z
import tests.missing_data.test_missing_data_air_passengers_generic as gen gen.test_air_passengers_missing_data('DiscardRow', 'Interpolate')
35.25
73
0.879433
import tests.missing_data.test_missing_data_air_passengers_generic as gen gen.test_air_passengers_missing_data('DiscardRow', 'Interpolate')
0
0
0
0
0
0
0
0
0
2cb12f855afa375a24d429193df2854e48001399
1,026
py
Python
lists_basics/exercise/bread_factory.py
PetkoAndreev/Python-fundamentals
dcf2ecb65d7a82a6688a7529a14eb8a331a83256
[ "MIT" ]
null
null
null
lists_basics/exercise/bread_factory.py
PetkoAndreev/Python-fundamentals
dcf2ecb65d7a82a6688a7529a14eb8a331a83256
[ "MIT" ]
null
null
null
lists_basics/exercise/bread_factory.py
PetkoAndreev/Python-fundamentals
dcf2ecb65d7a82a6688a7529a14eb8a331a83256
[ "MIT" ]
null
null
null
bread_data = input().split('|') current_energy = 100 current_coins = 100 is_bankrupt = False for bread in bread_data: event, value = bread.split('-') value = int(value) if event == 'rest': if current_energy + value <= 100: current_energy += value else: value = 0 ...
26.307692
54
0.57115
bread_data = input().split('|') current_energy = 100 current_coins = 100 is_bankrupt = False for bread in bread_data: event, value = bread.split('-') value = int(value) if event == 'rest': if current_energy + value <= 100: current_energy += value else: value = 0 ...
0
0
0
0
0
0
0
0
0
cb8de96dd886075adc2fabf8400baa8b59b7de77
11,325
py
Python
.vimrc.py
chriswatrous/scripts
2f0b27d9a5852dbb41973d494a58df41fd9b1731
[ "MIT" ]
2
2015-12-17T03:42:24.000Z
2019-04-08T01:35:56.000Z
.vimrc.py
chriswatrous/scripts
2f0b27d9a5852dbb41973d494a58df41fd9b1731
[ "MIT" ]
null
null
null
.vimrc.py
chriswatrous/scripts
2f0b27d9a5852dbb41973d494a58df41fd9b1731
[ "MIT" ]
null
null
null
# Vim startup script written in python. import vim # Set this option first. vim.command('set nocompatible') vim.command('let loaded_matchparen = 1') # Clear mappings and auto commands in case we are reloading the file. vim.command('mapclear') vim.command('imapclear') vim.command('autocmd!') # General options # vim.c...
29.113111
78
0.59064
# Vim startup script written in python. import vim import sys import re # Set this option first. vim.command('set nocompatible') vim.command('let loaded_matchparen = 1') # Clear mappings and auto commands in case we are reloading the file. vim.command('mapclear') vim.command('imapclear') vim.command('autocmd!') # Ge...
0
0
0
0
0
6,270
0
-23
366
2d87f3c5d6796c0b990c1cce9c096f7009ee3874
2,670
py
Python
script.py
xenificity/Project-Hand_gesture_recognition
5d7b1b372ead94ef72e6cbeb797145a06288ee72
[ "MIT" ]
null
null
null
script.py
xenificity/Project-Hand_gesture_recognition
5d7b1b372ead94ef72e6cbeb797145a06288ee72
[ "MIT" ]
null
null
null
script.py
xenificity/Project-Hand_gesture_recognition
5d7b1b372ead94ef72e6cbeb797145a06288ee72
[ "MIT" ]
null
null
null
#Hand gesture recognition - deep learning project #Importing libraries import os import pandas as pd from sklearn import preprocessing os.chdir("D:/_IRRI-SOUTH ASIA/personal projects/hand_gesture_recognition_project/dataset") #Data Preprocessing train = pd.read_csv("sign_mnist_train.csv") test = pd.read_csv("sign_m...
26.176471
183
0.750187
#Hand gesture recognition - deep learning project #Importing libraries import os import pandas as pd import numpy as np import matplotlib.pyplot as plt from sklearn import preprocessing os.chdir("D:/_IRRI-SOUTH ASIA/personal projects/hand_gesture_recognition_project/dataset") #Data Preprocessing train = pd.read_csv...
0
0
0
0
0
164
0
6
66
9d452bf79b95da1c8e8492f627c35ec5b605f101
784
tac
Python
src/python/livecd.tac
nakedible/vpnease-l2tp
0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c
[ "WTFPL" ]
5
2015-04-16T08:36:17.000Z
2017-05-12T17:20:12.000Z
src/python/livecd.tac
nakedible/vpnease-l2tp
0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c
[ "WTFPL" ]
null
null
null
src/python/livecd.tac
nakedible/vpnease-l2tp
0fcda6a757f2bc5c37f4753b3cd8b1c6d282db5c
[ "WTFPL" ]
4
2015-03-19T14:39:51.000Z
2019-01-23T08:22:55.000Z
# -*- python -*- from twisted.application import strports, service from codebay.l2tpserver import constants from codebay.l2tpserver.webui import master, website application = service.Application('l2tpserver') webuimaster = master.LiveCdMaster() webuimaster.pre_start() webuiservice = master.LiveCdService(webuimaster...
34.086957
90
0.822704
# -*- python -*- from nevow import guard, inevow, appserver from twisted.application import strports, service from codebay.common import logger from codebay.l2tpserver import constants from codebay.l2tpserver.webui import master, website application = service.Application('l2tpserver') webuimaster = master.LiveCdMas...
0
0
0
0
0
0
0
33
45
f49e5f4658c51720e60e9c540b521395609817b7
839
py
Python
npdb/creation/basic.py
ryanwallace96/npdb
bcc34455d013a3cd11adddd5aa596364f70c2264
[ "MIT" ]
null
null
null
npdb/creation/basic.py
ryanwallace96/npdb
bcc34455d013a3cd11adddd5aa596364f70c2264
[ "MIT" ]
null
null
null
npdb/creation/basic.py
ryanwallace96/npdb
bcc34455d013a3cd11adddd5aa596364f70c2264
[ "MIT" ]
null
null
null
""" dbarray creators for simple, commonly-used contents. """ # db = npdb.dbarray((3,3,3), float) # bounds = db[0:3] # print "bounds", bounds # db = npdb.dbarray((10,), float) # bounds = db[2:5] # print "bounds", bounds # bounds = db[:-7] # print "bounds", bounds # bounds = db[1:7:2] # print "bounds", bounds # db ...
17.479167
67
0.573302
""" dbarray creators for simple, commonly-used contents. """ import npdb # db = npdb.dbarray((3,3,3), float) # bounds = db[0:3] # print "bounds", bounds # db = npdb.dbarray((10,), float) # bounds = db[2:5] # print "bounds", bounds # bounds = db[:-7] # print "bounds", bounds # bounds = db[1:7:2] # print "bounds", ...
0
0
0
0
0
0
0
-10
23
ac03447fa91f8611d5fe0dd728d4977e027170d7
761
py
Python
examples/crud_rest_api/app/api.py
jameslo1212/Flask-AppBuilder
b71789d85b632935eca79c0b53fb77f20bf17fe6
[ "BSD-3-Clause" ]
null
null
null
examples/crud_rest_api/app/api.py
jameslo1212/Flask-AppBuilder
b71789d85b632935eca79c0b53fb77f20bf17fe6
[ "BSD-3-Clause" ]
3
2021-06-08T23:39:54.000Z
2022-03-12T00:50:13.000Z
examples/crud_rest_api/app/api.py
jameslo1212/Flask-AppBuilder
b71789d85b632935eca79c0b53fb77f20bf17fe6
[ "BSD-3-Clause" ]
null
null
null
from . import db, appbuilder db.create_all() fill_gender() appbuilder.add_api(ContactModelApi) appbuilder.add_api(GroupModelApi)
21.138889
64
0.738502
from flask_appbuilder import ModelRestApi from flask_appbuilder.models.sqla.interface import SQLAInterface from . import db, appbuilder from .models import ContactGroup, Gender, Contact def fill_gender(): try: db.session.add(Gender(name='Male')) db.session.add(Gender(name='Female')) db.ses...
0
0
0
231
0
166
0
91
135
81bb3ad3e91d0cb3254cb03335464a152295896f
8,202
py
Python
SoundSourceLocalization/kws_detector.py
Forence1999/SmartWalker
635410bf44234eead9fd1e2fe226eb8eafa9d27d
[ "MIT" ]
null
null
null
SoundSourceLocalization/kws_detector.py
Forence1999/SmartWalker
635410bf44234eead9fd1e2fe226eb8eafa9d27d
[ "MIT" ]
null
null
null
SoundSourceLocalization/kws_detector.py
Forence1999/SmartWalker
635410bf44234eead9fd1e2fe226eb8eafa9d27d
[ "MIT" ]
null
null
null
""" This is a packet of KWS detection, dependent on DNN training part """ import pyaudio import os import sys # must have matching versions: llvmlite==0.22 numba==0.36.1 librosa==0.5 import librosa if __name__ == "__main__": # test kws module pwd = os.path.abspath(os.path.abspath(__file__)) fa...
33.341463
240
0.599
""" This is a packet of KWS detection, dependent on DNN training part """ import ctypes as ct import numpy as np import wave import math import matplotlib.pyplot as plt import pyaudio import os import sys from scipy.io import wavfile # must have matching versions: llvmlite==0.22 numba==0.36.1 librosa==0.5 ...
0
0
0
6,409
0
660
0
25
290
d5ee6e8e620a775d53a846ca5621232cc5efc0e8
402
py
Python
tests/test_all.py
zeek/zeekscript
9f48f8912c7f157e082d3d0ddfd9d749d9bb7592
[ "BSD-3-Clause" ]
null
null
null
tests/test_all.py
zeek/zeekscript
9f48f8912c7f157e082d3d0ddfd9d749d9bb7592
[ "BSD-3-Clause" ]
8
2022-03-15T00:45:03.000Z
2022-03-29T02:54:25.000Z
tests/test_all.py
zeek/zeekscript
9f48f8912c7f157e082d3d0ddfd9d749d9bb7592
[ "BSD-3-Clause" ]
1
2022-03-15T00:24:03.000Z
2022-03-15T00:24:03.000Z
#! /usr/bin/env python """Helper to run all available tests.""" import sys import test_formatting import test_dir_recursion import test_pylint if __name__ == '__main__': # Each test() call returns True if successful, so only exit with 0 when they # all succeed. sys.exit(not all(( test_formatting.t...
23.647059
80
0.669154
#! /usr/bin/env python """Helper to run all available tests.""" import sys import test_formatting import test_dir_recursion import test_pylint if __name__ == '__main__': # Each test() call returns True if successful, so only exit with 0 when they # all succeed. sys.exit(not all(( test_formatting.t...
0
0
0
0
0
0
0
0
0
6ff683785f28542f3e15a95d0a36c8da1adc5840
2,013
py
Python
src/Modules/Drivers/__init__.py
bopopescu/PyHouse_1
6444ed0b4c38ab59b9e419e4d54d65d598e6a54e
[ "MIT" ]
1
2016-09-21T19:30:21.000Z
2016-09-21T19:30:21.000Z
src/Modules/Drivers/__init__.py
bopopescu/PyHouse_1
6444ed0b4c38ab59b9e419e4d54d65d598e6a54e
[ "MIT" ]
null
null
null
src/Modules/Drivers/__init__.py
bopopescu/PyHouse_1
6444ed0b4c38ab59b9e419e4d54d65d598e6a54e
[ "MIT" ]
1
2020-07-23T11:13:36.000Z
2020-07-23T11:13:36.000Z
""" drivers/__init__.py @copyright: (C) 2012-2015 by D. Brian Kimmel The following terms apply to all files associated with the software unless explicitly disclaimed in individual files. The authors hereby grant permission to use, copy, modify, distribute, and license this software and its documentation for any pu...
38.711538
86
0.748137
""" drivers/__init__.py @copyright: (C) 2012-2015 by D. Brian Kimmel The following terms apply to all files associated with the software unless explicitly disclaimed in individual files. The authors hereby grant permission to use, copy, modify, distribute, and license this software and its documentation for any pu...
0
0
0
0
0
0
0
0
0
935b87265c93f3ac20da47126c1d760eb7e98f2c
55,220
py
Python
vivisect/tests/linux_arm_sh_data.py
wisdark/vivisect
2e2b6bb07774de18133bd36991fdb7258f622faf
[ "ECL-2.0", "Apache-2.0" ]
716
2015-01-01T14:41:11.000Z
2022-03-28T06:51:50.000Z
vivisect/tests/linux_arm_sh_data.py
wisdark/vivisect
2e2b6bb07774de18133bd36991fdb7258f622faf
[ "ECL-2.0", "Apache-2.0" ]
266
2015-01-01T15:07:27.000Z
2022-03-30T15:19:26.000Z
vivisect/tests/linux_arm_sh_data.py
wisdark/vivisect
2e2b6bb07774de18133bd36991fdb7258f622faf
[ "ECL-2.0", "Apache-2.0" ]
159
2015-01-01T16:19:44.000Z
2022-03-21T21:55:34.000Z
sh_data = { 'imports': [ (0x4949c, 4, 9, '*.recvfrom'), (0x494a0, 4, 9, '*.div'), (0x494a4, 4, 9, '*.fflush'), (0x494a8, 4, 9, '*.lchown'), (0x494ac, 4, 9, '*.statfs'), (0x494b0, 4, 9, '*.atof'), (0x494b4, 4, 9, '*.dup2'), (0x494b8, 4, 9, '*.strcasecmp...
39.052334
65
0.506773
sh_data = { 'imports': [ (0x4949c, 4, 9, '*.recvfrom'), (0x494a0, 4, 9, '*.div'), (0x494a4, 4, 9, '*.fflush'), (0x494a8, 4, 9, '*.lchown'), (0x494ac, 4, 9, '*.statfs'), (0x494b0, 4, 9, '*.atof'), (0x494b4, 4, 9, '*.dup2'), (0x494b8, 4, 9, '*.strcasecmp...
0
0
0
0
0
0
0
0
0
129f5dcc3164604d99aa1694b7c8db9d5e6a2ef6
189
py
Python
Python-Programming(icourse163.org)/7/7-5.py
takuron/Lesson
226078131d240d07d3b0025eaed8cdeba998a2c4
[ "MIT" ]
null
null
null
Python-Programming(icourse163.org)/7/7-5.py
takuron/Lesson
226078131d240d07d3b0025eaed8cdeba998a2c4
[ "MIT" ]
null
null
null
Python-Programming(icourse163.org)/7/7-5.py
takuron/Lesson
226078131d240d07d3b0025eaed8cdeba998a2c4
[ "MIT" ]
null
null
null
n=int(input()) m=int(input()) mlist=list(range(n)) result=[] for i in range(n): for j in range(m-1): mlist.append(mlist.pop(0)) result.append(mlist.pop(0)) print(result)
14.538462
34
0.613757
n=int(input()) m=int(input()) mlist=list(range(n)) result=[] for i in range(n): for j in range(m-1): mlist.append(mlist.pop(0)) result.append(mlist.pop(0)) print(result)
0
0
0
0
0
0
0
0
0
fbef01705d8b780cea9ec48200e8c85aedb4e4a7
193,504
py
Python
ElasticEmailClient.py
ElasticEmail/ElasticEmail.WebApiClient-python
01ff2a0fb1c7b95a5d5752f21116c15c87f23e75
[ "MIT" ]
6
2018-05-15T20:42:44.000Z
2021-04-14T06:47:32.000Z
ElasticEmailClient.py
ElasticEmail/ElasticEmail.WebApiClient-python
01ff2a0fb1c7b95a5d5752f21116c15c87f23e75
[ "MIT" ]
3
2019-10-20T23:36:12.000Z
2019-11-06T07:04:35.000Z
ElasticEmailClient.py
ElasticEmail/ElasticEmail.WebApiClient-python
01ff2a0fb1c7b95a5d5752f21116c15c87f23e75
[ "MIT" ]
8
2017-05-21T13:16:26.000Z
2020-05-05T07:26:51.000Z
""" The MIT License (MIT) Copyright (c) 2016-2017 Elastic Email, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, mo...
25.690919
692
0.691691
""" The MIT License (MIT) Copyright (c) 2016-2017 Elastic Email, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, mo...
3
116,048
0
71,545
0
0
0
-6
3,963
6ffa0c2cd4f8ed46f86f6ebdbf0651b797e38115
2,051
py
Python
Python with functions/vehicles.py
marcosamos/Python-tasks-and-proyects
00426323647639016a407c40af1fd00f35ea2229
[ "MIT" ]
null
null
null
Python with functions/vehicles.py
marcosamos/Python-tasks-and-proyects
00426323647639016a407c40af1fd00f35ea2229
[ "MIT" ]
null
null
null
Python with functions/vehicles.py
marcosamos/Python-tasks-and-proyects
00426323647639016a407c40af1fd00f35ea2229
[ "MIT" ]
null
null
null
# vehicles.py # Copyright 2020, Brigham Young University - Idaho. All rights reserved. # If this file was executed like this: # > python teach_solution.py # then call the main function. However, if this file # was simply imported, then skip the call to main. if __name__ == "__main__": main()
40.215686
76
0.648952
# vehicles.py # Copyright 2020, Brigham Young University - Idaho. All rights reserved. def main(): # Create a dictionary that contains data about six vehicles. # The key for each vehicle in the dictionary is the vehicle's # identification number (VIN). The value for each vehicle is # a list that contai...
0
0
0
0
0
1,729
0
0
23
35cf1fcd400e64a55b582f49756ac807a8049baa
1,412
py
Python
uitls/get_tweets.py
Araon/Sadhu-Kamra
daf99d9d4ccb4e1f39d98ce9296fc774a9562fc0
[ "MIT" ]
null
null
null
uitls/get_tweets.py
Araon/Sadhu-Kamra
daf99d9d4ccb4e1f39d98ce9296fc774a9562fc0
[ "MIT" ]
null
null
null
uitls/get_tweets.py
Araon/Sadhu-Kamra
daf99d9d4ccb4e1f39d98ce9296fc774a9562fc0
[ "MIT" ]
null
null
null
import sys #Twitter API credentials consumer_key = "" consumer_secret = "" access_key = "" access_secret = "" if __name__ == '__main__': #pass in the username of the account you want to download get_all_tweets(sys.argv[1])
30.042553
89
0.684136
import tweepy import sys import json #Twitter API credentials consumer_key = "" consumer_secret = "" access_key = "" access_secret = "" def get_all_tweets(screen_name): #Twitter only allows access to a users most recent 3240 tweets with this method alltweets = [] auth = tweepy.OAuthHandler(consumer_k...
0
0
0
0
0
1,134
0
-18
68