blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
50029d742fdf872199ac05d382e8a46edf30c565 | d1e4f29e583ee964d63bc48554eaa73d67d58eb2 | /analytics/migrations/0012_add_on_delete.py | 24b2d5421292422475152c04fa1d2adc982982f8 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | hygolei/zulip | 299f636f9238f50b0d2746f1c371748f182f1f4e | 39fe66ab0824bc439929debeb9883c3046c6ed70 | refs/heads/master | 2023-07-11T22:50:27.434398 | 2021-08-09T10:07:35 | 2021-08-09T10:07:35 | 375,401,165 | 1 | 1 | Apache-2.0 | 2021-08-09T10:07:36 | 2021-06-09T15:20:09 | Python | UTF-8 | Python | false | false | 1,300 | py | # Generated by Django 1.11.6 on 2018-01-29 08:14
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("analytics", "0011_clear_analytics_tables"),
]
operations = [
migrations.AlterField(
model_name... | [
"tabbott@zulipchat.com"
] | tabbott@zulipchat.com |
16223a5f2a1c413d52701ed8ee134cfd53475775 | 7a2d2cfbe99a13920e55e462bd40627e34d18f23 | /tests/openbb_terminal/portfolio/portfolio_optimization/conftest.py | 7237236327ef8a8f4b91f9b8ec13ffb3523f7ebf | [
"MIT"
] | permissive | conrad-strughold/GamestonkTerminal | b9ada627929dbc1be379f19c69b34e24764efcff | c9aa674d979a7c7fd7f251410ceaa1c8a4ef2e6e | refs/heads/main | 2023-06-24T02:59:45.096493 | 2023-05-16T15:15:20 | 2023-05-16T15:15:20 | 342,313,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | import pytest
from _pytest.nodes import Node
def pytest_runtest_setup(item: Node):
if not item.config.getoption("--optimization"):
pytest.skip(msg="Runs only with option : --optimization")
| [
"noreply@github.com"
] | conrad-strughold.noreply@github.com |
8d50dc2df16514bc977ef796e90045f9ebe1b83b | be24b5f37823125b2b901c0029175bfb2f25fb0e | /tests/homework/test_homework6.py | 4c1972342f82f74bfdb69cc577b4e437d09f7552 | [
"MIT"
] | permissive | acc-cosc-1336/cosc-1336-spring-2018-Miguelh1997 | 1bd75c51e72431037a46a1b3079d7695c41920ce | ac4b0405c4070758d0fc07458d4dca8a8a0313de | refs/heads/master | 2021-05-11T09:11:41.887630 | 2018-05-12T03:11:38 | 2018-05-12T03:11:38 | 118,070,058 | 0 | 1 | MIT | 2018-05-12T03:16:17 | 2018-01-19T03:13:02 | Python | UTF-8 | Python | false | false | 1,725 | py | import unittest
from src.homework.homework6 import (get_point_mutation, get_dna_complement, transcribe_dna_into_rna, get_gc_content)
#write import statement for homework 6 file
class TestHomework6(unittest.TestCase):
def test_sample(self):
self.assertEqual(1,1)
#create a test case for function fin... | [
"noreply@github.com"
] | acc-cosc-1336.noreply@github.com |
8e3381accfc766a875a987cabcb997c6987cb556 | 0e5f7fbea53b56ddeb0905c687aff43ae67034a8 | /src/resource/script/helper/cafm_api/RequestCheckData.py | 1dfdf090a7eceda36ead35ad6b1aba6fac678a09 | [] | no_license | arkanmgerges/cafm.identity | 359cdae2df84cec099828719202b773212549d6a | 55d36c068e26e13ee5bae5c033e2e17784c63feb | refs/heads/main | 2023-08-28T18:55:17.103664 | 2021-07-27T18:50:36 | 2021-07-27T18:50:36 | 370,453,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
@author: Arkan M. Gerges<arkan.m.gerges@gmail.com>
"""
class RequestCheckData:
def __init__(self, requestId, checkForId=False, resultIdName=None, ignoreIfExists=False, returnResult=True):
self.requestId = requestId
self.checkForId=checkForId
self.resultIdName=resultIdName
... | [
"arkan.m.gerges@gmail.com"
] | arkan.m.gerges@gmail.com |
e5d5959f54521aae879a71ae8ee0fa751ca5f922 | a08d885cb9150d7e84f5ffbf0c9734893105a898 | /2022/Day 12/hill_climbing_algorithm_test.py | 8af50ef4df758b9a1ccd29b85665b167104ab870 | [] | no_license | vhsw/Advent-of-Code | ab422c389340a1caf2ec17c5db4981add6433fbe | 3c1dac27667472202ab15098c48efaac19348edf | refs/heads/master | 2022-12-29T03:56:59.648395 | 2022-12-26T11:01:45 | 2022-12-26T11:01:45 | 162,491,163 | 0 | 0 | null | 2022-05-10T08:43:32 | 2018-12-19T21:10:26 | Python | UTF-8 | Python | false | false | 355 | py | """Day 12: tests"""
from hill_climbing_algorithm import DATA, part1, part2
EXAMPLE = """
Sabqponm
abcryxxl
accszExk
acctuvwj
abdefghi
""".strip()
def test_part1():
"""Part 1 test"""
assert part1(EXAMPLE) == 31
assert part1(DATA) == 408
def test_part2():
"""Part 2 test"""
assert part2(EXAMPLE) =... | [
"nevermind1025@gmail.com"
] | nevermind1025@gmail.com |
316d3967e9d92294530800e1eb8ba2b5054e610d | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5646553574277120_0/Python/krukovna/solve.py | e02a7c8f9c1b3e907cf93bbe302a8c63e63dcc89 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | import sys
class Solved(Exception):
pass
def check(value, items):
s = value
for i in range(0, len(items)):
if s >= items[i]:
s -= items[i]
return s == 0
def solve(top, items):
a = 0
items = list(reversed(items))
for i in range(1, top+1):
... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
f740cf330191dc26a3bd03d4333a03e49014095a | 5e915a39fe966811424df0574f6670d252f895c8 | /micropython/p4_temperatura_f.py | 56ba1eda6cf14c319ef6a799437c06ba9f51ead4 | [
"MIT"
] | permissive | monkmakes/micro_bit_kit_es | c9c2f77f722f2a8a7e2657164d700b6fc758ce92 | be2a76f0ad45a70bef66c7ba548b2578ab35ede8 | refs/heads/master | 2022-11-21T19:09:11.445210 | 2020-07-22T16:07:42 | 2020-07-22T16:07:42 | 281,723,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | # P4 Temperatura F
from microbit import *
while True:
lectura = pin1.read_analog()
temperatura_f = round(lectura * 0.135 +1)
display.scroll(str(temperatura_f))
| [
"evilgeniusauthor@gmail.com"
] | evilgeniusauthor@gmail.com |
1d2dbd370c5088150b15093ffa636dc0ae89bcf1 | 025d7484c52b204bc286dfb9d17fc08e8e03604e | /base_branch_company/__init__.py | db33f366ec546e53aff32c5c46331dd48ef9a9c8 | [] | no_license | gotorishab/stpi | 3e2d2393a3b64f313c688bfcb4855052ea5e62b4 | a548e923f80e124ea5f90f4559ec727193c70528 | refs/heads/master | 2021-07-05T16:19:39.932782 | 2021-04-30T03:58:05 | 2021-04-30T03:58:05 | 236,436,956 | 0 | 6 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | # -*- coding: utf-8 -*-
# Part of odoo. See LICENSE file for full copyright and licensing details.
from . import models
from . import wizard
| [
"gotorishab@gmail.com"
] | gotorishab@gmail.com |
99d3e82d29dc3df93ee1a712c799d4279cf6595d | e2e08d7c97398a42e6554f913ee27340226994d9 | /pyautoTest-master(ICF-7.5.0)/test_case/scg/scg_Administrator/test_c139428.py | 61510e984e6bcc959e07dc4e89da92d75977f1af | [] | no_license | lizhuoya1111/Automated_testing_practice | 88e7be512e831d279324ad710946232377fb4c01 | b3a532d33ddeb8d01fff315bcd59b451befdef23 | refs/heads/master | 2022-12-04T08:19:29.806445 | 2020-08-14T03:51:20 | 2020-08-14T03:51:20 | 287,426,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,400 | py | import pytest
import time
import sys
from os.path import dirname, abspath
sys.path.insert(0, dirname(dirname(abspath(__file__))))
from page_obj.scg.scg_def_sys import *
from page_obj.scg.scg_def import *
from page_obj.scg.scg_button import *
from page_obj.scg.scg_def_log import *
from page_obj.common.rail impo... | [
"15501866985@163.com"
] | 15501866985@163.com |
ec63a34cd757f9cabca23c6fcc9fb1e4d474b126 | 68a294455c03ada90e9ab80867c33b73672152f9 | /apps/producto/models.py | 11fc3eb1f9f9db601bd1427326252d430784871f | [] | no_license | chrisstianandres/citas | f7e89aa9481ee6aa260bd28cae44091a2c6db900 | 21f7f90ec958cabd71aa41c852877f0657677ade | refs/heads/master | 2023-08-28T07:24:35.187428 | 2021-11-20T00:03:08 | 2021-11-20T00:03:08 | 347,208,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,103 | py | import os
from datetime import datetime
from io import BytesIO
import qrcode
from PIL import Image, ImageDraw
from django.core.files import File
from django.db import models
from django.forms import model_to_dict
from apps.categoria.models import Categoria
from apps.presentacion.models import Presentacion
from citas... | [
"chrisstianandres@gmail.com"
] | chrisstianandres@gmail.com |
1192cded4effd3395252540e02dbd727c5dfe410 | 24cee07743790afde5040c38ef95bb940451e2f6 | /cci/LinkedList/2_4.py | e7b6c3f28f9924dec5761d25f28d55ff0ff9c01a | [] | no_license | tinaba96/coding | fe903fb8740d115cf5a7f4ff5af73c7d16b9bce1 | d999bf5620e52fabce4e564c73b9f186e493b070 | refs/heads/master | 2023-09-01T02:24:33.476364 | 2023-08-30T15:01:47 | 2023-08-30T15:01:47 | 227,594,153 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | from LinkedList import LinkedList
def partition(ll,x):
current = ll.tail = ll.head
print('current:', current)
print('llinit:', ll)
print('lltail:', ll.tail)
print('currentnext:', current.next)
while current:
nextNode = current.next
print('nextNode:' , nextNode)
current.next = None
print('l... | [
"tinaba178.96@gmail.com"
] | tinaba178.96@gmail.com |
8bfed1015851b962c2225cfa88aca33414e65fbe | 7b35ddab50851b774bffbc633fc6d4fd4faa1efa | /simplifytour/core/views.py | a7dc604ef44572d89b7585c7c2449762739c408f | [] | no_license | Tushant/simplifytour | e585607efef9937f4a32165a526c38cbc192a562 | 2cb9f70b8cf27fd4beddf251966fdc214a1dcd85 | refs/heads/master | 2020-07-22T06:46:52.480528 | 2019-09-08T12:05:15 | 2019-09-08T12:05:15 | 207,106,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,555 | py | import os
import mimetypes
try:
from urllib.parse import urljoin, urlparse
except ImportError:
from urlparse import urljoin, urlparse
from json import dumps
from django.contrib.admin.views.decorators import staff_member_required
from django.http import (HttpResponse, HttpResponseNotFound)
from django.utils.tr... | [
"programmertushant@gmail.com"
] | programmertushant@gmail.com |
d0c90f25fddfaf49151612cb7ab6bc5f675ce960 | 7879c47da4cfa94ad676dc4f0a5aea308b6a05b9 | /banners/migrations/0019_auto_20190409_1629.py | df151200ad21b7b95dd60e9267ba70b2115debc2 | [] | no_license | SoloTodo/solotodo_core | 9bc51fb276a22d25d3d894552a20f07403eb1555 | 72d8e21512b8a358335c347c3cc9b39fc8789c9b | refs/heads/develop | 2023-08-13T04:21:03.957429 | 2023-08-10T16:14:44 | 2023-08-10T16:14:44 | 96,940,737 | 15 | 5 | null | 2023-07-25T15:46:18 | 2017-07-11T21:59:06 | Python | UTF-8 | Python | false | false | 408 | py | # Generated by Django 2.0.3 on 2019-04-09 16:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('banners', '0018_auto_20190313_1137'),
]
operations = [
migrations.AlterField(
model_name='bannerupdate',
name='statu... | [
"vkhemlan@gmail.com"
] | vkhemlan@gmail.com |
8e365f7fb7dbf06d1ec12db9b886d675b708e32a | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /third_party/blink/web_tests/external/wpt/webdriver/tests/classic/get_window_rect/get.py | f7592a30e067030f3c6433bc2419db06c0db8da8 | [
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | Python | false | false | 833 | py | from tests.support.asserts import assert_error, assert_success
def get_window_rect(session):
return session.transport.send(
"GET", "session/{session_id}/window/rect".format(**vars(session)))
def test_no_top_browsing_context(session, closed_window):
response = get_window_rect(session)
assert_erro... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
b78201c41112819c6d5c05a0df40bc262974948d | 66727e413dc0899502eb22d9798c11c07ce5bcda | /tools/utilities/pythonlibs/audio/play_audio.py | 2054c201a6309ad74f5e7239b233959abea6cfc9 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | yunqu/ELL | 83e9f01d9be1dbcfc5b3814929797e5cf0b44159 | bfeb0239ee8c90953a7210fca1087241749a52d4 | refs/heads/master | 2020-05-04T04:09:38.810236 | 2019-04-01T23:05:25 | 2019-04-01T23:05:25 | 178,960,204 | 1 | 0 | null | 2019-04-01T23:01:56 | 2019-04-01T23:01:56 | null | UTF-8 | Python | false | false | 1,658 | py | #!/usr/bin/env python3
###################################################################################################
#
# Project: Embedded Learning Library (ELL)
# File: play_audio.py
# Authors: Chris Lovett
#
# Requires: Python 3.x
#
#####################################################################... | [
"clovett@microsoft.com"
] | clovett@microsoft.com |
d6c9aa19d252414fe4a3ac029740b73baa7788ed | 625f2f86f2b2e07cb35204d9b3232427bf462a09 | /official/HIRun2017PP/QCDPhoton_pThat-30_TuneCP5_5p02TeV_pythia8/crabConfig_FOREST.py | 71cf587527010f861fb8c2574246a542d877d2c4 | [] | no_license | ttrk/production | abb84c423a076fd9966276b7ed4350936c755e0b | f8a64c9c38de215802799365f0f7a99e1ee78276 | refs/heads/master | 2023-02-08T23:48:56.355141 | 2023-01-26T08:46:22 | 2023-01-26T08:46:22 | 52,877,406 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,710 | py | from WMCore.Configuration import Configuration
config = Configuration()
config.section_("General")
config.General.requestName = "QCDPhoton_pThat-30_TuneCP5_5p02TeV_pythia8_FOREST"
config.General.transferLogs = False
config.section_("JobType")
config.JobType.pluginName = "Analysis"
config.JobType.psetName = "runFores... | [
"tatark@mit.edu"
] | tatark@mit.edu |
00e411ddf0f13b487f205308a2467da5f9032f51 | 40de6d687cc0131eebde6edcd8b1ab640d2ca727 | /Web/API/old/1.py | a421ae21ffa1d3237082c846727a21b62120ebe2 | [] | no_license | Larionov0/DimaKindruk_Lessons | ad9bf6a4b8534de11fd445434481042ae3863cec | 2fb38b2d65df84ad8909541c82bf7bef96deb24e | refs/heads/master | 2023-06-05T11:42:28.503979 | 2021-06-24T17:08:33 | 2021-06-24T17:08:33 | 338,129,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,380 | py | import requests
import json
def print_structure(struct):
print(json.dumps(struct, indent=4))
def main_menu():
city = 'Kyiv'
while True:
print('--= Погода зараз =--')
print(f"Місто: {city}")
print('1 - дізнатись погоду')
print('2 - змінити місто')
print('0 - вихід ... | [
"larionov1001@gmail.com"
] | larionov1001@gmail.com |
a59ec9983b0fe83019a84fcdb7d3102b3379d6b6 | d7dc62a713617ebe10bb3ce228494637eca9ab7c | /scripts/dataset_summary.py | c6e53de833f547610e82a24a85108693127f3c03 | [
"MIT"
] | permissive | marcofavorito/google-hashcode-2020 | 8416bbdff0a09724065c6742ba8d7ae659bdd829 | 5e44b155eb4a7c6ed4202dd264bcc4d36ac953f2 | refs/heads/master | 2022-04-04T11:13:04.576572 | 2020-02-20T21:51:43 | 2020-02-20T21:51:43 | 241,432,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,753 | py | import argparse
from hashcode20.helpers import Input
import numpy as np
parser = argparse.ArgumentParser("hashcode20", description="CLI util for Google Hash Code 2019. "
"It assumes the input provided in stdin.")
parser.add_argument("--in", dest="in_file", ... | [
"marco.favorito@gmail.com"
] | marco.favorito@gmail.com |
0617e588eccff156ad691170642df8ed9583d1f0 | 1abcd4686acf314a044a533d2a541e83da835af7 | /backjoon_level_python/12025.py | 3031c47f8b001bd4d4ae1511ee00366b4039bde1 | [] | no_license | HoYoung1/backjoon-Level | 166061b2801514b697c9ec9013db883929bec77e | f8e49c8d2552f6d62be5fb904c3d6548065c7cb2 | refs/heads/master | 2022-05-01T05:17:11.305204 | 2022-04-30T06:01:45 | 2022-04-30T06:01:45 | 145,084,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | def solve(password, k):
answer = ''
bit = bin(k-1)[2:]
bit = ''.join(reversed(bit))
# print('bit', bit)
count = 0
password = password.replace('6', '1').replace('7','2')
for s in password[::-1]:
if count < len(bit):
if s == '1':
if bit[count] == '1':
... | [
"empire1641@gmail.com"
] | empire1641@gmail.com |
2a63406ee420d62bf9d5c58274c937ec531958df | d922b02070c11c19ba6104daa3a1544e27a06e40 | /HW_4_6/venv/Scripts/pip3.8-script.py | 41620d84fc4a4267b4ade6a9be2cd60c46989b15 | [] | no_license | viharivnv/DSA | 2ca393a8e304ee7b4d540ff435e832d94ee4b2a7 | 777c7281999ad99a0359c44291dddaa868a2525c | refs/heads/master | 2022-10-15T15:26:59.045698 | 2020-06-17T15:55:33 | 2020-06-17T15:55:33 | 273,020,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | #!C:\Users\vihar\PycharmProjects\HW_4_6\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.8'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv... | [
"52350934+viharivnv@users.noreply.github.com"
] | 52350934+viharivnv@users.noreply.github.com |
d800850a9e2c4d86bb5615c1930155a165048d9b | 0a79b1804588be9a1f504b0d8b2425d39debb272 | /barriers/models/history/__init__.py | a329ef511e8981b7fe916bb2053b47d2bb4b1ab7 | [
"MIT"
] | permissive | cad106uk/market-access-python-frontend | 9d44d455e1c7d5f20991fbad18d1aa9172696cf9 | f9d5143e2330613385b8617f7134acbe01f196f7 | refs/heads/master | 2023-03-05T18:37:40.481455 | 2021-01-18T10:28:00 | 2021-01-18T10:28:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,247 | py | from .assessments.economic import EconomicAssessmentHistoryItem
from .assessments.economic_impact import EconomicImpactAssessmentHistoryItem
from .assessments.resolvability import ResolvabilityAssessmentHistoryItem
from .assessments.strategic import StrategicAssessmentHistoryItem
from .barriers import BarrierHistoryIte... | [
"noreply@github.com"
] | cad106uk.noreply@github.com |
5d8989700260fd1d8dafa0e88e688ae38b405076 | 22b348a0d10519cb1f1da5e886fdf2d3c167cf5a | /myweb/test/_paste/_routes/demo_2.py | 67efaf264fa01ff34cd2c23b7403abf5e51bb3ce | [] | no_license | liuluyang/openstack_mogan_study | dab0a8f918ffd17e0a747715998e81304672b75b | 8624f765da7f5aa0c210f0fa945fc50cf8a67b9e | refs/heads/master | 2021-01-19T17:03:15.370323 | 2018-04-12T09:50:38 | 2018-04-12T09:50:38 | 101,040,396 | 1 | 1 | null | 2017-11-01T02:17:31 | 2017-08-22T08:30:22 | Python | UTF-8 | Python | false | false | 314 | py | from routes import Mapper
map = Mapper()
print map
print type(map)
map.connect(None, '/error/{action}/{id}', controller='error')
result = map.match('/error/lixin/200')
print result
map.connect(None, '/error/{action:index|lixin}/{id:\d+}', controller='error')
result = map.match('/error/lixin/200')
print result | [
"1120773382@qq.com"
] | 1120773382@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.