blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9c3898401073d0b579095b6d8def453376e220b0 | 85c7be8904ce443eb7666aa338f4a03aec73a8d8 | /test/run_test.py | a8de9a716a8134201df89fc2940c6c560f0133a5 | [
"MIT"
] | permissive | naz947/nlpaug | 6c9fc8223e7933775b628ede220d8119dd9240ac | ee508e88a2dbe66ca7b05eb2491c20ca49e3aef7 | refs/heads/master | 2020-05-20T13:16:35.618003 | 2019-05-02T02:50:16 | 2019-05-02T02:50:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | import unittest
if __name__ == '__main__':
test_dirs = [
# 'test/augmenter/char/',
# 'test/augmenter/word/',
'test/augmenter/spectrogram/',
'test/flow/'
]
runner = unittest.TextTestRunner()
for test_dir in test_dirs:
loader = unittest.TestLoader()
suit... | [
"makcedward@gmail.com"
] | makcedward@gmail.com |
6733dbf2e59a135a057a56d9eee35b59737f3702 | e1950865f000adc926f228d84131e20b244b48f6 | /python/Array/Difference_largest&smallest_value.py | 8abca0f2e09d3273617df883d8b580c0038b9e95 | [] | no_license | manastole03/Programming-practice | c73859b13392a6a1036f557fa975225672fb1e91 | 2889dc94068b8d778f6b0cf516982d7104fa2318 | refs/heads/master | 2022-12-06T07:48:47.237014 | 2020-08-29T18:22:59 | 2020-08-29T18:22:59 | 281,708,273 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | array=[]
n=int(input('How many elements u want in array: '))
for i in range(n):
f= int(input('Enter no: '))
array.append(f)
print('Entered array: ',array)
if len(array)>=1:
max1=max(array)
min1 = min(array)
diff=max1-min1
print('The difference of largest &smallest value from array: ',diff)
| [
"noreply@github.com"
] | manastole03.noreply@github.com |
4e1634773b2a14ec7748b2f1e814115299f79cb7 | 744594f30c5e283f6252909fc68102dd7bc61091 | /2020/24/2020_day_24_1.py | 245b430c35de9e6f604111ab201b953f313c1c1d | [
"MIT"
] | permissive | vScourge/Advent_of_Code | 84f40c76e5dc13977876eea6dbea7d05637de686 | 36e4f428129502ddc93c3f8ba7950aed0a7314bb | refs/heads/master | 2022-12-20T22:12:28.646102 | 2022-12-15T22:16:28 | 2022-12-15T22:16:28 | 160,765,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,010 | py | """
--- Day 24: Lobby Layout ---
Your raft makes it to the tropical island; it turns out that the small crab was an excellent navigator.
You make your way to the resort.
As you enter the lobby, you discover a small problem: the floor is being renovated. You can't even reach the
check-in desk until they've finished i... | [
"adam.pletcher@gmail.com"
] | adam.pletcher@gmail.com |
24bd168a6115316ace8b48edc0afa61f7aac6c80 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnural.py | b7c94e1d4c00f113af7a8b0a0ae5eb3e11df83b9 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 161 | py | ii = [('AubePRP2.py', 1), ('CarlTFR.py', 1), ('CoolWHM.py', 3), ('GilmCRS.py', 1), ('WestJIT2.py', 1), ('CoolWHM3.py', 2), ('StorJCC.py', 1), ('JacoWHI2.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
06fa9bef1f87a28a6e7fa0953a214270b2aaadfe | 2845f06c6be4262e9a5e56ebf407d824543f42cc | /tests/test_roles_pages_database.py | 6275f1d40dd5252fb381f743fe2eef31f78d63e0 | [
"CC0-1.0"
] | permissive | silky/WALKOFF | 42c315b35aadf42dc5f31074b7b6eff441338f61 | d4f4afad47e8c57b71647175978650520c061f87 | refs/heads/master | 2021-08-31T15:10:11.347414 | 2017-12-20T15:22:59 | 2017-12-20T15:22:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,415 | py | import unittest
from server.database import db, Role, ResourcePermission, default_resources
class TestRoles(unittest.TestCase):
@classmethod
def setUpClass(cls):
import server.flaskserver
cls.context = server.flaskserver.app.test_request_context()
cls.context.push()
db.create_... | [
"Tervala_Justin@bah.com"
] | Tervala_Justin@bah.com |
aabcf429ef53a8ac43a20aa0dedcc5f2bbefab71 | 27e890f900bd4bfb2e66f4eab85bc381cf4d5d3f | /tests/unit/modules/remote_management/oneview/test_oneview_ethernet_network_info.py | 566e168bfb951fa3ff89894ff981cfced17feebf | [] | no_license | coll-test/notstdlib.moveitallout | eb33a560070bbded5032385d0aea2f3cf60e690b | 0987f099b783c6cf977db9233e1c3d9efcbcb3c7 | refs/heads/master | 2020-12-19T22:28:33.369557 | 2020-01-23T18:51:26 | 2020-01-23T18:51:26 | 235,865,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,645 | py | # Copyright (c) 2016-2017 Hewlett Packard Enterprise Development LP
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from ansible_collections.notstdlib.moveitallout.tests.unit.compat import unittest
from .oneview_module_loader import EthernetNetworkInfoModule
from .hpe_test... | [
"wk@sydorenko.org.ua"
] | wk@sydorenko.org.ua |
d05e46ed8437f7d527414745aa1d21a565f77bcf | 2c4763aa544344a3a615f9a65d1ded7d0f59ae50 | /playground/maxjobs2/compute/look_busy.py | 1efd78e04fb1aacdaf55a0b72015541ac14e3022 | [] | no_license | afeldman/waf | 572bf95d6b11571bbb2941ba0fe463402b1e39f3 | 4c489b38fe1520ec1bc0fa7e1521f7129c20f8b6 | refs/heads/master | 2021-05-09T18:18:16.598191 | 2019-03-05T06:33:42 | 2019-03-05T06:33:42 | 58,713,085 | 0 | 0 | null | 2016-05-13T07:34:33 | 2016-05-13T07:34:33 | null | UTF-8 | Python | false | false | 161 | py | #! /usr/bin/env python
import sys, time
loops = int(sys.argv[1])
if not loops:
time.sleep(1)
pass
else:
for i in range(loops):
time.sleep(1)
| [
"anton.feldmann@outlook.de"
] | anton.feldmann@outlook.de |
58b4b646201129910d97928a3ebbcb3ee03945ce | e04dbc32247accf073e3089ed4013427ad182c7c | /ABC116/ABC116Canother.py | b53f770c6c899ccae48911c0efb0f9a92ef13287 | [] | no_license | twobooks/atcoder_training | 9deb237aed7d9de573c1134a858e96243fb73ca0 | aa81799ec87cc9c9d76de85c55e99ad5fa7676b5 | refs/heads/master | 2021-10-28T06:33:19.459975 | 2021-10-20T14:16:57 | 2021-10-20T14:16:57 | 233,233,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 959 | py | # from math import factorial,sqrt,ceil,gcd
# from itertools import permutations as permus
# from collections import deque,Counter
# import re
# from functools import lru_cache # 簡単メモ化 @lru_cache(maxsize=1000)
# from decimal import Decimal, getcontext
# # getcontext().prec = 1000
# # eps = Decimal(10) ** (-100)
# impor... | [
"twobookscom@gmail.com"
] | twobookscom@gmail.com |
281bea9f30ded0b2fb8d1e0706f225679bb9f704 | 5ca5a7120c3c147b3ae86c2271c60c82745997ea | /my_python/my_selenium/base/test_13_download.py | fd85ceb34ea10aa5513974884abf4560202e7507 | [] | no_license | JR1QQ4/auto_test | 6b9ea7bd317fd4338ac0964ffd4042b293640af3 | 264b991b4dad72986e2aeb1a30812baf74e42bc6 | refs/heads/main | 2023-03-21T01:32:29.192030 | 2021-03-16T14:07:11 | 2021-03-16T14:07:11 | 321,591,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | #!/usr/bin/python
# -*- coding:utf-8 -*-
import os
from selenium import webdriver
options = webdriver.ChromeOptions()
prefs = {'profile.default_content_settings.popups': 0,
'download.default_directory': os.getcwd()}
options.add_experimental_option('prefs', prefs)
driver = webdriver.Chrome(chrome_options=optio... | [
"chenjunrenyx@163.com"
] | chenjunrenyx@163.com |
3f1d5036eb1e0ed7004a294759da99858e649cde | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/458/usersdata/323/109641/submittedfiles/programa.py | ad68b922ad244e7ce1ace15c98e16edce333698a | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | # -*- coding: utf-8 -*-
import numpy as np
soma=0
pesos=[]
while True:
n=int(input('Digite a dimensão do tabuleiro(n>=3): '))
if n>=3:
break
a=np.zeros((n,n))
for i in range(0,n,1):
for j in range(0,n,1):
a[i,j]= int(input('Digite o elemento da matriz: '))
somalin=0
somacol=0
for i... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
c019752c841e55e8463b38905d9be4765ca6ac17 | 860628a9330d18d5c803c24eb314bd3756411c32 | /tweet-sentiment-extraction/src/conf/model_config_roberta.py | 0c483b4a10fbccb760230e605508629ed3980f27 | [] | no_license | yphacker/kaggle | fb24bdcc88d55c2a9cee347fcac48f13cb30ca45 | fd3c1c2d5ddf53233560ba4bbd68a2c5c17213ad | refs/heads/master | 2021-07-11T00:22:04.472777 | 2020-06-10T17:01:51 | 2020-06-10T17:01:51 | 145,675,378 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | # coding=utf-8
# author=yphacker
import os
from conf import config
from tokenizers import ByteLevelBPETokenizer
model_name = 'roberta'
# pretrain_model_name = 'roberta-base'
pretrain_model_name = 'roberta-large'
pretrain_model_path = os.path.join(config.input_path, pretrain_model_name)
tokenizer = ByteLevelBPETokeni... | [
"yphacker@163.com"
] | yphacker@163.com |
00edb4322460d93f2d3711152adb763567f1e9d3 | ad69e42fbe0cdb27406497855885ad7fcdad55aa | /lib/ViDE/Shell/InstallTools.py | f58a12f3aa13c051b39a1d892257bbef56bfd256 | [] | no_license | pombredanne/ViDE | 880b921a8240bbc9ac136f98bf4a12662684a5d1 | 0ec9860a9ebccc7bcc62e8fb39d6ebbc196c1360 | refs/heads/master | 2021-01-22T17:15:20.518689 | 2013-03-23T22:10:04 | 2013-03-23T22:10:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,769 | py | from Misc import InteractiveCommandLineProgram as ICLP
from ViDE import Log
from ViDE.Core.Action import CompoundException
from ViDE.Core.ExecutionReport import ExecutionReport
from ViDE.Context import Context
class InstallTools( ICLP.Command ):
def __init__( self, program ):
ICLP.Command.__init__( self, ... | [
"vincent@vincent-jacques.net"
] | vincent@vincent-jacques.net |
e3dcbf63e2b1ef8d9c2004697f7e2841b4f570ac | 139780fb3effe57428c21764a799e18bc454dee9 | /app/app.py | a1acbe5e64f0f9594989036648a2d81f46cf2eb5 | [
"Apache-2.0"
] | permissive | naqintosh/dl | e239d8cb2fc59cb6d0bea37b40aa4d4c7da4c6f2 | 3615b78b5fd7a7808a49bb0b9124b41842100a2e | refs/heads/master | 2022-08-19T05:02:28.229105 | 2020-05-30T20:26:45 | 2020-05-30T20:26:45 | 256,092,284 | 0 | 0 | Apache-2.0 | 2020-05-30T21:36:12 | 2020-04-16T02:47:06 | Python | UTF-8 | Python | false | false | 10,815 | py | import io
import inspect
from importlib.util import spec_from_file_location, module_from_spec
import os
import sys
from contextlib import redirect_stdout
from flask import Flask
from flask import request
from flask import jsonify
import core.simulate
import slot.a
import slot.d
import slot.w
from core.afflic import A... | [
"wildshinobu@gmail.com"
] | wildshinobu@gmail.com |
00fc9864ba2b2d84933b7b3eacee03e80f648546 | 71c0121fb47df8ce11f33e7617dd262525ffea81 | /orderlunch/project/foodshop/wsgi.py | 008cc0e18f40efc3371b3a2d20e04c4c5b782c6f | [] | no_license | igor35hh/PythonTraining | 33d09b045b0f8676f23a5b43410aaa6a7c6a5631 | 020bc274bba0ffb70f1cdc45e18ea8b6467110fb | refs/heads/master | 2021-05-01T23:46:54.919344 | 2018-03-11T21:30:30 | 2018-03-11T21:30:30 | 77,922,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | """
WSGI config for foodshop project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SET... | [
"igor35hh@gmail.com"
] | igor35hh@gmail.com |
50c6a00dfd95ff6c1120ee95bc98fc84f8de9851 | 269a82e7f8702acf495d7d8d446594f4f23a3ced | /whispers/apps.py | c97bdb8ab8f5589a19ea09f654a71132445cf5e8 | [
"MIT"
] | permissive | cbroms/telematicEnvironment | 8cfbc9515594f0275c6fe91b450b7d43fb811bb0 | 6b3130347cad06c6b3aa453010c91d9990bc9cb8 | refs/heads/master | 2021-06-19T23:52:19.943721 | 2020-01-18T16:13:01 | 2020-01-18T16:13:01 | 150,203,122 | 0 | 0 | MIT | 2021-06-10T20:51:01 | 2018-09-25T03:35:00 | JavaScript | UTF-8 | Python | false | false | 91 | py | from django.apps import AppConfig
class WhispersConfig(AppConfig):
name = 'whispers'
| [
"cb@christianbroms.com"
] | cb@christianbroms.com |
2b321f3e9f564f12d0040086f7d63bdaa06e9062 | b24e45267a8d01b7d3584d062ac9441b01fd7b35 | /Usuario/.history/serializers_20191103100253.py | a533fa8f2dba6f7033a69b0426c8326793d51d3a | [] | no_license | slalbertojesus/merixo-rest | 1707b198f31293ced38930a31ab524c0f9a6696c | 5c12790fd5bc7ec457baad07260ca26a8641785d | refs/heads/master | 2022-12-10T18:56:36.346159 | 2020-05-02T00:42:39 | 2020-05-02T00:42:39 | 212,175,889 | 0 | 0 | null | 2022-12-08T07:00:07 | 2019-10-01T18:56:45 | Python | UTF-8 | Python | false | false | 1,033 | py | from rest_framework import serializers
from django.db import models
from .models import Usuario
class UsuarioSerializer(serializers.ModelSerializer):
contraseñaConfirmacion = serializers.CharField(style={'input_type':'password'}, write_only= True)
class Meta:
model = Usuario
fie... | [
"slalbertojesus@gmail.com"
] | slalbertojesus@gmail.com |
caa393008241d3cd3ea683c33ff81cd65a23c46b | 207e93eca4bc1a9bb66d94820a52f51e3626db22 | /1024文章/test.py | 29bf11b6bac61b5a445e0c5f257659bd1630c59d | [] | no_license | 99tian/Python-spider | 055d19ab72b3cd2f0ed3da187920e52edddf8c24 | 8718f75fbe95ad37105212a437279de107995fb8 | refs/heads/master | 2020-06-26T07:19:36.827530 | 2019-07-29T11:36:22 | 2019-07-29T11:36:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,114 | py | import requests
import re
new_url = "https://1024.fil6.tk/htm_data/1907/16/3586699.html"
header = {
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36",
"cookie": "__cfduid=d991240ded8f691413d0a5238e78525ee1563844869; UM_distinctid... | [
"15670339118@qq.com"
] | 15670339118@qq.com |
35c350e7307608d6ea6d0e070989b6efc28cdd32 | 8bd1cc4e963766d34f635d870e2ad792afdc6ae1 | /0x01-python-if_else_loops_functions/12-fizzbuzz.py | 26d488fac778767d9b279079df2e61f5a24ca59b | [] | no_license | nildiert/holbertonschool-higher_level_programming | 71e6747163a04510b056b898503213c90419e5dc | 5e9ea8cd2f2d0ed01e65e6866d4df751f7771099 | refs/heads/master | 2021-07-06T06:21:01.143189 | 2020-09-22T17:45:26 | 2020-09-22T17:45:26 | 184,036,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | #!/usr/bin/python3
def fizzbuzz():
for i in range(1, 101):
if (i % 3 != 0 and i % 5 != 0):
print("{:d}".format(i), end=' ')
else:
print("{}".format("Fizz" if ((i % 3) == 0) else ""), end='')
print("{}".format("Buzz" if ((i % 5) == 0) else ""), end=' ')
| [
"niljordan23@gmail.com"
] | niljordan23@gmail.com |
6bffacdc5e48bcf1112d0cf9725bcc9795592413 | 933833285c122fea63e2397717469a9701139e7b | /app/api/patients/actions/put_patient.py | 822af27482bdc004b7e6811b65c32ce5212583b3 | [] | no_license | borgishmorg/mis-backend | ea4371b7ae5ebb46b7cd0c9eb26640c47dc67656 | f4dbcbfb8c9af717e54eadab24a1dfee3e537cee | refs/heads/master | 2023-05-31T05:02:18.947337 | 2021-06-11T22:55:01 | 2021-06-11T22:55:01 | 361,906,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | from fastapi import Depends, Path, HTTPException, status
from app.dependencies import token_payload, TokenPayload, Permission
from ..controller import PatientsController, PatientDoesNotExistException
from ..schemas import Patient, PatientIn
def put_patient(
patient_in: PatientIn,
id: int = Path(...),
pati... | [
"43957407+borgishmorg@users.noreply.github.com"
] | 43957407+borgishmorg@users.noreply.github.com |
83940fd7a2aaea529631f8864801e929ecc5f18f | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_narrower.py | dd7f198f8464d92004e1bced39ed083f41cb636d | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py |
from xai.brain.wordbase.adjectives._narrow import _NARROW
#calss header
class _NARROWER(_NARROW, ):
def __init__(self,):
_NARROW.__init__(self)
self.name = "NARROWER"
self.specie = 'adjectives'
self.basic = "narrow"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
759dfb6d81f3985f988c86f63623e57a5662a124 | 2e8643fa9f4e2c93469569ad700544cf518d1c79 | /colmena/xtb-active-learning-debug/run.py | 8a3d23a43d653bef1ccdb2e7193bdcafe5d96292 | [] | no_license | exalearn/electrolyte-design | f8cdef032c24ab77495f3019854d4be946e45f27 | ef9e586e89053d1f6bea541717db8be43dbce0a4 | refs/heads/master | 2022-11-05T17:18:33.485938 | 2022-10-31T13:07:22 | 2022-10-31T13:07:22 | 212,376,159 | 4 | 1 | null | 2022-01-17T17:33:28 | 2019-10-02T15:27:28 | Jupyter Notebook | UTF-8 | Python | false | false | 27,591 | py | from threading import Event, Semaphore
from typing import List
from functools import partial, update_wrapper
from pathlib import Path
from datetime import datetime
from queue import Queue
import argparse
import logging
import hashlib
import json
import sys
import os
import rdkit
import numpy as np
import pandas as pd
... | [
"ward.logan.t@gmail.com"
] | ward.logan.t@gmail.com |
68e5a38491a77f0069d982c1c17594d41e32c283 | ddf2e85b8e8fda8cbaf92fc79a53abdb962c8bde | /tests/violated/2225_regression/0.py | 1ec803ab695356b4701513cb8e2f5bb9266fef43 | [
"Apache-2.0"
] | permissive | p4gauntlet/toz3 | 359bd20bdc8fe2b7ccf3564a90988823d94df078 | 0fddd9e21ac7b80e4a0bf8a4e6b1bdcc01308724 | refs/heads/master | 2023-05-11T17:23:10.972917 | 2023-05-09T16:02:56 | 2023-05-09T16:02:56 | 329,900,719 | 4 | 0 | Apache-2.0 | 2023-02-22T23:28:49 | 2021-01-15T12:03:53 | Python | UTF-8 | Python | false | false | 21,670 | py | from p4z3 import *
def p4_program(prog_state):
prog_state.declare_global(
Enum( "error", ["NoError", "PacketTooShort", "NoMatch", "StackOutOfBounds", "HeaderTooShort", "ParserTimeout", "ParserInvalidArgument", ])
)
prog_state.declare_global(
P4Extern("packet_in", type_params=[], methods=[... | [
"noreply@github.com"
] | p4gauntlet.noreply@github.com |
1324f492677704a221972cd8a2be003c924f9c79 | 608bc4314c5d91744c0731b91882e124fd44fb9a | /protomol-test/MDLTests/data/XYZTest.py | 19bd5d247903a2a89a0b393778ccf410bdf2e151 | [] | no_license | kuangchen/ProtoMolAddon | bfd1a4f10e7d732b8ed22d38bfa3c7d1f0b228c0 | 78c96b72204e301d36f8cbe03397f2a02377279f | refs/heads/master | 2021-01-10T19:55:40.467574 | 2015-06-09T21:18:51 | 2015-06-09T21:18:51 | 19,328,104 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | # USING THE NEW STRUCTURE
from MDL import *
# PHYSICAL
phys = Physical()
io = IO()
io.readPDBPos(phys, "data/alanine.pdb")
io.readPSF(phys, "data/alanine.psf")
io.readPAR(phys, "data/alanine.par")
phys.bc = "Vacuum"
phys.cellsize = 5
phys.exclude = "scaled1-4"
phys.temperature = 300
phys.seed = 1234
# FORCES
forces ... | [
"kuangchen@ucla.edu"
] | kuangchen@ucla.edu |
feb6ea6de93053f94bd6847ba66ec91a7becadda | 86a03fa5371909a8ae8a5df02414753ab7826136 | /polls/views.py | 2283ef7746d3a557add5e2e8105a6f2efeec0f32 | [] | no_license | lnvc/backup | dc6fc1503f7b691f7533e086afba49243cc18a27 | aec426cafcf6966bf333e5d7ea3cb59ae71c23c5 | refs/heads/master | 2020-03-23T22:08:44.042727 | 2018-07-24T12:41:12 | 2018-07-24T12:41:12 | 142,156,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,986 | py | from django.http import HttpResponseRedirect
from django.shortcuts import get_object_or_404, render
from django.urls import reverse
from django.views import generic
from django.utils import timezone
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status, ... | [
"you@example.com"
] | you@example.com |
d95520c50cf58eb54fb6a5be256649eab0022be7 | deb826125ca2f3959d30598aedd5919eea76e2d7 | /probabilistic_automata/distributions.py | 96b7cb728e312035c9fdbd8b45cad4d33791ea10 | [
"MIT"
] | permissive | pangzhan27/probabilistic_automata | 2fc77bc81381a303b48a5e2f98a5dac32dd689a0 | ac04e3c142688b1f66bea086c2779061d0c5d9b7 | refs/heads/master | 2023-03-17T13:20:05.148389 | 2020-10-27T05:31:39 | 2020-10-27T05:31:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,204 | py | from __future__ import annotations
import random
from typing import Callable, Mapping, Set, Union
from itertools import product
import attr
from dfa.dfa import Letter, State
Action = Letter
@attr.s(frozen=True, auto_attribs=True)
class ExplicitDistribution:
"""Object representing a discrete distribution over... | [
"mvc@linux.com"
] | mvc@linux.com |
af5cb3d4ba037f04b21027d29eb8310732d8e2c5 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /5KqHNS9wS97zN7Xyy_24.py | 9056e0dc650712661fa2dd8e680363a1a547a6fc | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py |
def top_note(student):
top = max(student["notes"])
student.pop("notes")
student["top_note"] = top
return student
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
650ce6e69bd38870e944308884c26a7866b15c9e | 50afc0db7ccfc6c80e1d3877fc61fb67a2ba6eb7 | /challenge3(yeartocentury)/Isaac.py | ebec690b0b53c6daeb10860c12db594d25ff2bf0 | [
"MIT"
] | permissive | banana-galaxy/challenges | 792caa05e7b8aa10aad8e04369fc06aaf05ff398 | 8655c14828607535a677e2bb18689681ee6312fa | refs/heads/master | 2022-12-26T23:58:12.660152 | 2020-10-06T13:38:04 | 2020-10-06T13:38:04 | 268,851,516 | 11 | 8 | MIT | 2020-09-22T21:21:30 | 2020-06-02T16:24:41 | Python | UTF-8 | Python | false | false | 163 | py | def yearToCentury(year):
tmp = year/100
if not tmp.is_integer():
century = int(tmp) + 1
else:
century = int(tmp)
return century | [
"cawasp@gmail.com"
] | cawasp@gmail.com |
9bf65574b384aa67fe6a8e1a0886f8d1d618b557 | c6588d0e7d361dba019743cacfde83f65fbf26b8 | /x12/5030/270005030.py | 5f04838af1dae128686436547fdfee1244dd5f23 | [] | no_license | djfurman/bots-grammars | 64d3b3a3cd3bd95d625a82204c3d89db6934947c | a88a02355aa4ca900a7b527b16a1b0f78fbc220c | refs/heads/master | 2021-01-12T06:59:53.488468 | 2016-12-19T18:37:57 | 2016-12-19T18:37:57 | 76,887,027 | 0 | 0 | null | 2016-12-19T18:30:43 | 2016-12-19T18:30:43 | null | UTF-8 | Python | false | false | 1,326 | py | from bots.botsconfig import *
from records005030 import recorddefs
syntax = {
'version' : '00403', #version of ISA to send
'functionalgroup' : 'HS',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BHT', MIN: 1, MAX: 1},
{ID: 'HL', MIN: 1, MAX: 99999, LE... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
ac339d72416eae3e5bbcc4fd5d4f226aa27e9c3d | 951a84f6fafa763ba74dc0ad6847aaf90f76023c | /P2/ZS103_2.py | ab42cb20c9766cacd43b87fbb837e2183593b473 | [] | no_license | SakuraGo/leetcodepython3 | 37258531f1994336151f8b5c8aec5139f1ba79f8 | 8cedddb997f4fb6048b53384ac014d933b6967ac | refs/heads/master | 2020-09-27T15:55:28.353433 | 2020-02-15T12:00:02 | 2020-02-15T12:00:02 | 226,550,406 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,780 | py | # 909. 蛇梯棋
# 在一块 N x N 的棋盘 board 上,从棋盘的左下角开始,每一行交替方向,按从 1 到 N*N 的数字给方格编号。例如,对于一块 6 x 6 大小的棋盘,可以编号如下:
# 玩家从棋盘上的方格 1 (总是在最后一行、第一列)开始出发。
#
# 每一次从方格 x 起始的移动都由以下部分组成:
#
# 你选择一个目标方块 S,它的编号是 x+1,x+2,x+3,x+4,x+5,或者 x+6,只要这个数字 <= N*N。
# 如果 S 有一个蛇或梯子,你就移动到那个蛇或梯子的目的地。否则,你会移动到 S。
# 在 r 行 c 列上的方格里有 “蛇” 或 “梯子”;如果 board[r][c] != -1,那... | [
"452681917@qq.com"
] | 452681917@qq.com |
dc64082107082a4f160588b00be0abeb5d516633 | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/uhabits/testcase/firstcases/testcase7_014.py | 2f2ec0fff145e0b56af49965d81293bb7e30f162 | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,784 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
8d949557ef10722cedbae45f3fd2a9d282ab3f43 | e588da296dd6ec3bedee9d24444dfca6e8780aef | /zip.py | 28af78f6e23bf9a9807804c1dec5fd9415d28c26 | [] | no_license | sujith1919/TCS-Python | 98eac61a02500a0e8f3139e431c98a509828c867 | c988cf078616540fe7f56e3ebdfd964aebd14519 | refs/heads/master | 2023-03-02T09:03:10.052633 | 2021-02-02T16:40:18 | 2021-02-02T16:40:18 | 335,355,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | import zipfile
# Create zip file
f = zipfile.ZipFile('test.zip', 'w')
# add some files
f.write('file1.txt')
# add file as a new name
f.write('file2.txt', 'file-two.txt')
# add content from program (string)
f.writestr('file3.txt', 'Hello how are you')
# flush and close
f.close() | [
"jayarajan.sujith@oracle.com"
] | jayarajan.sujith@oracle.com |
a759ee12bac0d12f6a9906296363dc9ddf2ce2e0 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/sbss_1219+551a/sdB_sbss_1219+551a_coadd.py | cda740b4da8b1b88c24b94f699a32d9f50cfa24e | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[185.475792,54.846639], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_sbss_1219+551a/sdB_sbss_1219+551a_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/s... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
5b0fcb23f5d7e62a3e96dbbe59aea8ed206d81ac | 65329299fca8dcf2e204132624d9b0f8f8f39af7 | /napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/bgp/global_/afi_safis/afi_safi/use_multiple_paths/__init__.py | b00cd176160b104741be976eb6b48c1a6149a998 | [
"Apache-2.0"
] | permissive | darylturner/napalm-yang | bf30420e22d8926efdc0705165ed0441545cdacf | b14946b884ad2019b896ee151285900c89653f44 | refs/heads/master | 2021-05-14T12:17:37.424659 | 2017-11-17T07:32:49 | 2017-11-17T07:32:49 | 116,404,171 | 0 | 0 | null | 2018-01-05T16:21:37 | 2018-01-05T16:21:36 | null | UTF-8 | Python | false | false | 25,284 | py |
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from decimal import Decimal
from bitarray import bitar... | [
"dbarrosop@dravetech.com"
] | dbarrosop@dravetech.com |
81a2c8da318194cf868c51bd344f3defcc47b246 | 9d611e18ef40e96ed852f2b7cf7842dc3de33e18 | /examples/django_demo/mysite/settings.py | 8b59f1fc45b7f0e842aa521c47d8b8fad7bd049f | [] | no_license | dantezhu/xstat | 03cc39923d3d33a75e2a38801ee5f7eabf3b33cf | cc92e1d860abdaf6e4304127edfe595e3fcbf308 | refs/heads/master | 2023-04-13T15:23:02.398594 | 2023-04-08T17:21:26 | 2023-04-08T17:21:26 | 34,090,855 | 1 | 2 | null | 2018-06-02T07:50:37 | 2015-04-17T01:52:58 | Python | UTF-8 | Python | false | false | 2,073 | py | """
Django settings for mysite project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
imp... | [
"dantezhu@qq.com"
] | dantezhu@qq.com |
95a39df1b8dec23d1064ab63236ad790d07a8ed9 | 3b84c4b7b16ccfd0154f8dcb75ddbbb6636373be | /google-cloud-sdk/lib/googlecloudsdk/third_party/apis/ml/v1alpha3/ml_v1alpha3_client.py | c537f1ec3c1707fd84ca86c65aaa15c0a138636f | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | twistedpair/google-cloud-sdk | 37f04872cf1ab9c9ce5ec692d2201a93679827e3 | 1f9b424c40a87b46656fc9f5e2e9c81895c7e614 | refs/heads/master | 2023-08-18T18:42:59.622485 | 2023-08-15T00:00:00 | 2023-08-15T12:14:05 | 116,506,777 | 58 | 24 | null | 2022-02-14T22:01:53 | 2018-01-06T18:40:35 | Python | UTF-8 | Python | false | false | 23,755 | py | """Generated client library for ml version v1alpha3."""
# NOTE: This file is autogenerated and should not be edited by hand.
from apitools.base.py import base_api
from googlecloudsdk.third_party.apis.ml.v1alpha3 import ml_v1alpha3_messages as messages
class MlV1alpha3(base_api.BaseApiClient):
"""Generated client li... | [
"joe@longreen.io"
] | joe@longreen.io |
22d637c796c8f43e52c4175e5c7ca2bbe816a6d7 | 23eb09e0054f64b53fb447ec14449a63bc0a092d | /misc_Functions.py | c9561a411fa573151bbff8450b9e50d892d340d5 | [] | no_license | bopopescu/External-Ports | 180574c51abd7b4672864469fbf52a5ca14fc72d | bc518f6738f42aa70217af9c39c2f327d03b52b2 | refs/heads/master | 2022-11-29T14:34:07.663767 | 2020-03-12T20:36:49 | 2020-03-12T20:36:49 | 281,930,192 | 0 | 0 | null | 2020-07-23T11:14:29 | 2020-07-23T11:14:28 | null | UTF-8 | Python | false | false | 15,946 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Aug 09 14:11:14 2017
@author: v-stpurc
"""
from openpyxl import load_workbook
def reversed_string(a_string):
return a_string[::-1]
def parseFileName(fileName):
str_Length = len(fileName)
str_rev = reversed_string(fileName)
# rev_dot_index ... | [
"noreply@github.com"
] | bopopescu.noreply@github.com |
8ebed524c2137dfd56be352f2713160bd5d0e472 | fb7c95127adc8ecd137568da5658f8c2b748b09b | /pwncat/modules/agnostic/enumerate/__init__.py | 58cf45f67d3bddbf85708c4195b3d45e2dbb75b9 | [] | no_license | Aman-Dhimann/pwncat | 37fcd3d0ab9acb668efb73024bc8dfc8c2c0d150 | f74510afb6c1d0f880462034adf78359145a89b4 | refs/heads/master | 2023-05-24T15:12:24.603790 | 2021-06-12T21:45:39 | 2021-06-12T21:45:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | #!/usr/bin/env python3
# Alias `run enumerate` to `run enumerate.gather`
from pwncat.modules.agnostic.enumerate.gather import Module
| [
"caleb.stewart94@gmail.com"
] | caleb.stewart94@gmail.com |
f5940373af05f87a0a7e2d86d85bd2a415853b19 | 466f1d55748b6082e78b26c89ef75e1fd9555f66 | /test/unit_test/test_sample.py | 223b20fa7635aa9ca0f88413fb761b7aea639cac | [] | no_license | kiccho1101/kaggle_disaster_tweets_gokart | 6f9c07c1225767b2c4ec9c05764646ada6e43192 | 389f9582ba1b1208b5eb4e758eff1b967794cc34 | refs/heads/master | 2022-04-21T08:23:44.279540 | 2020-04-01T13:39:57 | 2020-04-01T13:39:57 | 247,387,879 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | from logging import getLogger
import unittest
from unittest.mock import MagicMock
from kaggle_disaster_tweets_gokart.model.sample import Sample
logger = getLogger(__name__)
class TestSample(unittest.TestCase):
def setup(self):
self.output_data = None
def test_run(self):
task = Sample()
... | [
"youodf11khp@gmail.com"
] | youodf11khp@gmail.com |
8c07d5f47490fcaa49882b14eec700f4432e1f5b | cf3549c5200e78dd81095cd3e05b3015d6bc2290 | /spiderman/misc/logger.py | 25050f75ba990aecda5cc123944f902caee9e470 | [
"Apache-2.0"
] | permissive | zzcv/python | e0c56a363188b8a3dcc030b10a7bd4aa1fc426b2 | 69ac0cabb7154816b1df415c0cc32966d6335718 | refs/heads/master | 2020-09-14T12:57:08.046356 | 2019-11-18T11:54:54 | 2019-11-18T11:54:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,089 | py | #/usr/bin/env python
#coding=utf8
"""
# Author: kellanfan
# Created Time : Tue 28 Aug 2018 10:55:09 PM CST
# File Name: logger.py
# Description:
"""
import logging
import yaml
import threading
from logging.handlers import RotatingFileHandler
class Logger(object):
def __init__(self, config_file):
'''init ... | [
"icyfk1989@163.com"
] | icyfk1989@163.com |
55d0e7eaad9e1b13ec5d11db16c9b9034bcd39e5 | 35b6013c1943f37d1428afd2663c8aba0a02628d | /functions/v2/response_streaming/main_test.py | 9f850a1718585ed2fceea23f8e35d73d9493e9f9 | [
"Apache-2.0"
] | permissive | GoogleCloudPlatform/python-docs-samples | d2a251805fbeab15d76ed995cf200727f63f887d | 44e819e713c3885e38c99c16dc73b7d7478acfe8 | refs/heads/main | 2023-08-28T12:52:01.712293 | 2023-08-28T11:18:28 | 2023-08-28T11:18:28 | 35,065,876 | 7,035 | 7,593 | Apache-2.0 | 2023-09-14T20:20:56 | 2015-05-04T23:26:13 | Jupyter Notebook | UTF-8 | Python | false | false | 968 | py | # Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the 'License');
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | [
"noreply@github.com"
] | GoogleCloudPlatform.noreply@github.com |
914f45793a8304544515d3639215795706f93065 | 3c6b0521eb788dc5e54e46370373e37eab4a164b | /predictive_engagement/pytorch_src/create_utt_embed.py | 9d6db792c1991cb86869136008c3cec28720be98 | [
"MIT"
] | permissive | y12uc231/DialEvalMetrics | 7402f883390b94854f5d5ae142f700a697d7a21c | f27d717cfb02b08ffd774e60faa6b319a766ae77 | refs/heads/main | 2023-09-02T21:56:07.232363 | 2021-11-08T21:25:24 | 2021-11-08T21:25:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,888 | py |
import argparse
from bert_serving.client import BertClient
import csv
import os
import pickle
#In order to create utterance embeddings, you need to first start BertServer (follow https://github.com/hanxiao/bert-as-service) with following command:
#bert-serving-start -model_dir /tmp/english_L-12_H-768_A-12/ -num_worke... | [
"yitingye@cs.cmu.edu"
] | yitingye@cs.cmu.edu |
d506e2c4c46364a2576d48fc2c2cc52ef154142b | ace30d0a4b1452171123c46eb0f917e106a70225 | /filesystems/vnx_rootfs_lxc_ubuntu64-16.04-v025-openstack-compute/rootfs/usr/lib/python2.7/dist-packages/openstackclient/tests/functional/base.py | 857432962124a08b874a970806fe3f3b60643f25 | [
"Python-2.0"
] | permissive | juancarlosdiaztorres/Ansible-OpenStack | e98aa8c1c59b0c0040c05df292964520dd796f71 | c01951b33e278de9e769c2d0609c0be61d2cb26b | refs/heads/master | 2022-11-21T18:08:21.948330 | 2018-10-15T11:39:20 | 2018-10-15T11:39:20 | 152,568,204 | 0 | 3 | null | 2022-11-19T17:38:49 | 2018-10-11T09:45:48 | Python | UTF-8 | Python | false | false | 4,414 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | [
"jcdiaztorres96@gmail.com"
] | jcdiaztorres96@gmail.com |
0c8551b52d52cd8af6da7aa30601f5ab2777e761 | 7041c85dffb757c3e7063118730363f32ebb9b8a | /코테대비/20190227/색종이 배치.py | 4b6cbe8beff587fecc1ed3ff818e29dd5e36fc7d | [] | no_license | woonji913/til | efae551baff56f3ca16169b93185a65f4d81cd7a | a05efc68f88f535c26cb4d4a396a1e9cd6bf0248 | refs/heads/master | 2021-06-06T23:17:54.504620 | 2019-06-19T04:29:18 | 2019-06-19T04:29:18 | 163,778,844 | 1 | 0 | null | 2021-05-08T16:27:17 | 2019-01-02T01:08:19 | HTML | UTF-8 | Python | false | false | 562 | py | x1, y1, dx1, dy1 = map(int, input().split())
x2, y2, dx2, dy2 = map(int, input().split())
# if x1+dx1 == x2 and y1+dy1 == y2:
# print('1')
# elif x1+dx1 > x2 or y1+dy1 > y2:
# print('2')
# elif x1+dx1 > x2 and y1+dy1 > y2:
# print('3')
# elif x1+dx1 < x2 and y1+dy1 < y2:
# print('4')
x = set(range(x1,... | [
"johnnyboy0913@gmail.com"
] | johnnyboy0913@gmail.com |
28b7be7be7b0d1fc78f01bddcaab4e7accb7b6cf | a17ab912e585db05931830be9b35943c31c5db4a | /Algo1.py | 4f007729e8cf958b62733bdf56b43ec72007a921 | [] | no_license | syuuhei-yama/Python_Algorithm | ef15b65d25ab458f7ddb784573f26a2de2718409 | 1f6b39ada0261dd02d2808d157ddbaaa8e3a1e24 | refs/heads/master | 2023-03-29T08:21:35.550924 | 2021-04-09T10:43:45 | 2021-04-09T10:43:45 | 327,771,890 | 0 | 0 | null | 2021-01-08T02:28:47 | 2021-01-08T01:56:34 | Python | UTF-8 | Python | false | false | 1,058 | py | #最大値
# a = [1, 3, 10, 2, 8]
# max = a[0]
#
# for i in range(1,len(a)):
#
# if (max < a[i]): #最小値はここをmin変更
# max = a[i]
#
# print(max)
#データの交換
# a = 10
# b = 20
#
# t = a
# a = b
# b = t
#
# print("a=",a,",b=",b)
#サーチアルゴリズム
# a = [10,3,1,4,2]
#
# search_s = 4
# findID = -1
#
# for i in range(len(a)):
# ... | [
"syuuhei0615@icloud.com"
] | syuuhei0615@icloud.com |
2437f835bb3468bf06a61053f5ee3b1fa1ae36c9 | 08a2a4550d725c1f7ed6fb1d3bfc9abc35de5e1e | /tencentcloud/ocr/v20181119/errorcodes.py | f1172d3098f29b6dc4a40b523dccded1ab7120ee | [
"Apache-2.0"
] | permissive | wearetvxq/tencentcloud-sdk-python | 8fac40c7ea756ec222d3f41b2321da0c731bf496 | cf5170fc83130744b8b631000efacd1b7ba03262 | refs/heads/master | 2023-07-16T15:11:54.409444 | 2021-08-23T09:27:56 | 2021-08-23T09:27:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,671 | py | # -*- coding: utf8 -*-
# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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... | [
"tencentcloudapi@tenent.com"
] | tencentcloudapi@tenent.com |
275b76afbe63a3413985b5472a69d50bf3e62d67 | a7f442bc306d1a8366a3e30db50af0c2c90e9091 | /blockchain-env/Lib/site-packages/Cryptodome/Signature/DSS.pyi | 8860aa173625e356921ff29bb410f001ef975c4a | [] | no_license | Patreva/Python-flask-react-blockchain | cbdce3e0f55d4ba68be6ecfba35620585894bbbc | 474a9795820d8a4b5a370d400d55b52580055a2e | refs/heads/main | 2023-03-29T01:18:53.985398 | 2021-04-06T08:01:24 | 2021-04-06T08:01:24 | 318,560,922 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,129 | pyi | from typing import Union, Optional, Callable
from typing_extensions import Protocol
from Cryptodome.PublicKey.DSA import DsaKey
from Cryptodome.PublicKey.ECC import EccKey
class Hash(Protocol):
def digest(self) -> bytes: ...
__all__ = ['new']
class DssSigScheme:
def __init__(self, key: Union[Dsa... | [
"patrickwahome74@gmail.com"
] | patrickwahome74@gmail.com |
d11b7ecf23ce5efea923c536b66dba11bd9dbde5 | 52f4426d2776871cc7f119de258249f674064f78 | /baekjoon/brute_force/16637.py | ab3dbfea614db4c9828f52df66a085568f73d432 | [] | no_license | namhyun-gu/algorithm | 8ad98d336366351e715465643dcdd9f04eeb0ad2 | d99c44f9825576c16aaca731888e0c32f2ae6e96 | refs/heads/master | 2023-06-06T02:28:16.514422 | 2021-07-02T10:34:03 | 2021-07-02T10:34:03 | 288,646,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,168 | py | # region Input redirection
import io
import sys
example = """
5
8*3+5
"""
sys.stdin = io.StringIO(example.strip())
# endregion
#
# ⛔ DO NOT COPY ABOVE CONTENTS
#
import sys
def calculate(op1, operator, op2):
if operator == "+":
return op1 + op2
elif operator == "-":
return op1 - op2
else:... | [
"mnhan0403@gmail.com"
] | mnhan0403@gmail.com |
a29aa2f427cebc2eaf7d63646e7b5923666c047e | 6b6a18001a3a0931bbe8b5185179223b7bd2879a | /python_selenium/SL_UW/src/SL_UM/testsuite_03.py | 8f115ce2f48dec6270948f9e63daa4667f324eae | [] | no_license | hufengping/percolata | cfa02fcf445983415b99c8ec77a08b3f0b270015 | b643e89b48c97a9be3b5509120f325455643b7af | refs/heads/master | 2020-04-06T07:04:22.076039 | 2016-04-25T08:02:40 | 2016-04-25T08:02:40 | 42,929,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,606 | py | # -*- coding: utf-8 -*-
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.common.exceptions import NoSuchElementException
from selenium.common.exceptions import NoAlertPresentExc... | [
"fengping.hu@percolata.com"
] | fengping.hu@percolata.com |
2a466abd81f68c9562f93904ea12db543b2386bd | 34ed92a9593746ccbcb1a02630be1370e8524f98 | /lib/pints/pints/toy/__init__.py | 62a438a380de519170d87bfec4dd2216d11adb7a | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | HOLL95/Cytochrome_SV | 87b7a680ed59681230f79e1de617621680ea0fa0 | d02b3469f3ee5a4c85d756053bc87651093abea1 | refs/heads/master | 2022-08-01T05:58:16.161510 | 2021-02-01T16:09:31 | 2021-02-01T16:09:31 | 249,424,867 | 0 | 0 | null | 2022-06-22T04:09:11 | 2020-03-23T12:29:29 | Jupyter Notebook | UTF-8 | Python | false | false | 2,282 | py | #
# Root of the toy module.
# Provides a number of toy models and logpdfs for tests of Pints' functions.
#
# This file is part of PINTS.
# Copyright (c) 2017-2019, University of Oxford.
# For licensing information, see the LICENSE file distributed with the PINTS
# software package.
#
from __future__ import absolute_... | [
"henney@localhost.localdomain"
] | henney@localhost.localdomain |
03bd8be91946ecefcef85ec3815b2aac64eb4c10 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /Geometry/HGCalCommonData/python/testHGCalDD4hepV17ShiftReco_cff.py | b91b5bcc3b5a765e452e85505b5af6ee752a7b5d | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 3,329 | py | import FWCore.ParameterSet.Config as cms
# This config came from a copy of 2 files from Configuration/Geometry/python
from Configuration.Geometry.GeometryDD4hep_cff import *
DDDetectorESProducer.confGeomXMLFiles = cms.FileInPath("Geometry/HGCalCommonData/data/dd4hep/testHGCalV17Shift.xml")
from Geometry.TrackerNumbe... | [
"sunanda.banerjee@cern.ch"
] | sunanda.banerjee@cern.ch |
26bd13736c8d11c30c34f742b5b9c47f85ab65ca | b3c47795e8b6d95ae5521dcbbb920ab71851a92f | /Leetcode/Algorithm/python/2000/01128-Number of Equivalent Domino Pairs.py | c27c95103c1b64e55092e2f04f8949fd3efbaa18 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | Wizmann/ACM-ICPC | 6afecd0fd09918c53a2a84c4d22c244de0065710 | 7c30454c49485a794dcc4d1c09daf2f755f9ecc1 | refs/heads/master | 2023-07-15T02:46:21.372860 | 2023-07-09T15:30:27 | 2023-07-09T15:30:27 | 3,009,276 | 51 | 23 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | from collections import defaultdict
class Solution(object):
def numEquivDominoPairs(self, dominoes):
d = defaultdict(int)
for (a, b) in dominoes:
key = (min(a, b), max(a, b))
d[key] += 1
res = 0
for key, value in d.items():
res += val... | [
"noreply@github.com"
] | Wizmann.noreply@github.com |
d0c7a838d3ac45a39f6e97b95ffc799933ba0a3b | 3414c15e7333e2702818cd81de387a4def13a011 | /discord/message.py | 8981de2cb265cca36b37a28be84535a4595f322c | [
"MIT"
] | permissive | maxpowa/discord.py | b191f50de3ce34a48dcacb9802ee334f84841ae0 | 740b9a95c2a80caac59dd8f0ec6ea0cefa6b731c | refs/heads/async | 2020-12-28T19:57:08.739397 | 2015-12-24T13:24:23 | 2015-12-24T13:40:00 | 54,578,528 | 0 | 1 | null | 2016-03-23T17:08:59 | 2016-03-23T17:08:59 | null | UTF-8 | Python | false | false | 7,336 | py | # -*- coding: utf-8 -*-
"""
The MIT License (MIT)
Copyright (c) 2015 Rapptz
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, c... | [
"rapptz@gmail.com"
] | rapptz@gmail.com |
e202015319e99b6a80ad917d5e2b370f2dd271a5 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_morphine.py | 943506387fc8ca7d5796f182ab71f36d81361708 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py |
#calss header
class _MORPHINE():
def __init__(self,):
self.name = "MORPHINE"
self.definitions = [u'a drug made from opium, used to stop people from feeling pain or to make people feel calmer']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def r... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
dd2ffa10dfcbccf5bba097a474bc3960747cc90a | e17483ba000de9c6135e26ae6c09d9aa33004574 | /ipynbs/python性能优化/使用Cython优化python程序的性能/使用cython加速python源码/静态化python模块/logistic_A.py | fd14d103b55e5a2a96dda6457df38711fa0c5c6f | [
"Apache-2.0"
] | permissive | HAOzj/TutorialForPython | 27ae50c6b9fb3289ae7f67b8106d3d4996d145a7 | df7a6db94b77f4861b11966399f5359d00911a16 | refs/heads/master | 2020-03-17T09:19:45.199165 | 2018-04-02T13:33:27 | 2018-04-02T13:33:27 | 133,470,105 | 1 | 0 | null | 2018-05-15T06:35:01 | 2018-05-15T06:35:01 | null | UTF-8 | Python | false | false | 252 | py | #cython: language_level=3
import cython
from math import exp
if cython.compiled:
print("Yep, I'm compiled.")
else:
print("Just a lowly interpreted script.")
@cython.boundscheck(False)
@cython.ccall
def logistic(x):
return 1/(1+exp(-x)) | [
"hsz1273327@gmail.com"
] | hsz1273327@gmail.com |
d45c8e5024e20d5a3c8cfd01ad650dea3b3917cc | c08cfe3c8feb5b04314557481e1f635cd20750cd | /write_idea.py | 87c6e69ed46acc09c49be0427a27da1c187f448f | [] | no_license | steinbachr/write-idea | 80c2d52d5f581174583902254b2177c2a058e016 | 2110f92872913db5f385efa828ab244a31945027 | refs/heads/master | 2016-09-06T13:49:07.931996 | 2014-10-01T16:34:25 | 2014-10-01T16:34:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,738 | py | from bs4 import BeautifulSoup
import csv
import random
import requests
#in the future, we can have this passed in to the program from command line
MAX_TO_CHOOSE = 3
MAX_ATTEMPTS_TO_GET_DEFINITIONS = 3
def get_random_words(max_to_choose):
"""
get one or more random words from the dictionary
:return: list ... | [
"steinbach.rj@gmail.com"
] | steinbach.rj@gmail.com |
33ee4f9be70261fa3f9375fad072eb4c621512dc | 36620131b411892abf1072694c3ac39b0da6d75e | /object_detection/models/tta.py | 0a110ef2584abf9300f527600d7f242c8c53c785 | [] | no_license | zhangyahui520/object-detection | 82f3e61fb0f6a39881b9ed3a750478a095023eff | b83b55a05e911d5132c79e3f0029a449e99f948d | refs/heads/master | 2022-12-23T17:39:19.281547 | 2020-09-21T08:40:53 | 2020-09-21T08:40:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,001 | py | import torch
from functools import partial
from torch import nn
from typing import Tuple, List, Callable
from object_detection.entities import (
YoloBoxes,
Confidences,
ImageBatch,
yolo_hflip,
yolo_vflip,
)
class HFlipTTA:
def __init__(self, to_boxes: Callable,) -> None:
self.img_trans... | [
"yao.ntno@gmail.com"
] | yao.ntno@gmail.com |
019b805bb5bfb35d449a227190521a6eeb6c52fb | 3f42c5e33e58921754000b41db0156d0def70cf3 | /Snakefile | f5d32c6189ffed86ddbee3452a9118303866f682 | [] | no_license | SilasK/oldSRA_download | ab2536708f513e583ab012b747688211ca302779 | 96b121b53a8008b78d6d7f7b42c6ff13ef427ab9 | refs/heads/master | 2022-02-09T00:32:41.101141 | 2019-06-06T12:16:58 | 2019-06-06T12:16:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,930 |
import pandas as pd
SRR_list = pd.read_csv(config['url_table'],sep='\t',index_col=0).index
if 'outdir' in config:
outdir = config['outdir']
else:
outdir= config['url_table'].replace("_info.tab.txt",'')
rule paired:
input:
expand("{outdir}/{SRR}_{direction}.fastq.gz",SRR=SRR_list,outdir=outdi... | [
"silas.kieser@gmail.com"
] | silas.kieser@gmail.com | |
f70aa53f367b064e21d312d73f67784a25bcfafa | 08bd0c20e99bac54760441de061bb74818837575 | /0x0A-python-inheritance/1-my_list.py | 5f43596d29f2a834cffdc0ceb90333663c1b3464 | [] | no_license | MachinEmmus/holbertonschool-higher_level_programming | 961874eb51e06bc823911e943573123ead0483e5 | 2b7ebe4dc2005db1fe0ca4c330c0bd00897bb157 | refs/heads/master | 2021-08-08T19:43:48.933704 | 2020-10-09T22:22:17 | 2020-10-09T22:22:17 | 226,937,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | #!/usr/bin/python3
class MyList(list):
"""Class MyList hereda of List"""
def print_sorted(self):
"""Print a sorted list"""
print(sorted(self))
| [
"emonsalvep38@gmail.com"
] | emonsalvep38@gmail.com |
1562209b19b54551227f8146ef20185326bfbc6d | 1ba085b962452dd6c305803ad709f2b00aa305d1 | /venv/bin/pip2 | 1ad73f2a4913aacdcd403a5c4e127a8e1323253f | [] | no_license | tongri/lab_test | 2b9aea40ad72a0316238174b0c89e78779c47bf7 | e73ec5b60dfb8bde06302fce07dd15780e6a766c | refs/heads/master | 2023-04-15T18:56:45.950878 | 2021-04-19T10:41:44 | 2021-04-19T10:41:44 | 355,573,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | #!/home/user/tutor/venv/bin/python2
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"alexander.ksenzov@gmail.com"
] | alexander.ksenzov@gmail.com | |
8e6b88adc39dca84b244727245ff6e71b2828f61 | 0ce040a6ed4bc4ef131da9cb3df5672d995438fc | /apps/auth_ext/templatetags/url_login_tags.py | 5d696407431609c12da1fec012dcb3f912841cfc | [
"MIT"
] | permissive | frol/Fling-receiver | 59b553983b345312a96c11aec7e71e1c83ab334f | e4312ce4bd522ec0edfbfe7c325ca59e8012581a | refs/heads/master | 2016-09-05T16:10:28.270931 | 2014-02-10T07:52:51 | 2014-02-10T07:52:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | from django.conf import settings
if 'coffin' in settings.INSTALLED_APPS:
from coffin.template import Library
else:
from django.template import Library
from auth_ext_15.models import UrlLoginToken
register = Library()
@register.simple_tag
def url_login_token(user):
return "url_login_token=%s" % UrlLoginT... | [
"frolvlad@gmail.com"
] | frolvlad@gmail.com |
22fcaae921154451a61d72f1c2467f394839b037 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p2DJ/New/program/qiskit/class/startQiskit_Class29.py | fa2c3be3d8e26646725aac76f06a2446786f107b | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,963 | py | # qubit number=2
# total number=6
import cirq
import qiskit
from qiskit import IBMQ
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from math import log2,floor, sqrt, pi
import numpy as... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
dea529b9c44b8eae30d6e13b1b93487a76945c7d | ea4e3ac0966fe7b69f42eaa5a32980caa2248957 | /download/unzip/pyobjc/pyobjc-14/pyobjc/stable/PyOpenGL-2.0.2.01/src/shadow/WGL.ARB.buffer_region.0100.py | e5a49cc1445d9af64e1e0388088e5cd8a8402c82 | [] | no_license | hyl946/opensource_apple | 36b49deda8b2f241437ed45113d624ad45aa6d5f | e0f41fa0d9d535d57bfe56a264b4b27b8f93d86a | refs/heads/master | 2023-02-26T16:27:25.343636 | 2020-03-29T08:50:45 | 2020-03-29T08:50:45 | 249,169,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,838 | py | # This file was created automatically by SWIG.
# Don't modify this file, modify the SWIG interface instead.
# This file is compatible with both classic and new-style classes.
import _buffer_region
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
if (name == "this"):
if isinstance... | [
"hyl946@163.com"
] | hyl946@163.com |
8012ec6497a89fc0ec225279447a91a004faebf2 | 07a9d52a91df135c82660c601811e3f623fe440c | /timereporter/commands/command.py | ecc3bff895ea285dbf057c436d9fa73495511e68 | [] | no_license | Godsmith/timereporter | ea9e622db880721bbf82f17e3e004434878ccd51 | 384ad973ea913a77593f665c97b337b54bc09b4a | refs/heads/master | 2021-07-05T09:14:28.327572 | 2021-06-15T21:31:52 | 2021-06-15T21:31:52 | 102,777,809 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,649 | py | import datetime
from typing import Union, Dict, Tuple
from datetime import date
from typing import List
from timereporter.calendar import Calendar
from timereporter.mydatetime import timedelta
from timereporter.views.view import View
from timereporter.views.console_week_view import ConsoleWeekView
class Command:
... | [
"filip.lange@gmail.com"
] | filip.lange@gmail.com |
538ac952035739975c914adbf70b6b475a3e7114 | 05b42178aaefd7efdb2fb19fdea8e58056d8d4bd | /geeksforgeeks/graph/bfs/recursive/test.py | 5b140e1541e1d4ea37276028ba914fdf1ee91a6a | [] | no_license | chrisjdavie/interview_practice | 43ca3df25fb0538d685a59ac752a6a4b269c44e9 | 2d47d583ed9c838a802b4aa4cefe649c77f5dd7f | refs/heads/master | 2023-08-16T18:22:46.492623 | 2023-08-16T16:04:01 | 2023-08-16T16:04:01 | 247,268,317 | 0 | 0 | null | 2020-03-14T17:35:12 | 2020-03-14T12:01:43 | Python | UTF-8 | Python | false | false | 1,403 | py | from unittest import TestCase
from run import initialise_graph, bfs
class TestExamples(TestCase):
def test_raises(self):
N = 201
edges = [(0, i+1) for i in range(N)]
graph = initialise_graph(edges)
with self.assertRaises(ValueError):
bfs(graph, N)
def test_exa... | [
"cjdavie@googlemail.com"
] | cjdavie@googlemail.com |
ad3a856cb3f801a06193c47798147f8d62bf9219 | 6cecdc007a3aafe0c0d0160053811a1197aca519 | /apps/reports/templatetags/blacklist_tags.py | aeaa55dde3ba57c9a67cbc0f798f30964de013e5 | [] | no_license | commtrack/temp-aquatest | 91d678c927cc4b2dce6f709afe7faf2768b58157 | 3b10d179552b1e9d6a0e4ad5e91a92a05dba19c7 | refs/heads/master | 2016-08-04T18:06:47.582196 | 2010-09-29T13:20:13 | 2010-09-29T13:20:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | from datetime import timedelta
from django import template
from hq.utils import build_url as build_url_util
register = template.Library()
@register.simple_tag
def build_device_url(domain, device_id):
"""Builds the link on the report when you click on the device
to get a filtered view of the m... | [
"allen.machary@gmail.com"
] | allen.machary@gmail.com |
1d0cb7bf6626f99b695aa23d6257d11309fdb68b | 260817cebb942bf825e1f68f4566240f097419d5 | /day21/7.把模块当成脚本来使用.py | cf7d75246dd9335c79d04127f427d6c0f5b74a18 | [] | no_license | microease/old-boys-python-15 | ff55d961192a0b31aa8fd33a548f161497b12785 | 7e9c5f74201db9ea26409fb9cfe78277f93e360e | refs/heads/master | 2020-05-19T10:32:21.022217 | 2019-11-25T17:00:54 | 2019-11-25T17:00:54 | 184,972,964 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | # by luffycity.com
# 执行一个py文件的方式:
# 在cmd执行,在python执行 : 直接执行这个文件 - 以脚本的形式运行这个文件
# 导入这个文件
# 都是py文件
# 直接运行这个文件 这个文件就是一个脚本
# 导入这个文件 这个文件就是一个模块
# import re
# import time
#
# import my_module
# import calculate
#
# ret = calculate.main('1*2+3')
# print(ret)
# 当一个py文件
# 当做一个脚本的时候 : 能够独立的提供一个功能,能自主完成... | [
"microease@163.com"
] | microease@163.com |
317cee2c4b85442fafb9023514db5abc7453bfab | f5d1e8b54ddbc51a9ef1b868eee93096d9b0fbeb | /weapp/services/__init__.py | 9fd36e6d2324464ee357370cd93995ae62682b7f | [] | no_license | chengdg/weizoom | 97740c121724fae582b10cdbe0ce227a1f065ece | 8b2f7befe92841bcc35e0e60cac5958ef3f3af54 | refs/heads/master | 2021-01-22T20:29:30.297059 | 2017-03-30T08:39:25 | 2017-03-30T08:39:25 | 85,268,003 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 76 | py |
# -*- coding: utf-8 -*-
#import os
#from django.conf import settings
| [
"jiangzhe@weizoom.com"
] | jiangzhe@weizoom.com |
9551710717c579f61e12f178765ee0e9b2e661a6 | 0376a3528032dc8637123eb4307fac53fe33c631 | /openstack/_hacking.py | 94952630c61025d4208e5f250312451351a2910a | [
"Apache-2.0"
] | permissive | FrontSide/openstacksdk | d5a7461721baf67d3590d2611538620b15939999 | 9fc0fdaed3114f06c7fc90ce8cf338c5ae01df2f | refs/heads/master | 2021-02-10T21:14:37.463978 | 2020-02-26T17:23:45 | 2020-02-26T17:23:45 | 244,419,992 | 0 | 0 | Apache-2.0 | 2020-03-02T16:32:40 | 2020-03-02T16:32:39 | null | UTF-8 | Python | false | false | 1,401 | py | # Copyright (c) 2019, Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | [
"mordred@inaugust.com"
] | mordred@inaugust.com |
4b983a60a39a1f46e6e9b4ca7b66a505cf8aaedf | 7698a74a06e10dd5e1f27e6bd9f9b2a5cda1c5fb | /zzz.scripts_from_reed/getposesfast.py | b472fb639bae241dfbfb02f717d2a318ea0f5f08 | [] | no_license | kingbo2008/teb_scripts_programs | ef20b24fe8982046397d3659b68f0ad70e9b6b8b | 5fd9d60c28ceb5c7827f1bd94b1b8fdecf74944e | refs/heads/master | 2023-02-11T00:57:59.347144 | 2021-01-07T17:42:11 | 2021-01-07T17:42:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,897 | py |
# This script is written by Reed Stein and Trent Balius in April, 2017.
# This a fast get poses script
import os
import sys
import gzip
def get_zinc_names_and_chunks_from_extract_all_sort_uniq(filename,N):
print "running function: get_zinc_names_and_chunks_from_extract_all_sort_uniq"
fh = open(filename,'r')
z... | [
"tbalius@gimel.cluster.ucsf.bkslab.org"
] | tbalius@gimel.cluster.ucsf.bkslab.org |
42c29af69aa89f208e6e81d0a1d3e3ef3ad6c156 | e8dba002d8916a468e559a52f254c0d92532d6b2 | /tests/components/zha/test_climate.py | fd8bcaa1085d34629d61d06fffb1371eb6e9e5e3 | [
"Apache-2.0"
] | permissive | thomasgermain/home-assistant | 32b0f4d888220f4ce49dc85e506d0db39445c6c0 | 9673b93842ddcecc7e6a6d65e6d4f5b8a1089c43 | refs/heads/vaillant | 2023-08-21T23:50:24.679456 | 2020-05-20T21:01:18 | 2023-08-03T07:11:35 | 197,781,893 | 8 | 4 | Apache-2.0 | 2023-02-10T06:56:47 | 2019-07-19T13:57:53 | Python | UTF-8 | Python | false | false | 50,549 | py | """Test ZHA climate."""
from unittest.mock import patch
import pytest
import zhaquirks.sinope.thermostat
import zhaquirks.tuya.ts0601_trv
import zigpy.profiles
import zigpy.types
import zigpy.zcl.clusters
from zigpy.zcl.clusters.hvac import Thermostat
import zigpy.zcl.foundation as zcl_f
from homeassistant.components... | [
"noreply@github.com"
] | thomasgermain.noreply@github.com |
767687887e67bf1d760a55cc1e95fe314e57b094 | ae7ba9c83692cfcb39e95483d84610715930fe9e | /bmw9t/nltk/ch_four/15.py | b4241dc542b556abf74ca5ecc1f5e328b4674211 | [] | no_license | xenron/sandbox-github-clone | 364721769ea0784fb82827b07196eaa32190126b | 5eccdd8631f8bad78eb88bb89144972dbabc109c | refs/heads/master | 2022-05-01T21:18:43.101664 | 2016-09-12T12:38:32 | 2016-09-12T12:38:32 | 65,951,766 | 5 | 7 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | # ◑ Write a program that takes a sentence expressed as a single string, splits it and counts up the words. Get it to print out each word and the word's frequency, one per line, in alphabetical order.
from nltk import *
def program(sent):
"""answers the question."""
# splits a sentence
words = sent.split(' ')
# g... | [
"xenron@outlook.com"
] | xenron@outlook.com |
a71afb8ba73ddffb652d248309425b73e03defb7 | e98a1e360e947a0f91edc3cb603d915a3630cfbc | /stack_medium/0113_verify_preorder_serialization_of_a_binary_tree.py | bfacc96b15fa81dbd938e4770b24a1533f6619ba | [] | no_license | myungwooko/algorithm | 3a6a05cf7efa469aa911fe04871ef368ab98bb65 | 673e51199a2d07198894a283479d459bef0272c5 | refs/heads/master | 2021-07-04T01:17:41.787653 | 2020-12-25T00:59:33 | 2020-12-25T00:59:33 | 213,865,632 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,842 | py | """
331. Verify Preorder Serialization of a Binary Tree
Medium
One way to serialize a binary tree is to use pre-order traversal. When we encounter a non-null node, we record the node's value. If it is a null node, we record using a sentinel value such as #.
_9_
/ \
3 2
/ \ / \
4 1 # 6
/ \ /... | [
"myungwoo.ko@gmail.com"
] | myungwoo.ko@gmail.com |
730c29e0650bb728a7b7a31f71b116856885c5c5 | 0b491c106daeafe21e0e4e57ea3a7fd25072c902 | /pyspedas/examples/basic/ex_analysis.py | 7bf8a422548ad0d9ca497f6d618dbf9d1db4abb9 | [
"MIT"
] | permissive | jibarnum/pyspedas | 491f7e7bac2485f52a8c2b0b841d85e4a1ce41ff | a956911ed8f2a11e30c527c92d2bda1342bea8e3 | refs/heads/master | 2020-06-18T21:43:06.885769 | 2019-10-08T17:19:43 | 2019-10-08T17:19:43 | 196,460,801 | 0 | 0 | MIT | 2019-07-11T20:26:58 | 2019-07-11T20:26:58 | null | UTF-8 | Python | false | false | 706 | py | # -*- coding: utf-8 -*-
"""
File:
ex_analysis.py
Desrciption:
Basic example using analysis functions.
Downloads THEMIS data and plots it.
"""
import pyspedas
import pytplot
def ex_analysis():
# Print the installed version of pyspedas
pyspedas.version()
# Delete any existing pytplot variable... | [
"egrimes@igpp.ucla.edu"
] | egrimes@igpp.ucla.edu |
327521fba8a42d166df3e832b2af503df40dc25f | 6c92b2faa4d8c328ab855429843f08f4f220a75a | /collective/azindexpage/testing.py | e60cb8f4f6d588913286868a4d2cc593cc7bfaa1 | [] | no_license | collective/collective.azindexpage | d6c5644d95889e806582b003dd43149dc6110fb4 | 2e04bd8c018acf94488deee3bb3d35355ca392a8 | refs/heads/master | 2023-08-12T04:11:54.703896 | 2014-12-11T10:33:50 | 2014-12-11T10:33:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | from plone.app.testing import *
import collective.azindexpage
FIXTURE = PloneWithPackageLayer(
zcml_filename="configure.zcml",
zcml_package=collective.azindexpage,
additional_z2_products=[],
gs_profile_id='collective.azindexpage:default',
name="collective.azindexpage:FIXTURE"
)
INTEGRATION = Inte... | [
"toutpt@gmail.com"
] | toutpt@gmail.com |
d0f4aa8a11338fea334ca1061586eee7e025352f | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/io_scene_osi/__init__.py | 39b9e606dd18de1318ae77941cac5cff3c0055e8 | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,486 | py | bl_info = {
"name": "Super Mario Odyssey Stage Importer",
"description": "Import Super Mario Odyssey Stages",
"author": "Philippus229, bymlv2 (v1.0.3) by leoetlino, SARCExtract (v0.5) by aboood40091, Sorted Containers (v2.0.4), PyYAML (v3.10)",
"version": (0, 4, 0),
"blender": (2, 79, 0),
"locat... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
2ec9aef834da051f7fa5fcf27a06b2c59b2a3aef | 8c186a62d1f60099d0677e2c1233af31f1dca19a | /client/watchman_subscriber.py | a2737ee79af7a08744080468bfecb0cdb2dd1323 | [
"MIT"
] | permissive | darrynza/pyre-check | 3f172625d9b2484190cc0b67805fabb1b8ba00ff | cb94f27b3db824446abf21bbb19d0cef516841ec | refs/heads/master | 2020-04-29T04:19:23.518722 | 2019-03-15T15:00:38 | 2019-03-15T15:03:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,009 | py | # Copyright (c) 2019-present, Facebook, Inc.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# pyre-strict
import functools
import logging
import os
import signal
import sys
from typing import Any, Dict, List, NamedTuple
from .filesystem i... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
55a5b53175bff8fbc181d9a771e652ce7b9c2ed7 | e428fbd5af1b6b54db9f3fb456442a143c57582c | /string/uplow.py | 5ca01d4d8d77527e6e218f612d8e5d0145d61f9a | [] | no_license | tchelmella/w3python | 102be2a4967c1bd381a6f4e678c720100eaeb9af | d350a5b026f1ca2b9f224598319992d3f356312b | refs/heads/master | 2020-07-20T19:11:11.872123 | 2019-09-23T05:04:58 | 2019-09-23T05:04:58 | 206,696,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | def uplow(data):
up = data.upper()
low = data.lower()
return up, low
a = input("Enter the string")
print(uplow(a))
| [
"tulsi.das1404@gmail.com"
] | tulsi.das1404@gmail.com |
4ac826e55018348c35f3b8ae04750caedaea7eda | 3fba33f91e1f50077dc2cce663b7de0f70a17a51 | /wlhub/users/admin.py | c7ecddd088d8bedf93021a3b00d05411aba80b0f | [] | no_license | azinit/wlhub | 59be2e9f555fa6655965d13580fd05963dc414b6 | 616761ef39f4cdb82d032f737bf50c66a9e935d1 | refs/heads/master | 2022-12-22T12:26:33.907642 | 2020-09-13T21:45:33 | 2020-09-13T21:45:33 | 295,242,617 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | from django.contrib import admin
from django.contrib.auth import get_user_model
from core.mixins import ListLinksMixin
from .models import UserSurvey
@admin.register(get_user_model())
class UserAdmin(ListLinksMixin, admin.ModelAdmin):
fields = (
'is_superuser',
'first_name',
'last_name',
... | [
"martis.azin@gmail.com"
] | martis.azin@gmail.com |
fd0f9258d690798c7c0594cd8a7cfa3ae6b4ee15 | 31e8b777b8b6da1ef8d172d2c7b5271a892e7dc9 | /frappe/desk/doctype/list_filter/list_filter.py | d2b01d301e11a116ba0b6ac48913556a110227d7 | [
"MIT"
] | permissive | Anurag810/frappe | a4d2f6f3a14cc600cced7146a02303cd1cb347f0 | 620cad18d60f090f5f9c13a5eefb56e86615de06 | refs/heads/develop | 2021-09-28T03:57:02.456172 | 2021-09-07T06:05:46 | 2021-09-07T06:05:46 | 157,325,015 | 5 | 0 | MIT | 2019-09-11T09:20:20 | 2018-11-13T05:25:01 | Python | UTF-8 | Python | false | false | 210 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2018, Frappe Technologies and contributors
# License: MIT. See LICENSE
import frappe, json
from frappe.model.document import Document
class ListFilter(Document):
pass
| [
"rmehta@gmail.com"
] | rmehta@gmail.com |
438efbe8fed719db08deba9e3c76ce17b6fd093e | ee4db47ccecd23559b3b6f3fce1822c9e5982a56 | /Machine Learning/NaiveBSklearn.py | a217b9b46706d1e953309d5bcdbb082786eea1c2 | [] | no_license | meoclark/Data-Science-DropBox | d51e5da75569626affc89fdcca1975bed15422fd | 5f365cedc8d0a780abeb4e595cd0d90113a75d9d | refs/heads/master | 2022-10-30T08:43:22.502408 | 2020-06-16T19:45:05 | 2020-06-16T19:45:05 | 265,558,242 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | from reviews import counter, training_counts
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.naive_bayes import MultinomialNB
review = "This crib was perfect great excellent amazing great"
review_counts = counter.transform([review])
classifier = MultinomialNB()
training_labels = [0] * 1000 + ... | [
"oluchukwuegbo@gmail.com"
] | oluchukwuegbo@gmail.com |
59795eb9686bbaede2bedb7720af166564990330 | ca8627ac06c984aeb8ecd2e51c7a0493c794e3e4 | /azure-mgmt-cdn/azure/mgmt/cdn/models/sku.py | dd68ff0c3fa89c1cb00846dffac40e5d25557979 | [
"MIT"
] | permissive | matthchr/azure-sdk-for-python | ac7208b4403dc4e1348b48a1be9542081a807e40 | 8c0dc461a406e7e2142a655077903216be6d8b16 | refs/heads/master | 2021-01-11T14:16:23.020229 | 2017-03-31T20:39:15 | 2017-03-31T20:39:15 | 81,271,912 | 1 | 1 | null | 2017-02-08T01:07:09 | 2017-02-08T01:07:09 | null | UTF-8 | Python | false | false | 1,023 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
a0fb0edae27fc0c39cec9d69877252bc45c2f27e | bc441bb06b8948288f110af63feda4e798f30225 | /alert_service_sdk/model/tuna_service/requirement_instance_pb2.py | e96b38d97aac1d8eb40e480e7762e79325189dbb | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | true | 8,098 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: requirement_instance.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... | [
"service@easyops.cn"
] | service@easyops.cn |
ec872a5755917412c16200e8f53d7cfc56006833 | 1003740abd789902bff88bd86d573252f4fe9d23 | /eventex/core/admin.py | c3eaa933d5c4420cceed77ae4007c7305ebcb480 | [] | no_license | hpfn/wttd-2017 | e73ca9c65fc6dcee78045c7edee0fc42768fbfb7 | c9b284bbd644dcc543a8fd9a11254548441a31bd | refs/heads/master | 2023-08-28T16:12:19.191071 | 2019-01-04T18:17:31 | 2019-01-13T12:42:15 | 91,342,897 | 0 | 1 | null | 2023-09-06T21:55:07 | 2017-05-15T13:46:36 | Python | UTF-8 | Python | false | false | 1,366 | py | from django.contrib import admin
from eventex.core.models import Speaker, Contact, Talk, Course
class ContactInLine(admin.TabularInline):
model = Contact
extra = 1
class SpeakerModelAdmin(admin.ModelAdmin):
inlines = [ContactInLine]
prepopulated_fields = {'slug': ('name',)}
list_display = ['name... | [
"hpfn@debian.org"
] | hpfn@debian.org |
db1cb5b24827d4e737ed5955d062f7174cbdf581 | acd4f039e319e845bf499fc6c27d0609ef5a5081 | /cno/boolean/steady.py | 951e538bf43d2025eea3ac69c9046f7e8166cf92 | [
"BSD-2-Clause"
] | permissive | ltobalina/cellnopt | a917d852680320eb620069da0126eecdb9691329 | b5a018299cd06c666c27573067fb848c36c6d388 | refs/heads/master | 2021-01-14T14:16:58.179955 | 2014-11-23T22:25:50 | 2014-11-23T22:25:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,956 | py | from cno.core.base import CNOBase
import pandas as pd
import numpy as np
import pylab
from cno.misc.profiler import do_profile
import time
class Steady(CNOBase):
"""Naive implementation of Steady state to help in
designing the API"""
def __init__(self, model, data, verbose=True):
super(Stea... | [
"cokelaer@gmail.com"
] | cokelaer@gmail.com |
ca7fe4e826cfb4c5139c30a91811719f01d3ccd7 | ffef4697f09fb321a04f2b3aad98b688f4669fb5 | /tests/ut/python/pipeline/parse/test_create_obj.py | a702f37e0bfbf65e1248e54fe478471796d1b85d | [
"Apache-2.0",
"AGPL-3.0-only",
"BSD-3-Clause-Open-MPI",
"MPL-1.1",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"MPL-2.0",
"LGPL-2.1-only",
"GPL-2.0-only",
"Libpng",
"BSL-1.0",
"MIT",
"MPL-2.0-no-copyleft-exception",
"IJG",
"Z... | permissive | Ewenwan/mindspore | 02a0f1fd660fa5fec819024f6feffe300af38c9c | 4575fc3ae8e967252d679542719b66e49eaee42b | refs/heads/master | 2021-05-19T03:38:27.923178 | 2020-03-31T05:49:10 | 2020-03-31T05:49:10 | 251,512,047 | 1 | 0 | Apache-2.0 | 2020-03-31T05:48:21 | 2020-03-31T05:48:20 | null | UTF-8 | Python | false | false | 3,876 | py | # Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"leon.wanghui@huawei.com"
] | leon.wanghui@huawei.com |
7dbb78d80fe115de113c038eef35d2eb2e41c5e9 | 1e1f7d3687b71e69efa958d5bbda2573178f2acd | /accounts/doctype/tds_control/tds_control.py | 69588d88ceb891f49dca1843969485b1b0c98525 | [] | no_license | ravidey/erpnext | 680a31e2a6b957fd3f3ddc5fd6b383d8ea50f515 | bb4b9bfa1551226a1d58fcef0cfe8150c423f49d | refs/heads/master | 2021-01-17T22:07:36.049581 | 2011-06-10T07:32:01 | 2011-06-10T07:32:01 | 1,869,316 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,401 | py | # Please edit this list and import only required elements
import webnotes
from webnotes.utils import add_days, add_months, add_years, cint, cstr, date_diff, default_fields, flt, fmt_money, formatdate, generate_hash, getTraceback, get_defaults, get_first_day, get_last_day, getdate, has_common, month_name, now, nowdate,... | [
"pdvyas@erpnext.com"
] | pdvyas@erpnext.com |
f3cbd8df8e6fd91388f44a5728142de7a9fa8cbd | 2652fd6261631794535589427a384693365a585e | /trunk/workspace/Squish/src/TestScript/UI/suite_UI_51/tst_UI_51_Router_1841_NVRAM_Save_Erase/test.py | 378fcb31dd1415d8743e1473b7159fa68a9cef1d | [] | no_license | ptqatester1/ptqa | 88c652380167f64a953bfd7a65041e7d8ac48c90 | 5b5997ea459e9aac17db8da2041e2af331927104 | refs/heads/master | 2021-01-21T19:06:49.275364 | 2017-06-19T03:15:00 | 2017-06-19T03:15:00 | 92,115,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,253 | py | from API.ComponentBox import ComponentBoxConst
from API.Device.Router.Router import Router
from API.Utility.Util import Util
#Function initialization
util = Util()
#Device initialization
router0 = Router(ComponentBoxConst.DeviceModel.ROUTER_1841, 100, 200, "Router0")
def main():
util.init()
createTopology()... | [
"ptqatester1@gmail.com"
] | ptqatester1@gmail.com |
5bdf2f8e51db469e4af4c9ca2a139d967f5f99fc | c6f93ccf29f978a7834a01c25e636364adeaa4ea | /setup.py | 86142ec0f903179b1486fcbb97500086415833d8 | [
"MIT"
] | permissive | aviv-julienjehannet/jschon | d099709831fbee740c8cb5466c5964cec8d669fa | c8a0ddbb8202d9e80e8c4e959ec8bfd28297eec1 | refs/heads/main | 2023-04-16T05:51:41.170699 | 2021-04-23T13:33:01 | 2021-04-23T13:33:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,399 | py | import pathlib
from setuptools import setup, find_packages
HERE = pathlib.Path(__file__).parent.resolve()
README = (HERE / 'README.md').read_text(encoding='utf-8')
setup(
name='jschon',
version='0.2.0',
description='A pythonic, extensible JSON Schema implementation.',
long_description=README,
lon... | [
"52427991+marksparkza@users.noreply.github.com"
] | 52427991+marksparkza@users.noreply.github.com |
1e11232be19b72a2cad2d2b0d8b3a87e17d8fa2c | ce819ddd76427722d967e06190fc24ac98758009 | /PyQT_MySQL/Study_PyQT5/22/chapter22_2.py | f6b7f01c1136095b3696243a8837986f3bf7f369 | [] | no_license | huilizhou/Deeplearning_Python_DEMO | cb4164d21899757a4061836571b389dad0e63094 | 0a2898122b47b3e0196966a2fc61468afa99f67b | refs/heads/master | 2021-08-16T10:28:51.992892 | 2020-04-04T08:26:07 | 2020-04-04T08:26:07 | 148,308,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,165 | py | import sys
from PyQt5.QtWidgets import QApplication, QWidget, QInputDialog, QLineEdit, QTextEdit, QPushButton, \
QGridLayout
class Demo(QWidget):
def __init__(self):
super(Demo, self).__init__()
self.name_btn = QPushButton('Name', self)
self.gender_btn = QPushButton('Gender', self)
... | [
"2540278344@qq.com"
] | 2540278344@qq.com |
efaed80c4684aaf515c0b2e38b52d25235d134be | 942ec6d53f40ff43f36594bb607dc7a86f0e6370 | /rasa_core/interpreter.py | 947655e9ce2ad753cfffade9378668eb4bd18f6e | [
"Apache-2.0",
"MIT",
"BSD-3-Clause"
] | permissive | hydercps/rasa_core | 319be5a0646bbc050538aa5ef016ea84183cf0b4 | e0a9db623cbe0bfa2ffd232a1c05a80441dd6ab7 | refs/heads/master | 2021-05-15T13:06:23.482657 | 2017-10-26T11:58:41 | 2017-10-26T11:58:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,169 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import logging
import re
import os
import requests
from builtins import str
logger = logging.getLogger(__name__)
class NaturalLanguageInterpreter(object):
def par... | [
"tom.bocklisch@scalableminds.com"
] | tom.bocklisch@scalableminds.com |
e6bba0955a52988e23383a991c56e01477c61b16 | 201c9dc696159ea684e654fe7f3e3a3b8026cbf0 | /admaren/asgi.py | 2b6a15c77be3db4ace683c797fe32e96ace86a20 | [] | no_license | AthifSaheer/admaren-machine-test | 8a44652bf09f31c54da96db0b9cb9654b7544514 | 2547e4aed9ca23e30bc33151d77b7efd1db6a45c | refs/heads/main | 2023-08-04T03:02:41.844039 | 2021-10-02T06:51:23 | 2021-10-02T06:51:23 | 412,713,951 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
ASGI config for admaren project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"liteboook@gmail.com"
] | liteboook@gmail.com |
31ed82385a1930c9ec4ea90def4ed19f98bd1449 | cccc9fa74b16cc4a2ae37dfb2449d6dc1ce215cd | /image_comparison/experiments/experiment2/run_experiment2_atlas_variance.py | 74c5750cd05bcb3469bdb973bab2ad3a4cb44bdd | [] | no_license | nagyistge/brainmeta | 611daf90d77432fa72a79b30fa4b895a60647536 | 105cffebcc0bf1c246ed11b67f3da2fff4a05f99 | refs/heads/master | 2021-05-30T06:44:40.095517 | 2016-01-11T23:21:50 | 2016-01-11T23:21:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,659 | py | #!/usr/bin/python
# This batch script will prepare and submit jobs for running on a SLURM cluster
import os
import time
import pandas
import numpy as np
import nibabel as nib
# Input file
basedir = "/scratch/users/vsochat/DATA/BRAINMETA/experiment1"
outdirectory = "%s/atlas_permutations_spearman" %(basedir)
input_fi... | [
"vsochat@stanford.edu"
] | vsochat@stanford.edu |
944a3caf4c7f22153433e23e82ef0a72b682b29a | 2e5c0e502216b59a4e348437d4291767e29666ea | /Flask-Web/flasky/Lib/site-packages/paramiko/util.py | 9397028989dc651aa1be34e973a8a07e8116fe8a | [
"Apache-2.0",
"GPL-1.0-or-later"
] | permissive | fengzse/Feng_Repository | 8881b64213eef94ca8b01652e5bc48e92a28e1f5 | db335441fa48440e72eefab6b5fd61103af20c5d | refs/heads/master | 2023-07-24T04:47:30.910625 | 2023-02-16T10:34:26 | 2023-02-16T10:34:26 | 245,704,594 | 1 | 0 | Apache-2.0 | 2023-07-15T00:54:20 | 2020-03-07T20:59:04 | Python | UTF-8 | Python | false | false | 8,640 | py | # Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com>
#
# This file is part of paramiko.
#
# Paramiko is free software; you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation; either version 2.1 of the License, or (a... | [
"fzhuse@gmail.com"
] | fzhuse@gmail.com |
a78e04a791909b7433738ec6335788795ce7133a | b501a5eae1018c1c26caa96793c6ee17865ebb2d | /Algorithms/itertools/itertools_repeat.py | 917451b04f214801b1302e14db89e40a6d8c75d5 | [] | no_license | jincurry/standard_Library_Learn | 12b02f9e86d31ca574bb6863aefc95d63cc558fc | 6c7197f12747456e0f1f3efd09667682a2d1a567 | refs/heads/master | 2022-10-26T07:28:36.545847 | 2018-05-04T12:54:50 | 2018-05-04T12:54:50 | 125,447,397 | 0 | 1 | null | 2022-10-02T17:21:50 | 2018-03-16T01:32:50 | Python | UTF-8 | Python | false | false | 80 | py | from itertools import repeat
for i in repeat('over_and_over', 5):
print(i)
| [
"jintao422516@gmail.com"
] | jintao422516@gmail.com |
6ac0e3d7295d4a1fca52784c3e95b9cb48dfaf97 | 58d4cabb694ada0ee917a70a3a733757d9448bf2 | /cldfbench_apics.py | e8fdbe41d3ac1769775d071190e4f82b0834e230 | [
"CC-BY-4.0"
] | permissive | silva-carlos/apics | d74b27de4f46d02d8ccd3d2010ad32342b3fbfe3 | f687a830a62aa5e16ad1b5d477e92d6307c10e6f | refs/heads/master | 2023-04-10T06:34:07.839859 | 2020-07-15T13:08:22 | 2020-07-15T13:08:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,872 | py | import json
import pathlib
import itertools
import collections
from clldutils.misc import lazyproperty
from cldfbench import Dataset as BaseDataset, CLDFSpec
from pycldf.sources import Source, Reference
from csvw.metadata import URITemplate
LEXIFIER_DESC = """\
To help the reader’s orientation, we have classified our... | [
"xrotwang@googlemail.com"
] | xrotwang@googlemail.com |
0c0f12cec808a46fc7c2dbc0073bbc8c45ac9ffd | 62226afe584a0d7f8d52fc38ca416b19ffafcb7a | /hwtLib/examples/axi/simpleAxiRegs_test.py | 6fb518c70de16523bfc4cfeffee8ecc47957fc42 | [
"MIT"
] | permissive | Nic30/hwtLib | d08a08bdd0bf764971c4aa319ff03d4df8778395 | 4c1d54c7b15929032ad2ba984bf48b45f3549c49 | refs/heads/master | 2023-05-25T16:57:25.232026 | 2023-05-12T20:39:01 | 2023-05-12T20:39:01 | 63,018,738 | 36 | 8 | MIT | 2021-04-06T17:56:14 | 2016-07-10T21:13:00 | Python | UTF-8 | Python | false | false | 1,694 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import unittest
from hwt.simulator.simTestCase import SimTestCase
from hwtLib.examples.axi.simpleAxiRegs import SimpleAxiRegs
from pyMathBitPrecise.bit_utils import mask
from hwtSimApi.constants import CLK_PERIOD
allMask = mask(32 // 8)
class SimpleAxiRegsTC(SimTestC... | [
"nic30@seznam.cz"
] | nic30@seznam.cz |
ef5e84556bcd9ad669b28f8863d602498d18cf90 | 3717abc9152c28d8e6cd1c93f61d6935557a4baf | /tests/test_search.py | b9dc8562b61794bf87e77156a6727db22d50f4c5 | [
"MIT"
] | permissive | samuelcolvin/em2 | a81f00ecb35659adfa9c2b059aa209588f1faba5 | a587eaa80c09a2b44d9c221d09a563aad5b05d78 | refs/heads/master | 2023-08-31T07:07:58.450857 | 2019-12-12T15:59:17 | 2019-12-12T15:59:17 | 167,863,820 | 5 | 1 | MIT | 2021-03-30T13:13:10 | 2019-01-27T22:01:52 | Python | UTF-8 | Python | false | false | 13,580 | py | import json
import pytest
from pytest_toolbox.comparison import AnyInt, CloseToNow
from em2.core import Action, ActionTypes, File
from em2.search import search
from .conftest import Factory
async def test_create_conv(cli, factory: Factory, db_conn):
user = await factory.create_user()
r = await cli.post_js... | [
"noreply@github.com"
] | samuelcolvin.noreply@github.com |
00ee9af8c74827a02c584f58a3dcb8626b56d1b9 | 87fe0e123ac10a419e01283d742119c7772c8417 | /test/datetimeutil.py | d85545774af5a17c47d40d99d3b559d8b9d07213 | [] | no_license | Archanciel/seqdiagbuilder | 53ede17a5b5767c88e0cc3b8e321718fb0d47ad2 | 8509dc1eac1bf3c9c32362dcd7320990ceecede7 | refs/heads/master | 2020-03-23T02:10:42.933805 | 2019-10-26T16:59:48 | 2019-10-26T16:59:48 | 140,960,687 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,304 | py | import arrow
import re
class DateTimeUtil:
SECONDS_PER_DAY = 86400
SHORT_DATE_FORMAT_KEY = 'SHORT_DATE_FORMAT'
LONG_DATE_FORMAT_KEY = 'LONG_DATE_FORMAT'
TIME_FORMAT_KEY = 'TIME_FORMAT'
@staticmethod
def timeStampToArrowLocalDate(timeStamp, timeZoneStr):
'''
FGiven a UTC/GMT t... | [
"jp.schnyder@gmail.com"
] | jp.schnyder@gmail.com |
4cea90c357cb1e8caed9ed683cb52f6f3bd5744f | c383d6adebdfc35e96fa88809111f79f7ebee819 | /interview/search/sequential_search.py | 8be59d3d4a3b577ea5030d69c480a9da5ca7390d | [] | no_license | aryabartar/learning | 5eb9f32673d01dcf181c73436dd3fecbf777d555 | f3ff3e4548922d9aa0f700e65fa949ab0108653c | refs/heads/master | 2020-05-16T06:03:11.974609 | 2019-08-26T14:10:42 | 2019-08-26T14:10:42 | 182,834,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | def find_unordered(elem, array):
for i in array:
if elem == i:
return True
return False
def find_ordered(elem, array):
for i in array:
if i < elem:
break
if elem == i:
return True
return False
| [
"bartararya@gmail.com"
] | bartararya@gmail.com |
bf5aee2a49aedcbb1894fff95445f2209cc8718c | 7b1a5db0a067766a9805fe04105f6c7f9ff131f3 | /pysal/model/spreg/probit.py | 8d0e942ff7705edf18731f8eeff94fa76fdf8904 | [] | permissive | ocefpaf/pysal | 2d25b9f3a8bd87a7be3f96b825995a185624e1d0 | 7e397bdb4c22d4e2442b4ee88bcd691d2421651d | refs/heads/master | 2020-06-26T17:13:06.016203 | 2019-07-31T19:54:35 | 2019-07-31T19:54:35 | 199,696,188 | 0 | 0 | BSD-3-Clause | 2019-07-30T17:17:19 | 2019-07-30T17:17:18 | null | UTF-8 | Python | false | false | 34,172 | py | """Probit regression class and diagnostics."""
__author__ = "Luc Anselin luc.anselin@asu.edu, Pedro V. Amaral pedro.amaral@asu.edu"
import numpy as np
import numpy.linalg as la
import scipy.optimize as op
from scipy.stats import norm, chi2
chisqprob = chi2.sf
import scipy.sparse as SP
from . import user_out... | [
"sjsrey@gmail.com"
] | sjsrey@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.