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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ebf006c8185185dddd4a84f9ef15bb8c06bb38ac | 07622a0fb38e843ab0eef4f69bb8fb25d107c06d | /pretrained_mol_sim/Theano-master/theano/tests/main.py | 97fea16ecc4d8d8763b25fdd0fb1d970cab187e3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | andreeadeac22/graph_coattention | fa59d77252625e4bee1cb9670e4a0fd0fec98135 | 23781fedaa942ca5614054f965cb7b6543e533fa | refs/heads/master | 2023-08-08T01:51:51.368457 | 2020-02-19T04:56:59 | 2020-02-19T04:56:59 | 207,414,336 | 15 | 4 | MIT | 2023-07-22T15:47:39 | 2019-09-09T22:13:34 | Python | UTF-8 | Python | false | false | 6,222 | py | from __future__ import absolute_import, print_function, division
import os
import unittest
import sys
from numpy.testing.nosetester import NoseTester
# This class contains code adapted from NumPy,
# numpy/testing/nosetester.py,
# Copyright (c) 2005-2011, NumPy Developers
class TheanoNoseTester(NoseTester):
"""
... | [
"andreeadeac22@gmail.com"
] | andreeadeac22@gmail.com |
dd9342b5d54c739cf9849c117a9e29a645ae9176 | 5884ceea5e7f2d6dfa1e2bcfb08af7229923fc1f | /test9/.env/bin/easy_install-3.6 | fb04d2eed2eb425ccfe10daa0996f2e4754018e7 | [] | no_license | Durant21/test9a | 118716614c3e8c45fea3ea28babf8613c7cbb6c0 | 8979cb3fd1bb770dca3a1078a43ca395a14e2c10 | refs/heads/master | 2020-07-11T14:21:23.703613 | 2019-08-26T21:52:49 | 2019-08-26T21:52:49 | 204,566,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | 6 | #!/home/dante/Projects/test9/test9/.env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"durant.crimson@icloud.com"
] | durant.crimson@icloud.com |
6372135fc16eea5d5a7e51601a76f80eaa89bac6 | c61b1c1b65034215e85266db918c39946a3bafe7 | /athletes/serializers.py | 474ff1d5651ddb2dd3fc4d48d21a27ada56cb54d | [] | no_license | enias-oliveira/olympicHistory | 06cdc64f0ef06cf6b33472872539a0c57831f52c | e02f648d2bd127c8ae16c976fb8610005ac27604 | refs/heads/master | 2023-08-16T03:36:33.261214 | 2021-10-05T18:11:52 | 2021-10-05T18:11:52 | 411,797,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,494 | py | from rest_framework import serializers
from medals.models import Medal
from medals.serializers import MedalSerializer
from games.models import Event
from games.serializers import EventSerializer
from .models import Athlete, Country
class AthleteMedalSerializer(MedalSerializer):
class Meta:
model = Medal... | [
"eniasoliveira27@gmail.com"
] | eniasoliveira27@gmail.com |
2ba268102fe8f16978356394926d7b179fdf9dc9 | 69819f1d554e48b6d1f280e4d4785b35734e6235 | /py_learning/test3_4.py | 55da6b2b3bb96778e1fca613dd93c9a228e22b41 | [] | no_license | SamKaiYang/python_code | 8b60b4b68ab7cd4261e237972c0f6e45fc2dced5 | fb16471aa96082efc906fd8129cecd3a8b19e8a0 | refs/heads/master | 2020-04-26T03:26:38.041377 | 2019-04-11T06:38:09 | 2019-04-11T06:38:09 | 173,267,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,202 | py | import numpy
###--------------------ch.3-------------------
years_list = [1996 ,1997 ,1998 ,1999 ,2000]
print("----------------ch3----------------------------")
print("3.1:",years_list)
print("-----------------------------------------------")
print("3.2:",years_list[2])
print("------------------------------------------... | [
"tt00621212@gmail.com"
] | tt00621212@gmail.com |
905a119de0d7d34cc786486287e9cd094818c475 | c82cefee68d557b0790483500b58e7e2988bd33b | /lib/web.py | 2b001db7cb369359b02c9788fdcdc55fce7b4de8 | [
"MIT"
] | permissive | amadeobrands/electrum | c5def78731faf6908cf48342ce3d291547d1a52f | 459100eda0f3cdcf6d75e304d08345a627364078 | refs/heads/master | 2021-08-29T11:38:29.221991 | 2017-12-13T11:00:16 | 2017-12-13T21:05:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,964 | py | # Electrum - lightweight Bitcoin client
# Copyright (C) 2011 Thomas Voegtlin
#
# 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 t... | [
"kyuupichan@gmail.com"
] | kyuupichan@gmail.com |
99851ffa805c3ed010783c1fa4bcefd5dc0b55af | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/f05c02c4b8d4e423e57d453c4bd699dc5ff7eaa7-<test_quote_value>-fix.py | b76461e1c58bbd3cbb3da8d06195ffab39dbfdfe | [] | 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 | 433 | py | def test_quote_value(self):
import MySQLdb
editor = connection.schema_editor()
tested_values = [('string', "'string'"), (42, '42'), (1.754, ('1.754e0' if (MySQLdb.version_info >= (1, 3, 14)) else '1.754')), (False, (b'0' if (MySQLdb.version_info >= (1, 4, 0)) else '0'))]
for (value, expected) in tested_... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
b6a5ed0416da616a2c7f584e7ad77d7f96bb9d7a | 65e73c6c4a9e66715be2cbdd93339ebcab93976e | /windmill/fundo/migrations/0032_vertice_corretora.py | a3eb1329352877a6515e34208cf08afdae56e014 | [] | no_license | AnimaTakeshi/windmill-django | 3577f304d5e7f74750c7d95369e87d37209f1ac6 | 78bde49ace1ed215f6238fe94c142eac16e164dc | refs/heads/master | 2022-12-13T11:13:21.859012 | 2019-02-07T20:50:01 | 2019-02-07T20:50:01 | 150,470,109 | 0 | 0 | null | 2022-12-08T01:29:36 | 2018-09-26T18:13:54 | Python | UTF-8 | Python | false | false | 493 | py | # Generated by Django 2.0 on 2018-11-29 19:24
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('fundo', '0031_auto_20181129_1104'),
]
operations = [
migrations.AddField(
model_name='vertice',
... | [
"33721822+AnimaTakeshi@users.noreply.github.com"
] | 33721822+AnimaTakeshi@users.noreply.github.com |
f67cdbfe0e4394de9e3098f44b044ab56b238f57 | a9fbbfc990ad79f412d8078d27b8937e5ef00bde | /inheritance/exercise/problem_03/knight.py | 334ddf65c77ff19a4a263ea75168b1dd9a6af0cf | [
"MIT"
] | permissive | BoyanPeychinov/object_oriented_programming | e2d23ec0ff681ca2c6cf1805e581af3d601aafee | a960721c7c17710bd7b151a9025647e953435962 | refs/heads/main | 2023-03-31T16:19:20.239216 | 2021-03-30T19:43:42 | 2021-03-30T19:43:42 | 342,281,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | from problem_03.hero import Hero
class Knight(Hero):
pass
| [
"BoyanPeychinov@gmail.com"
] | BoyanPeychinov@gmail.com |
a164d0312f3a5559e47223aa73fad366d912287a | ce6739d9e76f16d1cbdfbb3292cdabac62d23ee1 | /mod_2/lesson_8/homework_2/main.py | 388347f374c64f6a6f86d8e8dd8ed5640d330d2c | [] | no_license | adrbed/python_poczatek | 1a863c0dc40c2315ced8985cf0b31d1b84e3f940 | 134626ccbe2255b0a28183e7d5d212db12c7deb4 | refs/heads/master | 2023-02-10T15:06:51.888544 | 2021-01-09T18:23:56 | 2021-01-09T18:23:56 | 328,218,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,654 | py |
# Dodaj do programu obsługę polityki rabatowej.
# Zaimplementuj funkcje reprezentujące politykę podatkową i przekaż je do konstruktora zamówienia.
# Jeżeli polityka została przekazana to podczas liczenia łącznej kwoty zamówienia należy naliczyć rabat.
# Jeżeli nie - obliczamy łączną kwotę jak dotychczas.
# Zaimplement... | [
"adrianbednarczyk1@gmail.com"
] | adrianbednarczyk1@gmail.com |
e9e9799b02db2f0a528239390a1408c0943ce0df | c3e776b885ac9552ad4b96b63594ab759f12cc3a | /test/test_shape.py | c641e71e3eca4afe9db6faef214267b55670c856 | [] | no_license | wing328/petstore-python | e9ff3c2a5ff0fdddb1e6b0f12fc7e1d48f65590a | fa65c111bb2a040ebb0ed0db3ff9c52c8821922e | refs/heads/master | 2021-10-20T22:22:33.677235 | 2021-10-17T10:33:24 | 2021-10-17T10:33:24 | 54,948,706 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | """
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""
import sys
impor... | [
"wing328hk@gmail.com"
] | wing328hk@gmail.com |
6964898e391447b3d1130c2528211f4e8de6b23d | cdbf40c2de7b22a10e07a1f612cb49059a3fc858 | /main/cache.py | 970f75c7d612d8b1dcad2a10c9422a214c3a4833 | [
"MIT"
] | permissive | riccitensor/gae-init | 2e86a77e5a99a8a0ad4889a275974409945a1940 | d9061cf32a26ebc03873431838ead0b1150374b9 | refs/heads/master | 2020-12-31T03:35:49.650513 | 2014-09-15T23:45:57 | 2014-09-15T23:45:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | # coding: utf-8
from google.appengine.api import memcache
###############################################################################
# Helpers
###############################################################################
def bump_counter(key, time=3600, limit=4):
client = memcache.Client()
for _ in range(... | [
"lipiridis@gmail.com"
] | lipiridis@gmail.com |
32b125c421cc16caea121a8692ce403e096ba7ff | 3f4b535e537666b669b4cfbfca05c7529d2fb631 | /Algorithms/generate_palindromes_recursion.py | 4b79f741f374bae1608a3aa0949e2745f2171c29 | [] | no_license | iliachigogidze/Python | ded0a78a1751a536fcdf1fd864fc296ef52f6164 | 6db759b3ee4f4b866421b2cb3a775b7aec32b0c9 | refs/heads/master | 2020-04-09T08:15:07.107069 | 2019-03-11T10:35:23 | 2019-03-11T10:35:23 | 160,187,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | '''
18. Given a list of distinct letters and a positive number N, generate all possible palindromes
having the length not greater than N. Single word can be used multiple times per palindrome. Example: ['a', 'b'], N=3 a aa aaa b bb bbb aba bab
'''
def main(ls, n):
print('List: ', ls)
word = 'a' * n
retu... | [
"iliachigogidze@gmail.com"
] | iliachigogidze@gmail.com |
9baf2660cc9fa21d1bb8c3a35013e783982f39b3 | de78652f2d804755b19a8bd9402e4a649d5ff1c1 | /delira/models/segmentation/__init__.py | 1b951f9e63b3e5cdd9e6ad222050d82d02d7299e | [
"BSD-2-Clause"
] | permissive | NKPmedia/delira | a3e63adbfb82e7d4c80571e66f33c5afea43ab9b | a10227e30c14c6507a1790813e53572e0d841c21 | refs/heads/master | 2020-06-05T06:41:57.120344 | 2019-06-17T13:16:32 | 2019-06-17T13:16:32 | 192,347,832 | 0 | 0 | BSD-2-Clause | 2019-06-17T13:16:33 | 2019-06-17T13:00:27 | Python | UTF-8 | Python | false | false | 114 | py | from delira import get_backends
if "TORCH" in get_backends():
from .unet import UNet2dPyTorch, UNet3dPyTorch
| [
"justus.schock@rwth-aachen.de"
] | justus.schock@rwth-aachen.de |
85c201f5f5de17ab3e1365558c6188fbb929728d | 1825283527f5a479204708feeaf55f4ab6d1290b | /leetcode/python/841/841.keys-and-rooms.py | 0656b2ebe9f552d97e1b6e8129c65305972f48bf | [] | no_license | frankieliu/problems | b82c61d3328ffcc1da2cbc95712563355f5d44b5 | 911c6622448a4be041834bcab25051dd0f9209b2 | refs/heads/master | 2023-01-06T14:41:58.044871 | 2019-11-24T03:47:22 | 2019-11-24T03:47:22 | 115,065,956 | 1 | 0 | null | 2023-01-04T07:25:52 | 2017-12-22T02:06:57 | HTML | UTF-8 | Python | false | false | 1,525 | py | #
# @lc app=leetcode id=841 lang=python3
#
# [841] Keys and Rooms
#
# https://leetcode.com/problems/keys-and-rooms/description/
#
# algorithms
# Medium (58.74%)
# Total Accepted: 24.4K
# Total Submissions: 41.6K
# Testcase Example: '[[1],[2],[3],[]]'
#
# There are N rooms and you start in room 0. Each room has a d... | [
"frankie.y.liu@gmail.com"
] | frankie.y.liu@gmail.com |
0ba08eb41cfb2e76bd9b6aa1e05cd05ecd2ebf2b | 9047aec2400933376e71fdc24d087d2ad35b4d45 | /flipAndInvertImage_832.py | 0145883c6e9c652019e80f3433fce0bc3df0edd1 | [] | no_license | sasankyadavalli/leetcode | a8c3a4b63970cfa67a8bbec5d1fb7cca818f7ea9 | 555931bc5a74e0031726070be90c945da9cb3251 | refs/heads/master | 2021-02-07T12:12:06.938562 | 2020-07-28T18:25:10 | 2020-07-28T18:25:10 | 244,024,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | class Solution:
def flipAndInvertImage(self, A: List[List[int]]) -> List[List[int]]:
for i in range(len(A)):
A[i] = A[i][::-1]
for j in range(len(A[i])):
A[i][j] ^= 1
return A | [
"yadavallisasank@gmail.com"
] | yadavallisasank@gmail.com |
43c1a91b4e3f8f288ce744bcc1e36236880f0919 | 9268c07cd58f68fd20daf5e38880ef452eeca331 | /10219-.py | 7e62d546d53bceb63e73315a6a81a245e42f14d1 | [] | no_license | rkdr055/BOJ | bbdbdcf8a9df399c3655eea3d9f337275b1ae504 | d90465cfa80d124aba8f9572b9bd5e4bb2a62031 | refs/heads/master | 2021-04-09T14:26:04.811468 | 2018-03-18T10:05:20 | 2018-03-18T10:05:20 | 125,712,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | case=int(input())
list=[]
list2=[]
for z in range(case):
h,w=map(int,input().split())
for i in range(h):
list.append(input())
list2.append(list[i][::-1])
for i in range(len(list2)):
print(list2[i])
| [
"rkdr955@naver.com"
] | rkdr955@naver.com |
b109faeccfded125ae603f0cd2ccb693475c2cdf | 31f9333012fd7dad7b8b12c1568f59f33420b0a5 | /Alessandria/env/lib/python3.8/site-packages/django/template/utils.py | 41921a09a2c9c6ce444863547c4c915b4f03271c | [] | no_license | jcmloiacono/Django | 0c69131fae569ef8cb72b135ab81c8e957d2a640 | 20b9a4a1b655ae4b8ff2a66d50314ed9732b5110 | refs/heads/master | 2022-11-15T22:18:57.610642 | 2020-07-14T14:43:16 | 2020-07-14T14:43:16 | 255,125,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,566 | py | import functools
from collections import Counter
from pathlib import Path
from django.apps import apps
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.utils.functional import cached_property
from django.utils.module_loading import import_string
class InvalidTempla... | [
"jcmloiacono@gmail.com"
] | jcmloiacono@gmail.com |
64b3160aa692224fc730910648c06f459dd7b7b6 | 28bf7793cde66074ac6cbe2c76df92bd4803dab9 | /answers/VanshBaijal/Day3/Question1.py | 2c1ff6a179fd4d3ee0ee7cf7dbb9dfe3fd33f32c | [
"MIT"
] | permissive | Codechef-SRM-NCR-Chapter/30-DaysOfCode-March-2021 | 2dee33e057ba22092795a6ecc6686a9d31607c9d | 66c7d85025481074c93cfda7853b145c88a30da4 | refs/heads/main | 2023-05-29T10:33:31.795738 | 2021-06-10T14:57:30 | 2021-06-10T14:57:30 | 348,153,476 | 22 | 135 | MIT | 2021-06-10T14:57:31 | 2021-03-15T23:37:26 | Java | UTF-8 | Python | false | false | 108 | py | n=int(input("Enter the number of terms:"))
s=0
x=0
for i in range(1,n+1):
x=(x*10+i)
s=s+x
print(s)
| [
"noreply@github.com"
] | Codechef-SRM-NCR-Chapter.noreply@github.com |
b408eb1c942cd29c1efe13d3c57a2c4785cf6995 | 95cdf7753fc4022be239666a902df217a93f7125 | /dangdang/test_case/test_login_2.py | 5af74b59fe9373ec7b2a931f7cda17f213c6b17c | [] | no_license | he9mei/python_appium | ffe1b872d3732b9e8510da0dd24f7a791c534be0 | 9fc5dcb67769d2d103756b9fca82d2cfeae40e72 | refs/heads/master | 2022-06-01T03:24:36.821931 | 2022-05-22T07:55:58 | 2022-05-22T07:55:58 | 223,714,095 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,002 | py |
import os
import pytest
from selenium.common.exceptions import NoSuchElementException
from selenium.webdriver.common.by import By
from dangdang.base.base_try_2py import BasePre #导入包时应该from到py文件
class TestLogin(BasePre):
def test_01(self):
#进入登录页面
driver=self.driver
# driver.find_eleme... | [
"396167189@qq.com"
] | 396167189@qq.com |
1d93f4bb189ee252ecebd41ce794245b3625565b | d904745c7c8a84e70a7e21f89415791d7bbe093d | /thermo/stream.py | 206a51cc185fd62fc326b95e61ec76e41c0fdfd2 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | leeathorskey/thermo | 1ebf73f8d80d1fdc3e49876d4f9d0767e24c3b22 | 095c03381f6e0d244499c55e274a1aade169045e | refs/heads/master | 2023-02-12T03:52:42.839693 | 2021-01-15T02:19:24 | 2021-01-15T02:19:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80,577 | py | # -*- coding: utf-8 -*-
'''Chemical Engineering Design Library (ChEDL). Utilities for process modeling.
Copyright (C) 2017, 2018, 2019 Caleb Bell <Caleb.Andrew.Bell@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software... | [
"Caleb.Andrew.Bell@gmail.com"
] | Caleb.Andrew.Bell@gmail.com |
0e2e8ebd7cc2d7103bce5e551dfe8fdb46f11f37 | 039f2c747a9524daa1e45501ada5fb19bd5dd28f | /ARC070/ARC070e.py | 180283ee92bad6826c10a5ff60317df1e96f5613 | [
"Unlicense"
] | permissive | yuto-moriizumi/AtCoder | 86dbb4f98fea627c68b5391bf0cc25bcce556b88 | 21acb489f1594bbb1cdc64fbf8421d876b5b476d | refs/heads/master | 2023-03-25T08:10:31.738457 | 2021-03-23T08:48:01 | 2021-03-23T08:48:01 | 242,283,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | #ARC070e
def main():
import sys
input=sys.stdin.readline
sys.setrecursionlimit(10**6)
if __name__ == '__main__':
main() | [
"kurvan1112@gmail.com"
] | kurvan1112@gmail.com |
d3794f2b28a9458808b14c3906f02f49f7c018d0 | 622f779c8ed0bf589b947c5550c11f64f438444a | /src/108-convert-sorted-array-to-binary-search-tree.py | 2b05af9f48d9a0ecb0fa80a84c03597351f4918c | [
"MIT"
] | permissive | sahilrider/LeetCode-Solutions | 9290f69096af53e5c7212fe1e3820131a89257d0 | 9cac844c27b5dbf37a70c2981a09cd92457f7ff1 | refs/heads/master | 2023-01-03T22:35:28.377721 | 2020-10-25T16:15:49 | 2020-10-25T16:15:49 | 232,368,847 | 2 | 0 | MIT | 2020-10-25T16:15:50 | 2020-01-07T16:37:43 | Python | UTF-8 | Python | false | false | 806 | py | '''https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/'''
# 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 sortedArrayToBST(self, nums: List... | [
"sahilriders@gmail.com"
] | sahilriders@gmail.com |
e7d71e403f48b53d8264ec423ce14f51ac3ee2fa | 72f6abca19153ebc58921b148f51c09967e131d7 | /examples/correlated_gaussians/run_test.py | 83e0aa23cd49c234198a0e984df5977af54c1706 | [] | no_license | mboudiaf/Mutual-Information-Variational-Bounds | 3e2693a5b2a06d65988ded931e0a5116456697e6 | 56e8e3f2369ed107cd363d854d9f155fbf242930 | refs/heads/master | 2023-04-08T00:03:46.946564 | 2019-10-31T18:48:17 | 2019-10-31T18:48:17 | 216,642,876 | 38 | 5 | null | 2023-03-24T23:13:25 | 2019-10-21T18:55:11 | Python | UTF-8 | Python | false | false | 851 | py | #!/usr/bin/env python
"""run_tests.py: Script to execute in order to make sure basic features work properly."""
import os
import itertools
regularizers = ["nce", "mine", "nwj"]
critic_types = ["joint", "separate"]
comb_test_params = itertools.product(regularizers, critic_types)
name_test_params = ['regularizer', 'c... | [
"malik.boudiaf@hotmail.fr"
] | malik.boudiaf@hotmail.fr |
34752630bb94a41e0623b3e17a229516d7faaf70 | fc772efe3eccb65e4e4a8da7f2b2897586b6a0e8 | /Controller/glance/tests/functional/v1/test_multiprocessing.py | bfbb88b6aaa9ce22c2afe7d5cd7e4980f891b31c | [] | no_license | iphonestack/Openstack_Kilo | 9ae12505cf201839631a68c9ab4c041f737c1c19 | b0ac29ddcf24ea258ee893daf22879cff4d03c1f | refs/heads/master | 2021-06-10T23:16:48.372132 | 2016-04-18T07:25:40 | 2016-04-18T07:25:40 | 56,471,076 | 0 | 2 | null | 2020-07-24T02:17:46 | 2016-04-18T02:32:43 | Python | UTF-8 | Python | false | false | 2,497 | py | # Copyright 2012 OpenStack Foundation
# 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 requ... | [
"wwang@linx-info.com"
] | wwang@linx-info.com |
37dd20ca33af6650ee883d4ca2fd0f9b900b00f9 | d7141ff15e6d9e4760705719c0718cb4926d71ad | /libfuturize/test_scripts/py2/print_range.py | ff0b2c61650512f363dea73a04495f6dcb58958e | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | AndreaCrotti/python-future | 4a1f1f29741493f7abab841a184450b36ffde424 | 16635ad986ab10a337267f637a8b040a70bc5258 | refs/heads/master | 2021-01-15T09:36:47.268437 | 2014-01-10T00:02:14 | 2014-01-10T00:13:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | from __future__ import print_function
from future.builtins import *
print(list(range(10)))
| [
"ed@pythoncharmers.com"
] | ed@pythoncharmers.com |
b4d2f22c243abcdb7cfdc00ff5f2301660c09102 | bc9bdfc1fa556339bddb3b2eda4c3eac3575ed93 | /tensorpack/input_source/input_source.py | 553f16b077b5466e1078e0bdc9418754faec68b4 | [
"Apache-2.0"
] | permissive | TPLink32/tensorpack | 55c55d25e70116ec87df8ac0322d0628b52bd4a8 | b325e25727ba06be848b74466b33140dd42a0c7e | refs/heads/master | 2021-08-14T16:07:49.642032 | 2017-11-15T15:22:46 | 2017-11-15T15:28:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,536 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# File: input_source.py
# Author: Yuxin Wu <ppwwyyxxc@gmail.com>
import tensorflow as tf
try:
from tensorflow.python.ops.data_flow_ops import StagingArea
except ImportError:
pass
from itertools import chain
from six.moves import range, zip
import threading
from .... | [
"ppwwyyxxc@gmail.com"
] | ppwwyyxxc@gmail.com |
582971ce3a9a478be81b73546667dd8843b56322 | 97543ae8e1ad7bf3d17dd87171aaac04f6737b5f | /bibliopixel/util/server_cache.py | 6752a1a164b698f46bdec0887fe6f9a44ffab3a0 | [
"MIT"
] | permissive | dr-aryone/BiblioPixel | a3c630bf1cd5db2b014b86775d283c61565a193e | fd97e6c651a4bbcade64733847f4eec8f7704b7c | refs/heads/master | 2020-05-27T16:19:15.043592 | 2019-03-23T08:52:37 | 2019-03-25T11:10:39 | 188,698,414 | 2 | 1 | MIT | 2019-05-26T15:12:38 | 2019-05-26T15:12:37 | null | UTF-8 | Python | false | false | 3,322 | py | import errno
from . import log
class StaticCache:
SERVER_CLASS = None
SERVER_KWDS = {}
CACHE = None
@classmethod
def cache(cls):
if not cls.CACHE:
cls.CACHE = ServerCache(cls.SERVER_CLASS, **cls.SERVER_KWDS)
return cls.CACHE
@classmethod
def close_all(cls):
... | [
"tom@swirly.com"
] | tom@swirly.com |
131ab62769f61bb7383f1f1debef3512ce034caf | b47c136e077f5100478338280495193a8ab81801 | /Lights/adafruit-circuitpython-bundle-6.x-mpy-20210310/examples/trellism4_neopixel_toggle.py | 96f58e006b9ea62fbbd51578016af63ab64293da | [
"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,207 | py | # SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
# SPDX-License-Identifier: MIT
import adafruit_trellism4
trellis = adafruit_trellism4.TrellisM4Express()
def wheel(pos):
if pos < 0 or pos > 255:
return 0, 0, 0
if pos < 85:
return int(255 - pos * 3), int(pos * 3), 0
... | [
"ians.moyes@gmail.com"
] | ians.moyes@gmail.com |
81c3fe0c21b388da7fe81eb05e8d462f98493ed4 | d081f87beb90e0e3697045b9139bde67253faf4d | /capsule_em/cap_datasets/dataset_utils.py | e51817113705f395f1898dfceabc979141a42d4c | [] | no_license | hannarud/deep_learning | db9ed75c9fedd70dc3cb3935bba3947c818095ee | b5d1c91e8dcb6252e24f3ab35797ca4130381ec0 | refs/heads/master | 2020-03-28T03:21:20.849132 | 2019-05-08T08:43:23 | 2019-05-08T08:43:23 | 147,638,984 | 0 | 0 | null | 2018-09-06T08:02:52 | 2018-09-06T08:02:52 | null | UTF-8 | Python | false | false | 4,679 | py | # Copyright 2016 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... | [
"jonathan@jonathanhui.com"
] | jonathan@jonathanhui.com |
9a24299854d18bdf5acbd798a36d3a8c59c91c20 | 8ef8e6818c977c26d937d09b46be0d748022ea09 | /cv/super_resolution/ttvsr/pytorch/mmedit/datasets/pipelines/__init__.py | c13aa348d3e6cc61b5ca58e39f9d48692875f339 | [
"MIT",
"Apache-2.0"
] | permissive | Deep-Spark/DeepSparkHub | eb5996607e63ccd2c706789f64b3cc0070e7f8ef | 9d643e88946fc4a24f2d4d073c08b05ea693f4c5 | refs/heads/master | 2023-09-01T11:26:49.648759 | 2023-08-25T01:50:18 | 2023-08-25T01:50:18 | 534,133,249 | 7 | 6 | Apache-2.0 | 2023-03-28T02:54:59 | 2022-09-08T09:07:01 | Python | UTF-8 | Python | false | false | 2,111 | py | from .augmentation import (BinarizeImage, Flip, GenerateFrameIndices,
GenerateFrameIndiceswithPadding,
GenerateSegmentIndices, MirrorSequence, Pad,
RandomAffine, RandomJitter, RandomMaskDilation,
RandomTransposeH... | [
"jia.guo@iluvatar.ai"
] | jia.guo@iluvatar.ai |
26130706f87e5a118dc66d2a02de049ab432949c | 5878d1482e9780a2d4cdcaf6ec5a624fa62b0283 | /cars/urls.py | 330b556f8d24123d0479fba1b76cd0118021ed6e | [] | no_license | solar1um/caarsssss | 2d5c3f466d681739a26d69f8caba0773b9e3bf06 | e7d826f8984fa90832c099ce1b4d5efb74578c5e | refs/heads/main | 2023-07-13T03:44:07.805703 | 2021-08-19T13:15:11 | 2021-08-19T13:15:11 | 398,232,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | from django.conf import settings
from django.conf.urls.static import static
from django.contrib.auth import login
from django.urls import path
from .views import main_page, create_ad, all_cars, car_detail, user_cars, car_update, car_delete, search
urlpatterns = [
path('search/', search, name='search'),
path('c... | [
"mitya.klimenko123@gmail.com"
] | mitya.klimenko123@gmail.com |
2ce0493d54e9a48fe0d474e508f638583259cd3c | fa4e5513fc069f0b7aeed1d86b78081c05253822 | /jophiel/spiders/scrapy/contrib/memdebug.py | d4b1570b0a210936e70355383db0849da8d99b32 | [] | no_license | dreamfrog/jophiel | b0f00c62a8061030cd4a5a075cc8faf9686d44b8 | 1c51a16eca7201c0dec9bb94acd25f5a4038a862 | refs/heads/master | 2021-01-01T05:47:43.157268 | 2013-09-23T12:15:18 | 2013-09-23T12:15:18 | 3,557,963 | 0 | 1 | null | 2023-03-20T11:56:29 | 2012-02-27T06:31:50 | Python | UTF-8 | Python | false | false | 1,568 | py | """
MemoryDebugger extension
See documentation in docs/topics/extensions.rst
"""
import gc
from scrapy.xlib.pydispatch import dispatcher
from scrapy import signals
from scrapy.exceptions import NotConfigured
from scrapy.stats import stats
from scrapy.utils.trackref import live_refs
from scrapy.middleware import Ba... | [
"liuzz1983@gmail.com"
] | liuzz1983@gmail.com |
dcb88fcac088e2f235e2bfafaf887c4e4e052c50 | d420b5780e26071caa34de8bc0cfcaf431ae4dcd | /articles/pd/gencsv.py | 4de6bf7a26c26b4e6f1566f0ad547fe8d673eb83 | [
"MIT"
] | permissive | parrt/stratx | 2a09fdacd6b7a0f9b065feada1ecdfdfa0f0b513 | 97741afcead00c83dbe7fce37a42c4a4d4890a1c | refs/heads/master | 2022-04-30T13:57:50.037114 | 2022-04-24T16:55:58 | 2022-04-24T16:55:58 | 185,261,236 | 61 | 14 | MIT | 2019-10-21T21:14:14 | 2019-05-06T19:46:39 | Jupyter Notebook | UTF-8 | Python | false | false | 630 | py | # Code to gen .csv files for use with R
from articles.pd.support import *
X, y = load_bulldozer(n=10_000)
df = pd.concat([X, y], axis=1)
df.to_csv("bulldozer10k.csv", index=False)
X, y = load_bulldozer(n=20_000)
df = pd.concat([X, y], axis=1)
df.to_csv("bulldozer20k.csv", index=False)
X, y = load_rent(n=10_000)
df ... | [
"parrt@cs.usfca.edu"
] | parrt@cs.usfca.edu |
8ebd725ae76370b7b0bf9bffa31bab21e7446f39 | a2e638cd0c124254e67963bda62c21351881ee75 | /Extensions/AMWIDealTaker/FPythonCode/FClearingBusinessProcessAdaptation.py | 15a7a2b48961c3ed020da2732bd32996beaf139c | [] | no_license | webclinic017/fa-absa-py3 | 1ffa98f2bd72d541166fdaac421d3c84147a4e01 | 5e7cc7de3495145501ca53deb9efee2233ab7e1c | refs/heads/main | 2023-04-19T10:41:21.273030 | 2021-05-10T08:50:05 | 2021-05-10T08:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,905 | py | """------------------------------------------------------------------------
MODULE
FClearingBusinessProcessAdaptation -
DESCRIPTION:
The additionalInfos that need to be set/ trade attributes that need to be set while the business process is associated to a trade can be achieved here.
Please refer to documen... | [
"81222178+nenchoabsa@users.noreply.github.com"
] | 81222178+nenchoabsa@users.noreply.github.com |
30d9b29184f7186d667901a02ae029dcb3cd192b | 08a4030ed3724f6d28141923fb94d76f9b4be9e4 | /sparcur/backends.py | 63fa277dfc250d642cea64f53a9e7569ac7c0a98 | [
"MIT"
] | permissive | ankap2/sparc-curation | 366f68dc2e76b9734e94603c830e236656752b7e | bf383d8babc15f41a291710393ce6e056f3d1eff | refs/heads/master | 2020-08-11T08:33:29.302380 | 2019-10-11T17:53:56 | 2019-10-11T17:53:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,412 | py | import os
from pathlib import PurePosixPath, PurePath
from datetime import datetime
import requests
from pyontutils.utils import Async, deferred
from sparcur import exceptions as exc
from sparcur.utils import log
from sparcur.core import BlackfynnId, DoiId
from sparcur.paths import RemotePath, LocalPath, Path, Blackfyn... | [
"tgbugs@gmail.com"
] | tgbugs@gmail.com |
5b7fde37c03368ce9cd12fd8b7638884e0891f63 | 987a68b9c196f39ba1810a2261cd4a08c35416a3 | /DynamicProgramming/343-integer-break.py | 5e3e2720b0fc1d758103f49e3a9a3171172eee0d | [] | no_license | xizhang77/LeetCode | c26e4699fbe1f2d2c4706b2e5ee82131be066ee5 | ce68f5af57f772185211f4e81952d0345a6d23cb | refs/heads/master | 2021-06-05T15:33:22.318833 | 2019-11-19T06:53:24 | 2019-11-19T06:53:24 | 135,076,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 990 | py | # -*- coding: utf-8 -*-
'''
Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those integers. Return the maximum product you can get.
Example 1:
Input: 2
Output: 1
Explanation: 2 = 1 + 1, 1 × 1 = 1.
Example 2:
Input: 10
Output: 36
Explanation: 10 = 3 + 3... | [
"xizhang1@cs.stonybrook.edu"
] | xizhang1@cs.stonybrook.edu |
092024187dc7bb38f56d29f6ee511ec6fdf2b1cc | 69da803ffcba97b079bce6f8e3a73903b0a7e5b5 | /jasmine_zinc/__init__.py | 43c7edec784605cc93d009303383088623dfbd03 | [
"MIT"
] | permissive | aoirint/jasmine_zinc | 612c3efcca199ef3e26af0a84af3fdf8744e6479 | d70fbdbc0273015e73962be4239be0a7cbdd2bd4 | refs/heads/main | 2023-07-17T16:59:15.914680 | 2021-09-03T00:55:56 | 2021-09-03T00:55:56 | 402,569,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | __VERSION__ = '20210903.14'
from .Avatar import (
Avatar,
dict2avatar,
)
from .get_avatars import (
get_avatars,
)
from .Talk import (
Talk,
TalkEffects,
TalkEmotions,
talk2dict,
)
from .talk_on_server import (
talk_on_server,
TalkOnServerResponse,
)
from .record_talk import (
... | [
"aoirint@gmail.com"
] | aoirint@gmail.com |
eff8f8643d4b57a7e031e552085f7c818008c9cb | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_QC1688.py | 76f588bacee542205822753e644a580d1e04d3e7 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,768 | py | # qubit number=5
# total number=59
import cirq
import qiskit
from qiskit import IBMQ
from qiskit.providers.ibmq import least_busy
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from ma... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
9ec9f95899aec565605da89f2d4e864571d320d9 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/223/users/3113/codes/1679_1100.py | a55b3972ba6f87e44e9892302818bd9371515644 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | # Teste seu código aos poucos.
# Não teste tudo no final, pois fica mais difícil de identificar erros.
# Ao testar sua solução, não se limite ao caso de exemplo.
X=int(input(""))
print("Entrada:",X)
if(X==2):
Y="Tartaruga"
elif(X==5):
Y="Garca"
elif(X==10):
Y="Arara"
elif(X==20):
Y="Mico-leao-dourado"
elif(X==50... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
b9464a2e0ee57271ea62fdd620998eaf44debd29 | 10d98fecb882d4c84595364f715f4e8b8309a66f | /covid_epidemiology/src/models/shared/output_utils.py | 774adb21cb78d9ee754464ef2a9691cbcce537a1 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | afcarl/google-research | 51c7b70d176c0d70a5ee31ea1d87590f3d6c6f42 | 320a49f768cea27200044c0d12f394aa6c795feb | refs/heads/master | 2021-12-02T18:36:03.760434 | 2021-09-30T20:59:01 | 2021-09-30T21:07:02 | 156,725,548 | 1 | 0 | Apache-2.0 | 2018-11-08T15:13:53 | 2018-11-08T15:13:52 | null | UTF-8 | Python | false | false | 4,592 | py | # coding=utf-8
# Copyright 2021 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 |
41c598c7131b453e6ff11fbb7c4216da4a3bad8b | 73758dde83d1a1823c103e1a4ba71e7c95168f71 | /nsd2008/py01/day05/login.py | 41b2a5b3856835bdf645d86b39c1113f9812d3e2 | [] | no_license | tonggh220/md_5_nsd_notes | 07ffdee7c23963a7a461f2a2340143b0e97bd9e1 | a58a021ad4c7fbdf7df327424dc518f4044c5116 | refs/heads/master | 2023-07-02T01:34:38.798929 | 2021-05-12T08:48:40 | 2021-05-12T08:48:40 | 393,885,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,094 | py | import getpass
userdb = {}
def register():
'用于新用户注册'
user = input("username: ").strip()
if user == "":
print("用户名不能为空")
elif user in userdb:
print("用户已存在")
else:
password = input("password: ")
userdb[user] = password
print("注册成功")
def login():
'用于登陆'
... | [
"zhangzg@tedu.cn"
] | zhangzg@tedu.cn |
597e3fae0245c167c66c0802ad2ab108945c5cad | 18d55703fe368ddeb568833cecf4138d2dab2b5c | /faqs/migrations/0002_auto_20190227_1937.py | 90b461793cb76881c19cd2530bedda3409bfd6d1 | [] | no_license | Rood17/CAWebApp | b660f5d0c01cb2c37f274b9d310922058150c2ec | de5f06c571782d68d8ca9afced8d7c70408ada99 | refs/heads/master | 2022-11-24T22:27:14.088809 | 2019-08-07T23:23:25 | 2019-08-07T23:23:25 | 188,956,728 | 0 | 0 | null | 2022-11-22T02:57:00 | 2019-05-28T04:58:37 | HTML | UTF-8 | Python | false | false | 1,078 | py | # Generated by Django 2.0.2 on 2019-02-28 01:37
import ckeditor.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('faqs', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='faqs',
fields=[
... | [
"kochehua@gmail.com"
] | kochehua@gmail.com |
4a2998c954284363974f561d17c0b99493284a37 | d7a68c636e6128533b17975655bd6b46ed222916 | /adapter-transformers-adapters3.1.0/src/transformers/models/layoutlmv3/feature_extraction_layoutlmv3.py | 6f2d54529ba9718906fe5d9b0ced7019634bd8f6 | [
"Apache-2.0"
] | permissive | cambridgeltl/autopeft | 69179f8faf2cc4d2164ff78e544dc3fe2d39c331 | d8ad6bea93aa413a54d0e09fe25bdd62b46cfcf5 | refs/heads/main | 2023-05-23T09:21:59.912941 | 2023-04-25T14:35:31 | 2023-04-25T14:35:31 | 594,316,585 | 26 | 4 | Apache-2.0 | 2023-04-25T14:35:32 | 2023-01-28T06:39:25 | Python | UTF-8 | Python | false | false | 10,636 | py | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team.
#
# 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... | [
"hz416@cam.ac.uk"
] | hz416@cam.ac.uk |
c39130c949648637391d0534dc3556ac91430aaf | 07bf4a6fc924dfc5198ab55c7185bf8f1b36865b | /django_crud/articles/migrations/0007_comment_question_question.py | 2ba202d31838f01f57b7b79874fe93157ef9aa68 | [] | no_license | tesschung/django | c73d29a5cece83f852766ff66c635c82d3337f30 | 231a6131532757a66ac3dd038a2f2f1024faf14f | refs/heads/master | 2020-07-04T14:15:57.246652 | 2020-02-12T09:23:23 | 2020-02-12T09:23:23 | 202,301,189 | 4 | 1 | null | 2019-12-05T00:37:33 | 2019-08-14T07:48:52 | Python | UTF-8 | Python | false | false | 940 | py | # Generated by Django 2.2.5 on 2019-09-25 08:23
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('articles', '0006_school_student'),
]
operations = [
migrations.CreateModel(
name='Question',
... | [
"geobera0910@naver.com"
] | geobera0910@naver.com |
839d9030156fe6510670b1c7827942fb927c1ebd | c47340ae6bcac6002961cc2c6d2fecb353c1e502 | /controlm_py/models/variables.py | c26b170ca12b2bb0246d5a53137761c803f3be1b | [
"MIT"
] | permissive | rafaeldelrey/controlm_py | 6d9f56b8b6e72750f329d85b932ace6c41002cbd | ed1eb648d1d23e587321227217cbfcc5065535ab | refs/heads/main | 2023-04-23T09:01:32.024725 | 2021-05-19T00:25:53 | 2021-05-19T00:25:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,352 | py | # coding: utf-8
"""
Control-M Services
Provides access to BMC Control-M Services # noqa: E501
OpenAPI spec version: 9.20.115
Contact: customer_support@bmc.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class Variables(... | [
"dcompane@gmail.com"
] | dcompane@gmail.com |
666971d8d10dd3a8574ea38e045f5d89f1b53419 | fee12edf8fed01439d1801ce7aad9ac38d4ec079 | /files-working2.py | 9f79888120e60234fbb25c5a9fa5d2c4b4e9826a | [] | no_license | frclasso/python_examples_three | 18fd855f60644a52507fe3cffa3a4a3445435f1a | 05c013aadd6d953283928f525aff051c6f04f5d6 | refs/heads/master | 2020-12-31T06:08:47.156170 | 2017-02-01T16:06:10 | 2017-02-01T16:06:10 | 80,636,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | #!/usr/bin/env python3
def main():
buffersize = 50000
infile = open('bigfile.txt', 'r') #segundo argumento define a ação, r = read, w = write, a = append
outfile = open('new.txt', 'w')
buffer = infile.read(buffersize)
while len(buffer):
outfile.write(buffer)
print ('.', end='')
... | [
"frcalsso@yahoo.com.br"
] | frcalsso@yahoo.com.br |
2f8164d7bafe20bd474ad14f2c94e8c354756b2c | 86fcf88a4a4fe94871bc835580059d140e6d4ce5 | /1_Prepare_Data/load_redis_q.py | 294c30bc3dcdba48de6a41da263d5b640e190fc0 | [
"MIT"
] | permissive | BL-Labs/19Cbooks | 576fc8eb40f7df5c8284fdb0ff425b7e5d74dddc | 3166c7adad151d5e5194171cd5b0397bd910b669 | refs/heads/master | 2020-07-02T05:09:05.881257 | 2013-09-17T13:18:25 | 2013-09-17T13:18:25 | 12,895,637 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | import os, time
from redis import Redis
r = Redis()
root = "md"
q = "q"
LIMIT = 3000
PAUSE = 15
cur = 0.0
st = time.time()
for div in os.listdir(root):
for ident in os.listdir(os.path.join(root, div)):
cur += 1
r.lpush(q, ident)
if not cur % 100:
print("{0} added. {1}/s".format(cur, (time.time(... | [
"bosteen@gmail.com"
] | bosteen@gmail.com |
b08db675f1efda20dd51b209dbacb5b01c41de6e | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /platform/bq/third_party/wcwidth/table_zero.py | 7e848a96a76f07fe95b7eb04be5cabc291dfe496 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"HPND-Markus-Kuhn"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 329,117 | py | #!/usr/bin/env python
"""
Exports ZERO_WIDTH table keyed by supporting unicode version level.
This code generated by wcwidth/bin/update-tables.py on 2023-01-14 03:25:41 UTC.
"""
ZERO_WIDTH = {
'4.1.0': (
# Source: DerivedGeneralCategory-4.1.0.txt
# Date: 2005-02-26, 02:35:50 GMT [MD]
#
... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
85a9e832946350559a5ea18d4d1eccba4f712d9c | 6f3b1ed2385f484c39fccb47d9f75bc1179859aa | /src/main/resources/terraxld/organizations.py | b2ce7cdb9b1aaa6d6b67a54e97e3211c717b1a10 | [
"MIT"
] | permissive | xebialabs-community/xld-terraform-enterprise-plugin | f3302aa0648d4886147248fac4611497a4b508bd | d0c478c604fcaca483e68fc9d593b82ed7399eaa | refs/heads/master | 2021-06-24T06:06:49.580042 | 2021-04-28T06:37:28 | 2021-04-28T06:37:28 | 222,692,769 | 1 | 1 | null | 2019-11-19T12:37:54 | 2019-11-19T12:37:53 | null | UTF-8 | Python | false | false | 1,960 | py | #
# Copyright 2020 XEBIALABS
#
# 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, distribute, subli... | [
"bmoussaud@xebialabs.com"
] | bmoussaud@xebialabs.com |
04c4e1dbc15292698a6064855c10f110889f5581 | 9d0195aa83cc594a8c61f334b90375961e62d4fe | /JTTest/SL7/CMSSW_10_2_15/src/dataRunA/nano4719.py | ef90ef7b456b07e11a3309b3e6b09a511ebabcab | [] | no_license | rsk146/CMS | 4e49592fc64f6438051544c5de18598db36ed985 | 5f8dab8c59ae556598b9747b52b88205fffc4dbe | refs/heads/master | 2022-12-01T03:57:12.126113 | 2020-08-04T03:29:27 | 2020-08-04T03:29:27 | 284,863,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,293 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: nanoAOD_jetToolbox_cff -s NANO --data --eventcontent NANOAOD --datatier NANOAOD --no_exec --conditions 102X_dataRun2_Sep2018Rereco_v1 --era... | [
"rsk146@scarletmail.rutgers.edu"
] | rsk146@scarletmail.rutgers.edu |
4ca435b4ad5d6b232ef752a8f27ca8a10af958c1 | 92d20de51f5bb380a2d23dbcc37d33ffb2d939dc | /famous_quote2.py | 9e1a75ce1c4410682b6e91652f707c290fe69887 | [] | no_license | pzrsa/pcc2-work | 082de24c3b934d40c05f5b5445e01c26d487e4f5 | e37f5e9c19e962e6ba172b43682375d1b5ecf9ab | refs/heads/main | 2023-08-02T00:49:50.736677 | 2021-06-08T16:44:05 | 2021-06-08T16:44:05 | 375,075,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | author = "Neil Armstrong"
quote = '"One small step for man, one giant leap for mankind."'
print(f"{author} once said, {quote}") | [
"parsamesg@gmail.com"
] | parsamesg@gmail.com |
36f370bfc178c0aa306640b63a65da98ab663980 | 3c52eda991b4a37e2b807dd1e05f07139637c758 | /examples/chat_sock_client.py | fa28e7decb30698e7e07a783163e3c8203bfc7ec | [
"Apache-2.0"
] | permissive | pgiri/pycos | ebea05b045f15f505eff5cf175798c0cf2b4a1db | 6594c311a02490ae0701fa741b508c335f305816 | refs/heads/master | 2022-12-25T21:53:15.091319 | 2022-12-18T17:27:05 | 2022-12-18T17:27:05 | 91,977,091 | 52 | 9 | NOASSERTION | 2020-02-19T01:47:09 | 2017-05-21T17:58:23 | Python | UTF-8 | Python | false | false | 1,798 | py | #!/usr/bin/env python
# run at least two instances of this program on either same node or multiple
# nodes on local network, along with 'chat_sock_server.py'; text typed in a
# client is sent to the all other clients. To use server on another computer,
# give network IP address as argument (and port as additional arg... | [
"pgiri@yahoo.com"
] | pgiri@yahoo.com |
45dffbeb7c7a300afca0e26cb23b61451df816bf | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2474/60832/271152.py | 83c2b7b872d226c351dce414d3b13e6efbb81199 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | All = int(input())
for q in range(0, All):
s=input()
stack=[]
ans=0
for c in s:
if c=='(':
stack.append(c)
elif c==')':
if len(stack)!=0:
ans+=2
stack.pop()
print(ans) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
eac0725aee74355dd77a533cc1a5991aabb1eff4 | 9c90b9b3c831c57b55e0a545bf047d298118e4bb | /test/functional/mempool_limit.py | 044db3a1f783578e02d47d7757b043de70f0ab09 | [
"MIT"
] | permissive | wolfoxonly/dk | c320958d778cb2831ae6b5f28798238c632218f6 | 090c9862a1a14c187eefcb8285e43601db5ed35b | refs/heads/master | 2021-09-14T01:38:54.560917 | 2018-05-07T09:19:49 | 2018-05-07T09:19:49 | 125,704,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,514 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2017 The Dealtoken Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test mempool limiting together/eviction with the wallet."""
from test_framework.test_framework impor... | [
"OFIChain@163.com"
] | OFIChain@163.com |
d66d586e7b16e912053b19f171aa3d4e15a341f9 | 5f86944bdf1b810a84c63adc6ed01bbb48d2c59a | /kubernetes/client/models/v1beta1_stateful_set_spec.py | 0288ff6cba3d852e235cad1c93025464292b168a | [
"Apache-2.0"
] | permissive | m4ttshaw/client-python | 384c721ba57b7ccc824d5eca25834d0288b211e2 | 4eac56a8b65d56eb23d738ceb90d3afb6dbd96c1 | refs/heads/master | 2021-01-13T06:05:51.564765 | 2017-06-21T08:31:03 | 2017-06-21T08:31:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,117 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.6.5
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
... | [
"mehdy@google.com"
] | mehdy@google.com |
2b2dce53205515424c5bb11c71552d4553094d37 | 3a298c93b67386392d3dee243671f2c101decf01 | /leetcode/learn-cards/array-101/12_move_zeros.py | b550db407a56d2417d7e7300073945f2bd13d3af | [] | no_license | Zahidsqldba07/coding-problems-2 | ffbc8408e4408fc846c828af2ec50a9d72e799bc | 020bffbd14ca9993f1e678181ee7df761f1533de | refs/heads/master | 2023-06-26T11:05:34.089697 | 2021-07-21T15:16:10 | 2021-07-21T15:16:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | class Solution:
def moveZeroes(self, nums):
"""
Do not return anything, modify nums in-place instead.
"""
z = 0
for i in range(len(nums)):
if nums[i] != 0:
nums[i], nums[z] = nums[z], nums[i]
z += 1 | [
"alvee.akand@outlook.com"
] | alvee.akand@outlook.com |
070f9494314e7d8a7ce8283fe45bb2b13ae5e7d8 | 9f9f4280a02f451776ea08365a3f119448025c25 | /plans/hsppw/lcut_hsp-s_070_pwde_mlpc_hs.py | b7b1a1ccf1a62ce508fefc6b8b40da3238c1b831 | [
"BSD-2-Clause"
] | permissive | dbis-uibk/hit-prediction-code | 6b7effb2313d2499f49b2b14dd95ae7545299291 | c95be2cdedfcd5d5c27d0186f4c801d9be475389 | refs/heads/master | 2023-02-04T16:07:24.118915 | 2022-09-22T12:49:50 | 2022-09-22T12:49:50 | 226,829,436 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,159 | py | """Plan using all features."""
import os.path
from dbispipeline.evaluators import CvEpochEvaluator
from sklearn.neural_network import MLPClassifier
from sklearn.pipeline import Pipeline
from sklearn.preprocessing import MinMaxScaler
import hit_prediction_code.common as common
from hit_prediction_code.dataloaders impo... | [
"mikevo-uibk@famv.net"
] | mikevo-uibk@famv.net |
010044719defff9a149b002bb54cdbca81295588 | 929f00c386b8686e1c802aa622875c62d295e216 | /spikeforest/forestview/recording_views/testplotlyview.py | 61f739cfd85644eeaf32c4bad8d6f58d58d8258e | [
"Apache-2.0"
] | permissive | mhhennig/spikeforest | e0d6cbb47d15131e683545c1978abc6f99c51dc5 | 5b4507ead724af3de0be5d48a3b23aaedb0be170 | refs/heads/master | 2020-05-31T11:03:58.438693 | 2019-06-04T18:06:37 | 2019-06-04T18:06:37 | 190,254,208 | 0 | 0 | Apache-2.0 | 2019-06-04T18:05:28 | 2019-06-04T18:05:28 | null | UTF-8 | Python | false | false | 2,824 | py | import vdomr as vd
import time
import multiprocessing
import sys
from .stdoutsender import StdoutSender
import mtlogging
import numpy as np
class TestPlotlyView(vd.Component):
def __init__(self, context):
vd.Component.__init__(self)
self._context = context
self._size = (100, 100)
s... | [
"jeremy.magland@gmail.com"
] | jeremy.magland@gmail.com |
9a179c09c2ccd31e9d0d55efe8784ca707ccebf0 | 2efa640e2c089a601a3c748d5ec4c80d65cb9695 | /src/ploomber/dag/dagclients.py | 45a7f88f2b788e3e2e5c68606b8dd5f15f4a8368 | [
"Apache-2.0"
] | permissive | BigRLab/ploomber | 19d35345cc8548b79f73f026674186969f1c3d4e | e2732be116507128ec900e4ef6195f529f639358 | refs/heads/master | 2023-05-08T03:37:11.384226 | 2021-05-31T20:57:37 | 2021-05-31T20:57:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,054 | py | from inspect import isclass
from collections.abc import MutableMapping
from ploomber.tasks.abc import Task
from ploomber.products.Product import Product
from ploomber.validators.string import get_suggestion, str_to_class
class DAGClients(MutableMapping):
"""
A dict-like object with validations
1. __setit... | [
"github@blancas.io"
] | github@blancas.io |
0c08520810a73883b54bd1055179f58e7e018a84 | cc873161235502933845cfdaa7b2bfd9006b70c8 | /week7/coffeehouse/menu_api/migrations/0003_special_created_by.py | 5eba7622b1e13064f614216ac101479e0582a734 | [] | no_license | taddeimania/class_notes | d8a7f72ac9abf927768072a253effd35e521fb6d | 1cb321782caf9d823eee69fa43175cf31fd6b34f | refs/heads/master | 2020-04-10T03:55:44.311163 | 2016-11-08T14:22:41 | 2016-11-08T14:22:41 | 68,213,614 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-10-27 14:02
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_depende... | [
"jtaddei@gmail.com"
] | jtaddei@gmail.com |
713c2b5154472452b4241477e6f47c0611a1fe82 | 4d5e6e0a7057123ddd7cb97027e667117e1be143 | /control/type_casting_v2.py | f0aefebd5cad5c7423fdfb73587172c2743d6a1d | [] | no_license | shubhomedia/Learn_Python | cee48990c04521fcbb7dbf5ad120c69170dcd1be | 01e0a8e3dc2de87b09c963e7cb9fc5e246831ddb | refs/heads/master | 2021-07-01T08:53:51.151326 | 2021-01-02T17:31:36 | 2021-01-02T17:31:36 | 204,191,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | x = str("s1") # x will be 's1'
y = str(2) # y will be '2'
z = str(3.0) # z will be '3.0'
print(x,y,z)
# all print type will be string type | [
"shubhomedia@gmail.com"
] | shubhomedia@gmail.com |
fba6bc3853ad3d4853ed6461e4c967589c6920e7 | 1b4abb5e310c7ae1b2928f9ea80a6b3a8c2fb8ed | /model/ml/active_learning_unique_mincertainty.py | cd034340d19b28b3fea4a25a2635ca76c9456298 | [] | no_license | zhang-198/ExampleDrivenErrorDetection | 2e2c708665f2b57b6ac7c785604a2ac6234f7ba9 | ae8bc24fc441957d9a29e5fa4cc247f1805d8b4d | refs/heads/master | 2023-05-23T14:49:29.628520 | 2020-04-09T14:02:28 | 2020-04-09T14:02:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,230 | py | import pickle
from ml.active_learning.library import *
import xgboost as xgb
from sklearn.metrics import confusion_matrix
# best version
def go_to_next_column_prob1(column_id, pred_potential):
minimum_pred = 0.0
for column_step in range(len(pred_potential)):
if pred_potential[column_step] != -1.0:
if pred_po... | [
"neutatz@googlemail.com"
] | neutatz@googlemail.com |
e5d01453be61f2b329f66383a47ae1bd9104c98e | 288a00d2ab34cba6c389b8c2444455aee55a8a95 | /tests/data23/recipe-576938.py | 252a8acccd4b737098c0a74b541a95691ad026fb | [
"BSD-2-Clause"
] | permissive | JohannesBuchner/pystrict3 | ffd77b7bbc378bd4d8f21b5c6bd69a0d64a52ddb | 18b0dd369082422f9bf0f89c72e7acb53a49849c | refs/heads/master | 2023-08-14T06:37:37.954880 | 2023-07-13T11:16:38 | 2023-07-13T11:16:38 | 268,571,175 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,153 | py | # -*- coding: iso-8859-1 -*-
# laplace.py with mpmath
# appropriate for high precision
# Talbot suggested that the Bromwich line be deformed into a contour that begins
# and ends in the left half plane, i.e., z \to \infty at both ends.
# Due to the exponential factor the integrand decays rapidly
# on such a contour... | [
"johannes.buchner.acad@gmx.com"
] | johannes.buchner.acad@gmx.com |
5f6f1d4d9488f159cbe77963ab23c55884831ffc | 181af10fcf40b824fe92d3b8f72fd15d6d1490c2 | /Contests/101-200/week 200/1536. Minimum Swaps to Arrange a Binary Grid/Minimum Swaps to Arrange a Binary Grid.py | 3945b9170c8ea867c0294760570f9df5e6239462 | [] | no_license | wangyendt/LeetCode | 402c59a0b7b7f5b3a672231ea5dad8056ade36af | 4a3ba15284c45b2d8bf38306c8c8526ae174615c | refs/heads/master | 2023-08-10T06:27:54.995152 | 2023-08-10T02:22:27 | 2023-08-10T02:22:27 | 176,651,399 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: Wayne
@contact: wangye.hope@gmail.com
@software: PyCharm
@file: Minimum Swaps to Arrange a Binary Grid
@time: 2020/08/03 04:39
"""
class Solution:
def minSwaps(self, A: list(list())) -> int:
m, n = len(A), len(A[0])
res = [0] * m
for i ... | [
"905317742@qq.com"
] | 905317742@qq.com |
aea2948697eef4b3cd89e905116f4a3832e63170 | 38ac429d63369922e12e19cdda042b08b8123027 | /test/test_json_view.py | c5b01994dc9e1d97795a7c689c0a2b5dd2bb5dcb | [] | no_license | aviv-julienjehannet/collibra_apiclient | 0dfebe5df2eb929645b87eba42fab4c06ff0a6be | 10a89e7acaf56ab8c7417698cd12616107706b6b | refs/heads/master | 2021-09-12T16:52:19.803624 | 2018-04-19T01:35:20 | 2018-04-19T01:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | # coding: utf-8
"""
\"Data Governance Center: REST API v2\"
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 2.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import ... | [
"busworld08@gmail.com"
] | busworld08@gmail.com |
3b8d5fa6b4cced71be6df8eb6d0a7e4f9cbb5ac9 | ed1dd7bc3837cf4059a529d71f43b53d7c6a65d8 | /RosieGUI.py | cb83e9b57f6ff93bdfdee5437d9ca7db7b2e8604 | [] | no_license | amininger/rosiethor | dbc290e8684e2b1a73962af0fb84ad6c65956f1e | 789396f08e10d6e46a684622cd95e7d309d9a246 | refs/heads/master | 2021-04-28T14:25:19.807467 | 2019-03-05T16:49:21 | 2019-03-05T16:49:21 | 121,964,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,356 | py | from tkinter import *
import tkinter.font
import sys
from rosiethor import *
class RosieGUI(Frame):
def create_widgets(self):
self.grid(row=0, column=0, sticky=N+S+E+W)
self.columnconfigure(0, weight=3, minsize=600)
self.columnconfigure(1, weight=1, minsize=400)
self.columnconfigu... | [
"mininger@umich.edu"
] | mininger@umich.edu |
4116173f3381c4d0ec24d7a2542a504531fa2eb0 | 60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24 | /IronPythonStubs/release/stubs.min/System/__init___parts/EntryPointNotFoundException.py | cd35b92ca551fc01347a5e98978af60cbbbfdd4f | [
"MIT"
] | permissive | shnlmn/Rhino-Grasshopper-Scripts | a9411098c5d1bbc55feb782def565d535b27b709 | 0e43c3c1d09fb12cdbd86a3c4e2ba49982e0f823 | refs/heads/master | 2020-04-10T18:59:43.518140 | 2020-04-08T02:49:07 | 2020-04-08T02:49:07 | 161,219,695 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,221 | py | class EntryPointNotFoundException(TypeLoadException,ISerializable,_Exception):
"""
The exception that is thrown when an attempt to load a class fails due to the absence of an entry method.
EntryPointNotFoundException()
EntryPointNotFoundException(message: str)
EntryPointNotFoundException(message: str,inner: ... | [
"magnetscoil@gmail.com"
] | magnetscoil@gmail.com |
44b42dfbde5aabbad49f01d0c40eae805b3bd01f | 0d61f90e3a7877e91d72fed71b0895c7070dc046 | /final_project/.history/project/account_app/forms_20210104104511.py | 4936c5cd23264028d4004e9275b0dd27cb819201 | [] | no_license | lienusrob/final_project | 44d7d90dc0b7efc0cf55501549a5af0110d09b3b | 4164769626813f044ec2af3e7842514b5699ef77 | refs/heads/master | 2023-02-10T16:36:33.439215 | 2021-01-05T09:34:01 | 2021-01-05T09:34:01 | 325,002,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 603 | py |
from django.forms import ModelForm, widgets
from django.forms import Textarea
from .models import Contact, AnonymousReview
from django import forms
# class ContactForm(forms.Form):
# subject = forms.CharField(max_length=100)
# message = forms.CharField(widget=forms.Textarea)
# sender = forms.EmailFie... | [
"lienus.rob@hotmail.de"
] | lienus.rob@hotmail.de |
386494348a69dc42f26350743415cea70795bbb9 | a03a7935a191d63bee76fd3b85a61ee27f98904a | /test/tests/databases/bov.py | d2400c2618fb6604ee069a960e95c77fb50876f3 | [] | no_license | cchriste/visit | 57091c4a512ab87efd17c64c7494aa4cf01b7e53 | c72c413f571e56b52fb7221955219f11f4ba19e3 | refs/heads/master | 2020-04-12T06:25:27.458132 | 2015-10-12T15:41:49 | 2015-10-12T15:41:49 | 10,111,791 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,436 | py | # ----------------------------------------------------------------------------
# CLASSES: nightly
#
# Test Case: bov.py
#
# Tests: mesh - 3D rectilinear, multiple domain
# plots - Pseudocolor, Subset, Label, Contour
# operators - Slice
#
# Programmer: Brad Whitlock
# Date: ... | [
"bonnell@18c085ea-50e0-402c-830e-de6fd14e8384"
] | bonnell@18c085ea-50e0-402c-830e-de6fd14e8384 |
44a9e486f57f5d09e2a7f03dcd8cab278f223b96 | 8f9f6a5348b832e9f12ef6baf6bcdd8842ff1c83 | /core/migrations/0002_profile.py | 987bf0b7af1dcd2c764ae64e1df702d401441278 | [] | no_license | jbrit/raffle | 20b48d016ac50082733c7c34f3891beb268c4eb9 | 2ee83ffe564f59bc7afd6b12740ea3a98c42986e | refs/heads/main | 2023-06-04T14:22:09.808595 | 2021-03-19T14:13:38 | 2021-03-19T14:13:38 | 343,774,020 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | # Generated by Django 3.1.7 on 2021-03-02 23:09
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"pro.ajibolaojo@gmail.com"
] | pro.ajibolaojo@gmail.com |
f3197d14dbee34f7d0ebfe6c8268d9e4f61c5fde | 00ccdc877771cb0cf493526d1e201e0f625bf5e7 | /dohq_teamcity/api/test_api.py | 1335616d3fe97e39870d49b309ae190556a049db | [
"MIT"
] | permissive | expobrain/teamcity | a52928045166bb5d34f4a0396cb840bfee8f43d5 | 9f04c0692a2c5b277a608c2f11cc1fb48e0c87e2 | refs/heads/master | 2020-04-13T13:11:07.270515 | 2018-10-18T01:40:06 | 2018-10-18T01:40:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,708 | py | # coding: utf-8
"""
TeamCity REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 10.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
from ... | [
"allburov@gmail.com"
] | allburov@gmail.com |
b15b14e0a3c393b327f48b7c2211d0d7ea88c5fa | cd2d3b6be41eb9b96ecc3a22dc730325c21f22e6 | /charalog/log/qaswsq19.cgi | e5245d1c362c4cf17fe5f3a09188c1705fb8ddce | [] | no_license | cappuu/TC | c61f235349e9a68d472fa85bbea1adbef3ea154a | def08d09219e11bee2135f6b796569b769ee21c1 | refs/heads/master | 2021-09-10T19:37:33.847161 | 2018-03-31T22:56:05 | 2018-03-31T22:56:05 | 124,523,296 | 0 | 0 | null | null | null | null | UHC | Python | false | false | 1,944 | cgi | 11월 : 남피의 기술을 <font color=red>+9</font> 개발했습니다.(15일23시38분)
10월 : 남피의 기술을 <font color=red>+7</font> 개발했습니다.(15일22시38분)
9월 : 남피의 기술을 <font color=red>+6</font> 개발했습니다.(15일21시38분)
8월 : 현재 기운이 충만한 상태입니다.(15일20시38분)
7월 : 남피의 기술을 <font color=red>+7</font> 개발했습니다.(15일19시39분)
7월 : 수확으로 <font color=red>2834</font>의 식량을 수확했습니다. [... | [
"lu2447315@gmail.com"
] | lu2447315@gmail.com |
8782c7c8bb56b0118c1f5cd84e030e48d23be1d5 | 6a0abe2f4172f680415d83f1946baaf85e5711b7 | /aliyun-python-sdk-slb/aliyunsdkslb/request/v20140515/DescribeAccessControlListsRequest.py | d63e244ab470b758431d5842a789854ee82f0557 | [
"Apache-2.0"
] | permissive | brw123/aliyun-openapi-python-sdk | 905556b268cbe4398f0f57b48422b713d9e89a51 | 8c77db6fd6503343cffa3c86fcb9d11770a64ca2 | refs/heads/master | 2020-05-01T16:26:49.291948 | 2019-03-21T09:11:55 | 2019-03-21T09:11:55 | 177,572,187 | 1 | 0 | null | 2019-03-25T11:21:59 | 2019-03-25T11:21:59 | null | UTF-8 | Python | false | false | 2,788 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"haowei.yao@alibaba-inc.com"
] | haowei.yao@alibaba-inc.com |
660fb803c45459f81ec12dded0ca2bcdc1611bde | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_016/ch31_2020_03_30_19_43_47_008102.py | d7542220ac3217770604bf2f6d5102dfb4b58bc3 | [] | 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 | 149 | py | def eh_primo(x):
r = x%2
return r
exercicio = True
while exercicio:
if r == 0:
print('True')
else:
exercicio = False
| [
"you@example.com"
] | you@example.com |
cc14b6eaaffadd74381b2c758e2324c947a2db53 | 3a6cbe6940b657ac6b608ce93d8d41ffeb6b9e65 | /rocon_python_comms/src/rocon_python_comms/subscriber_proxy.py | 307b3a19e2da6b0f0d8015cf88ad17466399e082 | [] | no_license | robotics-in-concert/rocon_tools | cdfc4ccfc04b79262fb151640966a33bd0b5f498 | 1f182537b26e8622eefaf6737d3b3d18b1741ca6 | refs/heads/devel | 2021-01-17T01:58:12.163878 | 2018-02-06T15:20:29 | 2018-02-06T15:20:29 | 15,774,638 | 7 | 22 | null | 2017-08-16T06:39:47 | 2014-01-09T18:02:42 | Python | UTF-8 | Python | false | false | 4,285 | py | #
# License: BSD
# https://raw.github.com/robotics-in-concert/rocon_tools/license/LICENSE
#
##############################################################################
# Description
##############################################################################
"""
.. module:: subscriber_proxy
:platform: Unix
... | [
"d.stonier@gmail.com"
] | d.stonier@gmail.com |
e8055cef7954132336a38efaaff3f88a5092ec0d | 66d184a2b36ab1db564305ea36be891aaf0e236b | /py/function_local.py | 32bd23b710843314480e40414153008ee5c24f6f | [] | no_license | joyDDT/python_code | bef57936a1167fa65e28b6c52ab7857b34dc74a8 | 3aae56c51660579a4eaaa087ac2459c9bf2f2e23 | refs/heads/master | 2021-10-30T10:22:21.328633 | 2019-04-26T04:45:01 | 2019-04-26T04:45:01 | 112,004,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | x = 50
def func(x):
print('x is', x)
x = 2
print('Changed local x to',x)
func(x)
print('x is still ',x)
| [
"15894500833@163.com"
] | 15894500833@163.com |
816f7c9573750b418355b515fae6a322cac506a0 | d842a95213e48e30139b9a8227fb7e757f834784 | /gcloud/google-cloud-sdk/lib/surface/spanner/databases/create.py | 85d2e132651f4d9072e81b0f73b363d8ae6a24bf | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | bopopescu/JobSniperRails | f37a15edb89f54916cc272884b36dcd83cdc868a | 39e7f871887176770de0f4fc6789e9ddc7f32b1f | refs/heads/master | 2022-11-22T18:12:37.972441 | 2019-09-20T22:43:14 | 2019-09-20T22:43:14 | 282,293,504 | 0 | 0 | MIT | 2020-07-24T18:47:35 | 2020-07-24T18:47:34 | null | UTF-8 | Python | false | false | 2,348 | py | # -*- coding: utf-8 -*- #
# Copyright 2016 Google LLC. 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... | [
"luizfper@gmail.com"
] | luizfper@gmail.com |
47d4c7cb7eb9933b0369b1e45e59ea87c9b72b5f | f1d01d9074ace289e7e43530079b0c34ccdde4c4 | /ontology/creation/data/patents/concatenate_features.py | 5d008e8f60662834f64b614c5873f3ab50efcfec | [] | no_license | techknowledgist/techknowledgist | 4889300a92aad8fa940d1246ddd75036d90a6563 | 7d422ac38a9212670d0ce6e26e1446fb46740837 | refs/heads/master | 2021-04-26T22:35:50.390037 | 2015-11-23T19:52:26 | 2015-11-23T19:52:26 | 124,117,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | """
Takes a corpus and concatenates all phr_feats files into a single file
Usage:
$ python concatenate_features.py CORPUS OUTFILE
TODO: this script, and others, should probably live in another directory
"""
import os, sys, codecs, glob, gzip
corpus = sys.argv[1]
outfile = sys.argv[2]
fh_out = codecs.open(... | [
"marc@cs.brandeis.edu"
] | marc@cs.brandeis.edu |
1b82e86c123a177a8f2ea505f676028ecdf4d35f | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_caretakers.py | 24865dfee38f564211700a1151c979c6df6fd6e9 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py |
#calss header
class _CARETAKERS():
def __init__(self,):
self.name = "CARETAKERS"
self.definitions = caretaker
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['caretaker']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
7f3dc2eb57b3190f8010e6c0bdaf16ea89358dcb | 99f9483263dfb2f6989ffc70e9d2fcfacc365bc8 | /noccwiki/urls.py | 73ff0ba967c037a22d8e773a712fc3cac28c1da0 | [] | no_license | shaktijeet-ego/noccguide | 9b53afd47bcb6388f1b1df85695a9cee64198a08 | c123ee3a3f8d058eada3cb42d64e4f8282566afe | refs/heads/master | 2023-07-01T00:44:14.686615 | 2021-08-02T06:34:26 | 2021-08-02T06:34:26 | 391,839,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 750 | py | """noccwiki URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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-base... | [
"shaktijeet.tripathi@gmail.com"
] | shaktijeet.tripathi@gmail.com |
10f3f0ca057e6383b33ac0929fc7f212d2521e61 | b9e4bf5c00ac0d6c1a6e6038e8dc18041819ff99 | /Python3/0224_Basic_Calculator.py | 8dc3ecb6218b2b585509e0dca74cd886059e4f2d | [] | no_license | kiranani/playground | 98fdb70a3ca651436cc1eede0d2ba1b1ea9aba1d | 12f62a218e827e6be2578b206dee9ce256da8d3d | refs/heads/master | 2021-06-03T12:43:29.388589 | 2020-06-12T15:43:45 | 2020-06-12T15:43:45 | 149,614,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,125 | py | from operator import add, sub
class Solution:
def calculate(self, s: str) -> int:
ops = {"+": add, "-": sub}
i, n = 0, len(s)
def helper(i):
values, opers = [0], []
while i < n:
c = s[i]
if c.isdigit():
j = i
... | [
"noreply@github.com"
] | kiranani.noreply@github.com |
4bd3fea9df0d339760410abcb7bc705831ee1022 | b40e5c6c1787dd222702b3dc817537c059e3abf7 | /interlink/migrations/0004_auto__add_field_incomingmail_owner.py | bca828735df8a4344e1f4d980a41e9d1b5389875 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | tevatia/nadine | 2e1d4908cab37c2f893f68ce59d939b5621c14a0 | e1db914ae70d3f7f3de719c8fb54b0e2198e2b56 | refs/heads/master | 2021-01-18T11:15:48.083446 | 2014-04-18T22:39:42 | 2014-04-18T22:39:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,572 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'IncomingMail.owner'
db.add_column('interlink_incomingmail', 'owner', self.gf('django.db.mo... | [
"trevor@trevor.smith.name"
] | trevor@trevor.smith.name |
b3c615e65519ecbd43687d83e8216c9f86283458 | 4bf7abfb2d02be6cce23828d0554ccb575b91c3a | /step02/bookings.py | bc2ee7c8312d9977f6c5975d40040a7a883b6119 | [] | no_license | OneScreenfulOfPython/booking-system | 5c6471ec1e4c0103bd871d1e7a45a474a30f7e91 | e4daf5d3eb6e8620acb164f35ad09cb9081612aa | refs/heads/master | 2021-06-01T23:14:25.649607 | 2014-09-24T08:01:32 | 2014-09-24T08:01:32 | 24,347,319 | 10 | 14 | null | 2020-10-01T16:53:56 | 2014-09-22T22:04:53 | Python | UTF-8 | Python | false | false | 3,003 | py | #!python3
import os, sys
import sqlite3
#
# Ensure we're using the same database filename throughout.
# It doesn't matter what this is called or where it is:
# sqlite3 will just accept anything.
#
DATABASE_FILEPATH = "bookings.db"
def create_database():
"""Connect to the database, read the CREATE statements and s... | [
"mail@timgolden.me.uk"
] | mail@timgolden.me.uk |
6689bda17969ce7d5c74c76e31523e8c509ba831 | ebd24e400986c57b4bb1b9578ebd8807a6db62e8 | /InstaGrade-FormBuilder/xlsxwriter/test/worksheet/test_extract_filter_tokens.py | f42d6ade4765867a416adf7c334a45d6f2c4965c | [] | no_license | nate-parrott/ig | 6abed952bf32119a536a524422037ede9b431926 | 6e0b6ac0fb4b59846680567150ce69a620e7f15d | refs/heads/master | 2021-01-12T10:15:15.825004 | 2016-12-13T21:23:17 | 2016-12-13T21:23:17 | 76,399,529 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,714 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2014, John McNamara, jmcnamara@cpan.org
#
import unittest
from ...compatibility import StringIO
from ...worksheet import Worksheet
class TestExtractFilterTokens(unittest.TestCase):
""... | [
"nateparro2t@gmail.com"
] | nateparro2t@gmail.com |
186d6c74a11f3723f7afa9fee9fabb8293b12090 | a7122df9b74c12a5ef23af3cd38550e03a23461d | /Elementary/Popular Words.py | b195f9aa52413e4b553b3d220df0730845fc443b | [] | no_license | CompetitiveCode/py.checkIO.org | c41f6901c576c614c4c77ad5c4162448828c3902 | e34648dcec54364a7006e4d78313e9a6ec6c498b | refs/heads/master | 2022-01-09T05:48:02.493606 | 2019-05-27T20:29:24 | 2019-05-27T20:29:24 | 168,180,493 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | #Answer to Popular Words - https://py.checkio.org/en/mission/popular-words/
import re
def popular_words(text: str, words: list) -> dict:
dictionary = {}
for i in words:
count = sum(1 for _ in re.finditer(r'\b%s\b' %re.escape(i), text, re.I))
dictionary[i] = count
return dictionary
if __na... | [
"admin@remedcu.com"
] | admin@remedcu.com |
2909dee689cf910623e0d1009c4341bc11275cfa | 20044db9ab2c773cc80caa4a5a1175ee8148269d | /test/test_win.py | dd916746e989802e3b643dfe3860a27d8b315dfd | [] | no_license | senganal/mpi4py | a4e5dbf2d7e6cf9b6eb783f1e5f1c523326d667f | 28a2e95506844a32efb6b14238ca60173fe7c5a2 | refs/heads/master | 2021-01-13T08:02:43.439643 | 2017-06-16T15:03:44 | 2017-06-16T15:03:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,255 | py | from mpi4py import MPI
import mpiunittest as unittest
try:
from sys import getrefcount
except ImportError:
class getrefcount(object):
def __init__(self, arg):
pass
def __eq__(self, other):
return True
def __add__(self, other):
return self
def _... | [
"dalcinl@gmail.com"
] | dalcinl@gmail.com |
67bed8ee2cf8654efc0ac980515699f555298c21 | bcb178eabc006d2d3dcff3d35bb3a47dc1573841 | /tools/nicythize | 01143856430ef42cc335ccecd619ec488c98f407 | [
"BSD-3-Clause"
] | permissive | poldrack/nipy | dc34e341ce07ecd6a1240b84582186073a1348a7 | cffbb76c86e648a647327e654f0d33220035c6ec | refs/heads/master | 2022-04-24T00:23:12.054157 | 2020-04-23T15:29:34 | 2020-04-23T15:29:34 | 258,041,266 | 0 | 0 | NOASSERTION | 2020-04-22T23:12:22 | 2020-04-22T23:12:21 | null | UTF-8 | Python | false | false | 5,989 | #!/usr/bin/env python
""" nicythize
Cythonize pyx files into C files as needed.
Usage: nicythize [root_dir]
Default [root_dir] is 'nipy'.
Checks pyx files to see if they have been changed relative to their
corresponding C files. If they have, then runs cython on these files to
recreate the C files.
The script thi... | [
"matthew.brett@gmail.com"
] | matthew.brett@gmail.com | |
4fb63461d25aae70e78349f22ea21fa4ac0d836a | 1b0a729f6e20c542a6370785a49c181c0675e334 | /mint/_versions/20151206231927 router/mint/host.py | 2ead8cb0368f35e377b1077b2efe0c88d58c32b6 | [] | no_license | fans656/mint-dev | 68125c4b41ab64b20d54a2b19e8bf0179dc4636b | 408f6f055670b15a3f3ee9c9ec086b1090cce372 | refs/heads/master | 2021-05-04T11:43:44.740116 | 2016-09-07T13:43:44 | 2016-09-07T13:43:44 | 45,515,119 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,711 | py | import mint
from mint.interface import Interface
from mint.routetable import RouteTable
from mint.core import EntityWithNIC
from mint.libsocket import LibSocket
from mint.pdus import (
Frame, Packet,
IP,
Discomposer,
)
class Host(EntityWithNIC):
def __init__(self, **kwargs):
super(Host, self).... | [
"fans656@yahoo.com"
] | fans656@yahoo.com |
cfa734dc45fd018c8e7f698ec5da162694aa8ce6 | dcce56815dca2b18039e392053376636505ce672 | /dumpscripts/collections_deque_rotate.py | bcc8cb420d285ce582d140a4f19d8855221efbf4 | [] | no_license | robertopauletto/PyMOTW-it_3.0 | 28ff05d8aeccd61ade7d4107a971d9d2576fb579 | c725df4a2aa2e799a969e90c64898f08b7eaad7d | refs/heads/master | 2021-01-20T18:51:30.512327 | 2020-01-09T19:30:14 | 2020-01-09T19:30:14 | 63,536,756 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | # collections_deque_rotate.py
import collections
d = collections.deque(range(10))
print('Normale :', d)
d = collections.deque(range(10))
d.rotate(2)
print('Rotazione destra:', d)
d = collections.deque(range(10))
d.rotate(-2)
print('Rotazione sinistra:', d)
| [
"roberto.pauletto@gmail.com"
] | roberto.pauletto@gmail.com |
244c6f3bb61e659a079e842e9b933fbcbc9b1d94 | 644b13f90d43e9eb2fae0d2dc580c7484b4c931b | /programmers/level1/최소공배수, 최대공약수.py | 9ae0e0c7b50f0b452035698c8c30943f5df4074d | [] | no_license | yeonnseok/ps-algorithm | c79a41f132c8016655719f74e9e224c0870a8f75 | fc9d52b42385916344bdd923a7eb3839a3233f18 | refs/heads/master | 2020-07-09T11:53:55.786001 | 2020-01-26T02:27:09 | 2020-01-26T02:27:09 | 203,962,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | def solution(n, m):
answer = []
a, b = max(n, m), min(n, m)
if a == b:
return a
while a % b != 0:
a, b = b, a % b
answer.append(b)
answer.append(n * m // b)
return answer | [
"smr603@snu.ac.kr"
] | smr603@snu.ac.kr |
f92f1dc064ee15db14477b6d7d43f81fc28eb2ce | 36ac195ecceb868e78372bc8e976066cc9ff0fae | /torch_glow/tests/nodes/bitwise_not_test.py | 638abae4da1c69f85aee374d8a864635a2f08b75 | [
"Apache-2.0"
] | permissive | jeff60907/glow | d283d65bc67e0cc9836854fa7e4e270b77023fff | 34214caa999e4428edbd08783243d29a4454133f | refs/heads/master | 2021-09-23T07:30:29.459957 | 2021-09-14T01:47:06 | 2021-09-14T01:48:00 | 216,199,454 | 0 | 0 | Apache-2.0 | 2019-10-19T12:00:31 | 2019-10-19T12:00:31 | null | UTF-8 | Python | false | false | 1,295 | py | from __future__ import absolute_import, division, print_function, unicode_literals
import unittest
import torch
from parameterized import parameterized
from tests import utils
class SimpleBitwiseNotModule(torch.nn.Module):
def __init__(self):
super(SimpleBitwiseNotModule, self).__init__()
def forwa... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
11ee931e40d0bb015d6763cf38814d5e8f796363 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/85/usersdata/216/58702/submittedfiles/funcoes1.py | e3b878f3470c294280f93e1db209d477acd78ca7 | [] | 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 | 1,314 | py | # -*- coding: utf-8 -*-
def crescente (lista):
for i in range(0,len(lista)-1,1):
if lista[i]<lista[i+1]:
return True
return False
def decrescente(lista):
for i in range(0,len(lista)-1,1):
if lista[i]>lista[i+1]:
return True
return False
def numiguai... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
9bad7ba88b49290861ae215cd0a3410b76a09167 | ee41311a11a1c6baedafd9a914d5a1f8330fe8a9 | /SANEF_LIVE/agentBulkTransaction.py | 2d2bc2ee94b1cacb4deac3295236f24beb6442f9 | [] | no_license | sethnanati/CodeRepoPython | 2dffb7263620bd905bf694f348485d894a9513db | b55e66611d19b35e9926d1b1387320cf48e177c8 | refs/heads/master | 2023-07-07T11:16:12.958401 | 2021-02-13T10:09:48 | 2021-02-13T10:09:48 | 376,531,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,118 | py | import requests
import requests
import json
import time
from signatureEncoding256 import encrypt_string
import authorizationEncoding64
from cryptoAESLatest import encrypt
from config import endpoints
from ResponseErrorLog import ErrorLog
from iLogs import iLog
def createAgent():
try:
bulkdata ... | [
"adeyemiadenuga@gmail.com"
] | adeyemiadenuga@gmail.com |
fe85918273b3ffd9dc2339a9b0f97a381f0ab2db | 22f80b809204010da7e8217374a2ca78a5613308 | /files/ResourceTools.py | 8f03f0628ceb8a13b409ba83e82ad66a8f46bbb8 | [
"BSD-3-Clause"
] | permissive | frohro/pysam | 23421f506c25e3f2a57ef2533029e64dc856612d | cac4423410d948d886b3f19c83a73ac29ab618ae | refs/heads/master | 2021-02-09T03:46:56.540560 | 2020-03-17T13:32:05 | 2020-03-17T13:32:05 | 244,236,139 | 0 | 0 | BSD-3-Clause | 2020-03-01T22:49:09 | 2020-03-01T22:49:08 | null | UTF-8 | Python | false | false | 6,820 | py | import csv
import os
from collections import defaultdict
def TMY_CSV_to_solar_data(filename):
"""
Format a TMY csv file as 'solar_resource_data' dictionary for use in PySAM.
:param: filename:
any csv resource file formatted according to NSRDB
:return: dictionary for PySAM.Pvwattsv7.Pvwattsv7.S... | [
"dguittet@nrel.gov"
] | dguittet@nrel.gov |
11904ef28fb8158f2089b88efb705ee390701ba2 | 47008724082fd7fa39b87416bcd1d7633e9d8ef7 | /04-使用Item封装数据/example/example/pipelines.py | 65d9fcd59f07f0c6977eae5bb000f890f65df5e8 | [
"Apache-2.0"
] | permissive | gy0109/matser-scrapy-liushuo | 1909d5902dcaf9a119a1cbf42dff9c9434fb58cc | 99afa51aa30248282bf6d86f8a98a28b086f54ff | refs/heads/master | 2020-05-16T09:25:13.429519 | 2019-04-25T12:34:30 | 2019-04-25T12:34:30 | 182,947,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
class ExamplePipeline(object):
def process_item(self, item, spider):
return item
# pipeline不需要继承什么基类,只需要实现特定的方法... | [
"1974326896@qq.com"
] | 1974326896@qq.com |
c303cf21bf6d1ff3eeb3773c71c758ca5533d3e5 | b4c93bad8ccc9007a7d3e7e1d1d4eb8388f6e988 | /ph_locations/migrations/0002_auto_20210319_1358.py | 6de5bb1e1c5891f630460b5a245aa21ef859f2f2 | [] | no_license | flashdreiv/fis | 39b60c010d0d989a34c01b39ea88f7fc3be0a87d | b93277785d6ad113a90a011f7c43b1e3e9209ec5 | refs/heads/main | 2023-04-02T12:46:32.249800 | 2021-03-31T00:27:29 | 2021-03-31T00:27:29 | 343,431,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | # Generated by Django 3.1.7 on 2021-03-19 05:58
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('ph_locations', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='city',
... | [
"dreivan.orprecio@gmail.com"
] | dreivan.orprecio@gmail.com |
6b172bfdaa735bf76829cc5489e174778ff42719 | 0910e259a9bd252300f19b2ff22049d640f19b1a | /keras1/keras29_LSTM_ensemble2_differ.py | d841844016d8c7af269a3cb1dde3aa105b767905 | [] | no_license | kimtaeuk-AI/Study | c7259a0ed1770f249b78f096ad853be7424a1c8e | bad5a0ea72a0117035b5e45652819a3f7206c66f | refs/heads/master | 2023-05-05T12:34:52.471831 | 2021-05-22T16:16:12 | 2021-05-22T16:16:12 | 368,745,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,932 | py | #2개의 모델을 하나는 LSTM, 하나는 DENSE로
#앙상블로 구현
# 29_1번 과 성능 비교
import numpy as np
import tensorflow as tf
x1 = np.array([[1,2,3], [2,3,4], [3,4,5], [4,5,6], [5,6,7], [6,7,8], [7,8,9], [8,9,10], [9,10,11], [10,11,12], [20,30,40], [30,40,50], [40,50,60]])
x2 = np.array([[10,20,30],[20,30,40],[30,40,50],[40,50,60],[50,60,70]... | [
"ki3123.93123@gmail.com"
] | ki3123.93123@gmail.com |
8aa93dfa835ec3cb06e3867216f4f73df6106212 | b0e66db67b34b88e7884aa9b4a7b7607bbe9651b | /data/codec/codec.py | 3ac7e325f53e8dd3ed1092e07be8bbdf47665358 | [] | no_license | cole-brown/veredi-code | 15cf47c688c909b27ad2f2f3518df72862bd17bc | 8c9fc1170ceac335985686571568eebf08b0db7a | refs/heads/master | 2023-04-22T03:21:10.506392 | 2021-05-01T19:05:10 | 2021-05-01T19:05:10 | 296,949,870 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49,719 | py | # coding: utf-8
'''
Class for Encoding/Decoding the Encodables.
'''
# -----------------------------------------------------------------------------
# Imports
# -----------------------------------------------------------------------------
from typing import (TYPE_CHECKING,
Optional, Uni... | [
"code@brown.dev"
] | code@brown.dev |
19c5bac30dc1812153c6ada47917d8a1ad43f1cf | a4cfe8b47d3da97d335b210994fe03f8aa5b2f77 | /vint/linting/config/config_project_source.py | 0869f9ee8a02f71819a20b3062f265425bec19e2 | [
"MIT"
] | permissive | blueyed/vint | e6e7bbbf43a7b337f60d05d768d424fe400d40d8 | 9ae019d6e7863a4c9634faa39b9b75111dd2ad36 | refs/heads/master | 2021-01-13T16:40:04.962921 | 2016-12-22T12:00:45 | 2016-12-22T12:00:45 | 78,246,540 | 0 | 0 | null | 2017-01-06T23:28:35 | 2017-01-06T23:28:35 | null | UTF-8 | Python | false | false | 805 | py | from pathlib import Path
from vint.asset import get_asset_path
from vint.linting.config.config_file_source import ConfigFileSource
PROJECT_CONFIG_FILENAMES = [
'.vintrc.yaml',
'.vintrc.yml',
'.vintrc',
]
VOID_CONFIG_PATH = get_asset_path('void_config.yaml')
class ConfigProjectSource(ConfigFileSource):
... | [
"yuki.kokubun@mixi.co.jp"
] | yuki.kokubun@mixi.co.jp |
c1aaf2884f69b654897f07ef3bb94e0e6ac0e31c | 5f5d8a7d1461ff85d2282bba77d137980c43cb7c | /NAS/single-path-one-shot/src/cifar100/train_fair_way.py | 7af80218d80035a0310d2676809a43aef7db8624 | [
"Apache-2.0"
] | permissive | ahai-code/SimpleCVReproduction | 268d92667ea55e42b8a8f3c9972c486bb32766a2 | 00bdce21e9048d82b836b64ac05c99713e90e056 | refs/heads/master | 2023-04-15T00:31:24.495143 | 2021-04-11T01:03:46 | 2021-04-11T01:03:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,849 | py | import argparse
import copy
import functools
import os
import pickle
import random
import shutil
import sys
import time
import numpy as np
import torch
import torch.backends.cudnn as cudnn
import torch.nn as nn
import torch.optim as optim
from torch import nn
from torch.autograd import Variable
from torch.optim import... | [
"1115957667@qq.com"
] | 1115957667@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.