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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
faafadb540ed668fcec1a8c265e730161a450ce0 | fce5eda4745578557f7120104188c2437529b98f | /data_hora/data_binary.py | f425d46a4ccfb0aa785821fadc96e6aa7b1a34d6 | [] | no_license | weguri/python | 70e61584e8072125a4b4c57e73284ee4eb10f33b | d5195f82428104d85b0e6215b75e31ee260e5370 | refs/heads/master | 2022-12-01T08:26:36.248787 | 2020-08-23T03:30:46 | 2020-08-23T03:30:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | from datetime import datetime
"""
Converte a data atual para binary
"""
data = bin(int(datetime.now().timestamp()))
#
datetime.fromtimestamp(int(data, 2))
| [
"welguri@gmail.com"
] | welguri@gmail.com |
0eea5ac17d2d63b1045e1405c92ed74489851bd6 | 98e1716c1c3d071b2fedef0ac029eb410f55762c | /part9-Manipulating-DataFrames-with-pandas/No06-Using-map-with-a-dictionary.py | b15828b7491e4d515578e628a360ddd88e32fbe3 | [] | no_license | iamashu/Data-Camp-exercise-PythonTrack | 564531bcf1dff119949cbb75e1fd63d89cb2779f | c72a4e806494f0e263ced9594597dc8882c2131c | refs/heads/master | 2020-07-22T00:23:12.024386 | 2019-04-12T09:24:42 | 2019-04-12T09:24:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,600 | py | #Using .map() with a dictionary
'''
The .map() method is used to transform values according to a Python dictionary look-up. In this exercise you'll practice this method while returning to working with the election DataFrame, which has been pre-loaded for you.
Your job is to use a dictionary to map the values 'Obama' a... | [
"beiran@hotmail.com"
] | beiran@hotmail.com |
a2072b8addd6b50f7797074cb8dbb019e16a25b3 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/HP-ICF-OSPF.py | 08a51fade7d5f1e172153d2083f6dd6089859170 | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 52,538 | py | #
# PySNMP MIB module HP-ICF-OSPF (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HP-ICF-OSPF
# Produced by pysmi-0.3.4 at Mon Apr 29 19:22:21 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 0... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
0814a71beda0d8aab22e97decd0ebea13c5009b0 | a2b20597759990445081057d35d113434cfcf970 | /stubs/typeshed/typeshed/stdlib/_socket.pyi | f7b0e6901bf4ca5cc9b39c0fa29ebabaf180dcd9 | [
"Apache-2.0",
"MIT"
] | permissive | facebook/pyre-check | 34059599c02b65605c574f13555229f3b931fd4e | fe8ccedc572cc1faa1fd01e9138f65e982875002 | refs/heads/main | 2023-09-03T19:10:11.587028 | 2023-09-02T07:40:35 | 2023-09-02T07:40:35 | 110,274,488 | 6,703 | 575 | MIT | 2023-09-13T17:02:32 | 2017-11-10T17:31:36 | OCaml | UTF-8 | Python | false | false | 18,578 | pyi | import sys
from _typeshed import ReadableBuffer, WriteableBuffer
from collections.abc import Iterable
from typing import Any, SupportsInt, overload
from typing_extensions import TypeAlias
if sys.version_info >= (3, 8):
from typing import SupportsIndex
_FD: TypeAlias = SupportsIndex
else:
_FD: TypeAlias = ... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
b297fced63d50a2933e3a7958e361a438cb5e549 | fd326562890d4f1987c384fc7c60374938231222 | /petstagram/petstagram/settings.py | 20f016f80c89944e7dc08bdd5ff45e91d77465eb | [] | no_license | miro-lp/SoftUni | cc3b0ff742218c9ceaf93f05c319ccfeed5bc8a4 | 283d9328537919de49f7f6a301e58593bae9ca2a | refs/heads/main | 2023-08-23T21:22:07.856226 | 2021-08-25T15:10:18 | 2021-08-25T15:10:18 | 318,134,101 | 2 | 1 | null | 2021-08-10T12:51:54 | 2020-12-03T09:03:08 | Python | UTF-8 | Python | false | false | 3,615 | py | """
Django settings for petstagram project.
Generated by 'django-admin startproject' using Django 3.2.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import os
... | [
"miro_lp@abv.bg"
] | miro_lp@abv.bg |
a157c75a18673e6ca61c8bd826c454453a64af38 | 718566e42ec21503e6ae0873838c2c199b91c831 | /NAS/single-path-one-shot/src/cifar100/utils/utils.py | d17e2defe1d0c214b3aff8d38053692891ba41f2 | [
"Apache-2.0"
] | permissive | lovecove/SimpleCVReproduction | f9f3f9e74fac2b7c7de579fcc5219e79d0d20aea | e306cc803d3420795982c8509e31ee60997fe9f9 | refs/heads/master | 2023-04-19T12:44:56.545672 | 2021-04-24T00:49:08 | 2021-04-24T00:49:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,510 | py | import os
import re
import torch
import torch.nn as nn
import random
import json
import numpy as np
from tqdm import tqdm
class CrossEntropyLossSoft(torch.nn.modules.loss._Loss):
""" inplace distillation for image classification """
def forward(self, output, target):
output_log_prob = torch.nn.function... | [
"1115957667@qq.com"
] | 1115957667@qq.com |
4dd77a0593fc96b681eb6628428dc183f1774156 | d7ccc0ccfc77cb450a240979a40634b02ae1d1c2 | /djcaptcha/utils.py | fa6c03ed9312a9670a09d9ba8282e21b710c9a51 | [] | no_license | eos87/luciernaga | 880bac1435725b4d5d697c32d7231e2656ac68c5 | 288f22b35b7920a5973b42f0f6abf9bfaf741fc5 | refs/heads/master | 2020-06-03T03:43:48.016663 | 2011-08-31T06:40:08 | 2011-08-31T06:40:08 | 955,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,887 | py | # -*- coding: utf-8 -*-
import random
CAPTCHA_LENGTH = 5
CAPTCHA_CHALLENGE_FUNCT = 'luciernaga.djcaptcha.utils.code_generator'
CAPTCHA_CHALLENGE_FUNCT = 'luciernaga.djcaptcha.utils.code_generator'
CAPTCHA_NOISE_FUNCTIONS = ('luciernaga.djcaptcha.utils.noise_arcs','luciernaga.djcaptcha.utils.noise_dots',)
CAPTCHA_FILTE... | [
"helmygb@gmail.com"
] | helmygb@gmail.com |
566fc16b7be06240224ad7c5ad582688c5192b12 | 07ec5a0b3ba5e70a9e0fb65172ea6b13ef4115b8 | /lib/python3.6/site-packages/tensorflow/contrib/opt/python/training/delay_compensated_gradient_descent.py | 17c2bfacfab9640c5bde92b1ee8e75096e12b714 | [] | no_license | cronos91/ML-exercise | 39c5cd7f94bb90c57450f9a85d40c2f014900ea4 | 3b7afeeb6a7c87384049a9b87cac1fe4c294e415 | refs/heads/master | 2021-05-09T22:02:55.131977 | 2017-12-14T13:50:44 | 2017-12-14T13:50:44 | 118,736,043 | 0 | 0 | null | 2018-01-24T08:30:23 | 2018-01-24T08:30:22 | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:499d09317fe599aa02978a758841560c71cdaf89c02ddbb60f7419bf9a4d7c15
size 11386
| [
"seokinj@jangseog-in-ui-MacBook-Pro.local"
] | seokinj@jangseog-in-ui-MacBook-Pro.local |
e9c2cb71f141c87c35897c3bcbfd6917250763e4 | d780df6e068ab8a0f8007acb68bc88554a9d5b50 | /python/g1/files/tests/test_locks.py | 83aa990b7007ac809d2f2a6843a1111df8719e8e | [
"MIT"
] | permissive | clchiou/garage | ed3d314ceea487b46568c14b51e96b990a50ed6f | 1d72863d3a5f5d620b170f4dd36f605e6b72054f | refs/heads/master | 2023-08-27T13:57:14.498182 | 2023-08-15T07:09:57 | 2023-08-15T19:53:52 | 32,647,497 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,693 | py | import unittest
import contextlib
import subprocess
import tempfile
from pathlib import Path
from g1.files import locks
try:
from g1.devtools.tests import filelocks
except ImportError:
filelocks = None
@unittest.skipUnless(filelocks, 'g1.tests.filelocks unavailable')
class LocksTest(
unittest.TestCase,... | [
"clchiou@gmail.com"
] | clchiou@gmail.com |
055e1f9f002770776cd23c275fe7f9a45497c8a5 | c3477dc5c9c2886d3e7e0e33a3347ccde756c0b7 | /None Algorithm/012. Integer to Roman.py | 071490f375670115ef358a186a1241f5d8a7b718 | [] | no_license | Nora-Wang/Leetcode_python3 | b8d7b93b61faea6aacd31a0c357c661571f6695c | b4ce775f366ae096d90d2302199a75023b2dcc17 | refs/heads/master | 2023-09-04T07:09:30.162702 | 2023-08-28T13:41:48 | 2023-08-28T13:41:48 | 204,764,804 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,002 | py | Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M.
Symbol Value
I 1
V 5
X 10
L 50
C 100
D 500
M 1000
For example, two is written as II in Roman numeral, just two one's added together. Twelve is wri... | [
"noreply@github.com"
] | Nora-Wang.noreply@github.com |
4f16265dcb87bfcfcffe8b3a190f3e6d355c2561 | e1dd6d9dccb822d472b7f4f9e8446dd9202eb5a1 | /sdk/test/test_io_k8s_api_policy_v1beta1_pod_disruption_budget_list.py | 819e69f44490082c19c3683cc0168c4db469032f | [] | no_license | swiftdiaries/argo_client | 8af73e8df6a28f9ea5f938b5894ab8b7825e4cc2 | b93758a22d890cb33cbd81934042cfc3c12169c7 | refs/heads/master | 2020-05-17T12:11:57.556216 | 2019-07-24T23:23:33 | 2019-07-24T23:23:33 | 183,701,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,104 | py | # coding: utf-8
"""
Argo API Client
Generated python client for the Argo Workflows # noqa: E501
OpenAPI spec version: v1.14.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import argo.sdk
from models.io_k8s_api_pol... | [
"adhita94@gmail.com"
] | adhita94@gmail.com |
7003a02618ff41ca0417c13349636dd439da610e | b289cc5016d394ff3137e85cf924d9c361c4d223 | /test/通信世界.py | 23442684a7e6e30cb1295ff79d01f766aeaf7f28 | [] | no_license | thundernova/spider | 0b409fccbe21998bb4179794dc46c887e2203608 | ebf5198e5bffa4c1c6282a88245fdf41ec37b86c | refs/heads/master | 2022-12-28T16:28:48.416976 | 2019-09-26T09:43:08 | 2019-09-26T09:43:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,154 | py | #encoding=utf-8
import requests,re,bs4,time,sys,hashlib,uuid,time,json,base64,rsa,platform,datetime,os,urllib
UserAgent = 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.92 Safari/537.36'
Cookie = 'JSESSIONID=971488AAFE2DD32BAC02DF1BEF8B8597.tomcat2; Hm_lvt_b8386baf89eebcc... | [
"315909056@qq.com"
] | 315909056@qq.com |
a3b24a171c397406911f6e5ae5d8e9c13548fce4 | 7892b34f96f80b6ac4d2cb89d1f2b7a2f330d1e1 | /tests/test_combine_sorted_lists.py | d6edb600e826fd25d590ffab0389a736125e5596 | [] | no_license | geomeza/assignment-problems | 30a979accbbcac08e43811d861f103d1b9e725dc | 00dbdb172c588452d9da14ffe286146705e8dd84 | refs/heads/master | 2023-03-05T18:37:55.058370 | 2021-02-11T20:30:36 | 2021-02-11T20:30:36 | 279,968,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | import sys
sys.path.append('src')
from combine_sorted_lists import combine_sorted_lists
sorted_arrays = [[[1,3,4,5,7],[2,6]], [[1,5,8,9,12],[4,5,9,20]], [[2,2,2,2,2],[2,2,2,2]], [[1,2,3,4,5,6],[2,3,4]]]
for i in range(len(sorted_arrays)):
print('Test',i+1)
print(combine_sorted_lists(sorted_arrays[i])) | [
"replituser@example.com"
] | replituser@example.com |
63de5ec7ae7f43be36a539d53b1383e4d7fbfbc3 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_265/ch27_2020_09_14_20_19_00_627904.py | 6533208c339bfd912a9c0612c64b8bf78f26f19a | [] | 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 | 182 | py | tem_duvida = True
while tem_duvida:
a = input('Tem dúvida? ')
if a != 'não':
print ('Pratique mais')
else:
tem_duvida = False
print ('Até a próxima') | [
"you@example.com"
] | you@example.com |
4a112a6109326c65ff46b656ae4fd62a0acfd25b | 5ce1c0ab1b6147428fc30bcd1698e4d0e53b688e | /1170.py | 6c973208ddc9bd75f91769c4de9ce847a206351d | [] | no_license | junyang10734/leetcode-python | 035b12df3f7d9fc33553140d1eb0692750b44f0a | eff322f04d22ffbc4f9b10e77f97c28aac5c7004 | refs/heads/master | 2023-07-22T11:16:38.740863 | 2023-07-14T00:22:00 | 2023-07-14T00:22:00 | 189,197,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,447 | py | # 1170. Compare Strings by Frequency of the Smallest Character
# hash / binary search
# https://blog.csdn.net/fuxuemingzhu/article/details/100179198
# hash
# running time: faster than 84.17%
class Solution1:
def numSmallerByFrequency(self, queries: List[str], words: List[str]) -> List[int]:
d = {}
... | [
"junyang2019@outlook.com"
] | junyang2019@outlook.com |
afd542e5cdc7431b02c8411eadacae2a69790c8a | 5dbf8039a281c4ba13e9cb19453a4bace0f2b6bd | /rides/migrations/0009_auto_20161206_1617.py | fae591ade1137e9114a400777210873317a1e20f | [] | no_license | adamtlord/ease | e605d901fc944d48212c4283998e1b4995c09324 | 51e7e0e79e21dad6fa7bdd360cd0a5c0ba3c9d41 | refs/heads/master | 2021-01-18T22:24:12.146024 | 2019-07-30T17:48:14 | 2019-07-30T17:48:14 | 72,482,564 | 0 | 0 | null | 2019-01-02T17:15:51 | 2016-10-31T22:15:56 | CSS | UTF-8 | Python | false | false | 627 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-12-07 00:17
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rides', '0008_ride_request_time'),
]
operations = [
migrations.AddField(
... | [
"adam.lord@gmail.com"
] | adam.lord@gmail.com |
134d80246fa09563d7138c6f7dacfc6898629845 | 44cf72925aafd9b51423540ad5310b4ae56d822c | /mapping/aspace_agent_mapping/agent_parsers/test_create_corpname_json.py | 6c0250189b5d51b5ca52bd46963ff02da3737122 | [] | no_license | djpillen/bentley_code | 6598e6b5bea3853452e18817a92912a633fb68b5 | ea2bd1f0e3ad8d367d67efa00b7f1bab773a8b07 | refs/heads/master | 2020-12-25T13:12:40.963399 | 2016-04-05T14:41:19 | 2016-04-05T14:41:19 | 52,804,274 | 1 | 0 | null | 2016-02-29T16:06:27 | 2016-02-29T16:06:26 | null | UTF-8 | Python | false | false | 3,074 | py | # coding=utf-8
import unittest
from mapping.aspace_agent_mapping.agent_parsers.create_corpname_json import parse_corpname as parse
class TestParsePersname(unittest.TestCase):
def setUp(self):
self.keys = [u"primary_name",
u"subordinate_name_1",
u"subordinate_name... | [
"wboyle13@gmail.com"
] | wboyle13@gmail.com |
519b9ea91098f50ec26e432ef80654c269cb17d4 | 8d1d910a5616b3a84d0d205727bc39689eeb55bd | /src/edrn/__init__.py | e1490ef6c5952c1ed110904a58e6555ee338f1a5 | [] | no_license | EDRN/edrn.labcas.policy | d7c9e99a709628d1c14ca4d96e75b72c888fa830 | 812a15885be0bf71d25a1250cc659f572ef149b9 | refs/heads/master | 2020-06-05T17:45:04.396183 | 2015-07-12T22:56:41 | 2015-07-12T22:56:41 | 38,981,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | # encoding: utf-8
u'''EDRN — Namespace'''
try:
__import__('pkg_resources').declare_namespace(__name__)
except ImportError:
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)
| [
"kelly@seankelly.biz"
] | kelly@seankelly.biz |
90f8a60a8c3573f737fa18442615e9a88a433a61 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_96/1136.py | 2bd1d3af70c1f1a2e4c1606a1c9ade664d3c5176 | [] | 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 | 2,986 | py | import math
file = 'B-large'
#Input
with open(file + '.in', 'r') as input:
T = int(input.readline())
cases = []
for line in input.readlines():
numbers = map(int, line.split(' '))
cases.append({
'surprise': numbers[1], # number of surprising triplets
'min_score': nu... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
62d14e969c1b97140de7a53d112c0e8346b76634 | d0f11aa36b8c594a09aa06ff15080d508e2f294c | /leecode/1-500/401-500/437-路径总和Ⅲ.py | 9551666eedcdebcc122ab9938055a039f076271f | [] | no_license | saycmily/vtk-and-python | 153c1fe9953fce685903f938e174d3719eada0f5 | 5045d7c44a5af5c16df5a3b72c157e9a2928a563 | refs/heads/master | 2023-01-28T14:02:59.970115 | 2021-04-28T09:03:32 | 2021-04-28T09:03:32 | 161,468,316 | 1 | 1 | null | 2023-01-12T05:59:39 | 2018-12-12T10:00:08 | Python | UTF-8 | Python | false | false | 586 | py | # Definition for a binary tree node.
class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
class Solution:
def pathSum(self, root: TreeNode, sum: int) -> int:
if not root:
return 0
return self.co... | [
"1786386686@qq.com"
] | 1786386686@qq.com |
b61a72a55b3d3ca4f8e750a36a8cb437d1411657 | c26ee38f974ff36646a6225ea20c63d027d97622 | /tag/Trie/1268. Search Suggestions System.py | be264860e538430a1c92b30c439e17e5637145cc | [] | no_license | khlee12/python-leetcode | 78416d1512831eb762b3700461b8a2b492d7d5b5 | c0801d9d40d454213e29a42286d6e5fdbc3f6c3c | refs/heads/master | 2021-07-19T13:25:29.094937 | 2020-05-11T11:02:07 | 2020-05-11T11:02:07 | 158,390,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,924 | py | '''
1268. Search Suggestions System
Medium
Given an array of strings products and a string searchWord. We want to design a system that suggests at most three product names from products after each character of searchWord is typed. Suggested products should have common prefix with the searchWord. If there are more than ... | [
"noreply@github.com"
] | khlee12.noreply@github.com |
5bdcddbff921b412b47d78e7cbf8ce9b013052f3 | 0dee7cc69ae44e30c5cb372eb17f2e469635056b | /holbertonschool-higher_level_programming/0x0C-python-almost_a_circle/models/base.py | 9fe9cfc3d738ceb951af27fc1fddc8e764fac537 | [] | no_license | HausCloud/Holberton | 00cd25b4a489041e041551ea8f87674d53f43713 | b39c5978698e02b9e746121d6c55d791b73e6d9b | refs/heads/master | 2022-12-13T01:06:18.968047 | 2020-09-05T18:23:00 | 2020-09-05T18:23:00 | 293,129,232 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,932 | py | #!/usr/bin/python3
""" This is a module. It contains .. a class. That is it."""
import json
class Base:
""" the Base class
Args:
id: identity of class
Attributes:
__nb_objects: number of class objects created from Base
"""
__nb_objects = 0
def __init__(self, id=None):
... | [
"hauscloud.me@gmail.com"
] | hauscloud.me@gmail.com |
e55cb18c335a389601680ec33db2f563b10add5d | 34ee54332afe5fa6198624bead95a9ceb2af0958 | /Exe2_numeros_ordem_inversa.py | 2f3a1c895c5cf3bcc5da684dc5f920b9a62f2d36 | [
"MIT"
] | permissive | lucaslk122/Exercicios-com-lista | fbcb46011bdfa4b0c33fb3887d1c6d86704d9244 | 3e614a865f93afa2ff6a32f8da04abb0c0716cdc | refs/heads/main | 2023-01-04T17:59:57.690476 | 2020-10-26T19:33:37 | 2020-10-26T19:33:37 | 305,730,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | lista = []
for i in range(10):
real = float(input("Digite um numero: "))
lista.append(real)
print(lista)
print(lista[::-1])
| [
"71664028+lucaslk122@users.noreply.github.com"
] | 71664028+lucaslk122@users.noreply.github.com |
2aef52df684164732cddec9f2698e2004d61263c | 7f74c236881176d673fd5b8bed6e18283232deca | /modules/boost/simd/ieee/doc/ldexp.py | a9656f6324997c8b0c83b0e21020f6e231a2f534 | [
"BSL-1.0"
] | permissive | pesterie/nt2 | 57a3cbe4e3631d5eacbd1703b79af769f40b13f1 | 94e4062794466136987bf0afd9a94d43275b13cf | refs/heads/master | 2021-01-18T06:52:52.070291 | 2011-08-31T12:04:16 | 2011-08-31T12:04:16 | 1,566,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,228 | py | [ ## this file was manually modified by jt
{
'functor' : {
'module' : 'boost',
'arity' : '2',
'call_types' : ['T', 'iT'],
'ret_arity' : '0',
'rturn' : {
'default' : 'T',
},
'simd_types' : ['real_'],
'type_defs' : ['typedef ... | [
"jtlapreste@gmail.com"
] | jtlapreste@gmail.com |
b0467fcfbe99d1a32c2d2564c556a7ad7749269c | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_12374.py | 75a220a79cd64f64d93a9e4409b70807458e5c0f | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,839 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
96bf5da1ec6edac07375a28e2f671b2c6337642a | 153d134935280b55f238c6c22f9281b147b69d93 | /express/migrations/0003_auto_20190519_1031.py | 90de64867ecc6e94bd581658fc1c44a02122ea17 | [] | no_license | uniquehou/reward | e5525a7e29a9d9811f6158c9cde20e0805e42ac2 | 50f8c0207ac1975001577ee129e6d057581dc6b4 | refs/heads/master | 2020-05-17T18:43:43.636301 | 2019-05-23T01:50:00 | 2019-05-23T01:50:00 | 183,893,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,356 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2019-05-19 02:31
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
import django.db.models.deletion
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
... | [
"919863463@qq.com"
] | 919863463@qq.com |
d327075ea5ebd031ad498010032646a34b865b3f | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/Nortel-MsCarrier-MscPassport-ModDprsQosMIB.py | 0118595f62e2cc409be297e8c90b183cdfd16f35 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 13,970 | py | #
# PySNMP MIB module Nortel-MsCarrier-MscPassport-ModDprsQosMIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Nortel-MsCarrier-MscPassport-ModDprsQosMIB
# Produced by pysmi-0.3.4 at Wed May 1 14:30:55 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user ... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
2b3fb5148bc615e510ac5806fb53f439f1f5535f | ef7a5e1445706482a0e20d2632f6cd3d0e279031 | /amy/workshops/tests/test_base_views.py | 631611b15b60c7ca34258c3fa63613829e91ba77 | [
"MIT"
] | permissive | pbanaszkiewicz/amy | 7bf054463f4ecfa217cc9e52a7927d22d32bcd84 | f97631b2f3dd8e8f502e90bdb04dd72f048d4837 | refs/heads/develop | 2022-11-17T18:56:18.975192 | 2022-11-03T23:19:41 | 2022-11-03T23:19:41 | 28,005,098 | 0 | 3 | MIT | 2018-03-20T18:48:55 | 2014-12-14T19:25:22 | Python | UTF-8 | Python | false | false | 1,987 | py | from unittest.mock import patch
from django.http.response import Http404
from django.test import TestCase
from workshops.base_views import ConditionallyEnabledMixin
class FakeView:
"""Used in the tests below."""
def dispatch(self, request, *args, **kwargs):
pass
class TestConditionallyEnabledView... | [
"piotr@banaszkiewicz.org"
] | piotr@banaszkiewicz.org |
4d9c31297a9410b76342dc05ce6e377c85c7e9a7 | 86227936c8cd8f026dd36e984dce550e4c66af54 | /glue/utils/qt/dialogs.py | 0e164c9fa2b49e6be102c6eac094a11cb9f990a2 | [
"BSD-3-Clause"
] | permissive | bmorris3/glue | 11c55c6947dcdec984c9b13c1b32aadac7e0f296 | 25620555cb909be9ea830b40a62bdf61e87dbf7c | refs/heads/master | 2023-08-17T08:36:24.359365 | 2016-04-06T00:08:07 | 2016-04-06T00:08:07 | 55,747,056 | 0 | 0 | null | 2016-04-08T03:25:26 | 2016-04-08T03:25:26 | null | UTF-8 | Python | false | false | 1,655 | py | from __future__ import absolute_import, division, print_function
from glue.external.qt import QtGui
__all__ = ['pick_item', 'pick_class', 'get_text']
# TODO: update docstrings
def pick_item(items, labels, title="Pick an item", label="Pick an item",
default=0):
""" Prompt the user to choose an ite... | [
"thomas.robitaille@gmail.com"
] | thomas.robitaille@gmail.com |
7fc7996b891c95af3d9426d2e2a37fd402dde649 | 8531bee5e42d82ffc09ef274ccb2333ca02f03cc | /python/boj/18870.py | f46af79da2e7e28e563e855f7b961842ea29479c | [] | no_license | ChoHyoungSeo/Algorithm_prac | 969f193f9ba349d0df3c1d7645fe3f42ec7581c4 | 02327623b5ea2211f4618e60b0bdcc61e16e1c5a | refs/heads/master | 2023-08-17T11:26:55.159895 | 2023-08-17T10:52:34 | 2023-08-17T10:52:34 | 210,917,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | #나보다 작은게 몇개인가?
#이게 시간초과라...
#index O(N), set O(N), sort O(nlogn)
#18870
# _ = int(input())
# nums = list(map(int, input().split()))
# tmp_nums = list(set(nums))
# ans = []
# tmp_nums.sort()
# for i in range(len(nums)):
# print(tmp_nums.index(nums[i]), end=' ')
# # ans.append(tmp_nums.index(nums[i]))
# # prin... | [
"francesco.johs@gmail.com"
] | francesco.johs@gmail.com |
9b743ec68c4ed329067ed0bbe8a3a6a2a6dd9c8d | d9b6de55af0b6e1493fc77abd28a9cab21ed5c36 | /src/python/scripts/prescriptions/modules/valgrind.py | 8a4f6fc64f8f92e9ffac76003baa911e423aca83 | [] | no_license | flow123d/flow123d | 016af7cd55b5a8ed9426d843aace62f12b01cbb1 | 1f02b2c851f0e6ec2f93321b623000381b558a0b | refs/heads/master | 2023-09-05T01:38:06.288200 | 2023-09-04T13:24:38 | 2023-09-04T13:24:38 | 13,628,170 | 17 | 16 | null | 2023-09-12T11:27:36 | 2013-10-16T18:56:28 | C++ | UTF-8 | Python | false | false | 1,008 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# author: Jan Hybs
from loggers import printf
from scripts.core.execution import BinExecutor, OutputMode
def massif_hook(pypy):
"""
Function will initialize ValgrindMassif and print result on success
:type pypy: scripts.core.pypy.PyPy
"""
vm = ValgrindMas... | [
"jan.hybs@tul.cz"
] | jan.hybs@tul.cz |
97a693d8550cb1e4d52547bf7b98c4c1803672fe | 4228c64e23fd8df2ce255bfaa96096b8f3d53b51 | /spikeinterface_gui/tests/debug_views.py | 883b02731d061e95643f801096b3ead1152683c5 | [
"MIT"
] | permissive | alejoe91/spikeinterface-gui | 67a6395aa5ca0acdef60036f8ba8626868824b01 | b573d9a8d0d0633d4fff6a1fccd3bb49fcd640fd | refs/heads/main | 2023-07-30T16:43:53.460239 | 2021-09-17T07:29:40 | 2021-09-17T07:29:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,327 | py | import PySide6
import spikeinterface_gui as sigui
from spikeinterface_gui.tests.testingtools import clean_all, make_one_folder
from spikeinterface import WaveformExtractor, extract_waveforms
from pathlib import Path
test_folder = Path('my_dataset')
def debug_one_view():
app = sigui.mkQApp()
we = Wavefor... | [
"sam.garcia.die@gmail.com"
] | sam.garcia.die@gmail.com |
f3116356f93d0462f01b30f855b6c956f0fdffa0 | 56e4c0ec8366585bffe6c61fcd8f167dec83c68a | /base_geoengine/tests/geoengine_test.py | 6af5f9f0a5776c24b5e3c12d50df8f9646364edb | [] | no_license | davidts-leathergoods/odoo7 | 837d2e4b493f75c3d65359a6c6ef994f0d2cb0bc | bb925edf7eaee44a96da12cbb86263ece0ae052c | refs/heads/master | 2020-03-16T02:25:39.403718 | 2018-04-17T13:32:11 | 2018-04-17T13:32:11 | 132,464,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,188 | py | # -*- coding: utf-8 -*-
#
#
# Authors: Laurent Mignon
# Copyright (c) 2015 Acsone SA/NV (http://www.acsone.eu)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either vers... | [
"lebrun.nya@bpso.biz"
] | lebrun.nya@bpso.biz |
e4172bc303326edb903e40077214bd774fa90952 | 45de7d905486934629730945619f49281ad19359 | /xlsxwriter/test/worksheet/test_write_dimension.py | 185793c94c7470039aa5787240f6d18271c1f932 | [
"BSD-2-Clause"
] | permissive | jmcnamara/XlsxWriter | 599e1d225d698120ef931a776a9d93a6f60186ed | ab13807a1be68652ffc512ae6f5791d113b94ee1 | refs/heads/main | 2023-09-04T04:21:04.559742 | 2023-08-31T19:30:52 | 2023-08-31T19:30:52 | 7,433,211 | 3,251 | 712 | BSD-2-Clause | 2023-08-28T18:52:14 | 2013-01-04T01:07:06 | Python | UTF-8 | Python | false | false | 779 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c), 2013-2023, John McNamara, jmcnamara@cpan.org
#
import unittest
from io import StringIO
from ...worksheet import Worksheet
class TestWriteDimension(unitt... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
74e89938823bd6c54dd3e8b28835394ff8fb8a28 | cbafab192b5072b8e9150dcada8013503af40fca | /Scrapy/02.项目管道/utils/03.管道_04将筛选数据写入MongoDB.py | e76d2d17f93390f767b14d870e01ae7145941f50 | [] | no_license | lafitehhq/PythonProject | 928421b49ff0ea9fd536ca7769a04fe990848929 | d5d0352541a29ee070884263e7eb50160cd7b3b5 | refs/heads/master | 2021-09-06T01:48:42.971720 | 2018-02-01T11:56:50 | 2018-02-01T11:56:50 | 106,712,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | # -*- coding: utf-8 -*-
"""
使用pymongo将项目写入MongoDB。
MongoDB地址和数据库名称在Scrapy设置中指定; MongoDB集合以item类命名
"""
import pymongo
class MongoPip2line(object):
collection_name = 'scrapy_items'
def __init__(self, mongo_uri, mongo_db):
self.mongo_uri = mongo_uri
self.mongo_db = mongo_db
@classmethod
... | [
"lafitehhq@126.com"
] | lafitehhq@126.com |
af75b99de008b4647584026a7c1ef748e4ed848a | 2e60017779c5c286629ab5a3a7aeb27a6b19a60b | /python/2015day18part1.py | cba40e3f40563752a8fa2515c9e40cf9d4a3bb79 | [] | no_license | jamesjiang52/10000-Lines-of-Code | f8c7cb4b8d5e441693f3e0f6919731ce4680f60d | 3b6c20b288bad1de5390ad672c73272d98e93ae0 | refs/heads/master | 2020-03-15T03:50:38.104917 | 2018-05-07T04:41:52 | 2018-05-07T04:41:52 | 131,952,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,236 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jan 5 15:00:34 2018
@author: James Jiang
"""
all_lines = [line.rstrip('\n') for line in open('Data.txt')]
grid = [[i for i in line] for line in all_lines]
grid_num_neighbors = []
for i in range(100):
row = [0 for j in range(100)]
grid_num_neighbors.append(row)
def... | [
"jamesjiang52@gmail.com"
] | jamesjiang52@gmail.com |
e04514125335292b16b505c1e2dfa365f4a8294e | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/0/3x.py | eaf10217ac5f1ee35006cbc5fe86c26193ccf67d | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
60845b15c3fdd4fe091aae50c02f92581681df22 | 658d01288c61adfbf948996cd2accef8b6c722ed | /ecommerce/users/utils.py | 3580ee1f0bf078cd9670c871db46378e108648cd | [] | no_license | italoantonio0909/ecommerce_server_python | 81c85d8be4c12bf20285238db6151cf3f515c855 | b7b438303a5eb4044e826a87ce999c4effd3f4ab | refs/heads/master | 2023-04-13T17:50:51.096674 | 2021-04-23T17:21:24 | 2021-04-23T17:21:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | import django.contrib.auth.password_validation as validators
from django.core.exceptions import ValidationError
def validate_password(*, password: str, username:str):
errors = dict()
try:
# Validate the password and username and catch the exception
validators.validate_password(password=p... | [
"italobarzola18@gmail.com"
] | italobarzola18@gmail.com |
a773097fab107c79bdf609d85b730bcf554ec69c | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-apm/huaweicloudsdkapm/v1/model/raw_table_param.py | 331adadc6a29d5a32cfe19e6de789506d4498789 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 10,588 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class RawTableParam:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
9fac2d2f5292e4df89670b312adb897cc8fdc4ea | e84c2a9ea17fa1a31e58657c958085eafe0692c6 | /myproject/urls.py | 48cc245e1bcb3ef39eb54ceaa64487da815c864b | [] | no_license | vilson-3003/To-do-list-app | b3a5ac55140b025426c0b9e244ab19b986bad203 | 3756cc552b157283e4566950f171bbd32e4a9638 | refs/heads/master | 2022-10-06T21:31:08.274461 | 2020-06-07T03:22:53 | 2020-06-07T03:22:53 | 267,550,315 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 910 | py | """myproject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/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-bas... | [
"your@email.com"
] | your@email.com |
b52914088e636d859535d7e3f87079660f428251 | 73a0f661f1423d63e86489d4b2673f0103698aab | /python/oneflow/test/modules/test_global_min.py | 3ccd2e724aacbb28d0a2a41dee3d8d1cb5d5c582 | [
"Apache-2.0"
] | permissive | Oneflow-Inc/oneflow | 4fc3e081e45db0242a465c4330d8bcc8b21ee924 | 0aab78ea24d4b1c784c30c57d33ec69fe5605e4a | refs/heads/master | 2023-08-25T16:58:30.576596 | 2023-08-22T14:15:46 | 2023-08-22T14:15:46 | 81,634,683 | 5,495 | 786 | Apache-2.0 | 2023-09-14T09:44:31 | 2017-02-11T06:09:53 | C++ | UTF-8 | Python | false | false | 3,545 | py | """
Copyright 2020 The OneFlow 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 applicable law or agr... | [
"noreply@github.com"
] | Oneflow-Inc.noreply@github.com |
b229caeee3762e1204dfb80eb03e8e776c19f491 | 59de7788673ade984b9c9fbc33664a7cbdba67d3 | /res/scripts/client/gui/scaleform/daapi/view/lobby/clans/invites/claninvitesview.py | 1764eb26689bd5ee28f0760df65042877406ef90 | [] | no_license | webiumsk/WOT-0.9.15-CT | 3fa24ab37a6c91b7073034afb2f355efa5b7fe36 | fbd194fbaa6bdece51c7a68fc35bbb5257948341 | refs/heads/master | 2020-12-24T21:27:23.175774 | 2016-05-01T13:47:44 | 2016-05-01T13:47:44 | 57,600,180 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 10,224 | py | # 2016.05.01 15:21:32 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/clans/invites/ClanInvitesView.py
import BigWorld
from gui.Scaleform.genConsts.CLANS_ALIASES import CLANS_ALIASES
from gui.clans import formatters
from gui.clans.items import formatField, isValueAvailable... | [
"info@webium.sk"
] | info@webium.sk |
bb89a90b0e1234c5370c2e45676f68d96964beaa | 7e95c5e87a6cd198a65719dc8725f224cb31ae1f | /read/clipboard links.pyw | c033a5619313e216c9da764922b921ba3c137b75 | [] | no_license | boppreh/j | aa3b1b4f607cb3ddbec3fb626bec469129c24518 | ef60b55ed3c6f22e0b133b5c4e1b7e6f228833b6 | refs/heads/master | 2021-01-18T13:48:54.730105 | 2014-04-17T18:29:18 | 2014-04-17T18:29:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | pyw | import win32clipboard
win32clipboard.OpenClipboard()
try:
html = win32clipboard.GetClipboardData(win32clipboard.RegisterClipboardFormat("HTML Format"))
import re, webbrowser
for match in re.finditer('href="(.+?)"', html):
webbrowser.open(match.groups()[0])
except:
import os
try:
fo... | [
"boppreh@gmail.com"
] | boppreh@gmail.com |
f87aca5f42d5e6f3293cd3276cd23d7c58930fee | 537b518a767831d86c1dd1f6c17f6f24c2879f9f | /UnitTests/Test_IndividualPolyFunctions.py | e2fff1f991b745706bf7e5d5ee4f177e75086805 | [
"BSD-2-Clause"
] | permissive | dsexploration/pyeq3 | 86d56df42ba4b545f5690f51da7b696210f47d94 | 454560706cc400d354c892b359f465ada440d3d9 | refs/heads/master | 2020-12-28T22:01:34.452702 | 2016-08-05T10:45:24 | 2016-08-05T10:45:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,749 | py |
import sys, os, unittest
# the pyeq3 directory is located up one level from here
if -1 != sys.path[0].find('pyeq3-master'):raise Exception('Please rename git checkout directory from "pyeq3-master" to "pyeq3"')
if os.path.join(sys.path[0][:sys.path[0].rfind(os.sep)], '..') not in sys.path:
sys.path.append(os.pa... | [
"zunzun@zunzun.com"
] | zunzun@zunzun.com |
49b2f2e48efc7141520fdc839182c2b74bd1e9be | eb8535ee0da3fbf2b98e69f3a1abf901b71b2a6f | /setup.py | 8a99dc59e4bb1d54e426f74498bf5a1968a0769b | [] | no_license | x2ever/gym-cliff-continous | 5f4a1b01696ecb51216c40dd294f17b83dbfb9df | 2db4733f0b0a8ad362a16ffb3bf7f54ea609d9c9 | refs/heads/master | 2023-03-11T19:21:25.048085 | 2021-03-02T07:12:38 | 2021-03-02T07:12:38 | 343,322,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | from setuptools import setup
setup(name='gym_cliff_continous',
version='0.0.1',
install_requires=['gym']
) | [
"x2ever@naver.com"
] | x2ever@naver.com |
321a0050747d327380c841250702a7c92067d288 | 4cc285b0c585241ff4404087e6fbb901195639be | /NeuralNetworkNumbers/venv/Lib/site-packages/sklearn/datasets/tests/test_base.py | 97847e7414903366524d526a03005f8c1bd70040 | [] | no_license | strazhg/NeuralNetworksPython | 815542f4ddbb86e918e657f783158f8c078de514 | 15038e44a5a6c342336c119cdd2abdeffd84b5b1 | refs/heads/main | 2023-04-16T18:51:29.602644 | 2021-04-27T14:46:55 | 2021-04-27T14:46:55 | 361,944,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:a698f7df411efbecc8b80e93dc0caa26bbf07f5f9b5313b66ef4b6020f5d5983
size 8288
| [
"golubstrazh@gmail.com"
] | golubstrazh@gmail.com |
730749ed2475ed2e5d3d9a00cc4049b3ffc7142c | 1ab9307becae3be4b150623017b25efdbf837b99 | /tests/async/test_dead_socket.py | 464dc8b93b41ec842a0a5da61778e2f873623fb2 | [
"Apache-2.0"
] | permissive | amarentis/watchman | 5ec160775ba417d61dce897ac2779cb4acf3e16e | 0b8bd8db3d174ea3c8ccc379179e11ba42706d38 | refs/heads/master | 2020-04-05T17:02:34.955372 | 2018-11-10T21:06:37 | 2018-11-10T21:08:22 | 157,041,581 | 1 | 0 | Apache-2.0 | 2018-11-11T02:48:34 | 2018-11-11T02:48:34 | null | UTF-8 | Python | false | false | 1,558 | py | #!/usr/bin/env python3
# vim:ts=4:sw=4:et:
import asyncio
import os
import unittest
import pywatchman_aio
import WatchmanInstance
# Note this does not extend AsyncWatchmanTestCase as it wants to start its
# own Watchman server instances per test.
class TestDeadSocket(unittest.TestCase):
def test_query_dead_sock... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
6c1366d01a412916dfcd4269424931d19c1b9cba | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_01_01/aio/operations/_usages_operations.py | 266dcf4ab66f5ce67442f8ba0bf4a82a260d981c | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 5,211 | 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 may ... | [
"noreply@github.com"
] | scbedd.noreply@github.com |
a6cdeb344b25b012d66aecbcc4663bd7574bed90 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/59b9c5f119dd02449b25020c136d7f9f855051c6-<_create_stack>-bug.py | 8805ff144e925476f3c51ebd97a794505391d007 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 648 | py | def _create_stack(module, stack, cloud, shade):
try:
stack = cloud.create_stack(module.params['name'], tags=module.params['tag'], template_file=module.params['template'], environment_files=module.params['environment'], timeout=module.params['timeout'], wait=True, rollback=module.params['rollback'], **module... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
010113dd30c7336e0c513de8751bd3ba8f9d9b66 | d86c52f4098fd9c1a102c2d3f5630556e0610fa2 | /fitle/myenv/Lib/site-packages/django/core/management/commands/check.py | 6c6e6e4a1203308755b3055ef3b733aef9b3a6e2 | [] | no_license | makadama/bitbucket | 24f05c4946168ed15d4f56bfdc45fd6c0774e0f2 | cabfd551b92fe1af6d9d14ab9eb3d9974b64aa79 | refs/heads/master | 2023-06-19T19:04:03.894599 | 2021-07-15T12:10:39 | 2021-07-15T12:10:39 | 385,203,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:168ad45ee0e55435d6aedeb178ca3a6c2f04dd7a02f60d81933146f2582a5198
size 2460
| [
"adamamakhtarsow@gmail.com"
] | adamamakhtarsow@gmail.com |
5356438d6fc2aa011b7452e12b1fe38c319815e1 | 3821860187e15a4235d541e7db510732c18212b0 | /tasks/forms.py | 12f878e6df6e30b3880a4bf86fa5923365d3fdf7 | [] | no_license | memadd/todo | 15fb5901a87b162bb793c0b9f4c73674e38bab8f | 3ed0acc15596964c50eca863b01fdddff7f5586d | refs/heads/master | 2021-04-02T18:33:27.582092 | 2020-03-31T22:18:29 | 2020-03-31T22:18:29 | 248,308,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | from django import forms
from django.forms import ModelForm
from .models import *
class TaskForm (forms.ModelForm):
title= forms.CharField(widget= forms.TextInput(attrs={'placeholder':'Add new task...'}))
class Meta:
model = Task
fields = '__all__'
| [
"memad632@gmail.com"
] | memad632@gmail.com |
9c983bb77dff2ea93e7d9f241d6aacdf444b287d | 528f910908885c3ded4ecc6380b9603c8dcacbd6 | /tbapi/top/api/rest/SimbaCampaignAddRequest.py | 5f9018d5d3183a9452af675761c01e08a4741e6d | [] | no_license | Monica-ckd/data007 | 15fe9c4c898a51a58100138b6b064211199d2ed1 | 0e54ae57eb719b86ec14ce9f77b027882a3398a8 | refs/heads/master | 2023-03-16T05:26:14.257318 | 2016-05-25T06:57:05 | 2016-05-25T06:57:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | '''
Created by auto_sdk on 2013-04-01 16:44:41
'''
from top.api.base import RestApi
class SimbaCampaignAddRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.nick = None
self.title = None
def getapiname(self):
return 'taobao.simba.campa... | [
"root@u16392468.onlinehome-server.com"
] | root@u16392468.onlinehome-server.com |
7d58235629bdaceb57f005dde6376976773e1189 | cdb875e2b5b01954d9e3e56147d088074a63464c | /Leetcode/FB/Trees and DFS/level_averages.py | fcb488a1023635ae0a20af647666850807e87b61 | [] | no_license | denemorhun/Python-Problems | e32fc2752be5071ac88db856a8a7c92fcb625f4c | 53bfd8aa8276a9baa5517781f3b436524b1af185 | refs/heads/master | 2023-04-26T01:16:52.801740 | 2021-05-13T20:14:41 | 2021-05-13T20:14:41 | 320,779,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,414 | py | '''
Task
Calculate the average of every level in a tree
4 -> 4
/ \
6 10 -> 16 / 2 = 8
\
2 -> 2
# calculate the average at every level.
'''
# This is the class of the input root. Do not edit it.
class BinaryTree:
def __init__(self, value):
... | [
"denemorhun@gmail.com"
] | denemorhun@gmail.com |
8d66dee3cd055b8cf41c06658d565240436b52e6 | e5e0d729f082999a9bec142611365b00f7bfc684 | /tensorflow/python/tpu/tensor_tracer.py | 6d838bbceb33a4a0dbe8bf976ef11b1f9812357b | [
"Apache-2.0"
] | permissive | NVIDIA/tensorflow | ed6294098c7354dfc9f09631fc5ae22dbc278138 | 7cbba04a2ee16d21309eefad5be6585183a2d5a9 | refs/heads/r1.15.5+nv23.03 | 2023-08-16T22:25:18.037979 | 2023-08-03T22:09:23 | 2023-08-03T22:09:23 | 263,748,045 | 763 | 117 | Apache-2.0 | 2023-07-03T15:45:19 | 2020-05-13T21:34:32 | C++ | UTF-8 | Python | false | false | 63,601 | py | # Copyright 2018 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... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
9fb84259510a4f067c9621179f999019aadb7445 | c325866c577343752f0d4394c3d96e599674df0e | /models/__init__.py | ea751255374e5a11ecbecc9d9baaa27598c035f7 | [] | no_license | levislibra/financiera_nosis | ff11f4f8417917d48220d40c1524f91d5f1a4d24 | 3227e9258e2f8519880081232070734e929af3f8 | refs/heads/master | 2023-01-05T20:23:01.509995 | 2022-12-22T18:33:05 | 2022-12-22T18:33:05 | 236,527,122 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | # -*- coding: utf-8 -*-
from . import nosis_configuracion
from . import nosis_informe
from . import nosis_cuestionario
from . import nosis_cda
from . import extends_financiera_prestamo
from . import extends_res_partner | [
"levislibra@hotmail.com"
] | levislibra@hotmail.com |
dcb60707eda1b4dac2d88abe004f986aa5ddb718 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02813/s939408287.py | a879ad9c4dd9ada285625e2c359df34b0994ceff | [] | 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 | 449 | py | #!/usr/bin/env python3
def main():
from itertools import permutations
N = int(input())
P = tuple(int(x) for x in input().split())
Q = tuple(int(x) for x in input().split())
for i, p in enumerate(permutations(range(1, N + 1), N)):
if p == P:
a = i
for i, q in enumerate(permu... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2b83bfbb7be59b1d56cb5f8b899df4df4cd3f87d | fc5fa8501e8a62291a48c82611e1b74b961ca561 | /model_pruning/python/pruning_test.py | c422798b60c025280b78bbdea1d8158c8094768d | [
"Apache-2.0"
] | permissive | hitesh-hk/google-research | fa3d3e31cce995fa6da89322dab4993bf1c1ead8 | ddc22300c4cb3223654c9a981f892dc0f6286e35 | refs/heads/master | 2021-02-17T18:57:31.267570 | 2020-01-17T14:49:25 | 2020-01-17T14:54:27 | 245,119,290 | 1 | 1 | Apache-2.0 | 2020-03-05T09:24:01 | 2020-03-05T09:24:00 | null | UTF-8 | Python | false | false | 17,606 | py | # coding=utf-8
# Copyright 2019 The Google Research Authors.
#
# 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
63c1d81c191632302f367d00f8d0d7c0f8b0ad76 | e34721788f3837f48c2b9ab14e2aa65d211933b2 | /src/python/fsqio/pants/ivy/register.py | 814bdfe087389393b2a905dde67d9d900b512dd8 | [
"Apache-2.0"
] | permissive | mateor/fsqio | affb6099688684fd65ee1226d2b9b193fc03eb39 | 244a5bbe792f926f428f06726055b8a0be19067f | refs/heads/master | 2021-01-17T15:28:20.646784 | 2018-10-05T18:35:58 | 2018-10-05T18:35:58 | 56,086,039 | 0 | 0 | Apache-2.0 | 2018-10-04T11:31:42 | 2016-04-12T18:00:40 | Scala | UTF-8 | Python | false | false | 12,248 | py | # coding=utf-8
# Copyright 2017 Foursquare Labs Inc. All Rights Reserved.
from __future__ import absolute_import, division, print_function
from collections import OrderedDict
import json
import os
from pants.backend.jvm.ivy_utils import (
IvyFetchStep,
IvyResolveStep,
IvyUtils,
NO_RESOLVE_RUN_RESULT,
)
from ... | [
"mateo@foursquare.com"
] | mateo@foursquare.com |
3761aab98ada59cbae2219ca9e15760b23be5b81 | 13edd8f1bc3b86fd881f85fbeafe94811392d7fc | /seventh_module/CRM/22.stark组件开发之列表页面定制列/luffy_stark/stark/service/v1.py | db8bfd76372853026e41291621b5fd1fc478aaec | [] | no_license | ryan-yang-2049/oldboy_python_study | f4c90c9d8aac499e1d810a797ab368217f664bb1 | 6e1ab7f217d9bf9aa7801266dee7ab4d7a602b9f | refs/heads/master | 2022-07-22T23:49:28.520668 | 2019-06-11T13:26:25 | 2019-06-11T13:26:25 | 129,877,980 | 0 | 1 | null | 2022-07-18T17:12:54 | 2018-04-17T09:12:48 | HTML | UTF-8 | Python | false | false | 5,452 | py | # -*- coding: utf-8 -*-
from types import FunctionType
from django.conf.urls import url
from django.shortcuts import HttpResponse, render
class StarkHandler(object):
list_display = []
def __init__(self, model_class, prev):
self.model_class = model_class # 此时的model_class 是一个对象
self.prev = prev # 表示别名
def ... | [
"11066986@qq.com"
] | 11066986@qq.com |
d8f2d72a8600ac623e68c3a108d0304f82f7c042 | 650b3dd4cc74f32db78f7d99cef9907aec78a222 | /dialogs/Transaksi/fCashAdvanceReturn_intr.py | 7e82f83e45d54511e8bf2ad19fabed5f4f6530ac | [] | no_license | mech4/PKTrx | 29b871ab587434e7c208175c248f48d9b6c80a17 | cf01bc5be8837d632974786d2419c58b94a0381d | refs/heads/master | 2020-03-29T19:55:07.331831 | 2012-09-18T20:22:52 | 2012-09-18T20:22:52 | 6,289,691 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 20,534 | py | MAPEntity = {'Z': 1, 'I': 2, 'W': 3}
DefaultItems = [ 'Inputer',
'BranchCode',
'TransactionDate',
'FloatTransactionDate',
#'LBatch.BatchId',
#'LBatch.BatchNo',
#'LBatch.Description',
'ActualDate',
... | [
"wisnu27@gmail.com"
] | wisnu27@gmail.com |
06a87bb4d76ac93b72b26e333d5439be142bcea8 | 79b6a2497953d6832670af4447d2bbb3bdf23965 | /stage1/old/notesuwsgi/runlocal.py | f9fe339576180ed921bfd561772dcc3545277a00 | [] | no_license | davidjsanders/studyWork | 07a0ec7d47324377a09b4a71e6186e374900255d | ba992c17def649a3b789930d7776cda68423e8ce | refs/heads/master | 2021-05-31T05:24:36.323939 | 2016-04-15T00:23:53 | 2016-04-15T00:23:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,757 | py | """
Application: notes
Overivew: A demonstration of a device, such as a smart phone, which
provides notifications and only changes the behaviour of the
notifications based on locked or unlocked status. The key
element of this demonstrator is to show that the... | [
"dsanders_can@outlook.com"
] | dsanders_can@outlook.com |
c6d98711d0107a4425f6c7ec0d1c06b3cc6304be | ad13583673551857615498b9605d9dcab63bb2c3 | /output/models/ibm_data/valid/s3_4_1/s3_4_1v10_xsd/__init__.py | 0934fd02f548993d78ca4cc1d7bc55f802e85e8a | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 145 | py | from output.models.ibm_data.valid.s3_4_1.s3_4_1v10_xsd.s3_4_1v10 import (
C,
D,
Root,
)
__all__ = [
"C",
"D",
"Root",
]
| [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
a9143dc7e83a3f243f649115df3ea321cf751aa6 | 235c4b3aa630737b379050a420923efadd432da8 | /DS-400/Medium/229-Majority Element II/Counter.py | 094c851a5a8386f74fb1a9dc3837c40361d3683a | [
"MIT"
] | permissive | ericchen12377/Leetcode-Algorithm-Python | 4e5dc20062280ef46194da5480600b2459fd89f8 | eb58cd4f01d9b8006b7d1a725fc48910aad7f192 | refs/heads/master | 2023-02-22T22:43:55.612650 | 2021-01-28T04:00:20 | 2021-01-28T04:00:20 | 258,058,468 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | class Solution(object):
def majorityElement(self, nums):
"""
:type nums: List[int]
:rtype: List[int]
"""
dic = collections.Counter(nums)
return [ list(dic.keys())[j] for j in [i for i in range(len(list(dic.values()))) if list(dic.values())[i] > len(nums)/3]] | [
"suiyaochen@mail.usf.edu"
] | suiyaochen@mail.usf.edu |
93a97102c05a1f3a0838c2cf43e520204c59dd72 | 2ad1116411d79d5bac26402ccac4f5785a0485e4 | /counter.py | b78e3d34911842bf19c69a221265902c1530506d | [] | no_license | slavkoBV/solved-tasks-SoftGroup-course | 0a879fcaeedd2b1d27b2970ea621eb2bdfab4ce4 | 12461d50a095764d5e237babaec466bc2d8dc672 | refs/heads/master | 2021-01-18T15:55:04.224872 | 2017-05-08T15:38:16 | 2017-05-08T15:38:16 | 86,691,843 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | def some_func(a, b):
some_func.counter += 1 # Static variable Counter remember number of some_func() calls
return a + b
some_func.counter = 0
print(some_func(1, 3))
print('Call #',some_func.counter)
print(some_func(2, 4))
print('Call #', some_func.counter)
| [
"slav_b@ukr.net"
] | slav_b@ukr.net |
b8c803f29c550a40ca4ae33f015e7fffb9999746 | 2bcf18252fa9144ece3e824834ac0e117ad0bdf3 | /zpt/trunk/site-packages/zpt/_zope/schema/tests/test_floatfield.py | 1d6a009cae64a87c01fbbfd3be39e43c689146f1 | [
"ZPL-2.1"
] | permissive | chadwhitacre/public | 32f65ba8e35d38c69ed4d0edd333283a239c5e1d | 0c67fd7ec8bce1d8c56c7ff3506f31a99362b502 | refs/heads/master | 2021-05-10T14:32:03.016683 | 2010-05-13T18:24:20 | 2010-05-13T18:24:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,208 | py | ##############################################################################
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# T... | [
"chad@zetaweb.com"
] | chad@zetaweb.com |
1280d5d6ea1f00fc7300abd981f6dd170da59c11 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_312/ch9_2019_04_04_16_41_56_665426.py | 759314ca3a2d438a497ea181c1e10e9db6443c73 | [] | 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 | 266 | py | def lista_sufixos(string):
lista=[]
if len(string)==1:
lista.append(string)
return lista
contador=1
tamanho=len(string)-1
while contador<=tamanho:
lista.append(string[contador:tamanho])
contador+=1
return lista | [
"you@example.com"
] | you@example.com |
f39d0a912cfc4ef5356a31864561c9c2532d7026 | 5a45df3d23d5fecc169a8395034cca9e0497fa94 | /pandas/tests/indexes/multi/test_analytics.py | 9f6a72f803f9d5fa497fdc9cfc6db246f14a2b07 | [
"BSD-3-Clause"
] | permissive | IHackPy/pandas | 68fe97d687b2bdbd3ad9fb84872c899593d77997 | 0a0c1b4a76f718599346e4aa5c9b88140efa7b9c | refs/heads/master | 2021-09-24T14:44:01.266388 | 2018-10-10T16:57:36 | 2018-10-10T16:57:36 | 124,025,370 | 2 | 0 | BSD-3-Clause | 2018-10-10T16:57:38 | 2018-03-06T05:24:36 | Python | UTF-8 | Python | false | false | 10,065 | py | # -*- coding: utf-8 -*-
import numpy as np
import pandas as pd
import pandas.util.testing as tm
import pytest
from pandas import Index, MultiIndex, date_range, period_range
from pandas.compat import lrange
def test_shift(idx):
# GH8083 test the base class for shift
pytest.raises(NotImplementedError, idx.shi... | [
"jeff@reback.net"
] | jeff@reback.net |
c9ab7d7652c500a59c5a0422c2a17d8a4ff1e16b | 55ef08cfcd1cc7bad7b7478a7e9b30e04759755d | /59.py | f96ec6fe798acf0197047ba1f053bd1a872984b3 | [] | no_license | Thilagaa22/python-codes | 135a6365fb02c1b4517c1f9eab9c56b09af4b69f | 2f20c1f66ca67bde428d7bbc4a4aefff55f433a4 | refs/heads/master | 2020-05-05T06:30:40.527575 | 2019-05-12T17:45:41 | 2019-05-12T17:45:41 | 179,791,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | ch = int(input())
count = 0
while(ch>0):
ch = ch // 10
count = count + 1
print(count)
| [
"noreply@github.com"
] | Thilagaa22.noreply@github.com |
21cdbffcc4d6a5aa0f87b5f81cc700c825c96b73 | cda43bf6a84f7e55fab26aa70cda934683a51fe5 | /GANsDevelopGANsPythonPy3/inception_score.py | 5fbc6729d62c0c1bd2432412543e4dca6c191bf0 | [] | no_license | nikolaosdionelis/NeuralNetworksNNs | abb55622882e31c8d130a8986868b3d19ede186f | 8a217490ad5bb3f7fccf4002c6b43a06c1e562fc | refs/heads/master | 2022-11-13T00:50:23.578197 | 2020-07-12T18:52:20 | 2020-07-12T18:52:20 | 279,042,013 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,595 | py | # From https://github.com/openai/improved-gan/blob/master/inception_score/model.py
# Code derived from tensorflow/tensorflow/models/image/imagenet/classify_image.py
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os.path
import sys
import tarfile
impo... | [
"noreply@github.com"
] | nikolaosdionelis.noreply@github.com |
cb1da8aeaf03a85e74866e7cfcdbdaba94ef3d3c | 130b75d66085e1c598ab6c0e11aa685ea4a476aa | /example/django_account_starter/forms.py | de45ec17a22ab13bb92137c161715fb344f13778 | [] | no_license | hypnopompicindex/django_account_starter | 9fe1bca18ed62d9d3c820012afadb188f78c720e | 28ac87147a8f1ead92b6e2d1f6754208f42a9195 | refs/heads/master | 2020-12-29T01:10:23.042916 | 2016-09-18T18:28:52 | 2016-09-18T18:28:52 | 68,318,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | from django import forms
from django.contrib.auth.models import User
class LoginForm(forms.Form):
username = forms.CharField()
password = forms.CharField(widget=forms.PasswordInput)
class UserRegistrationForm(forms.ModelForm):
password = forms.CharField(label='Password', widget=forms.PasswordInput)
... | [
"hypnopompicindex@gmail.com"
] | hypnopompicindex@gmail.com |
b30a909362d8e140bded469e462867647d71d165 | 6659f860ddbb7550f66ea712753d3d2aab1cc6ff | /App/web/echo_server.py | 467a5b0e10a14b53459be9d8923e943ccb29bc99 | [] | no_license | ianhom/Python-Noob | adf077bee78727eac43da2804a90528ace6c38a6 | e12f0159d68d7c4962cafa3cb8b68a8761037f21 | refs/heads/master | 2020-12-08T12:06:01.909463 | 2018-07-03T00:42:41 | 2018-07-03T00:42:41 | 67,806,200 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,061 | py | #!/usr/bin/python
import socket
import sys
import argparse
host = 'localhost'
data_payload = 2048
backlog = 5
def echo_server(port):
""" A simple echo server """
# Create a TCP socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR,1)
... | [
"noreply@github.com"
] | ianhom.noreply@github.com |
3215691d24fbeff15214e407100c1c72833dd4d7 | 35e6598c8f07e686ef4ce431800ece28d2797568 | /tests/test_run.py | e6ab5eaa7eed758a1e5cb74dddff0ab76744d6c4 | [] | no_license | akuhnregnier/python-inferno | c7badbed505da602c98180e70aff05061dd1a199 | 424168231f553d0f872f1a2ec29c26bf3d114f08 | refs/heads/main | 2023-04-16T03:15:27.427407 | 2023-01-28T19:15:05 | 2023-01-28T19:15:05 | 368,221,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,607 | py | # -*- coding: utf-8 -*-
import sys
import threading
from pathlib import Path
from subprocess import check_call
from tempfile import TemporaryDirectory
from time import sleep
from python_inferno.cx1 import run
def get_cmd_args(dest="local", batch_size=-1, n_cores=1):
return type(
"cmd_args",
(obje... | [
"ahf.kuhnregnier@gmail.com"
] | ahf.kuhnregnier@gmail.com |
86f0d28d524f336cc11738fb13ca9b9f426ca7c7 | 0141361f7c4d276f471ac278580479fa15bc4296 | /Depth First Search/delNodesGetForest.py | 2a22856b674fc21b6d90e1072f5b6c9f37f16692 | [] | no_license | tr1503/LeetCode | a7f2f1801c9424aa96d3cde497290ac1f7992f58 | 6d361cad2821248350f1d8432fdfef86895ca281 | refs/heads/master | 2021-06-24T19:03:08.681432 | 2020-10-09T23:53:22 | 2020-10-09T23:53:22 | 146,689,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 750 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def delNodes(self, root: TreeNode, to_delete: List[int]) -> List[TreeNode]:
res = []
s = set(to_delete)
def helpe... | [
"noreply@github.com"
] | tr1503.noreply@github.com |
c3d9a88e645d3e7c9743df0c8bf5e10928dd658e | 141b42d9d72636c869ff2ce7a2a9f7b9b24f508b | /myvenv/Lib/site-packages/examples/starwars_relay/tests/snapshots/snap_test_mutation.py | 27c3f9bb46b2563ab5a4481eefe8bacf06bd1279 | [
"BSD-3-Clause"
] | permissive | Fa67/saleor-shop | 105e1147e60396ddab6f006337436dcbf18e8fe1 | 76110349162c54c8bfcae61983bb59ba8fb0f778 | refs/heads/master | 2021-06-08T23:51:12.251457 | 2018-07-24T08:14:33 | 2018-07-24T08:14:33 | 168,561,915 | 1 | 0 | BSD-3-Clause | 2021-04-18T07:59:12 | 2019-01-31T17:00:39 | Python | UTF-8 | Python | false | false | 1,891 | py | # -*- coding: utf-8 -*-
# snapshottest: v1 - https://goo.gl/zC4yUc
from __future__ import unicode_literals
from snapshottest import Snapshot
snapshots = Snapshot()
snapshots['test_mutations 1'] = {
'data': {
'introduceShip': {
'ship': {
'id': 'U2hpcDo5',
'name... | [
"gruzdevasch@gmail.com"
] | gruzdevasch@gmail.com |
543cf71d2cdecadd0172471e579d30f54397750f | 06c9c01700c76a203aca4de342bf6f7cb11c3b36 | /python/rsyscall/tests/test_prctl.py | 3a7989026c9ef37bd82b6405b844c0493de97d07 | [] | no_license | catern/rsyscall | 76df9d8c1a63ccf60443c18311edc7c8203f62bc | 2a362099610a664caeb7f06dd805e5a0fb80cd08 | refs/heads/master | 2022-07-30T07:43:31.778335 | 2022-07-25T13:36:57 | 2022-07-25T13:42:48 | 137,142,228 | 68 | 8 | null | 2022-07-13T01:47:18 | 2018-06-13T00:31:25 | Python | UTF-8 | Python | false | false | 771 | py | import logging
from rsyscall.tests.trio_test_case import TrioTestCase
from rsyscall.sys.prctl import *
logger = logging.getLogger(__name__)
class TestUser(TrioTestCase):
async def asyncSetUp(self) -> None:
self.process = await self.process.fork()
async def asyncTearDown(self) -> None:
await se... | [
"sbaugh@catern.com"
] | sbaugh@catern.com |
d4bb69477bf1b32e0cd01546da40fba55fbf3e40 | 23514a0e2baf6da053690dd511f1eef75a573e6b | /log-mining/com/haodou/log-mining/tag/conceptClass.py | 8acd8c1f0343d076b0aacae749f0d610065a5365 | [] | no_license | rainly/scripts-1 | b5f31880a1a917df23e4c110bb7661685851eff5 | 3ef01a58162b94fb36cdd38581c899d8a118eda0 | refs/heads/master | 2020-07-12T01:41:31.491344 | 2019-08-27T08:50:10 | 2019-08-27T08:50:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,363 | py | #encoding=utf-8
import sys
sys.path.append("./")
import traceback
'''
#基于模板构建分类集合
#有几种类型的分类:一种包含的分类(这个不考虑界限问题),一种是精确的分类(要求描述的内容应该都包含在本概念之内)
#其中,精确的分类分两种情况,第一种是连续的精确包含,一种是非连续的精确包含。连续的精确包含要求所有内容是前后相接的,后者可以是内容分散在文中中的不同地方。
我们从包含的分类开始。对于包含的分类,由外部规则来切割文本,然后判定切割的部分是否具有某个概念属性。
我们可以对判定后的内容继续切割,看各个子部分是否具有某个概念。
这时候,我们就可以对于内部有哪些... | [
"zhaoweiguo@vxiaoke360.com"
] | zhaoweiguo@vxiaoke360.com |
192d963f2cd091540ede32b5d55a1c26b18dd8e2 | 24b1fa231f4e89f1a588c09ebee6fe4da6915c53 | /Easel/localToGlobal.py | 32879cea0aa8088c56362b690f7dfecad71d4191 | [] | no_license | cyrt63/demos | a429214154cf0e51b58710f67670e1d902bfcac6 | a4b54b862dba4ad33a707511896324829f4cc7b1 | refs/heads/master | 2020-04-08T13:51:40.823058 | 2015-04-21T14:01:41 | 2015-04-21T14:01:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,048 | py | from easel import *
from browser import *
from workbench import *
from math import pi
canvas = document.createElement("canvas")
stage = Stage(canvas)
target = stage.addChild(Shape())
target.graphics.beginFill("blue").drawCircle(0, 0, 50).endFill()
target.graphics.beginFill("white").drawCircle(0, 0, 30).endFill()
tar... | [
"geometryzen@gmail.com"
] | geometryzen@gmail.com |
c8bbe5f9ed646c1afe70a866ae47c98b46abf502 | de0ea898d18e4faf383d230cf2542335bfa166d5 | /library/settings.py | 358878850fd10aa175dd41195b4be9b5347278cb | [] | no_license | msadour/book_API | 86121341e66249b51835e5e1c842c8fdde26ba6c | 81477c242647c95897a05ad892bc3e11542defa7 | refs/heads/master | 2022-12-09T16:33:12.027427 | 2020-01-22T13:25:45 | 2020-01-22T13:25:45 | 231,387,598 | 0 | 0 | null | 2022-12-07T23:21:19 | 2020-01-02T13:28:36 | HTML | UTF-8 | Python | false | false | 3,953 | py | """
Django settings for library project.
Generated by 'django-admin startproject' using Django 1.11.27.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import o... | [
"sadour.mehdi@gmail.com"
] | sadour.mehdi@gmail.com |
edf0e9a4bac2f1ac04cbd0bac6b3ad5427ff6e07 | 51a7465d1fa50fc14d472759512c8ecbc7fe0b8d | /rlpyt/algos/pg/base.py | d0c5a733e7800d2c3c07e8af8cbe5a873e7ee713 | [
"MIT"
] | permissive | rk2900/rlpyt | 9717a088340fc441f3fc7fba505926316cbcc20d | 47176abebc3a19791e34564e4fa6b1b267a68a61 | refs/heads/master | 2020-07-26T17:25:03.549545 | 2019-09-09T23:48:59 | 2019-09-09T23:48:59 | 208,718,161 | 1 | 1 | null | 2019-09-16T05:38:55 | 2019-09-16T05:38:55 | null | UTF-8 | Python | false | false | 2,319 | py |
# import torch
from collections import namedtuple
from rlpyt.algos.base import RlAlgorithm
from rlpyt.algos.utils import (discount_return, generalized_advantage_estimation,
valid_from_done)
# Convention: traj_info fields CamelCase, opt_info fields lowerCamelCase
OptInfo = namedtuple("OptInfo", ["loss", "gradNorm... | [
"adam.stooke@gmail.com"
] | adam.stooke@gmail.com |
fe52631f9ffe0bc3e5077dd57da589675ec58a01 | b3b68efa404a7034f0d5a1c10b281ef721f8321a | /Scripts/generated/protocolbuffers/SituationPersistence_pb2.py | efe6f101d45005a56cfc25cb119560671cb177f8 | [
"Apache-2.0"
] | permissive | velocist/TS4CheatsInfo | 62195f3333076c148b2a59f926c9fb5202f1c6fb | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | refs/heads/main | 2023-03-08T01:57:39.879485 | 2021-02-13T21:27:38 | 2021-02-13T21:27:38 | 337,543,310 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,079 | py | # uncompyle6 version 3.7.4
# Python bytecode 3.7 (3394)
# Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
# Embedded file name: D:\dev\TS4\_deploy\Client\Releasex64\Python\Generated\protocolbuffers\SituationPersistence_pb2.py
# Compiled at: 2020-12-13 14:24:08
#... | [
"cristina.caballero2406@gmail.com"
] | cristina.caballero2406@gmail.com |
01b9c36559b505bb04ed85b9f10a7dfaece2b507 | b1c7a768f38e2e987a112da6170f49503b9db05f | /stockkeeping/migrations/0041_auto_20181208_1612.py | 14e53432db120afe4f2b5ae64d1fc60d245b1643 | [] | no_license | Niladrykar/bracketerp | 8b7491aa319f60ec3dcb5077258d75b0394db374 | ca4ee60c2254c6c132a38ce52410059cc6b19cae | refs/heads/master | 2022-12-11T04:23:07.504966 | 2019-03-18T06:58:13 | 2019-03-18T06:58:13 | 176,218,029 | 1 | 0 | null | 2022-12-08T03:01:46 | 2019-03-18T06:27:37 | JavaScript | UTF-8 | Python | false | false | 815 | py | # Generated by Django 2.0.6 on 2018-12-08 10:42
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('stockkeeping', '0040_auto_20181206_1553'),
]
operations = [
migrations.AddField(
model_name='stockdata',
... | [
"niladry.kar85@gmail.com"
] | niladry.kar85@gmail.com |
c2ef28815867fa9e75b5c0a7c7ea03f20ecdf678 | d956866b2aa0e52372a7ee4cfb825012fdb088ed | /bluepyopt_ext/deap_ext/tools/varDE.py | 71a0e6a1a2b5a75335fe1409058db3214615e375 | [] | no_license | trumbell/RumbellKozloski2019 | e4683863f9ce7a7ed844ad2309c05c40694c1674 | ff01a520eb1c3df3ddf8aca66b1e4114a24edfea | refs/heads/master | 2023-03-18T03:31:26.022568 | 2020-07-29T23:27:59 | 2020-07-29T23:27:59 | 514,313,861 | 1 | 0 | null | 2022-07-15T15:14:26 | 2022-07-15T15:14:25 | null | UTF-8 | Python | false | false | 3,145 | py | """Differential Evolution Variator"""
import numpy
import random
from deap import tools
def varDE(population, toolbox, cxpb=1.0, mutpb=1.0, jitter=0, low=None, up=None):
"""Part of an evolutionary algorithm applying the variation part
of the differential evolution algorithm. The modified individuals have thei... | [
"tom.morse@yale.edu"
] | tom.morse@yale.edu |
65241bed19bfa34e30cf8d78ffaf90568cac3f98 | 3bafaed1d12e4e1fb221a11998a7b9a858b04644 | /App/migrations/0005_auto_20201229_1500.py | 76b907df1761d6d3493aae959be9d9b60f21ce2e | [] | no_license | nian-20/AtroBOM | 8c96e9247292b5f4a3a4f22b7d93a8749f7ed80c | 0370636238e722489b3fddc3a65d4e9ceb7cbfb0 | refs/heads/master | 2023-08-15T09:13:10.042024 | 2021-09-30T19:12:03 | 2021-09-30T19:12:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,528 | py | # Generated by Django 3.1.4 on 2020-12-29 11:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('App', '0004_auto_20201215_0920'),
]
operations = [
migrations.AlterField(
model_name='material',
name='box_descripti... | [
"nimadorostkar97@gmail.com"
] | nimadorostkar97@gmail.com |
c941e9442578df39566b2b5d3a842f1f2d64d2dc | 9dda81fb80905226b10e69d4c20f72533f2b68bd | /personalise/urls.py | 0327ada2e45294fd6160e4e4d9ba28f8e7632a18 | [] | no_license | SardarDawar/graphicStore-ecommerce | 2c610d6ef4e62d98659bf98d3d80af3d1926aa3f | 1d9208d27e4ba69bedf7a34b7e54bcc540d26438 | refs/heads/master | 2023-02-02T13:45:31.335032 | 2020-12-15T18:52:43 | 2020-12-15T18:52:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | from django.urls import path
from . import views
urlpatterns = [
path('personalise/<product_id>', views.personalise, name='personalise'),
]
| [
"dawarsardar786@gmail.com"
] | dawarsardar786@gmail.com |
3f2b95b67acc34a044aad8144d2993f4dc20d233 | 18f4332ccaccf7e0a3a36d701f84358516ee6562 | /test/tuples.py | d6f5bb01eb1a36c5198bdfc31308df2e7392099d | [] | no_license | anishLearnsToCode/python-workshop-1 | d4a4f04d635aae15ff7411e817863a50e877e51e | 524a329233ce1ae20d926fff53f46925cd9cba3e | refs/heads/master | 2022-11-22T09:10:42.674296 | 2020-07-15T18:38:26 | 2020-07-15T18:38:26 | 275,112,553 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | t = (1, 2, 3)
print(t)
t = list(t)
t[1] = 100
t = tuple(t)
print(t)
for x in t:
print(x)
print(type(t))
x = ('apple', )
print(type(x))
print(t + x)
| [
"anish_bt2k16@dtu.ac.in"
] | anish_bt2k16@dtu.ac.in |
efdf7ca57d033346a0b1aec187e98da28e9abb61 | 6bd105edcca815c9a8da0f483c5a6f8193a62aec | /generate_tube.py | b48d166ae070e98eff8632aa93409f004365c4f6 | [] | no_license | AngledLuffa/stl-helix | 894832d9c1e9def6e1ece1cbc4d1a0d919415044 | c8959cde742351671dc4939b8afd0b4007cbec7b | refs/heads/master | 2021-07-12T07:47:27.369837 | 2021-02-13T17:53:44 | 2021-02-13T17:53:44 | 231,339,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,713 | py | import argparse
import math
import sys
import build_shape
import marble_path
def describe_curve(args):
if args.rotation == 0:
print("A basic tube of length {}".format(args.length))
else:
print("A basic tube of length {}, rotated {}".format(args.length, args.rotation))
def build_x_y_r_t(args):... | [
"horatio@gmail.com"
] | horatio@gmail.com |
d527d677917e63895d7e88d560059f127c520c0b | e47b8be7bb06376d0d9d28845aa453877ff3655f | /00. Choinka/venv/Scripts/easy_install-3.7-script.py | afd790e09eb69cfaaa1afbb1c87fca3e148580fa | [] | no_license | mrcszk/Python | eaf60ccfda4ebebdd67db3944e4ac248208f1a1e | 5e733b5bc1bd09904e48662c8542c8db60097ab5 | refs/heads/master | 2022-11-15T14:07:34.131042 | 2020-07-15T09:41:05 | 2020-07-15T09:41:05 | 169,444,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | #!"C:\Users\marci\Desktop\Programy w Pythonie\0.Choinka\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub... | [
"marcin.sawczuk99@gmail.com"
] | marcin.sawczuk99@gmail.com |
686ebd14d9e863f11e702e209cbfaeebeb2645bc | 17939372537b437dd52ee8426785108039df651c | /customer_cases/krugoreys/solving/genetic_runner.py | 914ce087b01c2741d9483941e56f22229a4b8ff5 | [] | no_license | Madrich-routes/routes_laboratory | d091abd2267c9765e5a7c66a80c87c94e95e6189 | 27c447c9fe8e36c5ae4596ab4cdf38cac8fca6ef | refs/heads/master | 2023-06-04T12:02:08.973183 | 2020-10-31T17:22:14 | 2020-10-31T17:22:14 | 295,661,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,321 | py | import ujson as json
import os
import uuid
from typing import List, Tuple
from autologging import logged, traced
from solving.models import Task, Vehicle, DistanceMatrix, Tour, Solution
@traced
def run_genetic_solver(
tasks: List[Task], vehicles: List[Tuple[int, Vehicle]], matrix: DistanceMatrix
):
proc... | [
"yampolskiydv@gmail.com"
] | yampolskiydv@gmail.com |
c2414773428ebdacff7024fad72490cb5d6c6cf7 | 0130c8b14927097663157846adc4b146d67d2fda | /tests/common/test_run/log_ad_run.py | 88030a554050c50841aedc5f7eacf3bf2f3efd4f | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"BSD-3-Clause",
"NCSA",
"LLVM-exception",
"Zlib",
"BSD-2-Clause",
"MIT"
] | permissive | Shigangli/akg | e8be3e0ee1eafe3e42b4cc4d424c28f08ef4c0bc | 3766c54e0b109541932d147a6b5643a334b82403 | refs/heads/master | 2023-09-06T05:13:40.571583 | 2021-11-23T03:44:54 | 2021-11-23T03:44:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,046 | py | # Copyright 2019 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... | [
"1027252281@qq.com"
] | 1027252281@qq.com |
c3d4b971073dde1a3ac985dedf8bb7bfa83d2864 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_5/lftnto002/question2.py | 98cc15fb931243965f2e7c3695e9e9a41bfe8e8f | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,977 | py | cost= eval(input("Enter the cost (in cents):\n"))
if cost:
deposit= eval(input("Deposit a coin or note (in cents):\n"))
while (deposit<cost):
deposit_added= eval(input("Deposit a coin or note (in cents):\n"))
deposit+=deposit_added
change= deposit-cost
cents=0
... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
86c3d045b6e4a572b74390c63ff128cdff3142dd | cf7b0ab779e273c3a553fa7e6ca4e98c524ec8f9 | /Buildings/apps.py | ae815ace614cd9072d87d76f945b1befcf672dba | [] | no_license | zenmeder/JKDatabaseSystem | 369a40172420eb1f783467b5884e6e94f6fa9a71 | 146a552e549c9a1ef131bb475ecf5e8947696a6c | refs/heads/master | 2020-03-19T09:12:41.774587 | 2018-06-12T03:04:56 | 2018-06-12T03:04:56 | 136,268,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class BuildingsConfig(AppConfig):
name = 'Buildings'
| [
"zenmeder@gmail.com"
] | zenmeder@gmail.com |
d1440459aa0d730a1ec383a73089632570832b39 | 23f85dfe9c748beff12300be50a32122f0187948 | /tests/unit/test_login.py | 0d165c49ae8d8acaf287e3f38978298f097df12e | [
"MIT"
] | permissive | MathiasTejs/betfair | e9e815459068047adbea9c42b9d3c2bf0d1cbdfd | a639787bee11e0cbd135bf0e7bfeb171217f78d7 | refs/heads/master | 2022-12-12T08:43:00.460054 | 2020-08-03T11:18:07 | 2020-08-03T11:18:07 | 278,915,333 | 0 | 0 | MIT | 2020-07-11T18:01:05 | 2020-07-11T18:01:05 | null | UTF-8 | Python | false | false | 3,449 | py | import unittest
from unittest import mock
from requests.exceptions import ConnectionError
from betfairlightweight import APIClient
from betfairlightweight.endpoints.login import Login
from betfairlightweight.exceptions import LoginError, APIError, InvalidResponse
from betfairlightweight.resources import LoginResource
... | [
"paulingliam@gmail.com"
] | paulingliam@gmail.com |
be2a26261fc488944f2f7777330588411053b33d | 6ab9a5dca4ba6897f1b101711fbda501a9ea62a6 | /Pacman/pacmanBFS.py | 7dabefd7c7082aebe3fadbc63fed68d96b53c326 | [
"MIT"
] | permissive | iamrakesh28/Games | 4631ac5d812d934a774bd3350deae6bc144d692f | 4fa22f0a6f609b0c8ebf94bc20a0aedd5a875fab | refs/heads/master | 2020-05-01T03:41:02.761242 | 2019-10-05T17:08:52 | 2019-10-05T17:08:52 | 177,251,466 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | import queue
def cellNum(i,j,m):
return i*m+j
def cellInv(num,m):
return (num//m,num%m)
def valid(i,j,n,m):
if i >= 0 and i < n and j >= 0 and j < m:
return True
return False
def BFS(mat,ghost,n,m,pac):
visit = [m*[False] for i in range(n)]
par = [m*[0] for i in range(n)]
dr = [-1,1,0,0]
dc = [0,0,-1,1]
... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
a9a0cd836205c0dd7725b689164a4686b544e493 | 1cbb17203977f53a137857f0e296994006e9345c | /zhrtvc/melgan/hparams.py | a822d6aa05194547020422ef6417d1081d8908cc | [
"MIT"
] | permissive | tedrepo/zhrtvc | cb0275e27afd6f70fe169e5415e7aaac9b317755 | bafcbe327ead0fc40239e724828f810fd096b483 | refs/heads/master | 2022-11-06T12:29:42.144626 | 2020-06-28T11:12:06 | 2020-06-28T11:12:06 | 276,594,767 | 1 | 0 | null | 2020-07-02T08:43:56 | 2020-07-02T08:43:55 | null | UTF-8 | Python | false | false | 3,243 | py | #!usr/bin/env python
# -*- coding: utf-8 -*-
# author: kuangdd
# date: 2020/2/20
"""
"""
from tensorflow.contrib.training import HParams
one = 64
# Default hyperparameters
hparams = HParams(
# Audio
inv_mel_basis=None,
mel_basis=None,
center=False,
num_mels=80, # Number of mel-spectrogram channels... | [
"kqhyj@163.com"
] | kqhyj@163.com |
083cf199bdc974e6feac26f8bbf82518712cf110 | a5fdc429f54a0deccfe8efd4b9f17dd44e4427b5 | /0x0B-python-input_output/9-add_item.py | 23d03eaddd7278b43c2b4b8dad51fb924860df5b | [] | no_license | Jilroge7/holbertonschool-higher_level_programming | 19b7fcb4c69793a2714ad241e0cc4fc975d94694 | 743a352e42d447cd8e1b62d2533408c25003b078 | refs/heads/master | 2022-12-20T20:41:33.375351 | 2020-09-25T02:02:28 | 2020-09-25T02:02:28 | 259,471,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | #!/usr/bin/python3
"""module for task 9 script"""
import sys
save_to_json_file = __import__('7-save_to_json_file').save_to_json_file
load_from_json_file = __import__('8-load_from_json_file').load_from_json_file
my_list = []
try:
my_list = load_from_json_file("add_item.json")
except FileNotFoundError:
my_list = ... | [
"1672@holbertonschool.com"
] | 1672@holbertonschool.com |
5981507dc787a7cc1690673189ead63ff122b7f4 | 63b79c404d83e4980891c488f4d9592558ecda35 | /assets/src/ba_data/python/bastd/ui/settings/nettesting.py | d7ec72b038cbbb617dc90c7817529f3abaaa373e | [
"MIT"
] | permissive | kakekakeka/ballistica | 56e8879cd5b4b990e5e05da3dfd300d7cbb45446 | 3ffeff8ce401a00128363ff08b406471092adaa9 | refs/heads/master | 2022-11-14T08:11:57.160782 | 2020-07-01T05:43:13 | 2020-07-01T05:49:44 | 276,755,445 | 2 | 0 | MIT | 2020-07-02T22:18:37 | 2020-07-02T22:18:36 | null | UTF-8 | Python | false | false | 2,225 | py | # Copyright (c) 2011-2020 Eric Froemling
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish,... | [
"ericfroemling@gmail.com"
] | ericfroemling@gmail.com |
eb6c9eeb1839c0a856982a26b9290e9e3d31157b | b7d27246e728d42a965a40951524dbfd12e4df2a | /tests/test_lazy.py | 9ba8c92d832bf898d0d8f5bb7a9dcbee9b9dd207 | [] | no_license | bwhite/hadoopy_flow | dd4a0ba3434004fa2a4c9778785d595c667798e6 | c12ecf4609b3e3f33a42fe1d050e546281a24c48 | refs/heads/master | 2021-01-10T20:17:48.134587 | 2012-01-07T13:48:32 | 2012-01-07T13:48:32 | 1,933,570 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,188 | py | try:
import unittest2 as unittest
except ImportError:
import unittest
import hadoopy_flow
import gevent
# Cheat Sheet (method/test) <http://docs.python.org/library/unittest.html>
#
# assertEqual(a, b) a == b
# assertNotEqual(a, b) a != b
# assertTrue(x) bool(x) is True
# assertFalse(x) ... | [
"bwhite@dappervision.com"
] | bwhite@dappervision.com |
d0128221d613e65c6c850f6847ad84ba64ec9bdb | 2316702793f4d85a934a82328ca5e59e468d5b11 | /DaZhongDianPing/settings.py | 8400986254c005d44af0cfe1dc060bc837545acf | [] | no_license | jakejie/DaZhongDianPing | 8c094aea071a6a00f87c4a7b34b8ef66b260d4b2 | a08c53fc33ef1bb698beafbeb692d932f2096f5e | refs/heads/master | 2020-04-24T22:25:09.491171 | 2019-02-24T08:02:33 | 2019-02-24T08:02:33 | 172,311,437 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,342 | py | # -*- coding: utf-8 -*-
BOT_NAME = 'DaZhongDianPing'
SPIDER_MODULES = ['DaZhongDianPing.spiders']
NEWSPIDER_MODULE = 'DaZhongDianPing.spiders'
# 数据库连接信息
db_host = '****'
db_user = 'root'
db_pawd = '***'
db_name = 'dp'
db_port = 3306
# 代理ip配置
use_proxy = True
'''阿布云代理'''
abu_proxy_server = "http://http-dyn.abuyun.com:... | [
"jakejie@163.com"
] | jakejie@163.com |
f05182cae84bcd50878a0856e07f28039c9a3589 | f9b025c77bc7b3aad3bc70fe7fab489c13a54f14 | /training/forms.py | dce4b5c15ad4914ec02343089d4268e0c0cff0b3 | [] | no_license | maria-j-k/WatchDog | 1ba8f443a66eb1e63641884848c88fd2ace42ba5 | fe9453cb4d66981320a8b90d45f6400838285f1b | refs/heads/master | 2023-01-04T16:59:41.339641 | 2020-10-30T10:26:07 | 2020-10-30T10:26:07 | 300,861,010 | 0 | 1 | null | 2020-10-21T22:13:24 | 2020-10-03T11:10:17 | Python | UTF-8 | Python | false | false | 1,227 | py | from django import forms
from .models import Exercise
# from staff_only.models import Ascription, Composition
class ExerciseForm(forms.ModelForm):
when = forms.SplitDateTimeField(widget=forms.widgets.SplitDateTimeWidget())
class Meta:
model = Exercise
fields = ('when', 'remarques', 'rating'... | [
"maria77julia@gmail.com"
] | maria77julia@gmail.com |
c6ac9757a31759a1917498e17f370e0f0b61642f | 3898dc9aa5b2b1e414772fa25657931cdfa422e9 | /scs_analysis/sample_regression.py | d4ddcd047c97149a7a07c4257d53b0cd1d6b945a | [
"MIT"
] | permissive | ladyrassilon/scs_analysis | 7f02aa0a35b81a104707bd87aa9224314bb157e3 | 42d6203d37bfcb0dde1a5c3e099dde9aeeb26ac1 | refs/heads/master | 2021-06-29T13:11:05.607379 | 2017-09-24T07:32:54 | 2017-09-24T07:32:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,687 | py | #!/usr/bin/env python3
"""
Created on 23 Aug 2017
@author: Bruno Beloff (bruno.beloff@southcoastscience.com)
command line example:
./socket_receiver.py | ./sample_regression.py val.sht.tmp -t 4
"""
import sys
from scs_analysis.cmd.cmd_sample_aggregate import CmdSampleAggregate
from scs_core.data.json import JSON... | [
"bruno.beloff@southcoastscience.com"
] | bruno.beloff@southcoastscience.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.