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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c746b6cfc18675bf316576ca0daa3fe718d5af39 | 4c9eb006e344b06ee99550d8d6abe31a5210c78c | /src/middlewared/middlewared/plugins/truecommand/__init__.py | 93ad67e1ce75d3d680ecd66bbe85cdfd4ef0d41c | [] | no_license | bastiao/freenas | 29b41e67b3f33d5984b1f7fc465b8c6f240db483 | 829bdde550c392ca70fdf043bb0d034daa992051 | refs/heads/master | 2021-05-12T03:14:05.321326 | 2020-04-27T12:29:47 | 2020-04-27T12:29:47 | 117,607,449 | 0 | 1 | null | 2018-01-15T23:43:37 | 2018-01-15T23:43:37 | null | UTF-8 | Python | false | false | 699 | py | import asyncio
async def _event_system(middleware, event_type, args):
if args['id'] == 'ready':
await middleware.call('truecommand.start_truecommand_service')
async def setup(middleware):
await middleware.call('truecommand.config')
middleware.event_register('truecommand.config', 'Sent on TrueCom... | [
"waqarahmedjoyia@live.com"
] | waqarahmedjoyia@live.com |
a54f789b212ac7638b93f580df1f18e0e0505cde | f4cea31c6002c5f81fc2370ef6a9fd132e0e198b | /builder/main.py | 4462a2e1b9bd52d38914839f7b577c088fa67aef | [
"Apache-2.0"
] | permissive | robertpoll/platform-espressif8266 | 2b655fe44be26da54ba8f71692ce00eaa90513c5 | 1c0c4a910a5429dfb8a602e73a8655d936fd3c18 | refs/heads/master | 2020-03-20T00:26:36.906982 | 2018-06-04T15:21:28 | 2018-06-04T15:21:28 | 137,043,927 | 0 | 0 | null | 2018-06-12T08:51:16 | 2018-06-12T08:51:15 | null | UTF-8 | Python | false | false | 11,738 | py | # Copyright 2014-present PlatformIO <contact@platformio.org>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | [
"me@ikravets.com"
] | me@ikravets.com |
570ba84aed9efd97e2ab831b2786df2fc3a8910d | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_74/729.py | 4b760f9926b9be684cc2c814ecc97cb772e841e8 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,412 | py | def printMove(T):
if T[1] is ' ':
N=int(T[0])
T=T[2:].split()
elif T[2] is ' ':
N=(10*int(T[0]))+int(T[1])
T=T[2:].split()
else:
N=(100*int(T[0]))+(10*int(T[1]))+int(T[2])
T=T[3:].split()
#print "N is ",N
O={'goingToPress' : False,... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
66f1e81ecda13304efd5ea83eb42dc24d20ab77c | ebc7607785e8bcd6825df9e8daccd38adc26ba7b | /python/baekjoon/2.algorithm/DFS_BFS/백준_점프_게임.py | 7a735e07de4acdf768c75c6a6ece959e8e9617d1 | [] | no_license | galid1/Algorithm | 18d1b72b0d5225f99b193e8892d8b513a853d53a | 5bd69e73332f4dd61656ccdecd59c40a2fedb4b2 | refs/heads/master | 2022-02-12T07:38:14.032073 | 2022-02-05T08:34:46 | 2022-02-05T08:34:46 | 179,923,655 | 3 | 0 | null | 2019-06-14T07:18:14 | 2019-04-07T05:49:06 | Python | UTF-8 | Python | false | false | 1,391 | py | import sys
def solve():
global n, k, board, visited
stack = []
stack.append((0, 0))
visited[0][0] = True
end_line = 0
while stack:
for _ in range(len(stack)):
cx, cy = stack.pop()
if cy + 1 >= n:
print(1)
return
elif... | [
"galid1@naver.com"
] | galid1@naver.com |
8242acd488cbbaa75aa67de5a100e84b51e8e0a9 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/spaCy/2015/4/test_contractions.py | c20b47883c668994b92927a3e8b39b14a1a9bfd8 | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 1,364 | py | from __future__ import unicode_literals
import pytest
from spacy.en import English
@pytest.fixture
def EN():
return English()
def test_possess(EN):
tokens = EN("Mike's", parse=False)
assert EN.vocab.strings[tokens[0].orth] == "Mike"
assert EN.vocab.strings[tokens[1].orth] == "'s"
assert len(toke... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
36c253150168bf12994c4c98ce4768547fdcfd29 | f11d9861dda54f9a59537ca414f50ba296ead376 | /tutorial/jsontest2.py | a06e08d33eac6136a6c3466770ba88c2b8f46302 | [] | no_license | mcclayac/python101 | 8261c3bb868092e3be46030ae73525af503d7f46 | a63ec2b878b44f26f863f8fd51804cd8d093ade2 | refs/heads/master | 2021-01-10T07:27:11.096471 | 2015-10-27T05:25:03 | 2015-10-27T05:25:03 | 44,989,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py |
import json
f =open('game.json')
game = json.load(f)
f.close()
print(game)
game['price'] = 15.99
f = open('game.json', "w")
json.dump(game, f, indent=2)
f.close()
| [
"anthony.mcclay@nielsen.com"
] | anthony.mcclay@nielsen.com |
49b3f79cdd1be935df9a9382402d84d97a79a279 | 6c58da2c54a3d35273e7984313d181f1da9981fc | /Semi_Resful_Users/djangoEnv/bin/pip | 3334ed79ba21ea91031d7fcfcc042507c207141a | [
"MIT-0"
] | permissive | py1-10-2017/rgero215_PY1-10-2017 | e582cb12cc63f84b1c0c14d09a922cb6cb228016 | f455b335ec9c8c850571f3a75dcd95759b4cfdad | refs/heads/master | 2021-09-04T03:23:48.062326 | 2018-01-14T21:07:26 | 2018-01-14T21:07:26 | 105,612,652 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | #!/Users/RGero13/Desktop/rgero215_PY1-10-2017/Semi_Resful_Users/djangoEnv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"rgero215@gmail.com"
] | rgero215@gmail.com | |
52101ab9024b2c160381c68919031ecae65ebaf1 | 1c8036ec1fefeb826c4783c0c7d1311130bb5208 | /project/urls.py | 2f7cf766401790b7b2f93643faaba704a7f71f58 | [] | no_license | mamee93/comment | 3ac5cb246403d3a4f5060d9316e686f6e3d225e2 | 7e55866311929f86ba8df9300c6ee4e88776ffc4 | refs/heads/main | 2023-01-03T07:05:44.128881 | 2020-10-30T20:44:25 | 2020-10-30T20:44:25 | 308,700,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,168 | py | """project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"mameeal@gmail.com"
] | mameeal@gmail.com |
9b577bfba2a5ac5bdfd5bea7d0350907f21387ab | e894e7e1e94c9a9c12aae08b4186b8dbbf7fcfcc | /crawler/quora/quoraeducationloan/mongo_jobs_save.py | afe1bcc923f083f78019ed6179e3914023086b76 | [] | no_license | SHivam0322/crawler-v2 | 79fa81c4af838e84e04d1b3940907a767c769959 | d636dc2f6e4dea3a8be07243550156b368d293e2 | refs/heads/master | 2023-05-25T05:07:28.555368 | 2021-04-01T14:04:18 | 2021-04-01T14:04:18 | 353,709,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,293 | py | from dotenv import load_dotenv
from datetime import datetime
import json
import sys
import os
load_dotenv()
sys.path.append(os.path.abspath(os.getenv("system_path")))
from lib import rabbit_mq, mongo
try:
connection = rabbit_mq.create_connection()
channel = connection.channel()
channel.queue_declare(queu... | [
"shivthakur0322@gmail.com"
] | shivthakur0322@gmail.com |
ceba890582c251303fd6e3ca64b13fc6a97ca77a | 2e9e994e17456ed06970dccb55c18dc0cad34756 | /AOJ/introduction/ALDS1/ALDS1_04_B.py | d1668df95c0bbac23bc34b1952289cf22749a6e2 | [] | no_license | ksomemo/Competitive-programming | a74e86b5e790c6e68e9642ea9e5332440cb264fc | 2a12f7de520d9010aea1cd9d61b56df4a3555435 | refs/heads/master | 2020-12-02T06:46:13.666936 | 2019-05-27T04:08:01 | 2019-05-27T04:08:01 | 96,894,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | def main():
n = int(input())
S = list(map(int, input().split()))
q = int(input())
T = map(int, input().split())
ans = 0
for t in T:
if binsearch(t, S):
ans += 1
print(ans)
def binsearch(x, xs):
left = 0
right = len(xs)
mid = (left + right) // 2
while ... | [
"kntsmy@hotmail.co.jp"
] | kntsmy@hotmail.co.jp |
eb45bff5044b7775fff95be85ae93af204a00fd3 | 22a942ecbd0ee44f9be77d02b963b0548e3953f6 | /setup.py | 2efb8a32d8cc2820e55fda631b0a070e88603b91 | [] | no_license | ateoto/django-sel | 8b7cbbc2c16d584b29810e65406f883167faa5c3 | baddc1e57adc6bee77d2c07f3598f2c78999358c | refs/heads/master | 2016-08-07T09:14:38.755595 | 2013-06-10T15:56:16 | 2013-06-10T15:56:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | from setuptools import setup
version = __import__('sel').__version__
setup(name = 'django-sel',
version = version,
author = 'Matthew McCants',
author_email = 'mattmccants@gmail.com',
description = 'Recipe management for Django',
license = 'BSD',
url = 'https://github.com/Ateoto/django-sel',
... | [
"mattmccants@gmail.com"
] | mattmccants@gmail.com |
ed2808c6a70a190b402b909a4037889226a175bd | 0dc70961312cfc88e8156a1a5043b3096b377d47 | /leetcode/reverse.py | fcb6a7352a4e0124a131c7ab3468ce277ba4cf4e | [] | no_license | lizyang95/leetcode | 881217bf446caa533c5dbc98638db85e2831fc8b | 16e8a7935811fa71ce71998da8549e29ba68f847 | refs/heads/master | 2020-03-21T11:43:05.910036 | 2018-09-28T15:25:42 | 2018-09-28T15:25:42 | 138,518,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 944 | py | class Solution(object):
def reverse(self, x):
"""
:type x: int
:rtype: int
"""
# if x >0:
# x = str(x)
# x = x[::-1]
# if int(x)>=2**31-1:
# return 0
# return int(x)
# elif x == 0:
# return 0
... | [
"yy4@cs.cmu.edu"
] | yy4@cs.cmu.edu |
9f83308e6f1c74c2ef9865b6c94d212dd7a7c671 | cd3df53a432d35e2fe7b4e4f9bbe62222235a85b | /tests/integration_tests/ring_managers_tests/test_correct_chained_rings.py | 8cd3e9286bab4eccefd0cc690a50dc8dc0d2cfb6 | [
"MIT"
] | permissive | vincentsarago/wagyu | 00ccbe6c9d101724483bde00e10ef512d2c95f9a | f6dce8d119fafa190d07f042ff6c4d5729a4c1e6 | refs/heads/master | 2023-01-20T06:26:27.475502 | 2020-11-21T04:57:01 | 2020-11-21T04:57:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | from hypothesis import given
from tests.integration_tests.utils import (
BoundPortedRingManagersPair,
are_bound_ported_ring_managers_equal)
from . import strategies
@given(strategies.ring_managers_pairs)
def test_basic(pair: BoundPortedRingManagersPair) -> None:
bound, ported = pair
bound.correct_ch... | [
"azatibrakov@gmail.com"
] | azatibrakov@gmail.com |
ca87f1fd9d4815560e95066ae85d8a96f4deabb2 | d9eef8dd3489682c8db41f2311e3058d1f369780 | /.history/abel-network-files/mcmc_alg_implementation_own_20180626141505.py | 8028d209d8fff2ac643b843624a6b973d0c156ab | [] | no_license | McKenzie-Lamb/Gerrymandering | 93fe4a49fe39a0b307ed341e46ba8620ea1225be | b7a7c4129d6b0fcd760ba8952de51eafa701eac3 | refs/heads/master | 2021-01-25T06:06:43.824339 | 2018-10-16T14:27:01 | 2018-10-16T14:27:01 | 93,526,515 | 0 | 0 | null | 2018-07-12T19:07:35 | 2017-06-06T14:17:47 | Python | UTF-8 | Python | false | false | 1,780 | py | # Author: Abel Gonzalez
# Date: 06/26/18
#
# Description:
# This program uses the .shp file to create a network graph where each node
# represents a census tract and the edge represents adjacency between each
# tract, usign graph-tool instead of networkx
import graph_tool.all as gt
from pathlib import Path
# Paths
da... | [
"gonzaleza@ripon.edu"
] | gonzaleza@ripon.edu |
244b08bb048b8ffd583803f305923af04e44419a | 465f6a8f894892be9d50700e65b125a46785e9ad | /stubs/controllers/AppController.py | da9fc5510e83be61d44c22ad283fed4d290fc786 | [
"MIT"
] | permissive | cponeill/pow_devel | 0348dbbea9e2378b8a4a31730781cc3f3f877a26 | f7b4817c62b31ea800f27bb68adc06f3564d2b90 | refs/heads/master | 2021-01-16T19:59:30.571420 | 2012-07-27T09:40:56 | 2012-07-27T09:40:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,819 | py | #
#
# DO NOT EDIT THIS FILE.
# This file was autogenerated by python_on_wheels.
# Any manual edits may be overwritten without notification.
#
#
# date created: 2011-06-21
import sys
import os
from mako.template import Template
from mako.lookup import TemplateLookup
import datetime
sys.path.appen... | [
"khz@tzi.org"
] | khz@tzi.org |
728320efe340032960dbcd68cc4fe5cb48907b63 | 137d012bd68f21565a041ef4ece39e467ee09c04 | /setup.py | f92172130a3b39772dcafb626afaf9ad4af90a19 | [
"MIT"
] | permissive | cfirmo33/radish | cdf8ea3ed686a3e7ac13c54e62d8948911f0316b | 5d589d6a56040c0918a07199ed589041bd889140 | refs/heads/master | 2021-01-19T00:50:17.973802 | 2017-04-04T08:23:49 | 2017-04-04T11:43:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,938 | py | # -*- coding: utf-8 -*-
# pylint: disable=missing-docstring
import os
import re
import codecs
from setuptools import setup, find_packages
def read_metafile(path):
"""
Read contents from given metafile
"""
with codecs.open(path, "rb", "utf-8") as f:
return f.read()
def get_meta(name):
... | [
"tuxtimo@gmail.com"
] | tuxtimo@gmail.com |
a69a19ed74944e621651e7794169fa653b550a1f | ea44a1681e276b3cc85226b53de217f6096a05d4 | /fhir/resources/STU3/deviceusestatement.py | 17ef7d1be4c4c1b64357b744dc1fe2609611caca | [
"BSD-3-Clause"
] | permissive | stephanie-howson/fhir.resources | 69d2a5a6b0fe4387b82e984255b24027b37985c4 | 126e9dc6e14541f74e69ef7c1a0b8a74aa981905 | refs/heads/master | 2020-05-04T22:24:49.826585 | 2019-06-27T15:51:26 | 2019-06-27T15:51:26 | 179,511,579 | 0 | 0 | null | 2019-04-04T14:14:53 | 2019-04-04T14:14:52 | null | UTF-8 | Python | false | false | 4,923 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 3.0.1.11917 (http://hl7.org/fhir/StructureDefinition/DeviceUseStatement) on 2019-01-17.
# 2019, SMART Health IT.
from . import domainresource
class DeviceUseStatement(domainresource.DomainResource):
""" Record of use of a device.
A ... | [
"connect2nazrul@gmail.com"
] | connect2nazrul@gmail.com |
d82abce45908894e6799fecf7ed2f94a6c745065 | 411eff94020c192d5e5f657fa6012232ab1d051c | /game/src/coginvasion/toon/AccessoryGlobals.py | 04f6a7fdd89df5243e5ce8568bd7fb8721162629 | [] | no_license | xMakerx/cio-src | 48c9efe7f9a1bbf619a4c95a4198aaace78b8491 | 60b2bdf2c4a24d506101fdab1f51752d0d1861f8 | refs/heads/master | 2023-02-14T03:12:51.042106 | 2021-01-15T14:02:10 | 2021-01-15T14:02:10 | 328,268,776 | 1 | 0 | null | 2021-01-15T15:15:35 | 2021-01-09T23:51:37 | Python | UTF-8 | Python | false | false | 3,560 | py | #########################
# Filename: AccessoryGlobals.py
# Created by: blach (10Jul16)
#########################
# '1' : short
# '2' : long
# '3' : long
# '4' : short
#########################
# 'dgm_skirt' : short
# 'dgm_shorts' : long
# 'dgl_shorts' : long
# 'dgs_shorts' : short
#########################
Accessor... | [
"brianlach72@gmail.com"
] | brianlach72@gmail.com |
99e59074c19027a1bac8e734ac3fc5ed626c2ebf | b44e5e5c01ddfbdbf5e2aa39528ac97b2644f607 | /ShoppingApp/migrations/0008_auto_20200927_1508.py | 903eda09233ad793161e9da1ac828d83fc59bcb6 | [] | no_license | Sarathsathyan/Shopping-Mall | a5d0596216a927085a761ae56ae8d56b037d776a | 3457a17532c556e6c3fec74509b723277119f96a | refs/heads/master | 2022-12-28T02:34:25.658845 | 2020-10-10T16:28:56 | 2020-10-10T16:28:56 | 294,327,102 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py | # Generated by Django 3.0.7 on 2020-09-27 15:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ShoppingApp', '0007_category_role'),
]
operations = [
migrations.RenameField(
model_name='productdetail',
old_name='... | [
"sarathsathyan98@gmail.com"
] | sarathsathyan98@gmail.com |
e136a7aa9576870a4126ad58af24975725c344c2 | cd0f78600b2d3d3ad5321c987e33d1d0256624a5 | /mindset/mindset.py | febd233ab31e43c02a7eda566515922db027c932 | [] | no_license | nandanrao/education | 2657546017db155fa71fbda58ce0d9e3975f17fc | aef37deb66813277fea0dc670635da8ec36b2dd8 | refs/heads/master | 2021-01-19T18:30:47.300362 | 2018-04-24T12:33:10 | 2018-04-24T12:33:10 | 88,360,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,061 | py | import pandas as pd
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
import os
def make_df(df, num):
n = str(num)
return pd.DataFrame({
'id': df['User Id'],
'grade_'+n: df['Grade'],
'duration_'+n: df['Duration']
})
def get_4(group):
df = pd.read_csv('edu... | [
"nandanmarkrao@gmail.com"
] | nandanmarkrao@gmail.com |
d15e4daa9551c2cf55437ca5ee0929ca503c0045 | d93159d0784fc489a5066d3ee592e6c9563b228b | /DQMServices/FwkIO/test/read_run_lumi_file_cfg.py | 9762a9a1d6370ac80d2a18f972fce029df82d7a4 | [] | permissive | simonecid/cmssw | 86396e31d41a003a179690f8c322e82e250e33b2 | 2559fdc9545b2c7e337f5113b231025106dd22ab | refs/heads/CAallInOne_81X | 2021-08-15T23:25:02.901905 | 2016-09-13T08:10:20 | 2016-09-13T08:53:42 | 176,462,898 | 0 | 1 | Apache-2.0 | 2019-03-19T08:30:28 | 2019-03-19T08:30:24 | null | UTF-8 | Python | false | false | 735 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("READ")
process.source = cms.Source("DQMRootSource",
fileNames = cms.untracked.vstring("file:dqm_run_lumi.root"))
seq = cms.untracked.VEventID()
for r in xrange(1,11):
#begin run
seq.append(cms.EventID(r,0,0))
for ... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
2d5b41fc60aeeea468548640d264cd2ea4eda4e2 | beeb993d28b6455c11d08118ff6fe772d0022e89 | /akrr/appkernelsparsers/akrrappkeroutputparser.py | 3529bda02046bfa7715754a30c8755b3008a354f | [] | no_license | treydock/akrr | 256a54e86804e415553df204d052badfd147ca04 | 97a8451ab73655f197a6069cfd6e85b0ebc19f83 | refs/heads/master | 2020-03-25T21:59:25.327257 | 2018-05-01T18:13:13 | 2018-05-01T18:13:13 | 144,199,554 | 0 | 0 | null | 2018-08-09T20:18:09 | 2018-08-09T20:18:09 | null | UTF-8 | Python | false | false | 11,488 | py | # Part of XDMoD=>AKRR
# parser AK output processing
#
# author: Nikolay Simakov
#
import re
import os
import datetime
import xml.etree.ElementTree as ET
import xml.dom.minidom
import traceback
#add total_seconds function to datetime.timedelta if python is old
def total_seconds(d):
return d.days*3600*24 + d.s... | [
"nikolays@buffalo.edu"
] | nikolays@buffalo.edu |
ef6966b0c72f4b394282aa3bf70ff15789c47ad6 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /fact_or_high_thing.py | 037a3811a5c926664d113968ec2d9b3fb5eb793c | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py |
#! /usr/bin/env python
def first_year_or_last_life(str_arg):
long_fact(str_arg)
print('time')
def long_fact(str_arg):
print(str_arg)
if __name__ == '__main__':
first_year_or_last_life('be_company')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
15d01b3ed3ed4c4e5d0d0050d9e9ad5de72c4faf | b156c2f5ee7417dfa1f6cdcf14e9773a25397544 | /GeneVisualization/venv2/Lib/site-packages/itk/itkLabelStatisticsKeepNObjectsImageFilterPython.py | 4b7735fc3930d76157a8e8fc797ab4afec4bb651 | [] | no_license | PinarTurkyilmaz/Vis | 1115d9426e9c8eeb5d07949241713d6f58a7721b | 4dd4426a70c0bd0a6e405ffe923afee29630aa67 | refs/heads/master | 2022-11-18T13:16:18.668065 | 2020-07-06T21:04:10 | 2020-07-06T21:04:10 | 226,217,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205,511 | py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.8
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3, 0, 0):
new_instancemethod = lambda func, inst, cls: _itkL... | [
"pinar.turkyilmaz@estudiant.upc.edu"
] | pinar.turkyilmaz@estudiant.upc.edu |
6c7452a83ef6fc2fb58863220388b262104a96e7 | 3427fceb759a0f04838e1cfe7f54e8236ba1fa0a | /algorithms/LSTMs-TensorFlow/reader.py | 034a087bc3c2b7f7811b1e71c12a78b39f3aacd6 | [] | no_license | gm0907/blog | 77f06a48737c80c36c6182d65c08810e90c075a9 | 217c51ac456ad1cc893cdc9602ecaa6b390ebaf4 | refs/heads/master | 2021-09-29T03:11:43.596420 | 2018-11-23T05:11:21 | 2018-11-23T05:11:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,399 | py | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"zeng_bin8888@163.com"
] | zeng_bin8888@163.com |
3a868d025f79486513c30f00341b194bb3036853 | 15f0514701a78e12750f68ba09d68095172493ee | /Python3/914.py | c01438ea284dc8210b07bf3d307a7333afc4ad48 | [
"MIT"
] | permissive | strengthen/LeetCode | 5e38c8c9d3e8f27109b9124ae17ef8a4139a1518 | 3ffa6dcbeb787a6128641402081a4ff70093bb61 | refs/heads/master | 2022-12-04T21:35:17.872212 | 2022-11-30T06:23:24 | 2022-11-30T06:23:24 | 155,958,163 | 936 | 365 | MIT | 2021-11-15T04:02:45 | 2018-11-03T06:47:38 | null | UTF-8 | Python | false | false | 1,394 | py | __________________________________________________________________________________________________
sample 140 ms submission
class Solution:
def hasGroupsSizeX(self, deck: List[int]) -> bool:
deck.sort()
lengths = []
for key, group in itertools.groupby(deck):
temp = len(list(group... | [
"strengthen@users.noreply.github.com"
] | strengthen@users.noreply.github.com |
528efec0f45dcd56f8c4f89dfd89290db8ece0b1 | 9decd5901a491d08e9235abc7fb8dade362d215e | /pastepwn/util/templatingengine.py | 25b4690f7175feb1ead131ce207678199a3e7ddb | [
"MIT"
] | permissive | jonahrosenblum/pastepwn | b4e7644fefd289d8ffb2a1cc6e77224dd1545c46 | 26c9e426a195d403894f00638eca6c5687cbd959 | refs/heads/master | 2021-01-02T22:03:26.922322 | 2020-02-04T23:36:08 | 2020-02-04T23:36:08 | 239,809,524 | 0 | 0 | MIT | 2020-02-11T16:27:06 | 2020-02-11T16:27:05 | null | UTF-8 | Python | false | false | 1,852 | py | # -*- coding: utf-8 -*-
from string import Template
from pastepwn.util import DictWrapper
class TemplatingEngine(object):
"""Wrapper class around the python templating feature"""
@staticmethod
def fill_template(paste, analyzer_name, template_string, matches=None, **kwargs):
"""
Returns a... | [
"d-Rickyy-b@users.noreply.github.com"
] | d-Rickyy-b@users.noreply.github.com |
c920672bdae0ee0fba388550651bb3735df7ad36 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /vAk9SBqYmj6hXKfrD_2.py | 997b22b411c4e003b5bfc636b50bc028020e85d2 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | """
In this challenge, you have to implement a function that returns the given
distance `kilometers` converted into miles. You have to round the result up to
the fifth decimal digit.
### Examples
km_to_miles(2) ➞ 1.24274
km_to_miles(6) ➞ 3.72823
km_to_miles(8) ➞ 4.97097
### Notes
1 kilomete... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
7d5c73e9f3ea5a88df3b2b78b5a5005172d398b3 | 5e27039ba5f32f7775ae7dcb1be8b82bcf1cfabf | /Kim_and_Jo/settings.py | daa9c08a5c6a8bdbc703e4e008f7a24f9ad4e77a | [] | no_license | dabini/Movie_Recommendation_Website | 7ac0473809ec22bb888f604e001b9916e7a5b468 | bc608f1c0271660eababc08d4bfc4f2fc073a81f | refs/heads/master | 2022-12-28T14:10:40.079123 | 2020-10-12T13:48:38 | 2020-10-12T13:48:38 | 296,346,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,968 | py | import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.1/howto/deployment/checklist/
# SECURITY WARNING: keep the... | [
"jdb960211@gmail.com"
] | jdb960211@gmail.com |
9b11642db54bf3a661c7988ba76a2a85f6a62d61 | 2162c2b2bc6f84b87f43cecdc5289a999e0092ca | /contract/migrations/0027_alter_contract_dt_renovation.py | 703651b82d2791caa753769ba8bd2078f320b88d | [] | no_license | massariolmc/Deal | 594882961bdcd8c50d0683e9146deaa23a0475af | f40c6d973d8f29ec663b8fc3bdc5fa19260d347e | refs/heads/main | 2023-08-22T06:54:44.266895 | 2021-10-13T19:23:36 | 2021-10-13T19:23:36 | 372,344,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | # Generated by Django 3.2 on 2021-07-12 14:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('contract', '0026_alter_contract_pay_day'),
]
operations = [
migrations.AlterField(
model_name='contract',
name='dt_ren... | [
"massariolmc@gmail.com"
] | massariolmc@gmail.com |
f2278dd6dec491b6096893dbd25d26c79f7344aa | 0cc4eb3cb54f8394c127ace62d3108fdb5230c85 | /.spack-env/view/.spack/sqlite/repos/builtin/packages/zlib/package.py | 19982192f56c28bb1c389cde8fad4d451c55c686 | [] | no_license | jacobmerson/spack-develop-env | 5b2d76f58c0b64ae97c64f77a3c4d33a770c71c8 | 5fca20ca343b1a76f05fc635c87f94ed25417d94 | refs/heads/master | 2022-07-04T02:22:50.264727 | 2020-05-06T05:13:50 | 2020-05-06T05:13:50 | 261,657,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | /lore/mersoj/spack/spack/opt/spack/linux-rhel7-x86_64/gcc-7.3.0/sqlite-3.30.1-scw2xy2oaewf2z26pn3g2ceifhpnajh2/.spack/repos/builtin/packages/zlib/package.py | [
"mersoj@rpi.edu"
] | mersoj@rpi.edu |
ae0480c03c515199f268dc3f05bfd34176e88e2c | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/I_w_M_to_W_focus_Zok/woColorJ/Sob_k15_s001_EroM/pyr_Tcrop255_p20_j15/pyr_6s/L7/step10_a.py | bbc326493b591067fb617d8b280423b8ee187ebd | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935,256 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
79c8e86d8f2aa0e7a5320f99946a810b3f26ff57 | 7b12eb45c1ea76ad9c186b858b5dfebf2c5b862a | /.history/DEBER_20210904164434.py | 1ea1623e6507b4374d8fac61c4fa4195b756f6b7 | [
"MIT"
] | permissive | Alopezm5/PROYECTO-PARTE-1 | a1dce04009b24852c1c60e69bdf602ad3af0574b | bd7a8594edf08d41c6ca544cf6bac01ea4fcb684 | refs/heads/main | 2023-07-25T11:22:17.994770 | 2021-09-07T03:27:34 | 2021-09-07T03:27:34 | 403,670,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,098 | py | class Empresa():
def __init__(self,nom="",ruc=0,dire="",tele=0,ciud="",tipEmpr=""):
self.nombre=nom
self.ruc=ruc
self.direccion=dire
self.telefono=tele
self.ciudad=ciud
self.tipoEmpresa=tipEmpr
def datosEmpresa(self):#3
self.nombre=input("Ingresar nombre ... | [
"85761855+Alopezm5@users.noreply.github.com"
] | 85761855+Alopezm5@users.noreply.github.com |
fb8095290fb45b2bf8827621dbab35e634c9c1de | 79c79fb71151ce9b22251409401da982f4ba03e0 | /기초편/소스파일/Ch 14/div.py | 79111563617846eba59deb0763374612777d1e5d | [] | no_license | kimjh1753/Python | b5bf07d84c1f233f05cabf02803d03834783de75 | 9331a4a21a82eda7600d31e828f6b515e733ecfc | refs/heads/main | 2023-04-28T05:43:38.299102 | 2021-05-16T14:39:25 | 2021-05-16T14:39:25 | 353,393,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | # div.py
def main():
bread = 10 # 열 개의 빵
people = int(input("몇 명? "))
print("1인당 빵의 수: ", bread / people)
print("맛있게 드세요.")
main()
| [
"kimjh1753@naver.com"
] | kimjh1753@naver.com |
2da026233af2d0d65bc2b0254f65b447055dcb82 | 4ea2935fa0d17788c8a2f91b02cd1ced524f19ac | /virtman/tests/test_wsgi.py | 713259d71a77cbf795a18c25ae0ad5f5e4de376f | [
"Apache-2.0"
] | permissive | vmthunder/packages | 0e87567771c470b711613e9c101647f1bbae8ba1 | e530e243007a0f403cad1b67a490ffb9687969c3 | refs/heads/master | 2021-01-04T02:35:57.156400 | 2015-01-07T09:24:28 | 2015-01-07T09:24:28 | 25,519,918 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,208 | py | __author__ = 'anzigly'
"""Unit test for `virtman.wsgi`"""
import mock
import os.path
import tempfile
import urllib2
from oslo.config import cfg
import testtools
import webob
import webob.dec
from virtman.common import exception
from virtman.openstack.common import gettextutils
from virtman import te... | [
"licyh@126.com"
] | licyh@126.com |
b95c888ab8c273107c98cf526ac6e041771f4c6b | b9e99a828952ffeab9767e625c0061cb3ea5b670 | /Python编程从入门到实践/learning_log/learning_log_2.3_让用户拥有自己的数据/learning_log/urls.py | 1e5b2461a76c33e9e4023abeccb88ccedd4ff057 | [] | no_license | ZGA101421/Python3_Project | 95d95e23858ef92f6825f018605089c105303ad3 | fa30f876fd13890743bc81d1521534c340575132 | refs/heads/master | 2022-04-03T07:03:46.369710 | 2019-12-30T15:22:21 | 2019-12-30T15:22:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,678 | py | """learning_log URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-... | [
"986740304@qq.com"
] | 986740304@qq.com |
9aeb9814bb77996f8e7737bc36731f02ee67aa38 | 8ee5dcbdbd407eb5f294d430813b16eca22f571c | /data/HW3/hw3_358.py | 166e2d54a969cf6bdedc14e7c77ae1be7c77bf12 | [] | no_license | MAPLE-Robot-Subgoaling/IPT | 5e60e2ee4d0a5688bc8711ceed953e76cd2ad5d9 | f512ea3324bfdceff8df63b4c7134b5fcbb0514e | refs/heads/master | 2021-01-11T12:31:00.939051 | 2018-08-13T23:24:19 | 2018-08-13T23:24:19 | 79,373,489 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 934 | py | def main():
unitTemp = input("Please enter 'C' for Celsius, or 'K' for Kelvin: ")
temperature = input("Please enter the temperature ")
temperature = float(temperature)
tempKel=temperature-273.15
if(unitTemp == "C"):
if(temperature <= 0):
print("At this temperature, water is a sol... | [
"mneary1@umbc.edu"
] | mneary1@umbc.edu |
16f61def6bc52dfc7a540eec94369b200e7af029 | 29ee570bac5310b4a38756f7e6650f9ed3dabea2 | /1.Ingesting Data/Specifying the schema of the data.py | defba82e25f765c719cf7afe5bf575e1baab6826 | [] | no_license | Mat4wrk/Building-Data-Engineering-Pipelines-in-Python-Datacamp | 8e6f8201d8baf5e3d0cbee107ba75aca22da988c | 6ea4b35aab118e74e3113a0352ad72592f341064 | refs/heads/main | 2023-03-17T18:35:50.967215 | 2021-03-18T13:58:07 | 2021-03-18T13:58:07 | 349,065,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | # Complete the JSON schema
schema = {'properties': {
'brand': {'type': 'string'},
'model': {'type': 'string'},
'price': {'type': 'number'},
'currency': {'type': 'string'},
'quantity': {'type': 'integer', 'minimum': 1},
'date': {'type': 'string', 'format': 'date'},
'countrycode': {'type': 's... | [
"noreply@github.com"
] | Mat4wrk.noreply@github.com |
a3333ac3e8350c3df2c15c4e67a3039c518515ab | 080c13cd91a073457bd9eddc2a3d13fc2e0e56ae | /MY_REPOS/awesome-4-new-developers/tensorflow-master/tensorflow/compiler/mlir/tfr/python/composite.py | 703093e233a990bdac1dcce44d4bdfc5566ae86a | [
"Apache-2.0"
] | permissive | Portfolio-Projects42/UsefulResourceRepo2.0 | 1dccc8961a09347f124d3ed7c27c6d73b9806189 | 75b1e23c757845b5f1894ebe53551a1cf759c6a3 | refs/heads/master | 2023-08-04T12:23:48.862451 | 2021-09-15T12:51:35 | 2021-09-15T12:51:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,039 | py | # Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
d8abf12c5b5b920c0025fd7df62198a987a0f6f6 | 24a13b07623ce41e57ea4df1fcce0befb14d3406 | /model/vgg19/model10_val5.py | def42cf753ffc3958abb79502f428221bdca68cd | [
"MIT"
] | permissive | shorxp/jd-fashion | 5f37e6c2235200944869e9a0da4d741c89d63b9e | 817f693672f418745e3a4c89a0417a3165b08130 | refs/heads/master | 2021-09-22T18:40:13.030601 | 2018-09-13T13:50:05 | 2018-09-13T13:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,872 | py | """
以model 2为基础,新增real crop
"""
import math
import os
import queue
import time
import keras
from keras.layers import Dense, BatchNormalization, Activation
import config
from util import data_loader
from util import keras_util
from util.keras_util import KerasModelConfig
model_config = KerasModelConfig(k_fold_file="1... | [
"aa531811820@gmail.com"
] | aa531811820@gmail.com |
67748aedf85174827050ebe41e536dc0c9968e4a | ea9bdbb301f6498c7f8159ffc14ba1774376c1e6 | /src/python/gil_install.py | 8bb8069e71e001200af6a1fd04a442fdfc4cea96 | [
"MIT"
] | permissive | adrianogil/gil-tools | 0f1e6fdd67104500082b95ea2c5269d54a4f8e89 | 4d9475743f61b16a16bdfce8ffbb59ffab8ff239 | refs/heads/main | 2023-02-20T06:29:34.728676 | 2023-01-30T01:10:58 | 2023-01-30T01:10:58 | 127,466,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,393 | py | #!/usr/bin/env python3
"""
Script that automatically install Gil projects by:
- creating a link to project shellscript from main .bashrc.sh
"""
from subprocess import *
import subprocess
import shutil
import json
import sys
import os
try:
range = xrange
except NameError:
pass
def is_termux():
... | [
"adrianogil.san@gmail.com"
] | adrianogil.san@gmail.com |
68b2d752a91107008e9b0469e74281a9274b1c82 | 7eae8cee34df4afa3b1d783053abd5a76d119a95 | /Ahilan/list.py | 3e2cc067cc2d68bbc7bc6e5f1d86040762dde370 | [] | no_license | rajacheers/mltrain | d797a327a1b5915e31f97d14ae424bfcded2ff46 | 96cb21957bb795280cfa16cb99a5585f3e308437 | refs/heads/master | 2021-01-19T19:22:47.383138 | 2017-08-31T16:35:18 | 2017-08-31T16:35:18 | 88,412,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | # list training#
players = [2, 4, 6, 8, 10, 12]
print (len(players))
print (players[2])
players1 = players + [20, 16, 18, 14]
print(players1)
players.append(15)
print (players)
players[0:2]=(21, 22)
print(players)
| [
"you@example.com"
] | you@example.com |
01d728a7cb6e848408ffdda63852cb3005f32388 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02257/s200767545.py | 765ae3d5a31c67df24eb5f352704775f85624b16 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | import math
N = int(input())
Z = [int(input()) for i in range(N)]
ctr = 0
for j in range(N):
if Z[j] == 2:
ctr += 1
elif Z[j] < 2 or (Z[j] % 2) == 0:
pass
else:
Up = math.sqrt(Z[j])
k = 3
while k<= Up:
if (Z[j] % k) == 0:
break
else:
k += 1
else:
ctr += 1
print(ctr) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8fa9cc93e52ff2af986fedb56cbb2a23c9beb5d3 | 36f460c1e3978121c11d221302082ea3c2bab9d1 | /pupil_tracker/__init__.py | f33146843347d64751c0b95d5b0d8b2a0f81242d | [] | no_license | watchme-dimigo/watchme-background | 74ec9f1cb099731d146fbacd38caf2e0137ccb89 | 86e5a2e42a2ddd9ea53c8e57cc80ef66fd5f4148 | refs/heads/master | 2020-05-24T09:06:11.773273 | 2019-05-18T05:40:40 | 2019-05-18T05:40:40 | 187,197,886 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | from keras.models import load_model
model = load_model('./models/model.h5')
classes = ['bottom_left', 'bottom_right', 'normal', 'top_left', 'top_right']
import pupil_tracker.predict
import pupil_tracker.preprocess
| [
"32605822+JunhoYeo@users.noreply.github.com"
] | 32605822+JunhoYeo@users.noreply.github.com |
c42f0af16800f6f32fb99b03835547adede61759 | 9269192570275f23871c38ffa80b3a8f5f11b04c | /portal/migrations/0021_auto_20170909_1023.py | 272ac36bd9ac87aa59a1bbe09d39e47fe12d7507 | [
"BSD-3-Clause",
"MIT"
] | permissive | nickmvincent/ugc-val-est | 03e2099e997ab2f23e1617402e52217db18a6de5 | b5cceda14ef5830f1befaddfccfd90a694c9677a | refs/heads/master | 2022-12-12T13:44:55.145757 | 2020-02-15T17:34:42 | 2020-02-15T17:34:42 | 97,265,409 | 2 | 0 | MIT | 2022-12-07T23:57:41 | 2017-07-14T19:12:53 | Python | UTF-8 | Python | false | false | 1,075 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-09-09 10:23
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('portal', '0020_revision_user_retained_180'),
]
operations = [
migrations.Ad... | [
"nickmvincent@gmail.com"
] | nickmvincent@gmail.com |
7a96116f0fa3db17445746fff6fa0f4e81d3b486 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_121/ch62_2020_10_06_21_50_26_204559.py | 4233c018d7a36c639b7400e56d72618901fee7fa | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | def pos_arroba(string):
i=0
while i<len(string):
if string[i]=='@':
resultado=i
break
i+=1
return resultado | [
"you@example.com"
] | you@example.com |
41fd719871b9743d5f71a3620605ee2786c9482b | 32e55bf28b9f22265bcbc1d8c0ebf52a3608187d | /342. Power of Four.py | 62a89bed7e1559fb2a43b58f83a30fb7e2d5f78a | [] | no_license | Garacc/LeetCode | 9f843672a18701d032f36769c9025761199d8caf | 215d12703b2cac4c1ad49d5a0e1060948fbbacd2 | refs/heads/master | 2018-10-10T03:37:48.889898 | 2018-09-17T08:38:22 | 2018-09-17T08:38:22 | 120,304,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | class Solution:
def isPowerOfFour(self, num):
"""
:type num: int
:rtype: bool
"""
if num == 0: return False
while(num % 4 == 0): num //= 4
return num == 1 | [
"xgyxmxl@163.com"
] | xgyxmxl@163.com |
8d9b756aa148c8ac0ed04779c2c7a5b016cbc4cc | 37fef592f365194c28579f95abd222cc4e1243ae | /streamlit/venv/venv/lib/python3.7/site-packages/fontTools/designspaceLib/types.py | 8afea96c9ecaa8b22b0a68beed3b0fb81aa1187e | [] | no_license | edimaudo/Python-projects | be61e0d3fff63fb7bd00513dbf1401e2c1822cfb | 85d54badf82a0b653587a02e99daf389df62e012 | refs/heads/master | 2023-04-07T03:26:23.259959 | 2023-03-24T12:03:03 | 2023-03-24T12:03:03 | 72,611,253 | 4 | 3 | null | 2022-10-31T18:10:41 | 2016-11-02T06:37:17 | null | UTF-8 | Python | false | false | 4,125 | py | from __future__ import annotations
from dataclasses import dataclass
from typing import Dict, List, Optional, Union
from fontTools.designspaceLib import (
DesignSpaceDocument,
RangeAxisSubsetDescriptor,
SimpleLocationDict,
VariableFontDescriptor,
)
def clamp(value, minimum, maximum):
return min(... | [
"edimaudo@gmail.com"
] | edimaudo@gmail.com |
35ccb15f36f4faf98a98d9d01e538a4871e511ae | 7eb3009e95a15a992c0c21afe0884008ba10544d | /game/src/leveleditor/brushes/BaseBrush.py | 4a08d7cb172fd8f03208786d2319050d8c3c511e | [] | no_license | tsp-team/ttsp-src | be391ebc44f01463ff2e802ab039438e07a645f3 | 9bf1869adbc4f0c1dff69095c04f4604a515c4e4 | refs/heads/master | 2022-12-04T09:50:36.944988 | 2020-08-23T21:01:32 | 2020-08-23T21:01:32 | 263,228,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,825 | py | from PyQt5 import QtWidgets
from src.leveleditor.math.Plane import Plane
from src.leveleditor.mapobject.Solid import Solid
from src.leveleditor.mapobject.SolidFace import SolidFace
from src.leveleditor.mapobject.SolidVertex import SolidVertex
from src.leveleditor import LEUtils
class BaseBrush:
Name = "Brush"
... | [
"brianlach72@gmail.com"
] | brianlach72@gmail.com |
d258138e43dac4edd695cd859b68e37c8344381c | e2cd117b1060d445d0c6825b4761dc8d9d261a59 | /2021-05-08-카카오 인턴 코테/4-INF쓴거.py | 76af2698a81a3fc9c20a60fdc94e1ff5a0f8e642 | [] | no_license | winterash2/TIL | 856fc55f076a6aadff60e6949a3ce44534e24eda | 9b8e93e4eacce2644a9a564e3b118bb00c3f4132 | refs/heads/master | 2023-06-12T23:58:00.192688 | 2021-07-04T14:20:30 | 2021-07-04T14:20:30 | 288,957,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,746 | py | import heapq
INF = float('inf')
def reverse_road(graph, cur_node):
new_graph = [[] for _ in range(len(graph))]
for Q, S in graph[cur_node]:
new_graph[Q].append((cur_node, S))
for P in range(len(graph)):
if P == cur_node:
continue
for Q, S in graph[P]:
if Q ... | [
"winterash2@naver.com"
] | winterash2@naver.com |
d063ed15b02a5573094de1af58376e3114a8a0bc | 4824e3e4833f3db236d44eaf3dea3e5e8e0bfca1 | /sdk/pkg/sdk/nuraghe-2017.2.2/install/python/matadd.py | 84ec06fc80191a3a5dd596e871791d5bfecc08f1 | [] | no_license | neuraghe/NEURAghe | 5c99b6340edd4d2d50ee3ec461df9f39fd6cb138 | dd6cfc808a163e4b4f8d0cb499f009bc977d7984 | refs/heads/master | 2020-08-07T11:59:58.699824 | 2019-10-16T13:55:10 | 2019-10-16T13:55:10 | 213,429,667 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,238 | py | #!/usr/bin/env python3
from plpstim import *
class Matadd(Kernel):
groupName = 'matadd'
def check(self):
if self.get('word') != 8 and self.get('word') != 16 and self.get('word') != 32: raise Exception(bcolors.FAIL + 'Only word 8, 16 and 32 are supported' + bcolors.ENDC)
def setParams(self, word=None, xsi... | [
"carreras.marco@gmail.com"
] | carreras.marco@gmail.com |
818c1c5d5b08258f88b503043dd073e293c57c81 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_74/1001.py | 0606e88fd4e2760b936c09d80f94fca12ef8125c | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,100 | py | import glob
for fname in glob.glob("*.in"):
fp=open(fname)
result=[]
for i in range(int(fp.readline())):
input=fp.readline()
#input=[[x.split()[0],int(x.split()[1])] for x in input[input.find(" "):].split(",")]
input1=input.split()
input=[]
for x in range(int... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
1bf51c33cdd1195e28d72c7f5bf66a7b51023259 | 568d7d17d09adeeffe54a1864cd896b13988960c | /month01/day18/extance01.py | 553c19fc645a50cb62f682b4f96e26d230a363e7 | [
"Apache-2.0"
] | permissive | Amiao-miao/all-codes | e2d1971dfd4cecaaa291ddf710999f2fc4d8995f | ec50036d42d40086cac5fddf6baf4de18ac91e55 | refs/heads/main | 2023-02-24T10:36:27.414153 | 2021-02-01T10:51:55 | 2021-02-01T10:51:55 | 334,908,634 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | """
重写range函数,要求重写之后的myrange(5)输出结果为:5,4,3,2,1,0
"""
class Iterator:
def __init__(self,start):
self.start=start+1
def __next__(self):
self.start-=1
if self.start<0:
raise StopIteration
return self.start
mr=MyRange(5)
iterator=mr.__iter__()
while True:
try:
... | [
"895854566@qq.com"
] | 895854566@qq.com |
3b72f1cf7276d5028ef98fa37f50fe776a6d85da | 30cf8a1d297cede17d9c63ad41a711b48736bdcb | /oseoserver/operations/cancel.py | 77f8ceeb8d2d323d36e26465c15fe32b99ffe43f | [
"Apache-2.0"
] | permissive | pyoseo/django-oseoserver | efd8ba5289cb9202f3c03871b02332dabd7b0607 | 8c97ee5a7d698cc989e1c8cab8cfe0db78491307 | refs/heads/master | 2020-12-25T15:28:34.508878 | 2018-04-30T23:16:12 | 2018-04-30T23:32:47 | 30,425,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,243 | py | # Copyright 2017 Ricardo Garcia Silva
#
# 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 agree... | [
"ricardo.garcia.silva@gmail.com"
] | ricardo.garcia.silva@gmail.com |
e83da77800f200ee41dcc0254340e89f7277ca66 | 4583606ffcb09158b89437bf1f3bd094500847cd | /python/CalculoNumerico/src/newton/newton_simples.py | 0d02038a26caea828d61bcf8bf9c68f4eea52060 | [] | no_license | katcipis/playground | 7693914497a5f7af089a0c06c9f3c9a46227cdf6 | 7559ddc567091a7352fcf2942b57afe4351466ce | refs/heads/main | 2023-07-09T18:24:17.864361 | 2023-06-26T20:50:11 | 2023-06-26T20:50:11 | 22,303,201 | 0 | 4 | null | 2023-05-17T18:15:59 | 2014-07-27T04:27:12 | C++ | UTF-8 | Python | false | false | 1,024 | py | import math
import funcoes
def obter_alpha(funcao, derivada, erro_fornecido = 0.0, limite = 20, x_inicial = 0.0):
xm = x_inicial
for i in range(limite):
xa = xm
der = derivada(xm)
if(der != 0.0):
xm = xm - (funcao(xm) / der)
erro = funcoes.calcular_erro(xa, xm)
print 'Iterac... | [
"tiagokatcipis@gmail.com"
] | tiagokatcipis@gmail.com |
ed769625c02d5e75f01795acf9848ab4169fdf44 | 926ca315b72b5fd68628b8395450148b373b3bc8 | /tortoise_racing.py | 52ae24e8afae0256846d1880070699d25df50cbd | [] | no_license | jack456054/codewars | a54b30ae92e6563cdd725ae47340d75c15105c32 | de1b780e22e62a5c157f06b4c4af1771bdd8f9b9 | refs/heads/master | 2022-10-27T08:20:35.401703 | 2022-10-19T06:36:00 | 2022-10-19T06:36:00 | 184,666,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | def race(v1, v2, g):
if v1 >= v2:
return None
result = int(g / (v2 - v1) * 3600)
return [result // 3600, result // 60 % 60, result % 60]
if __name__ == '__main__':
print(race(720, 850, 70))
print(race(80, 91, 37))
print(race(80, 100, 40))
| [
"jack456054@hotmail.com"
] | jack456054@hotmail.com |
3d9ae6ce75772d546b425fabf33f7cfd65a97740 | b47c136e077f5100478338280495193a8ab81801 | /Lights/adafruit-circuitpython-bundle-6.x-mpy-20210310/examples/is31fl3731_wave_example.py | 67070edc231423410dbe73cd6694fd5d45e0c9c0 | [
"Apache-2.0"
] | permissive | IanSMoyes/SpiderPi | 22cd8747cc389f674cc8d95f32b4d86f9b7b2d8e | cc3469980ae87b92d0dc43c05dbd579f0fa8c4b1 | refs/heads/master | 2023-03-20T22:30:23.362137 | 2021-03-12T17:37:33 | 2021-03-12T17:37:33 | 339,555,949 | 16 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,456 | py | # SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
# SPDX-License-Identifier: MIT
import board
import busio
# uncomment next line if you are using Feather CharlieWing LED 15 x 7
from adafruit_is31fl3731.charlie_wing import CharlieWing as Display
# uncomment next line if you are using Adafruit 16... | [
"ians.moyes@gmail.com"
] | ians.moyes@gmail.com |
051a73280a450adf1e275cfd37883208efc06377 | 3435505aa0b760eddf175a9a8f62119952020380 | /wienerschnitzelgemeinschaft/src/Christof/hillclimb/blends/3/blend.py | 3e924db0c28477e765ca1ed0d4c5e802cad4b6b4 | [
"MIT"
] | permissive | CellProfiling/HPA-competition-solutions | 2cc365b2be086eec382136856ebcf790d4eaabb9 | 547d53aaca148fdb5f4585526ad7364dfa47967d | refs/heads/master | 2022-12-16T16:58:15.578281 | 2020-07-09T23:04:55 | 2020-07-09T23:04:55 | 223,605,040 | 61 | 25 | MIT | 2022-11-22T04:37:30 | 2019-11-23T14:49:57 | Jupyter Notebook | UTF-8 | Python | false | false | 3,569 | py | import pandas as pd
import numpy as np
import pickle
from scipy.special import expit
# 0 8 airx_s67 0.703696
# 1 5 preresnet_s67 0.697541
# 2 5 GAPNet_13_512crop 0.685118
# 3 1 GAPNet_13_ext 0.669337
# 4 3 GAPNet_13_ext_rgby 0.650539
# 5 ... | [
"noreply@github.com"
] | CellProfiling.noreply@github.com |
ae042b0a678e75173cc91e38eeb38204d38fb6c3 | 3fcbbc1a2a262ed3b8fc9d7183c81b5f09445a85 | /devel/lib/python2.7/dist-packages/dbw_mkz_msgs/msg/_Misc1Report.py | e872d6fd8c0eaf610593b1848fbae1d7a20bcfba | [] | no_license | karry3775/SimulationWS | 0861071c7d1b0f0372dc3515983bf8e092b37d07 | 754336d88d40e8e7d9e677bedff37505df7eaf4d | refs/heads/master | 2021-05-24T12:01:15.763154 | 2020-04-16T02:33:22 | 2020-04-16T02:33:22 | 253,547,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,547 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from dbw_mkz_msgs/Misc1Report.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import dbw_mkz_msgs.msg
import std_msgs.msg
class Misc1Report(genpy.Message):
_md5sum = "9... | [
"kartikprakash3775@gmail.com"
] | kartikprakash3775@gmail.com |
3369a8ab4a9d416fad6b0f6cd6955788e4315ad6 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03129/s480547779.py | becf428273772cfb6216c89ebca0f27b3842f09f | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | # -*- coding: utf-8 -*-
import array
import bisect
import collections
import fractions
import heapq
import itertools
import math
import re
import string
class joshu:
# stdio
@staticmethod
def getInt():
return int(raw_input().strip())
@staticmethod
def getInts():
return [int(i) for i in raw_input()... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7af93b9e29fe1ef52efeb6d1797143d3d8bbb9a7 | 0529196c4d0f8ac25afa8d657413d4fc1e6dd241 | /runnie0427/01735/1735.py2.py | 5732489493853085776021cda3eeaf268cb85df2 | [] | no_license | riyuna/boj | af9e1054737816ec64cbef5df4927c749808d04e | 06420dd38d4ac8e7faa9e26172b30c9a3d4e7f91 | refs/heads/master | 2023-03-17T17:47:37.198570 | 2021-03-09T06:11:41 | 2021-03-09T06:11:41 | 345,656,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,370 | py | <!DOCTYPE html>
<html lang="ko">
<head>
<title>Baekjoon Online Judge</title><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta charset="utf-8"><meta name="author" content="스타트링크 (Startlink)"><meta name="keywords" content="ACM-ICPC, ICPC, 프로그래밍, 온라인 저지, 정보올림피아드, 코딩, 알고리즘, 대회, 올림피아드, 자료구조"><meta... | [
"riyuna0427@gmail.com"
] | riyuna0427@gmail.com |
be94a96824ca86c97e9d7c142e5b9ff1d0da6186 | 96b30a0c0fbf0a5b114e9d16349d018d13fe8fad | /tensorly/tucker_tensor.py | 1d8afb16a7d74a87386781a892f50b080a3ecf1e | [
"BSD-3-Clause"
] | permissive | malbergo/tensorly | f7c4f7f02fc761f71a36cd709c14dc8418f5a15e | dea9ac8221e716f54e6fa6b18dc7939627817257 | refs/heads/main | 2023-07-15T18:24:48.545698 | 2021-08-27T13:14:32 | 2021-08-27T13:14:32 | 381,483,359 | 0 | 0 | NOASSERTION | 2021-06-29T20:02:58 | 2021-06-29T20:02:58 | null | UTF-8 | Python | false | false | 13,960 | py | """
Core operations on Tucker tensors.
"""
from ._factorized_tensor import FactorizedTensor
from .base import unfold, tensor_to_vec
from .tenalg import multi_mode_dot, mode_dot
from . import backend as tl
import numpy as np
from scipy.optimize import brentq
import warnings
# Author: Jean Kossaifi <jean.kossaifi+tens... | [
"jean.kossaifi@gmail.com"
] | jean.kossaifi@gmail.com |
00676fe1e43405e7e22abeeac1589f8f0f7b7346 | 1fe8d4133981e53e88abf633046060b56fae883e | /venv/lib/python3.8/site-packages/tensorflow_estimator/_api/v1/estimator/tpu/__init__ 2.py | a1e412b92bc5847ae7f510200ab45c726309b95d | [] | no_license | Akira331/flask-cifar10 | 6c49db8485038731ce67d23f0972b9574746c7a7 | 283e7a2867c77d4b6aba7aea9013bf241d35d76c | refs/heads/master | 2023-06-14T16:35:06.384755 | 2021-07-05T14:09:15 | 2021-07-05T14:09:15 | 382,864,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:b95d5e46dfae86eeef691399399e3f5f59e1fde3539d8375774944bf36b11f9c
size 1061
| [
"business030301@gmail.com"
] | business030301@gmail.com |
6f6d15c27ae8c4c4982142d3f74d24f3ee881ffe | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D13A/WASDISD13AUN.py | 179ce2155c287947fda0feee3f7fc0fd13f617df | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 1,213 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD13AUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGM', MIN: 1, MAX: 1},
{ID: 'DTM', MIN: 0, MAX: 9},
{ID: 'RFF', MIN: 0, MAX: 9, LEVEL: [
... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
b4bd2e0bc68d5244a9b3a58e3ddd1da8313de54e | 2afdeceb9e507817ec8f7f636e703c7d14a7eb24 | /code/ch06-data-structs/person.py | 1ffc367680727d52d95f8092d3b7c408e03c72e3 | [
"MIT"
] | permissive | danielhao5/python-memory-management-course | 3c08d2f537a1954deb47889c519c7014e9e5a298 | 89015877d858488e018e07fad52eec7bf3acd394 | refs/heads/master | 2022-11-25T23:28:16.896957 | 2020-08-03T18:14:29 | 2020-08-03T18:14:29 | 289,151,983 | 1 | 0 | MIT | 2020-08-21T01:52:21 | 2020-08-21T01:52:20 | null | UTF-8 | Python | false | false | 388 | py | class Person:
__next_id = 1
def __init__(self, name: str):
self.id = self.__gen_id()
self.name = name
self.friends = []
@classmethod
def __gen_id(cls) -> int:
nxt = cls.__next_id
cls.__next_id += 1
return nxt
def __del__(self):
print(f"Pers... | [
"mikeckennedy@gmail.com"
] | mikeckennedy@gmail.com |
887f5df6b785c4c0c57ae8bc4b6dc96979c58243 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/304/105515/submittedfiles/testes.py | b303dc5057f4aacb8878e3673c46caa8709a86ff | [] | 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 | 5,942 | py | from minha_bib import *
# -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
'''
-------------------------------------------------
p1 = float(input('Insira o peso 1: '))
c1 = float(input('Insira o comprimento 1: '))
p2 = float(input('Insira o peso 2: '))
c2 = float(input('Insira o comprimento 2: '))
if (p1*c1) == (p2... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
2e733903f10c737771c62c3149b58dedadefb47b | 0af3f2dbfdf3a607f9055e8ac475900931a166ca | /Tic-Tac-Toe with AI/Problems/Sphere/main.py | ef81df14ac91ec040dc389b726b9e872cc9879b3 | [] | no_license | zolcsika71/JBA_Python | 94b95ace287a67961c6e4e6f7bec24453118a50f | 2f1d42cc787627efb7473124a862b060c57916da | refs/heads/main | 2023-08-16T00:29:43.624129 | 2021-10-03T19:55:35 | 2021-10-03T19:55:35 | 331,738,006 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | class Sphere:
# finish class Sphere here
PI = 3.1415
def __init__(self, radius):
self.radius = radius
self.volume = 4 * self.PI * pow(radius, 3) / 3
| [
"bushdoctor2008@gmail.com"
] | bushdoctor2008@gmail.com |
2018b80d9bb3b245a2cef6db3e24ef7ae55574e2 | e20ed90b9be7a0bcdc1603929d65b2375a224bf6 | /generated-libraries/python/netapp/dummyfcp/__init__.py | 39de7b284ed7c57168cd930809d9054508e5b976 | [
"MIT"
] | permissive | radekg/netapp-ontap-lib-gen | 530ec3248cff5ead37dc2aa47ced300b7585361b | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | refs/heads/master | 2016-09-06T17:41:23.263133 | 2015-01-14T17:40:46 | 2015-01-14T17:40:46 | 29,256,898 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,901 | py | from netapp.connection import NaConnection
from dummy_fcp_adapter_initiators_info import DummyFcpAdapterInitiatorsInfo # 2 properties
from dummy_fcp_get_iter_key_td import DummyFcpGetIterKeyTd # 4 properties
from dummy_portname_alias_list_info import DummyPortnameAliasListInfo # 2 properties
from dummy_fcp_connected_in... | [
"radek@gruchalski.com"
] | radek@gruchalski.com |
f2aa2c3fc66ca77d27c9cb0bcfab2588ca55d9cb | 9d862dd68f8b4ea4e7de9397fef8592824c77449 | /app/top/api/rest/LogisticsConsignOrderCreateandsendRequest.py | 98aaa476196e59835a6d838bc7814e4b4555c7ab | [] | no_license | hi-noikiy/tmall-sku-outer_id | ffaca630dfb288ca33d962b8a050932d1047b9c8 | 1bcf29386a513bcb210bf5d91016e0dcb1ebc1ad | refs/heads/master | 2021-05-09T18:20:27.150316 | 2017-03-08T06:43:57 | 2017-03-08T06:43:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 990 | py | '''
Created by auto_sdk on 2016.04.13
'''
from app.top.api.base import RestApi
class LogisticsConsignOrderCreateandsendRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.company_id = None
self.item_json_string = None
self.logis_type = None
self... | [
"1037096435@qq.com"
] | 1037096435@qq.com |
785ac1485e1daf517510c236207137b9454ee7ab | d5519f65832b8cecd931196b8d1bb472a90f2d46 | /demo/import_tomoPy_SRC.py | ea3bc08982d548e3f34a203e817d49a0c6b1b238 | [] | no_license | vdeandrade/data-exchange | 5091e4508c699b2cf374d88098607e3e6e76e16f | a353d61451bc403c8ba7f70facbf4f34a15f7962 | refs/heads/master | 2021-01-20T17:33:16.201939 | 2014-09-11T05:53:54 | 2014-09-11T05:53:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,305 | py | # -*- coding: utf-8 -*-
"""
.. module:: import_tomoPy_SLS.py
:platform: Unix
:synopsis: reconstruct SLS Tomcat data with TomoPy
:INPUT
series of tiff and log file or data exchange
.. moduleauthor:: Francesco De Carlo <decarlof@gmail.com>
"""
# tomoPy: https://github.com/tomopy/tomopy
import tomopy ... | [
"decarlof@gmail.com"
] | decarlof@gmail.com |
95686c9a0c54a52670fcf58dfdf529d8d0f9e3ad | 99c4d4a6592fded0e8e59652484ab226ac0bd38c | /code/batch-2/vse-naloge-brez-testov/DN14-M-139.py | 598f2e21449129b2db2b4a8a7af7b4153a100469 | [] | no_license | benquick123/code-profiling | 23e9aa5aecb91753e2f1fecdc3f6d62049a990d5 | 0d496d649247776d121683d10019ec2a7cba574c | refs/heads/master | 2021-10-08T02:53:50.107036 | 2018-12-06T22:56:38 | 2018-12-06T22:56:38 | 126,011,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,615 | py | import risar
import random
import math
import time
from PyQt5.QtWidgets import QMessageBox
class Kroglica:
def __init__(self):
self.x = random.randint(10, risar.maxX - 10)
self.y = random.randint(10, risar.maxY - 10)
self.r = 10
self.color = risar.nakljucna_barva()
... | [
"benjamin.fele@gmail.com"
] | benjamin.fele@gmail.com |
74cb2c9cbe61b3549b0082c813f144ae858d4bf8 | 7a0acc1c2e808c7d363043546d9581d21a129693 | /selenium/src/py/lib/docutils/languages/ru.py | d9cb325d71261ee315eae55c535fb08b2a20bfdd | [
"Apache-2.0"
] | permissive | epall/selenium | 39b9759f8719a168b021b28e500c64afc5f83582 | 273260522efb84116979da2a499f64510250249b | refs/heads/master | 2022-06-25T22:15:25.493076 | 2010-03-11T00:43:02 | 2010-03-11T00:43:02 | 552,908 | 3 | 0 | Apache-2.0 | 2022-06-10T22:44:36 | 2010-03-08T19:10:45 | C | UTF-8 | Python | false | false | 3,385 | py | # Author: Roman Suzi
# Contact: rnd@onego.ru
# Revision: $Revision: 2999 $
# Date: $Date: 2005-03-03 20:35:02 +0100 (Thu, 03 Mar 2005) $
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
# read <http://docutils.sf.net/docs... | [
"simon.m.stewart@07704840-8298-11de-bf8c-fd130f914ac9"
] | simon.m.stewart@07704840-8298-11de-bf8c-fd130f914ac9 |
8e7ed6d813eb9e6c7d0b68290593c2bb7bb4073c | df983affa658d3169aebcd95e255c7cafccf1aa0 | /devel/lib/python3/dist-packages/sensor_msgs/msg/_BatteryState.py | a8dec4fb19b5518c410738211dfd998c0f1efb3f | [] | no_license | Ektachaurasia/Backup | 17045d3cd3185ca47c53b02298fe1c123ee8a058 | e5ab8532f6cd599ebe4b501626ddba2c6c5d83ab | refs/heads/main | 2023-06-20T21:49:54.092227 | 2021-07-28T04:31:15 | 2021-07-28T04:31:15 | 390,155,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,093 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from sensor_msgs/BatteryState.msg. Do not edit."""
import codecs
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import std_msgs.msg
class BatteryState(genpy.Message):
_md5sum = "4ddae7f048... | [
"ektachaurasia02@gmail.com"
] | ektachaurasia02@gmail.com |
63d8c1f055775dfd233b0e27af0d4124205f3444 | f52cc8feb8c7cc18fdc8dc29359eb26409a26cad | /huaweicloud-sdk-bss/huaweicloudsdkbss/v2/__init__.py | e52ec4b6e7a0a61f5419a16925caea020dd81cfc | [
"Apache-2.0"
] | permissive | KingfaLuis/huaweicloud-sdk-python-v3 | b8890d6a289366a69ab974a8130fee9a7a4f6fd2 | 114bc594ccced867189b74ee4915a7ec2ba7f226 | refs/heads/master | 2023-02-14T16:06:52.790497 | 2020-12-31T10:02:03 | 2020-12-31T10:02:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,972 | py | # coding: utf-8
from __future__ import absolute_import
# import BssClient
from huaweicloudsdkbss.v2.bss_client import BssClient
from huaweicloudsdkbss.v2.bss_async_client import BssAsyncClient
# import models into sdk package
from huaweicloudsdkbss.v2.model.account_balance_v2 import AccountBalanceV2
from huaweiclouds... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
9597bbb54e3686a6434bcdb2a6e1a797aa07d637 | c392c7e91bc33ce421f5d395a742d311196d29b0 | /code_bases/python_coding_practice/maximum_freq_stack.py | c25cb7460c200debbdef398eb82da27a80688750 | [] | no_license | sgarg87/sahilgarg.github.io | edf0d0a2235e9cdc7fdce8bfd271fe25ed8ddb55 | 5e48a72a20456d5c6ecbefe776a1c5e08d2c7e46 | refs/heads/master | 2020-06-25T07:16:40.111225 | 2020-02-05T06:37:41 | 2020-02-05T06:37:41 | 199,242,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,766 | py |
class FreqStack:
def __init__(self):
self.val_freq__map = {}
self.freq_values__map = {}
self.freq_stack = list()
def _push_freq_stack_and_map(self, new_freq, x):
if new_freq not in self.freq_values__map:
new_freq_tuple = (new_freq, list())
self.freq_st... | [
"sahilgarg@sahils-mbp.home"
] | sahilgarg@sahils-mbp.home |
fb19ce171433deea9057613164a9a7d05833aac9 | a120ef7fa97fbd6a1899f479fc2952d04da77519 | /ember_csi/messages.py | 67bd84a5deab2da9a254658099c1e96a1397dc59 | [
"Apache-2.0"
] | permissive | embercsi/ember-csi | 21dde7a392ada82dc12483130e917f578a08264d | a94897d13d3775c9e2db8b61be239803afa3eabe | refs/heads/master | 2022-12-25T16:51:32.562385 | 2022-06-06T14:11:31 | 2022-06-06T14:11:31 | 133,998,199 | 42 | 22 | NOASSERTION | 2022-12-11T05:37:47 | 2018-05-18T19:55:14 | Python | UTF-8 | Python | false | false | 1,382 | py | # Copyright (c) 2020, Red Hat, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"geguileo@redhat.com"
] | geguileo@redhat.com |
5140d2cba3a0bef4df6ad01503c052a665e9e754 | 2af6a5c2d33e2046a1d25ae9dd66d349d3833940 | /res/scripts/client/gui/shared/fortifications/fortbuilding.py | 24e5ba797a20e284b6f3033b679d3c67bf2a1fc6 | [] | no_license | webiumsk/WOT-0.9.12-CT | e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2 | 2506e34bd6634ad500b6501f4ed4f04af3f43fa0 | refs/heads/master | 2021-01-10T01:38:38.080814 | 2015-11-11T00:08:04 | 2015-11-11T00:08:04 | 45,803,240 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 3,325 | py | # 2015.11.10 21:29:03 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/shared/fortifications/FortBuilding.py
from FortifiedRegionBase import BuildingDescr
from gui.Scaleform.locale.FORTIFICATIONS import FORTIFICATIONS
from gui.shared.formatters import time_formatters
from gui.shared.gui_items import ... | [
"info@webium.sk"
] | info@webium.sk |
d885d93af6afbe70ddf5b8c7e4bc80a6a3161c02 | 91d8b296a2ac05f9a21779e9e0dab5aec1337e6d | /spimagine/gui_slice_view.py | a3930a931a6d1af29fa82b95341d3411edaf0d9b | [] | no_license | paulmueller/spimagine | 0bebfa1d45a4e57d2b3f587aba51832f59538d5e | b33f51739f329dc73bb32c072445bdc18462e22d | refs/heads/master | 2020-12-03T03:56:55.173607 | 2015-07-10T16:34:30 | 2015-07-10T16:34:30 | 37,982,611 | 0 | 0 | null | 2015-06-24T12:19:22 | 2015-06-24T12:19:21 | null | UTF-8 | Python | false | false | 15,180 | py | #!/usr/bin/env python
"""
The 2d slice widget
author: Martin Weigert
email: mweigert@mpi-cbg.de
"""
import logging
logger = logging.getLogger(__name__)
import sys
import os
from PyQt4 import QtCore
from PyQt4 import QtGui
from PyQt4 import QtOpenGL
from OpenGL.GL import *
from OpenGL.GL import shaders
impo... | [
"mweigert@mpi-cbg.de"
] | mweigert@mpi-cbg.de |
3934756f1841edcd2d8e1c5ea02b66c8dfb2f244 | 53cc86f7991b2d3b065f612930e92ca811dc7c43 | /dask_cuda/get_device_memory_objects.py | c5746c862346384585d124d3cd02cc5501d8b3f9 | [
"Apache-2.0"
] | permissive | rapidsai/dask-cuda | 28f83a4c6c8abcf9bc96fe4b7969d60f63eccd35 | 171fd2c5debad043eb8887f9e20243c416b7e34e | refs/heads/branch-23.10 | 2023-09-04T06:09:59.970145 | 2023-08-29T21:15:03 | 2023-08-29T21:15:03 | 165,926,977 | 234 | 80 | Apache-2.0 | 2023-09-08T18:19:25 | 2019-01-15T21:33:16 | Python | UTF-8 | Python | false | false | 3,890 | py | from typing import Set
from dask.sizeof import sizeof
from dask.utils import Dispatch
dispatch = Dispatch(name="get_device_memory_objects")
class DeviceMemoryId:
"""ID and size of device memory objects
Instead of keeping a reference to device memory objects this class
only saves the id and size in orde... | [
"noreply@github.com"
] | rapidsai.noreply@github.com |
442ea8a8dfefccc588061b503f79116d6588c468 | 8e79de4b73998dd0ee1dae4881784a2b12410615 | /82/score.py | 1e4d5aa2b0c2b4b16fe90def66aaea7c04b18aac | [
"MIT"
] | permissive | alehpineda/bitesofpy | e6eb7c9413cf407a12643efece01bef5457e5dcb | bfd319a606cd0b7b9bfb85a3e8942872a2d43c48 | refs/heads/master | 2021-07-15T19:59:35.061049 | 2020-09-25T17:49:32 | 2020-09-25T17:49:32 | 209,878,791 | 0 | 0 | MIT | 2020-09-06T00:11:45 | 2019-09-20T20:49:51 | Python | UTF-8 | Python | false | false | 339 | py | from enum import Enum
THUMBS_UP = "👍" # in case you go f-string ...
class Score(Enum):
BEGINNER = 2
INTERMEDIATE = 3
ADVANCED = 4
CHEATED = 1
def __str__(self):
return f"{self.name} => {THUMBS_UP * self.value}"
@classmethod
def average(cls):
return sum(s.value for s in... | [
"ale.hpineda@gmail.com"
] | ale.hpineda@gmail.com |
b2ea988e502f56c33d08f0f1481e998151afebea | 62e45255088abb536e9ea6fcbe497e83bad171a0 | /ippython/binario_3.py | ebd2807b67688a862e1f965e7ac03085783867fd | [] | no_license | jmery24/python | a24f562c8d893a97a5d9011e9283eba948b8b6dc | 3e35ac9c9efbac4ff20374e1dfa75a7af6003ab9 | refs/heads/master | 2020-12-25T21:56:17.063767 | 2015-06-18T04:59:05 | 2015-06-18T04:59:05 | 36,337,473 | 0 | 0 | null | 2015-05-27T02:26:54 | 2015-05-27T02:26:54 | null | UTF-8 | Python | false | false | 649 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 1 07:01:59 2013
@author: daniel
"""
#programa:binario_3.py
#programa que convierte numero binario en decimal, variante de binario_1 y 2
#data input
bits = raw_input('Espacio <blanco> para salir o \nEscribe un numero binario: ')
#processing
while bits != ' ':
valor ... | [
"danmery@gmail.com"
] | danmery@gmail.com |
7dac465ffd73d19bbaf9127a5ca6682f820de232 | 0a284eb009fe000f9947f184d74a50cca23882e0 | /40.py | b7d9f0a99512161eca5f022ed63c1b05d2d25056 | [] | no_license | Eastwu5788/LeetCode | 90f593d55da604aa7c661254bac293b6351fb252 | 255f49e3a7f437d6f2f8155dcca646d34dd5bbfa | refs/heads/master | 2023-06-17T07:36:37.039895 | 2021-07-20T06:18:58 | 2021-07-20T06:18:58 | 379,543,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,176 | py | # !/usr/local/python/bin/python
# -*- coding: utf-8 -*-
# (C) Wu Dong, 2020
# All rights reserved
# @Author: 'Wu Dong <wudong@eastwu.cn>'
# @Time: '2020-06-18 09:06'
"""
给定一个数组 candidates 和一个目标数 target ,找出 candidates 中所有可以使数字和为 target 的组合。
candidates 中的每个数字在每个组合中只能使用一次。
说明:
所有数字(包括目标数)都是正整数。
解集不能包含重复的组合。
示例 1:
输入:... | [
"wudong@eastwu.cn"
] | wudong@eastwu.cn |
9e569254debf3c7cd3af4e7b1d8a28bf2895fc90 | f6e8e000b94aa019a2a9a3a1840d8b095b02ceff | /tests/test_sampler.py | 7efe495c4cf484a0423e0bed1b5420c4a58d43a9 | [
"Apache-2.0"
] | permissive | deejay1/aiozipkin | 075d76b93fe704ee394136370c1b90b16765298f | f2d88f66097eeec703f134c4cbe21a46a3fef020 | refs/heads/master | 2020-03-22T19:36:02.580271 | 2018-12-29T19:11:25 | 2018-12-29T19:11:25 | 140,539,539 | 0 | 0 | Apache-2.0 | 2018-07-11T07:41:02 | 2018-07-11T07:41:02 | null | UTF-8 | Python | false | false | 777 | py | from aiozipkin.sampler import Sampler
def test_sample_always():
sampler = Sampler(sample_rate=1.0)
trace_id = 'bde15168450e7097008c7aab41c27ade'
assert sampler.is_sampled(trace_id)
assert sampler.is_sampled(trace_id)
assert sampler.is_sampled(trace_id)
def test_sample_never():
sampler = Samp... | [
"nickolainovik@gmail.com"
] | nickolainovik@gmail.com |
eab3b29a026b1922de9fd6eb16967e0c107956c8 | acf7457d3a799cb9bff12686d2d616688bcd4b5b | /packages/python/plotly/plotly/validators/scattercarpet/legendgrouptitle/font/_size.py | e3f403914931b997af3d8a8d887a50be7d41718a | [
"MIT"
] | permissive | plotly/plotly.py | f4f61639f08160f16195efc95b5901dc5a937346 | 975a704074f01c078e0fdfa32bdf17130bf89e69 | refs/heads/master | 2023-09-06T06:15:08.340035 | 2023-08-24T12:28:14 | 2023-08-24T12:28:14 | 14,579,099 | 14,751 | 2,989 | MIT | 2023-09-08T19:55:32 | 2013-11-21T05:53:08 | Python | UTF-8 | Python | false | false | 494 | py | import _plotly_utils.basevalidators
class SizeValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(
self,
plotly_name="size",
parent_name="scattercarpet.legendgrouptitle.font",
**kwargs,
):
super(SizeValidator, self).__init__(
plotly_name=pl... | [
"nicolas@plot.ly"
] | nicolas@plot.ly |
cb81d7d316b7626bf3c0e9dd302a68956d193336 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/422/usersdata/328/88968/submittedfiles/lecker.py | 879c9fd3ec4f468e0c3aaec231f3bccf9208f9f2 | [] | 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 | 199 | py | n1=int(input('n1:'))
n2=int(input('n2:'))
n3=int(input('n3:'))
n4=int(input('n4:'))
if n1 >n2>n3:
print('S')
if n2 >n1> n3 :
print('S')
if n3>n4>n2 > :
print('S')
if n4>n3:
print('S') | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
cb143a4d9bc55defab766b355e7094675418fbe4 | 83ee89c045584e20cbe91056142454b540800ce4 | /demo.py | 1ef55356159c63e3b48302fdb0d2892f834f6f3b | [] | no_license | gurisozen/FLAT-Net | 26473d688f5d89d8672f18288ed85397e31c17d8 | b5f230f8664dac2e85860d0394e09ff93c33bea8 | refs/heads/main | 2023-07-07T06:36:32.313375 | 2021-08-12T14:14:56 | 2021-08-12T14:14:56 | 395,345,078 | 0 | 0 | null | 2021-08-12T14:24:37 | 2021-08-12T14:24:36 | null | UTF-8 | Python | false | false | 6,590 | py | """Main function of Few-shot LeArning Training Net-work (FLAT-Net) framework
for longitudinal brain graph evolution prediction from a few training representative templates
---------------------------------------------------------------------
This file contains the implementation of the preprocessing, train... | [
"islem.rekik@gmail.com"
] | islem.rekik@gmail.com |
2e3546fe60eed64f7653725d36fe86c8c92884fc | ac4b9385b7ad2063ea51237fbd8d1b74baffd016 | /.history/google/s5_getparser_20210215101619.py | 8e80ceef11995b0829f98a3d8c08d2f9715ca6a2 | [] | no_license | preethanpa/ssoemprep | 76297ef21b1d4893f1ac2f307f60ec72fc3e7c6f | ce37127845253c768d01aeae85e5d0d1ade64516 | refs/heads/main | 2023-03-09T00:15:55.130818 | 2021-02-20T06:54:58 | 2021-02-20T06:54:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,895 | py | import shutil
from fonduer.parser.preprocessors import html_doc_preprocessor
from sqlalchemy import exc
import pdftotree
import re
from sen_parser_usable import *
from config import config
import json
import os
import posixpath
import http.server
import urllib.request, urllib.parse, urllib.error
import cgi
import sh... | [
"{abhi@third-ray.com}"
] | {abhi@third-ray.com} |
4f9abe29198dac17c64dfb5dd1c9dfcc86b76387 | 4c67fd55b14cdc3efc347b16eb9762aa344e2fc2 | /scripts/count_seqs.py | 34eb4dd75770e2454534ec2d5378a70b69dcfec1 | [] | no_license | Ecogenomics/FrankenQIIME | 04f99ea64a70a451e189681468efd059434f4325 | e7660b71d86418e63280901b134dffdb9dabedfe | refs/heads/master | 2021-01-01T06:00:35.566858 | 2012-10-11T03:29:29 | 2012-10-11T03:29:29 | 3,873,805 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,908 | py | #!/usr/bin/env python
# File created on 29 May 2011
from __future__ import division
__author__ = "Greg Caporaso"
__copyright__ = "Copyright 2011, The QIIME project"
__credits__ = ["Greg Caporaso"]
__license__ = "GPL"
__version__ = "1.3.0"
__maintainer__ = "Greg Caporaso"
__email__ = "gregcaporaso@gmail.com"
__status__... | [
"a.skarshewski@uq.edu.au"
] | a.skarshewski@uq.edu.au |
6e70b5d6a822ab2a66938837b0b2566760d2fe2e | 99259216f11b15ec60446b4a141b3592a35560ce | /wex-python-api/ibmwex/apis/enrichment_api.py | 908a0b40585f9c2c66cf96509eff7f843154a0a8 | [] | no_license | adam725417/Walsin | 296ba868f0837077abff93e4f236c6ee50917c06 | 7fbefb9bb5064dabccf4a7e2bf49d2a43e0f66e9 | refs/heads/master | 2020-04-12T14:14:07.607675 | 2019-03-05T01:54:03 | 2019-03-05T01:54:03 | 162,546,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72,417 | py | # coding: utf-8
"""
WEX REST APIs
Authentication methods - Basic Auth - JSON Web Token - [POST /api/v1/usermgmt/login](#!/User/signinUser) - [POST /api/v1/usermgmt/logout](#!/User/doLogout) - Python client sample [Download](/docs/wex-python-api.zip)
OpenAPI spec version: 12.0.2.417
Generate... | [
"adamtp_chen@walsin.com"
] | adamtp_chen@walsin.com |
d9184822f12f79d3909635b6293aeeedc08d72ea | b212ec9d705fb77cac102dceb12eb668099fd1ae | /oop/iterators_and_generators_lab/reverse_string.py | fd87b35559239b9b819614f3886cd76c944a26cc | [] | no_license | xpucko/Software-University-SoftUni | 20ef91a0be91a8a09a56d9fdc15888f91409de2f | a1fc1781424f025954948299be7f75d317e32dc1 | refs/heads/master | 2023-02-04T11:58:33.068431 | 2020-12-24T00:39:11 | 2020-12-24T00:39:11 | 280,227,310 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | def reverse_text(string):
for ch in string[::-1]:
yield ch | [
"hristiyan.plamenov.valchev@gmail.com"
] | hristiyan.plamenov.valchev@gmail.com |
b042e19c00629d04f6cfa58f4cbed898e8138975 | 6f8e76b657fa02ad4f82182dd29e6915b0eb67ee | /syrinx/utils/importlib.py | 1cdb3b893645aceffba19d74d2161d44c19bdcae | [] | no_license | tooxie/flask-syrinx | 1fb9e6ba05b3df04eb828e0051d13bfdc3d30818 | 4464b174a0510b5aaf4a262c544715175d6b4ea6 | refs/heads/master | 2020-05-30T16:48:57.220507 | 2011-07-18T17:12:16 | 2011-07-18T17:12:16 | 1,379,252 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,254 | py | # -*- coding: utf-8 -*-
# Taken from Python 2.7 with permission from/by the original author.
import sys
def _resolve_name(name, package, level):
"""Return the absolute name of the module to be imported."""
if not hasattr(package, 'rindex'):
raise ValueError("'package' not set to a string")
dot = l... | [
"alvaro@mourino.net"
] | alvaro@mourino.net |
10bd4c80e6c8ead779c2069fb2c3303c21b6a611 | e89f44632effe9ba82b940c7721cad19a32b8a94 | /text2shorthand/shorthand/svsd/itsu.py | 7d38dba94e7347a14291ef765fead486ae4d99e5 | [] | no_license | Wyess/text2shorthand | 3bcdb708f1d7eeb17f9ae3181c4dd70c65c8986e | 5ba361c716178fc3b7e68ab1ae724a57cf3a5d0b | refs/heads/master | 2020-05-17T14:52:11.369058 | 2019-08-20T12:50:00 | 2019-08-20T12:50:00 | 183,776,467 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,773 | py | from ..svsd.char import SvsdChar
from text2shorthand.common.point import Point as P, PPoint as PP
import pyx
from pyx.metapost.path import (
beginknot,
knot,
endknot,
smoothknot,
tensioncurve,
controlcurve,
curve)
class CharItsu(SvsdChar):
def __init__(self, name='いつ', kana='itsu',
... | [
"diyhacker@mail.goo.ne.jp"
] | diyhacker@mail.goo.ne.jp |
5532d16da66186e110a8e2fe87058f4a224fee52 | 7fb805dc0789bfa3bbac7a94b667548c01a8eb4a | /site-packages/novaclient/tests/unit/test_utils.py | 5927e65a19497fd04eb9ae04dd50bfa5c93df9b8 | [
"Python-2.0"
] | permissive | hclareth7/freezer_libraries | 8a6173140971679e5b5dc8428e1e56734f02d906 | e0bd890eba5e7438976fb3b4d66c41c128bab790 | refs/heads/master | 2022-11-30T02:19:46.718660 | 2019-05-29T20:29:20 | 2019-05-29T20:29:20 | 189,293,415 | 0 | 1 | NOASSERTION | 2022-11-17T05:38:07 | 2019-05-29T20:28:12 | Python | UTF-8 | Python | false | false | 17,720 | 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
# ... | [
"root@ubuntu-14.04.general.micro.yul.linux.novalocal"
] | root@ubuntu-14.04.general.micro.yul.linux.novalocal |
59de090ab8dc1894e7321eec446f79558f88c5fe | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/phunterlau_dga_classifier/dga_classifier-master/hmm_trainer.py | 02b39cc95d8ef2351bfac897b16fadd7fd39d36f | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 1,057 | py | from collections import defaultdict
# get a list of words with only ASCII characters
words = [w.strip().lower() for w in open("alexa_100k.txt").readlines()]
#words = [w for w in words if all([c in ascii_lowercase for c in w])]
words = ["^" + w.split('/')[0] + "$" for w in words if w != ""]
# construct a discrete-time... | [
"659338505@qq.com"
] | 659338505@qq.com |
8208d6f15fd17b9936e2a8f4d6ffd6d5a94f54fc | 736847cfac1d3789024fb723a941328736127926 | /flasktaskr/bin/flask | 23e907c262ee0802f2b826286f3b2a5e3b32c776 | [] | no_license | stepsei/FlaskTaskr | 1f2e2ff0ecb0dbb975ae3094277df8e512a680b5 | ffa992fd062ef168468ce17ca6b43db3b7b6946c | refs/heads/master | 2022-12-21T22:24:39.724757 | 2018-04-19T22:42:34 | 2018-04-19T22:42:34 | 129,968,382 | 0 | 0 | null | 2022-11-22T02:18:09 | 2018-04-17T21:40:51 | Python | UTF-8 | Python | false | false | 257 | #!/Users/soseia174/RealPython/FlaskTaskr/flasktaskr/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"stephenosei74@hotmail.com"
] | stephenosei74@hotmail.com | |
b9151f6748bdf488bcda223c592417c14db6e6c4 | a3b2c7069c9fab8632b0568db5ab79aceacf9c9c | /build/robot_localization/catkin_generated/pkg.installspace.context.pc.py | 7e17319997237bdd8f5b7795c21efabd7348779a | [] | no_license | tbake0155/bluedragon_workspace | 08ed85d9de29c178704bd3f883acafae473b175e | 384d863e00689cf40cde4933447210bbb1ba8636 | refs/heads/master | 2021-05-12T01:35:45.896266 | 2018-01-15T14:59:39 | 2018-01-15T14:59:39 | 117,558,143 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/tim/catkin_ws/install/include".split(';') if "/home/tim/catkin_ws/install/include" != "" else []
PROJECT_CATKIN_DEPENDS = "cmake_modules;diagnostic_msgs;diagnostic_updater;geographic_msgs;geometr... | [
"tbake0155@gmail.com"
] | tbake0155@gmail.com |
6fb6b5b1e7e875df4a58d4625845808966a24be4 | c9500ad778b8521aaa85cb7fe3239989efaa4799 | /plugins/freshservice/icon_freshservice/actions/list_all_agents/schema.py | f3d97e82488fa7f6f87f59d8d5128fd107eca7c5 | [
"MIT"
] | permissive | rapid7/insightconnect-plugins | 5a6465e720f114d71b1a82fe14e42e94db104a0b | 718d15ca36c57231bb89df0aebc53d0210db400c | refs/heads/master | 2023-09-01T09:21:27.143980 | 2023-08-31T10:25:36 | 2023-08-31T10:25:36 | 190,435,635 | 61 | 60 | MIT | 2023-09-14T08:47:37 | 2019-06-05T17:05:12 | Python | UTF-8 | Python | false | false | 13,569 | py | # GENERATED BY KOMAND SDK - DO NOT EDIT
import insightconnect_plugin_runtime
import json
class Component:
DESCRIPTION = "View information about all agents in the account. Use filters to view only specific agents (those who match the criteria that you choose)"
class Input:
ACTIVE = "active"
EMAIL = "emai... | [
"noreply@github.com"
] | rapid7.noreply@github.com |
4b19fb8a19101930bf6a16a4fc0746daa4dac66c | cc3fff6abe2d9b33d11cd384b263e1c4f07e5b6c | /test.py | dc058e083337c747fe2ff7c43d0a63a8e637b605 | [] | no_license | letianccc/latin_httpserver | 22afa1e15f542c256a232a933edd974f6f90533c | 8f7aad21ba8abffb011d5410bce29c591e9ef990 | refs/heads/master | 2018-11-11T12:12:32.264360 | 2018-09-05T00:39:26 | 2018-09-05T00:39:26 | 111,545,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | a = {}
if a:
print(a) | [
"704364447@qq.com"
] | 704364447@qq.com |
91113cf35581be1a97a338f426e2f9cf94dd0792 | e8ae11e5017507da59e2e92d423b6a1994490de4 | /env/lib/python2.7/site-packages/azure/mgmt/resource/resources/models/resource_group_filter.py | de45afb16eb016204d3f87302b81d0a2d28d6bfc | [] | no_license | teopeurt/ansible-ubuntu-server | 613d00cea28bc6531acf4a39aeeb9cd0baa2a391 | b5b6127d2ee9723c5088443efe2ffb8ae30cfea7 | refs/heads/master | 2021-06-28T12:49:50.935753 | 2017-07-31T17:34:33 | 2017-07-31T17:34:33 | 98,912,808 | 0 | 1 | null | 2020-07-24T00:05:31 | 2017-07-31T17:32:56 | Makefile | UTF-8 | Python | false | false | 1,494 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft and contributors. 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 co... | [
"me@teopeurt.com"
] | me@teopeurt.com |
0f414e459759bae4f46b4b1cf7d7220ac317c349 | 0ca030939fd21c7a0f50190a3529d2c8db8535da | /group/models.py | 80ee496b54b3f8fdb79bd2bf34d165e8344d4210 | [
"MIT"
] | permissive | joeyac/acmnote | d7386ddaaf8faa142a1bc5e929498ea70413f288 | 752728916735032b378f3daf7d5316f0215a654c | refs/heads/master | 2021-01-20T18:20:48.390485 | 2016-12-07T14:30:27 | 2016-12-07T14:30:27 | 64,570,059 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,083 | py | # coding=utf-8
from django.db import models
from authentication.models import MyUser
class Group(models.Model):
name = models.CharField(max_length=30, unique=True)
description = models.TextField()
create_time = models.DateTimeField(auto_now_add=True)
created_by = models.ForeignKey(MyUser, related_nam... | [
"623353308@qq.com"
] | 623353308@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.