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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c39d266b53a4726e2f9ccbf27b058e403f6ec001 | df20743069e3c81128438ecc8a368b1853dc8137 | /overrides/scr/Spell1089 - Curse of Impending Blades Mass.py | e0bedd89acc27b2c6e79f91edcd36f5598f7abee | [
"MIT"
] | permissive | dolio/ToEE_Mods | 3f020d82e590a63a04047912d8d76fa2212957d7 | 53aa8086b89b25d7afb3104c5d8896c8a38c89b0 | refs/heads/main | 2023-04-09T06:17:47.064224 | 2021-04-29T09:41:58 | 2021-04-29T09:41:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,402 | py | from toee import *
def OnBeginSpellCast(spell):
print "Curse of Impending Blades Mass OnBeginSpellCast"
print "spell.target_list=", spell.target_list
print "spell.caster=", spell.caster, " caster.level= ", spell.caster_level
#game.particles("sp-enchantment-conjure",spell.caster )
def OnSpellEffect(spe... | [
"herbstgeist@googlemail.com"
] | herbstgeist@googlemail.com |
e9b649f995d933213dd1ba667e0997810ba41994 | 57300751060249be6553e6e0155f39eda8e08fe0 | /2015/Day 22/box.py | 3ed90e1aea220af6711d5d9f98fcffef91f5f54c | [] | no_license | shekeru/advent-of-code | f01a2b653173a326deed6a0ffc4f5b9cdd4635b2 | 0ab4158b1c8ced9353a88f25223abe761dddc57e | refs/heads/main | 2022-12-10T03:16:10.367596 | 2022-12-02T07:09:15 | 2022-12-02T07:09:15 | 160,104,399 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,333 | py | import copy, queue, dataclasses
# Spell Class
class Effect:
def __repr__(s):
return f"{s.__class__.__name__}: {s.Turns} Turns"
def __init__(s, Cost, World, Turns = 0):
s.Boss, s.Turns = World.Boss, Turns
s.Effects = World.Effects
s.Player = World.Player
if Turns:
... | [
"sheks@desu.systems"
] | sheks@desu.systems |
3a548fdfd613987b601ea37f5d41c018a5d6017f | ef187d259d33e97c7b9ed07dfbf065cec3e41f59 | /work/atcoder/abc/abc018/A/answers/128595_akio0803.py | f301ad920080964bf1a66d445f2a6ae22c9224d8 | [] | no_license | kjnh10/pcw | 847f7295ea3174490485ffe14ce4cdea0931c032 | 8f677701bce15517fb9362cc5b596644da62dca8 | refs/heads/master | 2020-03-18T09:54:23.442772 | 2018-07-19T00:26:09 | 2018-07-19T00:26:09 | 134,586,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py |
T = [int(input()) for i in range(3)]
T = sorted(list(enumerate(T)), key=lambda x: x[1])[::-1]
T = sorted(list(enumerate(T)), key=lambda x: x[1][0])
for t in T:
print(t[0] + 1)
| [
"kojinho10@gmail.com"
] | kojinho10@gmail.com |
797acc8e3f3c01cdac84072d59c826b177596681 | 7be4f595d555614a28f708c1ba7edda321f0cf30 | /practice/algorithms/sorting/counting_sort_2/counting_sort_2.py | 522e58a38e665fbc0c6ea29552a97a5a4d58c5ce | [] | no_license | orel1108/hackerrank | de31a2d31aaf8aeb58477d1f2738744bfe492555 | 55da1f3a94e8c28ed0f0dea3103e51774f0047de | refs/heads/master | 2021-04-09T17:38:25.112356 | 2017-01-22T11:21:19 | 2017-01-22T11:21:19 | 50,198,159 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | #!/usr/bin/env python
from collections import Counter
n = int(raw_input().strip())
a = map(int, raw_input().strip().split())
counter = Counter(a)
for VAL in range(100):
if VAL in counter.keys():
while counter[VAL] > 0:
print VAL,
counter[VAL] -= 1
| [
"r.orlovskyi@gmail.com"
] | r.orlovskyi@gmail.com |
8f300c37d9eebc1c1ced3d8d1e0035bcd19b974e | 7b221a4981edad73991cf1e357274b46c4054eff | /stacks/XIAOMATECH/1.0/services/HBASE/package/scripts/setup_ranger_hbase.py | 962460a669ff3b614cd7546af73086fab901a1a3 | [
"Apache-2.0"
] | permissive | aries-demos/dataops | a4e1516ef6205ad1ac5f692822e577e22ee85c70 | 436c6e89a1fdd0593a17815d3ec79c89a26d48f1 | refs/heads/master | 2020-05-29T17:20:12.854005 | 2019-05-22T06:06:00 | 2019-05-22T06:06:00 | 189,270,801 | 2 | 3 | Apache-2.0 | 2019-05-29T17:35:25 | 2019-05-29T17:35:24 | null | UTF-8 | Python | false | false | 5,217 | py | #!/usr/bin/env python
"""
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");... | [
"xianhuawei@MacBook-Air.local"
] | xianhuawei@MacBook-Air.local |
335f685ef600c1073b4914abf6ff91b8708d62a0 | 3958a948646610cbe76bed6e3a285ecc457c1958 | /akshare/article/ff_factor.py | 93c13038436cc94448c0606f495e946e0a4ffea2 | [
"MIT"
] | permissive | moon-chaser/akshare | 1745abda950c8259a24782364e73d0b376b576d1 | f243df40c54e102f0faf88e8149b57ae28ea0a76 | refs/heads/master | 2020-09-18T17:49:13.992266 | 2019-11-26T09:18:38 | 2019-11-26T09:18:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,993 | py | # -*- coding:utf-8 -*-
# /usr/bin/env python
"""
Author: Albert King
date: 2019/11/14 20:31
contact: jindaxiang@163.com
desc: FF-data-library: http://mba.tuck.dartmouth.edu/pages/faculty/ken.french/data_library.html
"""
import requests
import pandas as pd
from akshare.article.cons import ff_home_url
def ff_crr():
... | [
"jindaxiang@163.com"
] | jindaxiang@163.com |
5a0e0b0e79986691cab2f17277cc89e724a62f89 | a2f606b4028a308a7f4682a9e5e390a9bdc6da43 | /add key.py | fa2d174377823cfa2410406b6a1ce58d388fb0f9 | [] | no_license | Anamikaswt/dictionary | c83f8afa6581debaf5b1ca56670126104b423335 | c5eb05b30830ca753dcaedfdfbab4004cd9889d2 | refs/heads/master | 2023-04-01T20:40:43.682928 | 2021-04-02T16:25:40 | 2021-04-02T16:25:40 | 354,071,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | sample_dic={0:10,1:20}
sample_dic[2]=30
print(sample_dic) | [
"you@example.com"
] | you@example.com |
b02eea7039a321a818867e86600c250c26a864d1 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_042/ch7_2020_09_09_13_59_45_863917.py | f1d538b6472e30d088f305988068e5ff54bdc24e | [] | 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 | 87 | py | #calcula_area_do_triangul
def calcula_area_do_triangulo(b,h):
y= b * h
return y | [
"you@example.com"
] | you@example.com |
5e67671c5eac3faa7543afa89657bf0b16fd6cd2 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_bugle.py | 827fd7e3c07f021180c489a04288a6051e4e65f4 | [
"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 | 349 | py |
#calss header
class _BUGLE():
def __init__(self,):
self.name = "BUGLE"
self.definitions = [u'a musical instrument like a simple trumpet, used especially in the army']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, obj1 = [], obj2 =... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
9c4e70425e5c2faf4eb71757339669d9799d3ce7 | 2f92274606b4a8f91bf11e6383197f77d92fbd5e | /tests/utils/test_template_parser.py | 9cd347b626cdb9977453afc4b87b4a51634299b7 | [
"BSD-2-Clause"
] | permissive | tws0002/anima | 1db50532ab50dcc034db7300a3cd106b30bc8e00 | 73c256d1f7716a2db7933d6d8519a51333c7e5b4 | refs/heads/master | 2020-12-24T12:05:53.385210 | 2019-07-19T07:41:43 | 2019-07-19T07:41:43 | 73,074,603 | 0 | 0 | BSD-2-Clause | 2019-08-06T04:00:17 | 2016-11-07T12:06:41 | Python | UTF-8 | Python | false | false | 2,847 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2012-2017, Anima Istanbul
#
# This module is part of anima-tools and is released under the BSD 2
# License: http://www.opensource.org/licenses/BSD-2-Clause
import pytest
@pytest.fixture('session')
def test_data():
"""reads test data
"""
# reads the test data as tex... | [
"eoyilmaz@gmail.com"
] | eoyilmaz@gmail.com |
5d27d9b5a003bd3336600af6e1e5651cf34b8bf0 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AlipayBossContractManagementCreateResponse.py | 8903d731dfb6cc885f8cffdadbc4bfbd10096c7a | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 1,041 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
from alipay.aop.api.domain.InterTradeStartContractApprovalResult import InterTradeStartContractApprovalResult
class AlipayBossContractManagementCreateResponse(AlipayResponse):
def __init__... | [
"jiandong.jd@antfin.com"
] | jiandong.jd@antfin.com |
391ce8cb0cb0d48ea2565f84872784ab46e5bf5e | 0f8254a1d49aa55130fe9bfd4e0488b92c75aa3c | /cookie_auth/cookie_auth/data/album.py | 914ed6a616abad5fb03e53cd804e99cc56167c59 | [] | no_license | Durant21/cookie_auth | 5c41dee21bc0b18ee80bf25389b5c24475ff804a | e94244e430b6c87ed08108b2ba58c769daad647d | refs/heads/master | 2020-03-29T00:45:03.354865 | 2018-09-18T21:30:04 | 2018-09-18T21:30:04 | 149,354,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,084 | py | import sqlalchemy
import sqlalchemy.orm
from sqlalchemy.ext.orderinglist import ordering_list
from cookie_auth.data.modelbase import SqlAlchemyBase
class Album(SqlAlchemyBase):
__tablename__ = 'Album'
id = sqlalchemy.Column(sqlalchemy.Integer, primary_key=True, autoincrement=True)
name = sqlalchemy.Colu... | [
"durant.crimson@icloud.com"
] | durant.crimson@icloud.com |
1ccdf89cc474766550a06c99cb71f19bf678915d | d121dbf198d835d1f040da8e8212948d469d16cb | /baekjoon/Python/2530.py | 4e6b2beef79bf32d6ea29ff41cf6bdfc28b41105 | [] | no_license | yeonjooyou/algorithm | ad66d2477aaed1656751d56db19a90ab1957df93 | 067f0ca746949328695f51f458cf5db9adfb91af | refs/heads/master | 2023-08-26T07:29:43.000966 | 2021-11-01T13:38:56 | 2021-11-01T13:38:56 | 391,618,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | # 인공지능 시계
A, B, C = map(int, input().split())
D = int(input())
C += D%60
if C >= 60 :
C -= 60
B += 1
D //= 60
B += D%60
if B >= 60 :
B -= 60
A += 1
D //= 60
A += D%24
if A >= 24 :
A -= 24
print(A, B, C)
# 틀린 코드
# print((A + (B+D//60)//60)%24, (B + (C+D)//60%60)%60, (C + D%60)%60) | [
"yeonjooyou@naver.com"
] | yeonjooyou@naver.com |
ce980daa1aba4aaf7f0bb4ee521d812d89d91503 | 08acec95bd1dc302633fadf7b47cd8ba3b749ff3 | /day-2018-05-10/myproject/venv/lib/python2.7/site-packages/zope/security/tests/test_permission.py | 82ddea20e391f459841634eaa3cdc6f517c06cb0 | [] | no_license | WeAreHus/StudyRecord | 74a312103ad2c037de23534160fa42d6a68ad174 | 047b7d9dcbee7c01ad2e8b888b160e66dfa9012d | refs/heads/master | 2022-12-16T14:47:15.984939 | 2019-04-29T15:16:15 | 2019-04-29T15:16:15 | 127,758,387 | 2 | 1 | null | 2022-11-22T02:50:30 | 2018-04-02T13:15:07 | Python | UTF-8 | Python | false | false | 7,808 | py | ##############################################################################
#
# Copyright (c) 2004 Zope Foundation 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.
# THIS SOF... | [
"1131360171@qq.com"
] | 1131360171@qq.com |
b5e2c73c9143273582301d3fa689f293b7767799 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/automation/azure-mgmt-automation/azure/mgmt/automation/aio/operations/_node_count_information_operations.py | 9c3773f1b89ba48b3ba0f6ab556eb8dcf40263f3 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 5,458 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | Azure.noreply@github.com |
607386616a143c398ff7b721265e63b4d30a4f6c | 54cabe33c24f17f1101b5e7444db44732665e078 | /api/common/api_client.py | 9d66cfbb061b50c3e7a8439b74061c831c36b8f2 | [] | no_license | DemocracyClub/aggregator-api | 6fc40381f880849df6f32a87e6bf1de18fadbe2e | eec276791133d84027195e8b4c12bb9133e34957 | refs/heads/master | 2023-08-09T22:23:49.867773 | 2023-07-31T15:57:15 | 2023-07-31T15:57:15 | 158,564,104 | 3 | 2 | null | 2023-07-31T15:57:17 | 2018-11-21T14:54:36 | HTML | UTF-8 | Python | false | false | 131 | py | from abc import ABC
class BaseAPIClient(ABC):
def __init__(self, base_url="") -> None:
self.base_url: str = base_url
| [
"sym.roe@talusdesign.co.uk"
] | sym.roe@talusdesign.co.uk |
5d804d7b72d8ebee648187865092b82c313430de | d8f0cc9f3469c20b976f8216b344c1e67f66cef5 | /tesdjango3_15789/settings.py | f856a318bac7f6e6e9c5c08af70bcf36929ae080 | [] | no_license | crowdbotics-apps/tesdjango3-15789 | d3ab71c76a28e4e7ffcc84e00252e94a340d3937 | d271a8e1176399db1f85faf8969b2722cf71b4f0 | refs/heads/master | 2023-05-28T10:47:51.272732 | 2020-04-13T06:18:11 | 2020-04-13T06:18:11 | 255,247,132 | 0 | 0 | null | 2021-06-13T05:30:38 | 2020-04-13T06:17:55 | Python | UTF-8 | Python | false | false | 5,546 | py | """
Django settings for tesdjango3_15789 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
imp... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
bad52bc81cb15fb632fb67f4271b25dc83af451f | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/02111bc6c8800d8f644b52ad842cd738a17e192a-<create_host_port_group>-bug.py | 4b1a7042cbd94d7de38cf5f7162c638b57555a91 | [] | 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 | 2,905 | py | def create_host_port_group(self, host_system, portgroup_name, vlan_id, vswitch_name, network_policy):
'\n Function to create/update portgroup on given host using portgroup specifications\n Args:\n host_system: Name of Host System\n portgroup_name: Name of Portgroup\n v... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
0920838d52e1fdc735af985efc9aa53ecc6c5c2d | b4dd760e79de0db39792b947bacfe2b27c2a89ee | /challenge106interm.py | 195d821f20a949f08778ad8a8b077a487a568c35 | [] | no_license | mooja/dailyprogrammer | c23f1a0c5d6e4269b6c03b47d8cc18f6d857a6e1 | d12fcb6744ac3b4a5e651f37ea0b3f20ca062f7d | refs/heads/master | 2021-01-16T23:47:28.955660 | 2018-04-09T18:03:50 | 2018-04-09T18:03:50 | 23,394,207 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,987 | py | #!/usr/bin/env python
# encoding: utf-8
# Daily Programmer Challenge 106 Intermediate
#
# http://www.reddit.com/r/dailyprogrammer/comments/11xjfd/10232012_challenge_106_intermediate_jugs/
#
# May.10.2015
from operator import attrgetter
from collections import namedtuple
from itertools import combinations, permutatio... | [
"max.atreides@gmail.com"
] | max.atreides@gmail.com |
9279e380fad7f0a2d4a3dd2741fd94ceeb8bcd89 | a9db74855c63d83034bf4874cda908f77a6eb90b | /demo_project/demo_project/testrunner.py | 4d1a6bd11cce31264a557ec2848637378a57ac83 | [] | no_license | mikelopez/sciweb-django-messages | eadb4d1a117e637b3ac8c32f297249985a8dcace | 55ecc9c444d1e0c718f97da70c5c846c872cda7d | refs/heads/master | 2020-04-15T05:58:58.660546 | 2013-06-22T09:48:11 | 2013-06-22T09:48:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | __author__ = 'Marcos Lopez'
# http://github.com/mikelopez
from django.test.simple import DjangoTestSuiteRunner
import settings
class BaseAppsTestNoDb(DjangoTestSuiteRunner):
def setup_databases(self, **kwargs):
""" override the db stuff from DjangoTestSuiteRunner """
pass
def teardown_databases(self, old... | [
"dev@scidentify.info"
] | dev@scidentify.info |
4e18bd8857b03ec62724b0ac7499c7556affc40d | 6c512b7d2ae4b1ad713a57f74a4816e1291ba7a1 | /python_3/solutions/soln_kaggle_titanic.py | 44f9b1d34823679fec1149596540f66f21a80b61 | [
"MIT"
] | permissive | duttashi/applied-machine-learning | 451389e8f27931f32132a148e93effa7c6352536 | ff3267b97d9dd7122400754798e06fb493daa40a | refs/heads/master | 2021-12-17T19:12:39.531717 | 2021-12-04T09:36:46 | 2021-12-04T09:36:46 | 169,368,684 | 0 | 2 | MIT | 2021-12-04T09:36:47 | 2019-02-06T07:19:08 | R | UTF-8 | Python | false | false | 496 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jul 10 18:10:07 2020
@author: Ashish
"""
import pandas as pd
from pandas import Series, DataFrame
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
#% matplotlib inline
#print(os.getcwd())
titanic_df = pd.read_csv("../../data/kaggle_t... | [
"ashish.dutt8@gmail.com"
] | ashish.dutt8@gmail.com |
4c03770d902f460fff4750192f2a760a9c9f977b | ef96d96f6b92c5beb0b6e3334c7db2ef590f3875 | /coordination/runtime.py | 0010794e255b8de9bdb02ee30207c3b7bc470c17 | [] | no_license | Evgenus/coordination | 84693f11285dc2d16f864f619fd9d704cdea1b75 | 17d0c4030ccaa672a901af7f83605a237283bd96 | refs/heads/master | 2021-01-25T08:28:08.998333 | 2011-08-04T15:17:46 | 2011-08-04T15:17:46 | 2,118,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,792 | py | #standart
from functools import partial
from weakref import proxy
from collections import deque, defaultdict
class FeatureChecker(object):
def __init__(self, name, func):
self.name = name
self.func = func
def __call__(self, subj):
try:
self.func(subj)
except Excepti... | [
"chernyshov.eugene@gmail.com"
] | chernyshov.eugene@gmail.com |
3e87f99793c05532a5476acb0d9b4699334dae17 | 49900ba50d4f6c979d6d433577828c8007973125 | /utils.py | 371a67f1d768d75ea6e4aa04eb4705a21502a4b3 | [] | no_license | weizhenzhao/cs224d_nlp_problem_set2 | 9661414965a58b97113f828a47932c5b9d8411df | 302f0e53cdd88147a5c1727d06f0be18270d8a2a | refs/heads/master | 2021-10-22T18:22:31.063591 | 2019-03-12T14:03:36 | 2019-03-12T14:03:36 | 104,356,708 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,768 | py | from collections import defaultdict
import numpy as np
class Vocab(object):
def __init__(self):
self.word_to_index = {}
self.index_to_word = {}
self.word_freq = defaultdict(int)
self.total_words = 0
self.unknown = '<unk>'
self.add_word(self.unknown, count=0)
def add_word(self, word, count... | [
"958904120@qq.com"
] | 958904120@qq.com |
c15f225950aa88e2dc2917e52c329801e9be9352 | f8065e5d6f898e02f4fbe533f5b252fe82273bb8 | /master/childmanager.py | 4758fa62b1f48da1ef1b398af3d5f2ddb28e9a83 | [] | no_license | pizi06/firefly_study | f79c8e3596043beabc2b13783d46b18515617bfe | 4e85db73e4eda473180b302c16872a498d605aab | refs/heads/master | 2021-01-15T11:20:39.691679 | 2016-08-25T03:36:43 | 2016-08-25T03:36:43 | 65,810,416 | 0 | 0 | null | 2016-08-16T10:15:39 | 2016-08-16T10:15:39 | null | UTF-8 | Python | false | false | 3,221 | py | #coding:utf8
"""
Created on 2011-10-14
@author: lan (www.9miao.com)
"""
from twisted.python import log
from zope.interface import Interface
from zope.interface import implements
from child import RemoteChild
class _ChildsManager(Interface):
"""节点管理器接口"""
def __init__(self):
"""初始化接口"... | [
"chenee543216@gmail.com"
] | chenee543216@gmail.com |
3719f7c33f75113aa29a8acc2ea8453eb1d44ff1 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/nd/aadjep.py | 66de504f26e72326a8d2553c00e0e69986e85b13 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,126 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
7b20daa0763292ec49da5292a8b5fec8a9b0692c | 99b3a6bdf81ae69ed07c402098458635f20a75a7 | /one_student_without_allennlp/mean_teacher/modules/convert_mednli.py | 0616df65a45a0f8f77a3b1a50597d1d04f5377cd | [] | no_license | mithunpaul08/mean-teacher | e6298efac8f7d67671bc6eca19f07568afa0caee | 11a0a5b813b4a2f8b9c3524af35d3e3914d457b6 | refs/heads/master | 2021-07-16T13:26:22.343467 | 2020-05-14T23:39:35 | 2020-05-14T23:39:35 | 164,931,583 | 1 | 0 | null | 2020-05-14T23:39:36 | 2019-01-09T20:18:32 | Python | UTF-8 | Python | false | false | 537 | py | import pandas as pd
import json
import os
test_file="../../data/rte/mednli/mli_test_v1.jsonl"
assert os.path.exists(test_file) is True
t=pd.read_json(test_file,lines=True)
out_path="../../data/rte/mednli/mli_test_lex.jsonl"
with open(out_path,'w') as outfile:
outfile.write("")
for i,row in t.iterrows():
with o... | [
"mithunpaul08@gmail.com"
] | mithunpaul08@gmail.com |
d2d41ab5c8dcaa1b0c5a061f0fe767f4d00b5703 | 4b7d5c8824df4462a338993efcdfa3b17199ff5b | /基础/day1/guessage_while.py | f90a4e7c568144a273ae7dc8e8d360cfb0196b82 | [] | no_license | kobe24shou/python | 9c287babfb357e7f650fab453f3e60614b7a71fc | f78f147101f182207a69f0dc8e1595b54280164a | refs/heads/master | 2021-06-02T12:40:59.424542 | 2020-06-28T06:13:51 | 2020-06-28T06:13:51 | 101,620,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | #!/usr/bin/env python
# -*-coding:utf-8-*-
# Author:ls
# aishou24@gmail.com
age = 50
flag = True
while flag:
user_input_age = int(input("Age is :"))
if user_input_age == age:
print("Yes")
flag = False
elif user_input_age > age:
print("Is bigger")
else:
print("Is smaller... | [
"aishou24@gmail.com"
] | aishou24@gmail.com |
f9ea0048388a9416f9d9c993cb1572102209b9f4 | 987ca298f54716d920f2f9fa4d2f21c7c7b122cb | /bwin/bwin/middlewares.py | f27033211b243d9c5b489263feaeb04f2383caf9 | [] | no_license | blacktyger/demonstration-bwin | 2f0da4476b2acef0b4a5e50329de50876c721c0f | c5eb7417540f912edfa824b7eacb7cc3c0ac8f33 | refs/heads/main | 2023-07-31T21:06:52.410226 | 2021-09-21T08:37:34 | 2021-09-21T08:37:34 | 407,239,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,644 | py | # Define here the models for your spider middleware
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
# useful for handling different item types with a single interface
from itemadapter import is_item, ItemAdapter
class BwinSpiderMiddleware:
#... | [
"blacktyg3r@gmail.com"
] | blacktyg3r@gmail.com |
f7bd20779af03b0715192711042512b0ffd10ceb | df7f13ec34591fe1ce2d9aeebd5fd183e012711a | /hata/ext/command_utils/choose_menu.py | 2d7bc2bbc94257d79eda6116d7234f1dcb5a82db | [
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | HuyaneMatsu/hata | 63e2f6a2d7a7539fd8f18498852d9d3fe5c41d2e | 53f24fdb38459dc5a4fd04f11bdbfee8295b76a4 | refs/heads/master | 2023-08-20T15:58:09.343044 | 2023-08-20T13:09:03 | 2023-08-20T13:09:03 | 163,677,173 | 3 | 3 | Apache-2.0 | 2019-12-18T03:46:12 | 2018-12-31T14:59:47 | Python | UTF-8 | Python | false | false | 27,570 | py | __all__ = ('ChooseMenu', )
from scarletio import CancelledError, copy_docs
from ...discord.channel import Channel
from ...discord.core import BUILTIN_EMOJIS
from ...discord.embed import Embed
from ...discord.exceptions import DiscordException, ERROR_CODES
from ...discord.interaction import InteractionEvent
from ...di... | [
"re.ism.tm@gmail.com"
] | re.ism.tm@gmail.com |
8803ee40779e822078d261d366af0cd2919d9924 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02705/s673406592.py | 9a76562ca9e02977efb677163ac5c7ab13a50f02 | [] | 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 | 45 | py | import numpy
print(int(input())*2*numpy.pi)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f05d91a779158e39e065a91876b3ee0594373239 | 6e9c9128054da7eea28a4627381df28f95416ee5 | /finance_ml/labeling/betsides.py | b3df71764d3b3a2d8c9c13dde03c34083689205f | [
"MIT"
] | permissive | BTCTON/finance_ml | c5a4ad2486608ad19c92c04c70fe513be135c236 | a585be2d04db5a749eb6b39b7336e5aeb30d6327 | refs/heads/master | 2021-12-23T07:53:13.791609 | 2021-10-15T01:47:41 | 2021-10-15T01:47:41 | 158,898,508 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,925 | py | import numbers
import pandas as pd
import numpy as np
import multiprocessing as mp
from ..multiprocessing import mp_pandas_obj
def _cusum_side(diff, h, k=0, molecule=None):
side = []
s_pos, s_neg = 0, 0
timestamps = []
th = None
for t in molecule:
if th is None:
th = h.loc[t]
... | [
"f.j.akimoto@gmail.com"
] | f.j.akimoto@gmail.com |
e4a5581eacba722b9bd59eaf6b2c79e06c407dd6 | 955f9d3fb34af54de2f046d17bbac11c1474819e | /abc111/b.py | 806ef54082f0f620dd15f1c7e64280e5d3c590c3 | [] | no_license | shimewtr/AtCoderPracticePython | 5bb4c28119fced2d111bd1810e0e290f25b6a191 | f3c22ec1f7a36a27848070c5c6ca4e1717b04ac6 | refs/heads/master | 2023-01-12T17:28:44.770138 | 2020-11-19T22:50:22 | 2020-11-19T22:50:22 | 204,830,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | import sys
from io import StringIO
import unittest
import logging
logging.basicConfig(level=logging.DEBUG)
def resolve():
n = int(input())
for i in range(n, 1000):
s = str(i)
if s[0] == s[1] == s[2]:
print(i)
break
class TestClass(unittest.TestCase):
def assertIO(... | [
"wawawatataru@gmail.com"
] | wawawatataru@gmail.com |
167b95dc17b9c8dee4e07a8205bc2fafd07bd0d8 | 707054dbae74908940b72a462553dda70b97d7d2 | /home/models.py | 6f0c7933685422f0cfa0ec268884ce9f6b0d648d | [] | no_license | nghiatd16/spoj_tournament | ea6b59d6efd0f10fd1993c2252f8afe3b3ffb685 | 21f79224059fbeb84907db7ddc9c050c8da307a8 | refs/heads/master | 2020-04-19T22:32:36.998098 | 2019-02-03T13:25:59 | 2019-02-03T13:25:59 | 168,471,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,485 | py | from django.db import models
import numpy as np
import math
import time
# Create your models here.
class Member(models.Model):
full_name = models.CharField(max_length=100)
username = models.CharField(max_length=20)
grade = models.CharField(max_length=5)
num_solved = models.IntegerField()
score = mod... | [
"nghiatd.proptit@gmail.com"
] | nghiatd.proptit@gmail.com |
b65df574541529f940fa1f6059d553464563a10b | b051745bda8b82caa648f4ef2d61f1cf61712a21 | /vise/tests/cli/test_main.py | 56dba5e3ec870d5278c2e00f72de071a9d6dbe63 | [
"Python-2.0",
"MIT"
] | permissive | zhenming-xu/vise | 904bff2902b179884d2da4e7912568bb1983b7b3 | 5f89d11beaf850d8c1dc559d3e092b1752ad0ce6 | refs/heads/master | 2023-02-27T14:35:42.614753 | 2021-01-25T05:33:46 | 2021-01-25T05:33:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,343 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2020. Distributed under the terms of the MIT License.
from argparse import Namespace
from pathlib import Path
from pymatgen import Element
from vise.analyzer.atom_grouping_type import AtomGroupingType
from vise.cli.main import parse_args
from vise.defaults import defaults
from... | [
"yuuukuma@gmail.com"
] | yuuukuma@gmail.com |
bffb107f57f0d36dc20178f29c6dc99e51e19baf | 2ea49bfaa6bc1b9301b025c5b2ca6fde7e5bb9df | /contributions/IlyaGusev/Python/Data Structures/2016-10-22.py | 75d1b2c5f1aa536abbd5ffc5220a703ae5c4ac1f | [] | no_license | 0x8801/commit | 18f25a9449f162ee92945b42b93700e12fd4fd77 | e7692808585bc7e9726f61f7f6baf43dc83e28ac | refs/heads/master | 2021-10-13T08:04:48.200662 | 2016-12-20T01:59:47 | 2016-12-20T01:59:47 | 76,935,980 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | Following PEP 8 styling guideline.
`bytes` type
Get the most of `int`s
There is more to copying
Implementing **weak** references | [
"phoenixilya@gmail.com"
] | phoenixilya@gmail.com |
a53f15b3da988af03b2566c0cf91fc45e52d5bf2 | 27b86f422246a78704e0e84983b2630533a47db6 | /src/ezdxf/acis/const.py | 7be54fa05ffa8b157ce4698f620934753fe88c3e | [
"MIT"
] | permissive | mozman/ezdxf | 7512decd600896960660f0f580cab815bf0d7a51 | ba6ab0264dcb6833173042a37b1b5ae878d75113 | refs/heads/master | 2023-09-01T11:55:13.462105 | 2023-08-15T11:50:05 | 2023-08-15T12:00:04 | 79,697,117 | 750 | 194 | MIT | 2023-09-14T09:40:41 | 2017-01-22T05:55:55 | Python | UTF-8 | Python | false | false | 5,301 | py | # Copyright (c) 2022, Manfred Moitzi
# License: MIT License
import enum
from ezdxf.version import __version__
# SAT Export Requirements for Autodesk Products
# ---------------------------------------------
# Script to create test files:
# examples/acistools/create_3dsolid_cube.py
# DXF R2000, R2004, R2007, R2010: O... | [
"me@mozman.at"
] | me@mozman.at |
ccb13e3581e5f4fcdbefec32265612838a553659 | b119f7e1f21510928e59cd5b6f16d284d6f868a3 | /djangodocker/djangodocker/urls.py | fbdfd995b634c92a1b518cdfb6644b77ba0590d2 | [] | no_license | a-bautista/Django_Tutorials | 6433d0ee2e9f2cff80ac4f84af150bfa6011de25 | 7fdffc32ac1dcf0e2a2f88d265d8d0265a267b53 | refs/heads/master | 2022-12-13T12:07:30.113489 | 2019-12-13T05:31:31 | 2019-12-13T05:31:31 | 132,667,576 | 0 | 0 | null | 2022-12-08T06:35:51 | 2018-05-08T21:32:11 | Python | UTF-8 | Python | false | false | 1,041 | py | """djangodocker URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-... | [
"alex.bautista.ramos.90@gmail.com"
] | alex.bautista.ramos.90@gmail.com |
ed240718c67426f61c98d597d6846f52ef4543b3 | 82f1c3338ee636ee08ec0009c413b40c495f5c95 | /core/settings/base.py | a8ae00dab226edfffa9ed5a7c2045abf9dd08bf7 | [] | no_license | DevHerles/rest | 6be3714ff43d398aedb9dcf1194b3659a38598aa | a723095d77a454c7259871b3ee980f6c3c40ecc6 | refs/heads/main | 2023-05-30T03:02:48.522541 | 2021-06-04T21:55:08 | 2021-06-04T21:55:08 | 362,266,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,661 | py | from pathlib import Path
from datetime import timedelta
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/
# SECURITY ... | [
"herles.incalla@gmail.com"
] | herles.incalla@gmail.com |
eddc122e28483b47ab38679b8af707a0a5342b2b | dbc216c71fa2cd447d9203bff21f85c48481847b | /python/METConfig_Truth.py | 3635a16b9804cf6f4542a7bcd8a2e563e32c649c | [] | no_license | rjwang/Reconstruction-MET-METReconstruction | be9082dc5a64744948a2cbc5f1a6ac35b3376944 | 2286131d6984cfc5e875ae32c9a4691f61de6ff1 | refs/heads/master | 2021-01-21T16:04:59.181902 | 2016-09-16T21:26:47 | 2016-09-16T21:26:47 | 68,415,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,265 | py | from METReconstruction.METRecoFlags import metFlags
from METReconstruction.METRecoConfig import BuildConfig, METConfig
from METReconstruction.METAssocConfig import METAssocConfig, AssocConfig
## Simple truth terms
cfg_truth = METConfig('Truth',
[BuildConfig('NonInt'),
Buil... | [
"r.jiewang@gmail.com"
] | r.jiewang@gmail.com |
2eac54655f5b985851187bcd96c6e111a90da1e0 | 8c87341eff7aa9b0face6281ed8644f87b531975 | /models.py | d4610f83b9a2b5b128a708d5ee58be9f8e86667b | [] | no_license | nprapps/breaking-news-facts | 455d27aa5c818ee8d292d81781b17d2cff3ef5e1 | b6aa8d2b4f31c12e8899ce099e2827304cb4500e | refs/heads/master | 2021-01-13T01:30:09.548232 | 2013-10-11T17:23:29 | 2013-10-11T17:23:29 | 10,252,811 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,337 | py | import datetime
import time
from peewee import *
from app_config import get_secrets
secrets = get_secrets()
psql_db = PostgresqlDatabase('breaking',
user=secrets['APPS_USER'],
password=secrets['APPS_PASS']
)
def delete_tables():
try:
Event.drop_table()
except:
pass
try:
... | [
"jeremyjbowers@gmail.com"
] | jeremyjbowers@gmail.com |
39e4c0efd14beeb857c28a288b11086173e2d379 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/222/users/4057/codes/1685_2471.py | 763bcec1f0339cd7ddf8b9131953dd922ec8bebd | [] | 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 | 388 | py | i = int(input("Idade: "))
m = float(input("Massa corporal: "))
print ("Entradas: ", i, "anos e IMC ", m)
if (i > 0) and (i <= 130)and (m > 0):
if (i < 45) and (m < 22):
print("Risco: Baixo")
elif (i < 45) and (m >= 22):
print("Risco: Medio")
elif (i >= 45) and (m < 22):
print("Risco: Medio")
elif (i >= 45) a... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
c2be04decc5965600ac2292cab586ac24015fd4a | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_084/ch149_2020_04_13_20_05_51_616666.py | d4effc79069f55ab7427c8bcca855bb2eef68d48 | [] | 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 | 740 | py | s=float(input('qual é o seu salario? '))
d=int(input('qual o numero de dependentes voce tem? '))
bc=0
if s >= 1045.00:
bc=s-s*0.075-d*189.59
elif 1045.01<= s <= 2089.60:
bc=s-s*0.09-d*189.59
elif 2089.61<= s <= 3134.40:
bc=s-s*0.12-d*189.59
elif 3134.41 <= s <= 6101.06:
bc=s-s*0.14-d*189.59
elif 61... | [
"you@example.com"
] | you@example.com |
77cd6e9cbe4628bb18c47cbeaef453ed29eaa4fa | 2c635d6b558a65e62a9d37c12abf9e4ecbe8938c | /Word Pattern/Word Pattern.py | ebab0efb357c3284674b254e795a3f19b8cfea06 | [] | no_license | GreatStephen/MyLeetcodeSolutions | c698e13b7088fc9236250b6ec10331b88fe99ed1 | 73a8f79f2cd5c769b195c503f0346893b102acdc | refs/heads/master | 2023-03-01T04:53:19.698040 | 2021-02-05T22:28:18 | 2021-02-05T22:28:18 | 284,350,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | class Solution:
def wordPattern(self, pattern: str, str: str) -> bool:
ss = str.split(' ')
l_s, s_l = {}, {}
if len(pattern)!=len(ss):
return False
for letter, s in zip(pattern, ss):
if letter in l_s and s in s_l:
if l_s[letter]!=s or s_l[s]!=l... | [
"litianyou97@gmail.com"
] | litianyou97@gmail.com |
4fc90913119a9447897f1ab6e324c787fdd0a931 | b0365a11976fc19e350ba3c448b2bc3720c3eb73 | /project/qt3/slider1.py | 5d3c85dd67c55740f2c2d7d19a3da8406bc8bcc2 | [] | no_license | excellencemichel/progrk | bd4e6797c21ed921ce4a3d75378ca752cece459d | e3144f78d9313ca9e2c836dcf53cf1bc4b3f10b8 | refs/heads/master | 2021-04-15T07:54:06.240231 | 2018-12-29T03:42:10 | 2018-12-29T03:42:10 | 116,013,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,482 | py | #! /usr/bin/python
#-*-coding:utf-8-*-
from PyQt5 import QtGui
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import (
QApplication,
QMainWindow, QDialog,
QWidget, QVBoxLayout,
QLineEdit, QSlider,
)
class Window(QWidget):
"""
Cette classe nous montre qu'on peut soi-même faire les
dimensions de ... | [
"bnvnmmnl@gmail.com"
] | bnvnmmnl@gmail.com |
a055221346fa2dc69b31b83e6f31f1eb51b82322 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/0/sa.py | b025e8fbdcef3249d4389b6a52e8928b15a84d66 | [] | 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 |
ebdf4950594c969568cdc67d72e3d9eaf158ea10 | 0c6b4e9c5ecc5a7595717f9699953b227486ef3e | /tests/unit/modules/network/slxos/test_slxos_linkagg.py | 12600b9228050e9f902327f04bf5342b5639978e | [] | no_license | ansible-collection-migration/ansible.misc | d9c92e8bb0c17b3e2a92976215f523c2afaa5a46 | 3c02be2a8c03b2e375a1e1f37b0c119145ea358c | refs/heads/master | 2020-12-26T23:11:36.544511 | 2020-02-03T22:18:53 | 2020-02-03T22:18:53 | 237,681,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,064 | py | #
# (c) 2018 Extreme Networks Inc.
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ans... | [
"ansible_migration@example.com"
] | ansible_migration@example.com |
19c155e9dee77e5313030207c70e8e1fbeeee78b | e9f40b2ae17b5bf7f7fba339b00cb59e2cce34fa | /python_basic/OO/class_and_instance/class_demo2.py | 1d6a488c04cb909e22e3d4d6b164df1d56394e27 | [] | no_license | linyouwei/pycharm | 0d8dbfd83fcc88077137bcbec063186ce0fb622c | 246fe3ab855f7614fd05f2d31239170077791822 | refs/heads/master | 2021-01-19T17:38:35.698089 | 2018-03-26T10:12:50 | 2018-03-26T10:12:50 | 101,077,696 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | #encoding=utf8
class Student(object):
def __init__(self,name,score):
self.name = name
self.score = score
def print_score(self):
print("%s:%s"%(self.name,self.score))
def get_grade(self):
if self.score >= 90:
return 'A'
elif self.score >= 60:
re... | [
"yjlyw020150@163.com"
] | yjlyw020150@163.com |
ba0073deff1af9e08e786690c7e8f7d3324ce4af | 0905b794ccd3f3e4af9819a3c77505ba43067556 | /reporter/uhl_reports/bioresource/data_quality/redcap.py | aa242c6af30cc7fd9a9d3c4722227c3d1417558e | [
"MIT"
] | permissive | LCBRU/reporter | 57807fd358eee46d37c529e08baa1a76164588f8 | 8cb0ae403346e375a5e99d1d4df375cf2d5f3b81 | refs/heads/master | 2021-09-27T23:22:39.806232 | 2021-09-27T11:34:10 | 2021-09-27T11:34:10 | 88,853,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,494 | py | #!/usr/bin/env python3
from reporter.connections import RedcapInstance
from reporter.application_abstract_reports.redcap.percentage_complete import (
RedcapPercentageCompleteReport,
)
from reporter.application_abstract_reports.redcap.withdrawn_or_excluded_with_data import (
RedcapWithdrawnOrExcludedWith... | [
"rabramley@gmail.com"
] | rabramley@gmail.com |
f39c672ffe5160b7086bffe27ce2ab6182a9a372 | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /_RESOURCES/my-gists/__CONTAINER/_OLD/_python/file_to_string.py | 3a9ebee124dca93b69b2b27ba4087bae66ed4ea7 | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 500 | py | #!/usr/bin/env python
import sys
filename = sys.argv[1]
# These do not remove \n
with open(filename) as f:
s = "".join(f.readlines())
with open(filename) as f:
s = "".join(f)
with open(filename) as f:
s = f.read() # Fastest according to my tests.
# These remove \n
with open(filename) as f:
s = " ... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
16b7fe171308835af2c635735c7bdd7d91120fb0 | 99052370591eadf44264dbe09022d4aa5cd9687d | /build/learning_ros/Part_5/joint_space_planner/catkin_generated/pkg.installspace.context.pc.py | be9fecd76557ed5f3b5b526f243f453739bb4c03 | [] | no_license | brucemingxinliu/ros_ws | 11b1a3e142132925d35b3adf929f1000392c5bdc | 45f7e553ea20b79e3e93af5f77a1b14b64184875 | refs/heads/master | 2021-01-24T03:36:47.043040 | 2018-02-26T00:53:37 | 2018-02-26T00:53:37 | 122,892,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/toshiki/ros_ws/install/include".split(';') if "/home/toshiki/ros_ws/install/include" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "-ljoint_... | [
"mxl592@case.edu"
] | mxl592@case.edu |
050887e1cf44aa7b4e8f04bd2184fd3b2d0d39cd | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/I_to_M_Gk3_no_pad/wiColorJ/pyr_Tcrop255_p60_j15/Sob_k29_s001/pyr_5s/L3/step10_a.py | fd4c5f48d0d58ef0a4dc147b9a5bf5e5b6cf01a9 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,899 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
7f0f66410133136707d71e99d19bc7bc6c5702bd | 35271f6bd874799df9a93dbe5bcc50272b619dc1 | /ML/Pytorch/Basics/pytorch_rnn_gru_lstm.py | 7f3646cb6e7ef201b2942163c3ed1d7e44f6a136 | [
"MIT"
] | permissive | aladdinpersson/Machine-Learning-Collection | c724186b64ae52efa6f9d4e97f37477900901d35 | 558557c7989f0b10fee6e8d8f953d7269ae43d4f | refs/heads/master | 2023-08-31T20:52:06.493437 | 2023-03-21T11:44:08 | 2023-03-21T11:44:08 | 250,184,708 | 5,653 | 2,543 | MIT | 2023-09-02T03:51:36 | 2020-03-26T07:02:40 | Python | UTF-8 | Python | false | false | 5,541 | py | """
Example code of a simple RNN, GRU, LSTM on the MNIST dataset.
Programmed by Aladdin Persson <aladdin.persson at hotmail dot com>
* 2020-05-09 Initial coding
* 2022-12-16 Updated with more detailed comments, docstrings to functions, and checked code still functions as intended.
"""
# Imports
import torch
im... | [
"aladdin.persson@hotmail.com"
] | aladdin.persson@hotmail.com |
0b19dbee65c1f62954819d4263d13f2b84de00f3 | c1c5a8dc79cacf3b419bad77881213c5db2f80c3 | /Kattis/Appalling_Architecture.py | 21abef0663c911871759173c181ea7ffba02d6ae | [] | no_license | EoinDavey/Competitive | 7ff8b6b6225814ac60c3ace659bb63190eb52420 | b2b6909b93f5c073b684477f8a4b06dac22ec678 | refs/heads/master | 2023-01-08T00:06:19.076941 | 2022-12-26T14:00:31 | 2022-12-26T14:00:31 | 67,259,478 | 17 | 1 | null | 2022-01-19T18:17:59 | 2016-09-02T22:46:26 | C++ | UTF-8 | Python | false | false | 427 | py | h, w = [int(x) for x in input().split()]
l = ""
sm = 0
total = 0
for _ in range(h):
l = input()
for i in range(w):
if l[i] == '.':
continue
sm += i
total += 1
lft = 0
for i in range(w):
if l[i] != '.':
lft = i - 0.5
break
rght = 0
for i in range(w):
if l[i] != '.':
rght = i + 0.... | [
"eoind@vey.ie"
] | eoind@vey.ie |
5631396d7dea1af0dcda2adcf10850ca7ac4ff9b | b7cb9fe22b6fc5a5670170eed0cc5d366878a5c1 | /dataloader.py | e48cf62a0ad25fcd2a4b05151d6a4bf8db6ba577 | [] | no_license | sutt/sirna-utils | 95dce2582ccc5619deaf335526894c0d3048a8bf | d22eb6244b46e6e26dc96370eae2f0166970cd91 | refs/heads/master | 2020-06-16T21:50:48.770016 | 2019-07-12T13:31:22 | 2019-07-12T13:31:22 | 195,713,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,707 | py | import os, sys, copy
import numpy as np
import pandas as pd
import warnings
warnings.filterwarnings("ignore")
import cv2
import matplotlib.pyplot as plt
from matplotlib.cm import get_cmap
if os.environ.get('USER', 'na') == 'jupyter':
#gcp
CSV_DATA_DIR = 'data/csvdata/'
IMG_DATA_DIR = 'data/'
else:
... | [
"wsutton17@gmail.com"
] | wsutton17@gmail.com |
f7e1145af886703fccb6c648225954a86303bf15 | 84f7ab8ae18acda2b15c3118ac18c4e8c0df1a73 | /tests/evaluator_test.py | 560752062aa9f9cb9a5bf3d2f5a95a63dfff39d9 | [
"Apache-2.0"
] | permissive | lejarx/gafe | 35ef45ec041d7bd76c973c841a01a478b4ba137c | 125d587e39dd2eb94fba6667fffa6d07e508542f | refs/heads/master | 2021-07-08T15:46:12.657591 | 2017-10-03T08:47:59 | 2017-10-03T08:47:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | '''
Evaluator tests.
'''
import os
import unittest
import numpy as np
from sklearn.datasets import load_iris
from gafe.evaluator import Evaluator
class EvaluatorTest(unittest.TestCase):
def test_init(self):
eva = Evaluator()
self.assertEqual(eva._metric, 'neg_log_loss')
self.assertEqual(e... | [
"pplonski86@gmail.com"
] | pplonski86@gmail.com |
9de54d8964ab1708694daac3c7a203950e994384 | c55074cae33470f6a6f994b6029425a85818496e | /ci/push/push_request_status.py | ecdf79408a0a7f0f92ca547ca33b282c1840756e | [
"BSD-3-Clause"
] | permissive | marcalbaladejo/CumulusCI | 4ebf590e71f4847f157b33f47da775070e0c7feb | f619d0d984f7bbfa3c6fcd6e33e41e64105cb4f5 | refs/heads/master | 2021-01-18T18:45:06.098227 | 2018-05-28T12:58:22 | 2018-05-28T12:58:22 | 62,956,012 | 1 | 1 | BSD-3-Clause | 2018-05-28T12:58:23 | 2016-07-09T15:32:32 | Python | UTF-8 | Python | false | false | 3,568 | py | import os
import sys
import csv
import time
from push_api import SalesforcePushApi
# Force UTF8 output
reload(sys)
sys.setdefaultencoding('UTF8')
completed_statuses = ['Succeeded','Failed','Cancelled']
if __name__ == '__main__':
try:
username = os.environ.get('SF_USERNAME')
password = os... | [
"jlantz@salesforce.com"
] | jlantz@salesforce.com |
f3f0a5e9be18f742ea1dfe2ba0c45ba7c077fe17 | 92209cc6de47e868dfaddae2e61048e40c7dfe66 | /irc3/dec.py | 8a969e4b7512fb7d818f2122dff763ef1c53f483 | [
"LicenseRef-scancode-ietf",
"CC-BY-3.0"
] | permissive | valhallasw/irc3 | 5f2305ca6c8df764da9a2ed0ba2eb1dda67dfb1f | 628d1345cb5b09d90b087ae23d5caf26b25a2e7d | refs/heads/master | 2020-12-28T23:15:30.414896 | 2014-12-23T18:01:19 | 2014-12-23T18:01:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,168 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import functools
import venusian
import re
def plugin(wrapped):
"""register a class as plugin"""
setattr(wrapped, '__irc3_plugin__', True)
setattr(wrapped, '__irc3d_plugin__', False)
return wrapped
class event(object):
"""register a... | [
"gael@gawel.org"
] | gael@gawel.org |
a858f211dff6a15e0d298437b89542752845bdc2 | a33098d9f7f7402d07c7bb0663e260cab4772fd2 | /src/users/posts/form.py | 2dc9c69af1abf8af4a88703290b5b9829adf8efe | [] | no_license | EgbieAndersonUku1/myBlog | 7906803c5c2f4300f1bcc672f397045894cc65b2 | e4344064012aefa79042ba8d39911b29fb5b7554 | refs/heads/master | 2018-09-08T09:28:25.532806 | 2018-06-04T22:45:48 | 2018-06-04T22:45:48 | 106,434,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | from flask_ckeditor import CKEditorField
from flask_wtf.file import FileField, FileAllowed
from users.base.base_ckeditor import BaseCKEditorForm
from wtforms import validators
class PostForm(BaseCKEditorForm):
post = CKEditorField('body', validators=[validators.DataRequired()])
image = FileField('Post image... | [
"jayunderwood2011@hotmail.com"
] | jayunderwood2011@hotmail.com |
ef1b5b110530027b90cb6abec967fb2dd7351f1a | 43c24c890221d6c98e4a45cd63dba4f1aa859f55 | /test/tests/class_setattr.py | 2c965ee92a1f411d2b66a16ec117e84a366a141f | [
"Python-2.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | jmgc/pyston | c8e4df03c33c6b81d20b7d51a781d9e10148238e | 9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f | refs/heads/master | 2020-12-11T07:51:58.968440 | 2020-09-11T14:38:38 | 2020-09-11T14:38:38 | 39,242,644 | 0 | 0 | NOASSERTION | 2020-09-11T14:38:39 | 2015-07-17T08:09:31 | Python | UTF-8 | Python | false | false | 365 | py | # expected: fail
class C(object):
pass
# Make sure we can't skirt the tp_slot-updating logic in type.__setattr__
# by trying to use object.__setattr__ which wouldn't do the internal bookkeeping:
def badrepr():
raise Exception()
c = C()
c.a = 1
try:
object.__setattr__(C, '__repr__', badrepr)
assert 0... | [
"kmod@dropbox.com"
] | kmod@dropbox.com |
2255b0382b5184a05622eb39f3305addd69f4232 | 40f5c1236a1b39ffb1d2289f7d71d6c9290ee4fd | /torch/distributed/_sharded_tensor/utils.py | 95dec9129d23b4c105f7473e9633d67697d0382d | [
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | kouyoumin/pytorch | b8edc5c29d8f32b2e587eb78e9a176150b21dfd7 | 3315c4b31ef582891149a7c7c05cfda8c50642f3 | refs/heads/master | 2021-12-14T18:35:48.849213 | 2021-11-29T05:25:56 | 2021-11-29T05:35:53 | 206,223,149 | 0 | 1 | NOASSERTION | 2019-09-04T03:28:21 | 2019-09-04T03:28:21 | null | UTF-8 | Python | false | false | 10,087 | py | import collections.abc
from contextlib import contextmanager
from typing import Optional, List, Tuple, Sequence
import torch
from torch.distributed import distributed_c10d
from torch.distributed import rpc
from torch.distributed._sharding_spec import (
ShardMetadata,
)
from torch.distributed._sharding_spec._intern... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
7718d73f031823f1b9ebf57030912b374108f3ba | 34b09bc83e5726fccb524a93cf2742f5aeadedef | /1. List1/3.py | ea7f0c9ec964633f5a8273b37e01bb56d9eee59c | [] | no_license | mjson1954/WIC | 57eb20ffe7aaf8695d679c893efacdeede573e72 | 670112209aacd274d09f6e9a89d948120486bfc8 | refs/heads/master | 2023-03-20T00:57:19.740025 | 2021-03-05T10:52:51 | 2021-03-05T10:52:51 | 289,925,829 | 0 | 0 | null | 2021-02-21T02:16:11 | 2020-08-24T12:46:58 | Python | UTF-8 | Python | false | false | 360 | py | T = int(input())
for test_case in range(1, T + 1):
N=int(input())
count=[0 for _ in range(10)]
num=input()
for j in range(len(num)):
count[int(num[j])]+=1
max_value=max(count)
for j in range(len(count)):
if(count[j]==max_value):
max_index=j
print("#{0} {1} {2}".fo... | [
"mjson1954@gmail.com"
] | mjson1954@gmail.com |
a48fc9cb60eb6c923be2d70b30f0f7886cc487cc | 51f2492a5c207e3664de8f6b2d54bb93e313ca63 | /atcoder/abc047/c.py | cae6160fc3353b018fde5958ce7efe990bf07b41 | [
"WTFPL",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | abeaumont/competitive-programming | 23c5aabd587d7bb15a61efd3428838cb934233dd | a24c9b89941a59d344b51dc1010de66522b1a0dd | refs/heads/master | 2023-09-01T09:50:58.267361 | 2023-07-31T18:00:10 | 2023-07-31T18:00:10 | 117,589,708 | 618 | 262 | WTFPL | 2023-07-12T17:36:20 | 2018-01-15T20:00:56 | C++ | UTF-8 | Python | false | false | 158 | py | #!/usr/bin/env python3
# https://abc047.contest.atcoder.jp/tasks/arc063_a
s = input()
c = 0
for i in range(len(s) - 1):
if s[i] != s[i + 1]: c += 1
print(c)
| [
"alfredo.beaumont@gmail.com"
] | alfredo.beaumont@gmail.com |
eddde73e43c26cf544ab18b8129edda1c503753b | f8e0a0584f0a808311085996597389c9592025af | /news/models.py | 9a7f0d29ffb421a42c0e1a8c628f0f54155a2412 | [] | no_license | virginiah894/Moringa-Tribune | 5073e93d38538185820630c3933b48e183e92209 | 2af5daabad0bdd7f2895f7bd28816d7ad975ad9a | refs/heads/master | 2021-09-09T20:57:37.903815 | 2019-12-13T08:45:46 | 2019-12-13T08:45:46 | 227,795,226 | 0 | 0 | null | 2021-09-08T01:31:55 | 2019-12-13T08:45:02 | Python | UTF-8 | Python | false | false | 1,182 | py | from django.db import models
import datetime as dt
class Editor(models.Model):
first_name = models.CharField(max_length =30)
last_name = models.CharField(max_length =30)
email = models.EmailField()
phone_number = models .CharField(max_length=10,blank=True)
def __str__(self):
return self.first_name
def... | [
"virgyperry@gmail.com"
] | virgyperry@gmail.com |
32a7383bbdb7707bced75887bccb8e9c491a674f | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_374/ch9_2020_03_08_05_11_20_823379.py | 11fe13e3a3097c21d3428e5d4f979b2017324147 | [] | 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 | 97 | py | import math
def calcula_volume_da_esfera(r):
calcula = 4/3*math.pi*r**3
return(calcula)
| [
"you@example.com"
] | you@example.com |
1b2931848fb0d2a2684a071cf19b28957ec21eef | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /sDvjdcBrbHoXKvDsZ_9.py | edb3defdc96258659cf2fc8e61b896bc9232188e | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | """
Write a function that returns `True` if a given name can generate an array of
words.
### Examples
anagram("Justin Bieber", ["injures", "ebb", "it"]) ➞ True
anagram("Natalie Portman", ["ornamental", "pita"]) ➞ True
anagram("Chris Pratt", ["chirps", "rat"]) ➞ False
# Not all letters are... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
b3f7befc0eebb80abe6961bb65b8ef7294dceba2 | 8b6b6ef3ac079aabcc0c44243447388bef87f671 | /Projects/customDS.py | 2ae2a9d67492f47a2805f04e91bd174016fe2e62 | [] | no_license | ava6969/DataStructureAlgorithm | c4f35f2b616cd0393050c89b4c42bbad81c5ebcf | 6e88c4aa2b18765d7c4f8a0d3bca5c62260cb0d2 | refs/heads/master | 2022-12-03T18:35:11.994182 | 2020-08-05T15:35:40 | 2020-08-05T15:35:40 | 283,895,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,778 | py | class Node:
def __init__(self, value):
self.value = value
self.next = None
class LinkedList:
def __init__(self, head):
self.head = head
def append(self, value):
if self.head is None:
self.head = Node(value)
return
# Move to the tail (the la... | [
"ava6969@rit.edu"
] | ava6969@rit.edu |
819d3872ba14d41ded94549d3c76b5a1426f8f46 | 56451b41a2a5f58ea3a1eaa265ab4bda3bf4a54e | /util/dataset_loader.py | 49b42fc9aa289da317860e4a7e9bcf2186671c79 | [] | no_license | peternara/Temperature-Scaling-Modesty-Loss | 9c6285953b0012f00386092264d96a404f9dfcd8 | 7b6faadc2ac2ee989fdf80d674232800c337abda | refs/heads/master | 2021-09-20T15:04:41.996247 | 2018-08-11T00:25:59 | 2018-08-11T00:25:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,972 | py | from torchvision import transforms, datasets
import torch
def load_data(d, train=False, batch_size=100):
""" Create and return dataloader for different dataset """
if d == "CIFAR10":
transform = transforms.Compose([
transforms.ToTensor(),
transforms.Normalize((0.4914, ... | [
"noreply@github.com"
] | peternara.noreply@github.com |
06a27a5131b47c30f58ea7a14ae0ebb90452cdd7 | d7b9b490c954c7a9160b69f8ce2c907ef4681ecb | /sponsors/migrations/0020_sponsorshipbenefit_unavailable.py | 35c842d1e237e7274eb7082a46c37a7648d461c2 | [
"Apache-2.0"
] | permissive | python/pythondotorg | 00db93a4b1789a4d438806d106d9cee3349ad78c | c4ee749942227ca75c8e670546afe67232d647b2 | refs/heads/main | 2023-08-28T20:04:24.735314 | 2023-08-03T19:12:29 | 2023-08-03T19:12:29 | 6,127,047 | 1,131 | 646 | Apache-2.0 | 2023-08-24T15:57:04 | 2012-10-08T16:00:15 | Python | UTF-8 | Python | false | false | 588 | py | # Generated by Django 2.0.13 on 2021-02-26 15:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("sponsors", "0019_sponsor_twitter_handle"),
]
operations = [
migrations.AddField(
model_name="sponsorshipbenefit",
n... | [
"noreply@github.com"
] | python.noreply@github.com |
0e4eb6c34aebef06d2fff3f979fa3cff9dc3ca53 | 835e428d1cbe87adf945897ff75f77e93b500d12 | /demonstrations/quantum_volume.py | f3c33be50da84dd7180c360143dfe1b5fdb8532d | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | quantshah/qml | 9acb3c932610e30a28369fe72ee49683ac301219 | 45533ef6f6d7b9cfa0384302fe52b5ead772b923 | refs/heads/master | 2022-11-30T08:26:12.972709 | 2022-11-18T19:59:59 | 2022-11-18T19:59:59 | 218,805,085 | 0 | 0 | Apache-2.0 | 2019-10-31T16:02:07 | 2019-10-31T16:02:06 | null | UTF-8 | Python | false | false | 38,027 | py | r""".. _quantum_volume:
Quantum volume
==============
.. meta::
:property="og:description": Learn about quantum volume, and how to
compute it.
:property="og:image": https://pennylane.ai/qml/_images/quantum_volume_thumbnail.png
.. related::
qsim_beyond_classical Beyond classical computing with qs... | [
"noreply@github.com"
] | quantshah.noreply@github.com |
d2f9d512547e26c1ad69be07364a71dcada3972a | 30323e6d5e179994cc25438def9de3dfc07be4a5 | /src/aulas/06.py | 3c4f9ebdb4be7f0f40b9c691bef140cfa1130c9b | [] | no_license | claudimf/python_oo_2 | 31f9c065be6bd9905fe85c6ea5b8cc715cc4e463 | 76b23a0a60433fbe62775aae9e1f0cd8af0b324b | refs/heads/main | 2023-03-18T09:09:48.044179 | 2021-03-11T19:23:44 | 2021-03-11T19:23:44 | 346,146,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,192 | py | class Programa:
def __init__(self, nome, ano):
self._nome = nome.title()
self.ano = ano
self._likes = 0
@property
def likes(self):
return self._likes
def dar_like(self):
self._likes += 1
@property
def nome(self):
return self._nome
@nome.set... | [
"claudi.freitas.prs@synergiaconsultoria.com.br"
] | claudi.freitas.prs@synergiaconsultoria.com.br |
56561bec3c40305d5c936acd30ffbfb98423bb19 | c6a4069e265325e836e4ee79fae0f5490f1a1c47 | /main/fight.py | ecdf67993300f502fc89fad3b4f83cdf03f39bd1 | [] | no_license | astoeff/clean-code-course-project | b2ca1d10b226ea95b602d2535810c9af5aadb244 | 2b64956ea1b33cba405ccd500bf1a5472a65e9c4 | refs/heads/master | 2022-11-19T05:04:20.992189 | 2020-07-17T17:12:59 | 2020-07-17T17:12:59 | 274,676,681 | 0 | 0 | null | 2020-07-17T17:13:00 | 2020-06-24T13:32:49 | Python | UTF-8 | Python | false | false | 2,299 | py | from constants import (DIRECTIONS_WITH_THEIR_OPPOSITES_DICTIONARY, FIGHT_INITIAL_INFORMATION_PART,
PLAYER_ZERO_DAMAGE_WHEN_ATTACKING, FIGHT_HERO_ATTACK_INFORMATION_PART,
FIGHT_HERO_CANNOT_ATTACK_INFORMATION_PART, FIGHT_ENEMY_ATTACK_INFORMATION_PART,
F... | [
"antoni.1998@abv.bg"
] | antoni.1998@abv.bg |
38f1ba00d5c6f04f70636de75b00cc1ff16b61a0 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/tdeboissiere_DeepLearningImplementations/DeepLearningImplementations-master/DenseRecNet/run_cifar10.py | 8954c52f75b145ad8895faf0eb255a39e448500e | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 7,214 | py | from __future__ import print_function
import os
import time
import json
import argparse
import denserecnet
import numpy as np
import keras.backend as K
from keras.datasets import cifar10
from keras.optimizers import Adam
from keras.utils import np_utils
def run_cifar10(batch_size,
nb_epoch,
... | [
"659338505@qq.com"
] | 659338505@qq.com |
b66b465a380d4e26fe2fe4a7d4d23968a5dc804e | e797d6ec2088b3471d15ce802f1d79d931194f3a | /NonRPFRasterLoader_ToolValidator.py | 3d574f94818729ab191b74a13b0639f4dc7003ef | [] | no_license | mfunk/MA-Storage | 20a5427644b4cd7929e5e07c5af35c79839de0d6 | c103f346111c1c4d46408d69be46f8bc1ddddc3a | refs/heads/master | 2020-04-15T23:42:38.718055 | 2014-07-21T16:57:31 | 2014-07-21T16:57:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,660 | py | #!/usr/bin/env python
class ToolValidator:
"""Class for validating a tool's parameter values and controlling
the behavior of the tool's dialog."""
def __init__(self):
"""Setup the Geoprocessor and the list of tool parameters."""
import arcgisscripting as ARC
self.GP = ARC.create(9.3)
self.params ... | [
"mfunk@esri.com"
] | mfunk@esri.com |
197d0304d650472767591fbed6177db4e15135d0 | c107c05bc16b53cd057508e18a0dbe9854343a13 | /tests/export/__init__.py | b33ec61af5bd25a717eef9fba9db148763c33b4b | [] | no_license | hkmshb/gridix.web | d80b7561aade5f77bcc43257742d8e56a628bf2e | bda0adf5465a085b0337a8f749c87a21b73b7741 | refs/heads/master | 2021-09-07T08:36:25.089579 | 2017-10-02T09:49:52 | 2017-10-02T09:49:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23 | py | # package: tests.export | [
"hkmshb@gmail.com"
] | hkmshb@gmail.com |
6f87adaee3c5827635ea027b2d5a1ba7c53ad949 | 2df1bce0d11ba43ad213f887b68b8bc1e1e41d33 | /bin/terminal.py | 517ecda5789203347258f60e8731864ddb316bed | [] | no_license | rheiland/pc4training | 80aead99e7859ec004044985492db736c8e0c6e4 | d37af1d9c0db228254b7679fe04cdff88d1558a1 | refs/heads/master | 2020-09-06T02:54:58.824853 | 2019-11-13T16:53:12 | 2019-11-13T16:53:12 | 220,296,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | from ipywidgets import Output
from IPython.display import display, HTML
class TerminalTab(object):
def __init__(self):
# self.tab = Output(layout={'height': '600px'})
self.tab = Output(layout={'height': 'auto'})
self.tab.append_display_data(HTML(filename='doc/about.html'))
... | [
"heiland@indiana.edu"
] | heiland@indiana.edu |
1d4357ed6ca5e069e3e9bd0e47f3243eb8abe665 | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/kikoAnalysis/wndResFiles/70-tideGauge.py | 782e71b5030c2122e3b4de8378784692225ba5a2 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,382 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Sep 28 11:52:48 2020
@author: Michael Tadesse
"""
import os
import pandas as pd
dir_in = "/lustre/fs0/home/mtadesse/eraFiveConcat"
os.chdir(dir_in)
tgList = os.listdir()
x = 70
y = 71
#looping through individual tide gauges
for ii in range(x, y):
os.chdir(tgList[i... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
469e93af04882d13a845caada52a607ad02fef3e | 1c52ae4b10bb033e8f65a66254a13ba8a22d5e03 | /helium/common/permissions.py | 18f57d68c540967cc5992d700522d0141e76e1a9 | [
"MIT"
] | permissive | vaibhavmathur91/platform | 2fa488e449b02e7a82e4759517663822addb6a34 | 529b7047fbbcdbcfc4766156331da1b6c9ced0fa | refs/heads/master | 2020-03-18T15:57:27.883761 | 2018-05-25T23:13:54 | 2018-05-25T23:13:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | import logging
from rest_framework import permissions
__author__ = 'Alex Laird'
__copyright__ = 'Copyright 2018, Helium Edu'
__version__ = '1.0.0'
logger = logging.getLogger(__name__)
class IsOwner(permissions.BasePermission):
def has_object_permission(self, request, view, obj):
return obj.get_user() =... | [
"alexdlaird@gmail.com"
] | alexdlaird@gmail.com |
39b37f4b8dad13e40b2b69dff70d5dfde738a0cf | 37f675391762db798b712a0da0b760f03adc3b44 | /NEWS_HUB/bin/gunicorn | e9b7c5956d85b26d498dd35f1f5cf362f4575eb6 | [
"MIT"
] | permissive | Ken-mbira/News_Hub | 03c7d9d25b0e9b85949d0b3c9052369e0ee34f2c | c68768dd4f958c9dc74300d036ad69c518d3ce80 | refs/heads/master | 2023-08-06T18:16:03.668655 | 2021-09-13T12:57:11 | 2021-09-13T12:57:11 | 404,722,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | #!/home/kenmbira/Documents/MoringaProjects/Week8/NEWS_HUB/NEWS_HUB/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from gunicorn.app.wsgiapp import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"ken.mbira@student.moringaschool.com"
] | ken.mbira@student.moringaschool.com | |
b674a146368d20c7b0b4c6656597d6da34be28f3 | acc3bfb8d0cdfbb0c762523b9923382570928ed1 | /backend/manage.py | 74a62f9af36b42bdb52667a28cf7a83ba85c1431 | [] | no_license | crowdbotics-apps/my-art-23726 | 30266909ff78876c3cf0c1636c76ba23afd930a2 | 50d905b644c425ab4562d0d3bf6b1ccbae5c715f | refs/heads/master | 2023-02-16T05:36:51.832504 | 2021-01-07T23:31:07 | 2021-01-07T23:31:07 | 327,746,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "my_art_23726.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise I... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
27c7c3c09333b28580d5cf8203bef60cb0b40592 | 05d5945350fe64f6c1235d4f12ee22323167ca0c | /snakemake/configs/candida_Kadosh_June_06_2019.py | 713abf1d1fd3084db06fb822056f0c1fb0fbf5f7 | [
"BSD-2-Clause"
] | permissive | saketkc/re-ribo-smk | 674d4423830bbae3a32f46146ffd362514047a60 | c9326cbafdfa060e22e9af692d9146c37f5035ba | refs/heads/master | 2021-07-12T18:46:37.772947 | 2020-05-30T01:41:13 | 2020-05-30T01:41:13 | 148,952,525 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,101 | py | RAWDATA_DIR ='/staging/as/skchoudh/rna/June_06_2019_Kadosh_C_albicans_Flu/mapped_mRNA_only_collapsed/bams'
OUT_DIR ='/staging/as/skchoudh/rna/June_06_2019_Kadosh_C_albicans_Flu_riboraptor'
#OUT_DIR ='/home/cmb-06/as/skchoudh/rna/July_07_2018_Kadosh_Flu_Film_Planktonic_merged_ribocop_feb2019_longest'
GENOME_FASTA = '/ho... | [
"saketkc@gmail.com"
] | saketkc@gmail.com |
d7e27c0c62004c1e8373b6bb6984fb7b6c32f33c | 3c831000ed8639c9187df6252ec7077a9a31d7df | /calender_visualizer.py | 34e5dbebaaeb66d368c3e8cc89df18b378a0cea7 | [] | no_license | robbynickles/mjc_schedulerB | 0790f7e1ddeba87c5c28e81e923e44338fd3ef54 | fa09632972ea071b7e629df479c2af1093add97f | refs/heads/master | 2021-01-02T08:34:05.965140 | 2014-07-27T17:15:20 | 2014-07-27T17:15:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,373 | py | from kivy.app import App
from kivy.uix.floatlayout import FloatLayout
from kivy.uix.label import Label
from kivy.uix.slider import Slider
from kivy.graphics import Color, Bezier, Line, Rectangle
from random import randint
half = [ i +':00'for i in ['12', '01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '1... | [
"r.nickles7@gmail.com"
] | r.nickles7@gmail.com |
30cb565d98d74bd3d69b3c3fff6406b5afe0b5c6 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/9/xcy.py | 3b2e226fad8e4672903657ebf133328412969648 | [] | 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 | 486 | 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 |
1c29dc1ecfe316faa78fb563f818acb64a7520f9 | a613e5ec5d996bb1a60e6f4d417f44fe7241f867 | /Arrays/Merge overlapping ranges.py | 9bbaea8f72939902888ff0dd2ad24449a7cd16ba | [] | no_license | Nisar-1234/Data-structures-and-algorithms-1 | f0e2d9e63ee8baa35f12d106ee879ccb060c4caf | 777634f01d8b10a92a97c927ec09499ba08a28a4 | refs/heads/main | 2023-06-26T04:03:30.474025 | 2021-07-28T19:33:28 | 2021-07-28T19:33:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | def merge(ranges):
ranges.sort()
stack = []
stack.append(ranges[0])
for i in range(1,len(ranges)):
if ranges[i][0] <= stack[-1][1]:
stack[-1][1] = max(stack[-1][1],ranges[i][1])
else:
stack.append(ranges[i])
return stack
ranges = [[2,13],[8,20]]
... | [
"noreply@github.com"
] | Nisar-1234.noreply@github.com |
02f1ceb7c09effbcdc1c59b7067690ae0c023e77 | 6bc0cef468f97914fab31dd83bd417b4a5321051 | /py_checkio_solutions/Scientific Expedition/sum_by_type.py | ffa4fc777499a9847d22d02d2db4f233d0699a2f | [] | no_license | todatech/checkio | 14f19ef111a3f222b369937c90746c47bf2c3a63 | 763a9e0f81470302b173a4a700b77bed4f71de7a | refs/heads/master | 2023-02-01T16:04:39.018699 | 2020-12-21T01:46:38 | 2020-12-21T01:46:38 | 303,469,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,263 | py | #!/usr/bin/env checkio --domain=py run sum-by-type
# You have a list. Each value from that list can be either a string or an integer. Your task here is to return two values. The first one is a concatenation of all strings from the given list. The second one is a sum of all integers from the given list.
#
# Input:An a... | [
"tonani@gmail.com"
] | tonani@gmail.com |
28307b976fc960f266e1401750875eb574c139e9 | 05ff9a0778ae16c4b3f29a4e4198e3f829dee409 | /ecommerce_app/migrations/0014_paynowpayment.py | 8d6fc7931cacfb59e11ca1edb1b61580301c8544 | [] | no_license | Inoxevious/malinafro | 8aa87b3b2a5473430ff57790ebccb2aaba6d8493 | 7b5b255997a9f54272c4320ed939b8e24c84b910 | refs/heads/main | 2023-01-20T14:32:23.049381 | 2020-12-02T09:21:47 | 2020-12-02T09:21:47 | 314,222,344 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,727 | py | # Generated by Django 3.0.8 on 2020-11-24 14:19
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('ecommerce_app', '0013_or... | [
"mpasiinnocent@gmail.com"
] | mpasiinnocent@gmail.com |
aba30190b9406ca34264eac7310ecebc0beed81d | ad9bd58a3ec8fa08dfcc994d4101ee815a9f5bc0 | /02_algorithm/baekjoon/problem/1000~9999/7562.나이트의이동/7562.py | 4723f88cb7b7f2278519430d1b57259805f660b1 | [] | no_license | wally-wally/TIL | 93fc1d0e3bc7d030341ed54155294c68c48b4c7d | 936783bc86f563646c0398c24e2fcaa707f0ed23 | refs/heads/master | 2023-04-28T08:59:48.235747 | 2023-04-12T12:06:52 | 2023-04-12T12:06:52 | 195,918,111 | 40 | 7 | null | 2020-09-29T16:20:46 | 2019-07-09T02:31:02 | Python | UTF-8 | Python | false | false | 1,199 | py | import sys
sys.stdin = open('input_7562.txt', 'r')
def BFS(row, col):
queue = []
dx = [-2, -1, +1, +2, +2, +1, -1, -2]
dy = [+1, +2, +2, +1, -1, -2, -2, -1]
queue.append([row, col])
visited[row][col] = True
move_cnt = 0
while True:
temp_list = []
move_cnt += 1
while ... | [
"wallys0213@gmail.com"
] | wallys0213@gmail.com |
eb87b42045e37801ae1ccabf5fe794faad9c9aa5 | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /kws_streaming/layers/dct_test.py | b359966280714820cd4c94950e26aec8aedb04af | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 2,605 | py | # coding=utf-8
# Copyright 2023 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 |
1934fbcee797873fc5e7e408002b1afb3f51f96f | 8c057f4d481d0ba756b08be90f3a771bf54411cb | /cloudmersive_currency_api_client/api/currency_exchange_api.py | 440514cc130020a6964c854a9de6682330a23020 | [
"Apache-2.0"
] | permissive | Cloudmersive/Cloudmersive.APIClient.Python.Currency | 57ca5717e6b298e782a03e03e32d8ecda5f174ab | c7e00c8f877b6cebb5e922b1c8178e852a7705fb | refs/heads/master | 2022-12-25T17:28:21.432412 | 2020-09-13T03:34:25 | 2020-09-13T03:34:25 | 295,070,766 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 15,331 | py | # coding: utf-8
"""
currencyapi
The currency APIs help you retrieve exchange rates and convert prices between currencies easily. # noqa: E501
OpenAPI spec version: v1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa... | [
"35204726+Cloudmersive@users.noreply.github.com"
] | 35204726+Cloudmersive@users.noreply.github.com |
b08e0b567a118d75a7d4962d1ede12db6030b181 | f957ad3b17e4172791ef93c38dc131f34be3545f | /corpus/location.py | 055bd4a146c76db39ef38918a757b68baf6a2eee | [
"Apache-2.0"
] | permissive | LeMyst/ConferenceCorpus | e43c1806165fbb24a6b312a3ad81d4142b1edfe5 | 727afb6f5c9b2e3807260a6161a27531b2f77dd2 | refs/heads/main | 2023-09-05T08:39:29.811243 | 2021-11-08T07:43:02 | 2021-11-08T07:43:02 | 426,408,944 | 0 | 0 | Apache-2.0 | 2021-11-09T22:38:53 | 2021-11-09T22:38:52 | null | UTF-8 | Python | false | false | 6,815 | py | '''
Created on 2021-08-11
@author: wf
'''
#from lodstorage.entity import EntityManager
from geograpy.locator import LocationContext
from OSMPythonTools.nominatim import Nominatim
import os
import logging
class LocationLookup:
'''
lookup locations
'''
preDefinedLocations={
"Not Known": None,
... | [
"wf@bitplan.com"
] | wf@bitplan.com |
3ef28cffc4c66730c648b8fa86a3b1eb738a771c | b521802cca8e4ee4ff5a5ffe59175a34f2f6d763 | /maya/maya-utils/Scripts/Animation/2019-2-15 Tim Cam_Route_Manager/.history/Cam_Main/Cam_Main/Cam_Item_Layout_20190119192913.py | c890a70582358ec2307bee469503689adbba361f | [] | no_license | all-in-one-of/I-Do-library | 2edf68b29558728ce53fe17168694ad0353a076e | 8972ebdcf1430ccc207028d8482210092acf02ce | refs/heads/master | 2021-01-04T06:58:57.871216 | 2019-12-16T04:52:20 | 2019-12-16T04:52:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,099 | py | # -*- coding:utf-8 -*-
# Require Header
import os
import json
from functools import partial
# Sys Header
import sys
import traceback
import subprocess
import plugin.Qt as Qt
from Qt.QtCore import *
from Qt.QtGui import *
from Qt.QtWidgets import *
def loadUiType(uiFile):
import plugin.Qt as Qt
if Qt.__bindin... | [
"2595715768@qq.com"
] | 2595715768@qq.com |
b89f3d90b055cd7e487503b5d88b55929f5bba30 | 2e4290bc1bee155cb8f95bdf7681b58325c8746e | /School/crop/forms.py | 06dc1db5004099b9a33e20985574b5242b21b1d6 | [] | no_license | codingspider/Schoolscript | bb7b539655417e8ee92dae27cedad69c386f5d80 | 7b61d7edb0b5ca4d4767622a02d8727f55510aec | refs/heads/master | 2022-12-14T12:06:15.351705 | 2020-09-08T11:22:27 | 2020-09-08T11:22:27 | 289,896,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,397 | py | from PIL import Image
from .models import PointOfInterest, Rental
from django import forms
from django.core.files import File
# class PhotoForm(forms.ModelForm):
# x = forms.FloatField(widget=forms.HiddenInput())
# y = forms.FloatField(widget=forms.HiddenInput())
# width = forms.FloatField(widget=forms.Hi... | [
"engrokon.rok@gmail.com"
] | engrokon.rok@gmail.com |
e6401021ad628fdb35351d2021abefaacd6de2d1 | d98d5d1af8c31bb7aa0b628d48e504db2ebecbc8 | /分子反映分类/demo.py | ba68e44b7314565046756df256fdf2aa2c14c27c | [] | no_license | dugzzuli/kaggleDemo | 1d52b931e4399551bc92d7cd40bc9453223ede49 | 65c91c42bf9b01eaca3c071b1ce210f214814433 | refs/heads/master | 2021-01-20T04:15:34.768985 | 2017-04-30T14:57:57 | 2017-04-30T14:57:57 | 89,662,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,112 | py | """Kaggle competition: Predicting a Biological Response.
Blending {RandomForests, ExtraTrees, GradientBoosting} + stretching to
[0,1]. The blending scheme is related to the idea Jose H. Solorzano
presented here:
http://www.kaggle.com/c/bioresponse/forums/t/1889/question-about-the-process-of-ensemble-learning/10950#pos... | [
"bingwei2642@qq.com"
] | bingwei2642@qq.com |
422e81d7dc8990d09e10b9f966d4575ed58f6625 | aef1c0d4a32fa10afae10393c850960f9d89cdbc | /MiRegionCO/apps/noticia/migrations/0005_auto_20170722_1413.py | 539cffd200c033897d8312e8478b827075b333a1 | [] | no_license | joselofierro/MiRegionCO | 587059244fc153f32c6eaac8e41fab05bdeb5937 | 781491dc81a2dff7a8ae237d4ea7e23b31a31c52 | refs/heads/master | 2021-11-09T11:23:41.189863 | 2018-01-16T16:53:34 | 2018-01-16T16:53:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-22 14:13
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('noticia', '0004_noticia_destacada'),
]
operations = [
migrations.AddField(
... | [
"juliofierro@Mac-mini-de-JULIO.local"
] | juliofierro@Mac-mini-de-JULIO.local |
6c12f87994931874e395ce5e3a254320cbfa4375 | ded564e6571f59df13a3f5d753c6c54f207261c1 | /thermo/units.py | 57c989069162d21bb322e48ddecc82bec6677b5e | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | simonmb/thermo | 580ae53e764e00e601a5ef4a918e8d4a77442257 | 9abbb0ea71abe8677155e029d01aebe74cce137f | refs/heads/master | 2021-12-13T23:34:50.774780 | 2021-11-11T22:27:21 | 2021-11-11T22:27:21 | 144,257,869 | 1 | 0 | MIT | 2018-08-10T08:15:47 | 2018-08-10T08:15:46 | null | UTF-8 | Python | false | false | 3,232 | 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 |
1da55da5caaa3b90460be0fb0e117a0a33a47b72 | 847815fd6d24859dd0e41a3e53fd29df63b0e8f3 | /solutions/CombinationSumII.py | 27391dee0f2916f041e7fa29ac75d529b173e5ce | [] | no_license | howardhe0329/leetcode | 68c2f901ed15e1904241bb31f9fcba5cdc0cb6dd | 588a86282b8cc74fa14d810eb3a532c5c3e6de81 | refs/heads/master | 2020-07-04T13:03:08.134205 | 2015-12-25T14:40:20 | 2015-12-25T14:40:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,327 | py | __author__ = 'Daoyuan'
from BaseSolution import *
class CombinationSumII(BaseSolution):
def __init__(self):
BaseSolution.__init__(self)
self.push_test(
params = ([10,1,2,7,6,1,5], 8,),
expects = [
[1, 7],
[1, 2, 5],
[2, 6],
... | [
"this@caunion.me"
] | this@caunion.me |
4e13646e0695fb15fe65d9cba62592a5336a05f7 | 401fc99cefe615f8ebefb6dd9c2b043c506f5bd0 | /tests/units/test_helpers.py | 6604d3b7ffe74c4a297010609d9e2ed3d39c7a8e | [
"MIT"
] | permissive | atviriduomenys/spinta | 0f85496860ebbcecfccd8dde2bf219564ee66baa | 1fac5b6b75ec65188d815078fd135bc05d49b31c | refs/heads/master | 2023-09-02T13:22:58.411937 | 2023-08-18T12:59:17 | 2023-08-18T12:59:17 | 168,724,854 | 12 | 4 | MIT | 2023-09-14T13:29:39 | 2019-02-01T16:16:11 | Python | UTF-8 | Python | false | false | 1,069 | py | import pytest
from spinta.units.helpers import is_si_unit
from spinta.units.helpers import is_time_unit
@pytest.mark.parametrize('unit', [
'1D',
'D',
'Y',
'3M',
'12H',
])
def test_valid_time_unit(unit: str):
assert is_time_unit(unit)
@pytest.mark.parametrize('unit', [
'D1',
'd',
... | [
"sirexas@gmail.com"
] | sirexas@gmail.com |
e69a3b71d01b4f76b8c9c0a1d9ffdb9bc82b442b | 38258a7dd9acbfb7adf72983015de68a948a4826 | /B_10000~/B_10871.py | e6b311cfbec7336a975db6800540699eb27bee56 | [] | no_license | kangsm0903/Algorithm | 13a7fe5729039a1d0ce91a574c4755a8a92fb02b | 7d713d1c9e2e4dc30141d4f409ac1430a357065b | refs/heads/master | 2022-10-04T00:33:49.247977 | 2022-09-26T12:51:16 | 2022-09-26T12:51:16 | 219,265,010 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | # # 11/15 10871번
N,X = input().split()
N = int(N)
X = int(X)
A = list(map(int,input().split()))
B = []
for i in range(0, N):
if (A[i] < X) :
print(A[i], end=' ') | [
"kangsm0903@naver.com"
] | kangsm0903@naver.com |
c7f221ee2ca5d98b9105f235c3746a617815877c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03168/s894090351.py | 90c251f91b9e6ad5b7d11301831dc58de6c7936d | [] | 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 | 328 | py | n = int(input())
arr = list(map(float,input().split()))
dp=[]
for i in range(n+1):
dp.append([0]*(n+1))
dp[1][0]=(1-arr[0])
dp[1][1]=arr[0]
for i in range(2,n+1):
for j in range(0,i+1):
dp[i][j]= dp[i-1][j-1]*arr[i-1] + dp[i-1][j]*(1-arr[i-1])
ans=0
for i in range(n//2+1,n+1):
ans+=dp[n][i]
print... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fab48185848246473828e0ee5d08a35b394b0c4a | 65329299fca8dcf2e204132624d9b0f8f8f39af7 | /napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/bgp/global_/afi_safis/afi_safi/l3vpn_ipv6_multicast/prefix_limit/__init__.py | fe57a995d41dbed8e0c81d59672f858b10a83a59 | [
"Apache-2.0"
] | permissive | darylturner/napalm-yang | bf30420e22d8926efdc0705165ed0441545cdacf | b14946b884ad2019b896ee151285900c89653f44 | refs/heads/master | 2021-05-14T12:17:37.424659 | 2017-11-17T07:32:49 | 2017-11-17T07:32:49 | 116,404,171 | 0 | 0 | null | 2018-01-05T16:21:37 | 2018-01-05T16:21:36 | null | UTF-8 | Python | false | false | 15,094 | py |
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from decimal import Decimal
from bitarray import bitar... | [
"dbarrosop@dravetech.com"
] | dbarrosop@dravetech.com |
1607857a4861051a4af79b0e93cb41a76d4659c2 | 311e9f909ec8c63c40a6b09d70006da4f2e0a7d5 | /tfx/utils/model_paths/tf_serving_flavor_test.py | 7c1ad2f866b85cae9556b377d17a85091bfcd24f | [
"Apache-2.0"
] | permissive | 18jeffreyma/tfx | 793fbc6c0597d88d16ac551bae9eddfd18ff1542 | ff6917997340401570d05a4d3ebd6e8ab5760495 | refs/heads/master | 2022-12-15T16:18:15.578839 | 2020-08-31T20:34:05 | 2020-08-31T20:34:56 | 274,276,728 | 3 | 0 | Apache-2.0 | 2020-09-16T18:58:02 | 2020-06-23T01:08:19 | Python | UTF-8 | Python | false | false | 2,855 | py | # Copyright 2020 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 required by applicable law or a... | [
"tensorflow-extended-team@google.com"
] | tensorflow-extended-team@google.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.