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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
177ec5ab1a07b52261f471748deaed236f5d9924 | 99e88bd6c2bb50e38f5bb68f0d5242def0442f7f | /tests/test_struct.py | a378da250be0b66d31d8f26b5b0d02c745c21343 | [] | no_license | vahtras/vb | ea1bb59a8e6125203d9498f2808a7bf8e6ad5916 | 425402e619aab7d69d7f5d3971439d532d36de0b | refs/heads/master | 2021-01-15T15:42:46.158363 | 2016-10-13T09:06:22 | 2016-10-13T09:06:22 | 47,419,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,687 | py | import unittest
from util.full import init
from findifftool.core import clgrad, DELTA
from . import vb
from vb.core import *
class StructTest(unittest.TestCase):
def setUp(self):
Nod.S = init([[1.0, 0.1], [0.1, 1.0]])
Nod.C = init([[0.7, 0.7], [0.7, -0.7]])
self.alpha0 = Nod([0], [])
... | [
"vahtras@kth.se"
] | vahtras@kth.se |
0bfa8bd26f28131255750f7fceb64d05ccfe39e6 | 360c777a2b77be466b1cf7c8fd74d6fd04f56b55 | /migrations/versions/1e5cd35569af_.py | eabfd29c2469753fa35c275467e477d5e0946760 | [
"MIT"
] | permissive | hreeder/nexus-auth | 790a3b2623ddf443138a4b0f0af1380dbc4db8ae | 8d51aef01647e32ba4a284f02de73a2caad7cf49 | refs/heads/master | 2021-01-10T10:08:37.190558 | 2016-02-29T12:27:21 | 2016-02-29T12:27:21 | 52,789,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 807 | py | """empty message
Revision ID: 1e5cd35569af
Revises: 51d27a60b822
Create Date: 2014-06-24 22:26:10.421081
"""
# revision identifiers, used by Alembic.
revision = '1e5cd35569af'
down_revision = '51d27a60b822'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - ... | [
"harry@harryreeder.co.uk"
] | harry@harryreeder.co.uk |
4bbfa20fd19cd5b5194cd16b2af4adc22c20a60d | ded13e921c8365c6113911a5834969ec3d33f989 | /082/Remove Duplicates from Sorted List II.py | 2dd27f6dcafbf95d6357d10e5156dc9fc2abbec7 | [] | no_license | ArrayZoneYour/LeetCode | b7b785ef0907640623e5ab8eec1b8b0a9d0024d8 | d09f56d4fef859ca4749dc753d869828f5de901f | refs/heads/master | 2021-04-26T23:03:10.026205 | 2018-05-09T15:49:08 | 2018-05-09T15:49:08 | 123,922,098 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,688 | py | # /usr/bin/python
# coding: utf-8
# Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def deleteDuplicates(self, head):
"""
:type head: ListNode
:rtype: ListNode
Given 1->2->3->3->4->4->5, r... | [
"hustliyidong@gmail.com"
] | hustliyidong@gmail.com |
1ae02112a6b34c47b25fc53f5eeae25ccc13eca9 | 50dd2a43daa8316fc11e0c176b5872738fcc5dde | /Learning/071_Get_Movie_Summary/GetMovieSummary.py | a84b1602f2c2ed7a0ca49bbc1cb1d69b1c6bb938 | [] | no_license | FrenchBear/Python | 58204d368e3e72071eef298ff00d06ff51bd7914 | b41ab4b6a59ee9e145ef2cd887a5fe306973962b | refs/heads/master | 2023-08-31T18:43:37.792427 | 2023-08-26T15:53:20 | 2023-08-26T15:53:20 | 124,466,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,795 | py | # GetMovieSummary.py
# Simple app using TheMovieDb.org to retrieve movie information
# pip install tmdbsimple
#
# 2020-07-15 PV
# 2023-01-03 PV Added .mp4 suffix
import os
import tmdbsimple as tmdb # type: ignore
from typing import Iterable
# Chemin complet de tous les fichiers à partir d'une racin... | [
"FrenchBear38@outlook.com"
] | FrenchBear38@outlook.com |
93df35b7e5445736b838d299bc73a4b524517d1e | 8ab6330e149fb4bcd303f3ca12b3e10bb08eda3e | /RPA-python/rpa_basic/excel/9_move.py | 92be2254f0d09f796407a904a104807222dc4477 | [] | no_license | jongin1004/python | 73e72b9187a0a707777e1474f5bb48f33a603e8f | 997e6bf59c71943d65447d11729a225b8e323a16 | refs/heads/main | 2023-08-05T02:44:01.673614 | 2023-08-02T07:51:56 | 2023-08-02T07:51:56 | 300,539,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | from openpyxl import load_workbook
wb = load_workbook('sample.xlsx')
ws = wb.active
# 번호, 영어, 수학 -> 번호, 국어, 영어, 수학
# 이동하려는 범위의 값을 같은행(rows=0)에 열만 1칸 오른쪽(cols=1)으로 이동하도록
# 값을
# ws.move_range("B1:C11", rows=0, cols=1)
# ws['B1'].value = '국어'
# -는 반대 방향으로 이동
ws.move_range("C1:C11", rows=5, cols=-1)
wb.save('sample_... | [
"bill1224@naver.com"
] | bill1224@naver.com |
b20d1fbac2a2d855a426c601759521a07a9efb5c | 88620a5d4526493112c157cd7a80b160e794f956 | /testgames.py | 24bae21126ca311af9db144921e21f6d2c8abd0a | [] | no_license | sweettea/python-airmash | 6da7b225642ca188e9a3f0e33895bf91de286c4d | 3640fc96d46cce5360b4a7a866eccabea3616de6 | refs/heads/master | 2021-05-14T18:40:00.661754 | 2018-01-07T02:38:09 | 2018-01-07T02:38:09 | 116,082,157 | 0 | 1 | null | 2018-01-03T02:39:24 | 2018-01-03T02:39:24 | null | UTF-8 | Python | false | false | 441 | py | from airmash import games
url = games.get_url('eu', 'ffa1')
print("Game URL: {}".format(url))
data = games.get_data()
for region_id in data['regions']:
region = data['regions'][region_id]
print('\nRegion: {} ({})'.format(region['name'], region_id))
for game_id in region['games']:
game = region['ga... | [
"phil@gadgetoid.com"
] | phil@gadgetoid.com |
6f5fc2de343a2b0e2c06629972e900ea90911b5c | fda201d7cca34e216a17d97665c8457c72e66cb2 | /voting/tests/factories.py | effa73194a92f887e852dba761788d9759e92dba | [
"Apache-2.0"
] | permissive | SmartElect/SmartElect | 94ab192beb32320e9ae8ae222f90ee531037c1c6 | d6d35f2fa8f60e756ad5247f8f0a5f05830e92f8 | refs/heads/develop | 2020-12-26T04:04:42.753741 | 2019-07-17T17:08:25 | 2019-07-17T17:08:25 | 44,687,036 | 24 | 12 | Apache-2.0 | 2020-06-06T07:16:48 | 2015-10-21T15:47:07 | Python | UTF-8 | Python | false | false | 1,479 | py | import random
from datetime import timedelta
from factory import DjangoModelFactory, SubFactory, Sequence
from factory.declarations import LazyAttribute
from factory.fuzzy import FuzzyDateTime
from django.utils.timezone import now
from voting.models import Ballot, Candidate, Election, RegistrationPeriod
start_dt =... | [
"vinod@kurup.com"
] | vinod@kurup.com |
d428a0c2923c810ba7fe622e0a9c3497156c3348 | 2979d177a9388b25a84179127a06728b44955268 | /First-Year/CA117-Labs/Lab3/reversecomp_0311.py | 597ac50e665839a62aba123af4dcd35b3601a859 | [] | no_license | BrendanSimms8898/Python | ccb2b8284aa4e187ab89d4fc34b7fe7a980950cc | 920c39fe02a26e7b131f299d5d082d13021df78b | refs/heads/master | 2023-08-16T00:58:28.742295 | 2021-10-07T12:42:14 | 2021-10-07T12:42:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | #!/usr/bin/env python3
import sys
def revcom(words):
return([word for word in words if len(word) >= 5 and word[::-1] in words])
def main():
words = [word.strip() for word in sys.stdin]
print(revcom(words))
if __name__ == '__main__':
main()
| [
"brendan.simms3@mail.dcu.ie"
] | brendan.simms3@mail.dcu.ie |
daf1e49afe7cc6634eb7d0c2bc13eb678c4fa7a3 | 07527179eef5debf8932e6f8ba52742fb078c8ab | /styleguide_example/users/apis.py | 56c2e717e136029ddcef47ba199949afd095e169 | [
"MIT"
] | permissive | brunofvpp/Styleguide-Example | 5389c0ca757c2e3d0e836f3e0b3457bc4ba9960d | 0514a7dd534b1eea2a0baa5e29d05a51ff8bc41c | refs/heads/master | 2023-08-15T04:23:09.642185 | 2021-10-04T09:38:09 | 2021-10-04T09:38:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,543 | py | from rest_framework.views import APIView
from rest_framework import serializers
from styleguide_example.api.mixins import ApiErrorsMixin
from styleguide_example.api.pagination import get_paginated_response, LimitOffsetPagination
from styleguide_example.users.selectors import user_list
from styleguide_example.users.mo... | [
"radorado@hacksoft.io"
] | radorado@hacksoft.io |
cc62bcc7205e8c86cefdb8329f467b67aa8ad039 | 9545652800884f0e54fe6595d8634c29ea4827a2 | /模拟面试/leetCode_168_串联字符串的最大长度.py | 4d63432852efd76698194bbf3a2a16c37ecacc49 | [] | no_license | challeger/leetCode | 662d9f600a40fd8970568679656f6911a6fdfb05 | d75c35b6f8ab33c158de7fa977ab0b16dac4fc25 | refs/heads/master | 2023-01-13T07:34:42.464959 | 2020-11-13T02:40:31 | 2020-11-13T02:40:31 | 286,426,790 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py | """
day: 2020-09-14
url: https://leetcode-cn.com/problems/maximum-length-of-a-concatenated-string-with-unique-characters/
题目名: 串联字符串的最大长度
给定一个字符串数组 arr,字符串 s 是将 arr 某一子序列字符串连接所得的字符串
如果 s 中的每一个字符都只出现过一次,那么它就是一个可行解。
请返回所有可行解 s 中最长长度
示例:
输入:arr = ["un","iq","ue"]
输出:4
思路:
深度遍历,判断每一种可能性.
"""
from typing import... | [
"799613500@qq.com"
] | 799613500@qq.com |
054c3c33e78838f6a9ba28c44196908020f21232 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02554/s866916139.py | 1d67b2a68376143ed1bd7e8e9e1004056e4ac21c | [] | 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 | 211 | py | '''
参考
https://qiita.com/u2dayo/items/98917c94c89c77b9b3a1#c%E5%95%8F%E9%A1%8Cubiquity
'''
MOD = 10 ** 9 + 7
N = int(input())
ans = pow(10, N)
ans -= 2 * pow(9, N)
ans += pow(8, N)
ans %= MOD
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
34a096c61f612a6449607b8e24560f2e5a7200d2 | 93a7f579adc1882939a6ace69deefa4127c7c3cb | /code/chp12-scraping/selenium_form_submit.py | 5bd9167669e44eee13e7268d87a0dd337b1c45aa | [] | no_license | tschoi6712/dataWrangling | 251060bfc6c9075042d649e59a17662e0c92545c | 28df17afc706bb5ab3786d144615eb80957495b8 | refs/heads/master | 2022-12-08T17:09:56.194795 | 2019-09-24T07:19:48 | 2019-09-24T07:19:48 | 210,534,336 | 0 | 0 | null | 2022-12-07T23:33:32 | 2019-09-24T07:01:45 | HTML | UTF-8 | Python | false | false | 698 | py | from selenium import webdriver
from time import sleep
#browser = webdriver.Firefox()
browser = webdriver.Chrome('C:/chromedriver/chromedriver.exe')
browser.get('http://google.com')
inputs = browser.find_elements_by_css_selector('form input')
for i in inputs:
if i.is_displayed():
search_bar = i
br... | [
"tschoi6712@gmail.com"
] | tschoi6712@gmail.com |
c00c986d9c0b1b0a62d76888e0ac40192dd9453d | 210e88536cd2a917fb66010ff69f6710b2261e8e | /environment/admin.py | 8c6af3c1d35fcc6084684ab6ba65039f0c4c7fd7 | [] | no_license | tlam/multiverse_sidekick | e5ef1fa908c6fd3fee4d816aa1776b7243075e8c | 9211e4cb36611088420a79666f0c40ecb0a6b645 | refs/heads/master | 2020-04-17T08:30:28.396623 | 2015-08-27T03:36:47 | 2015-08-27T03:36:47 | 9,423,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | from django.contrib import admin
from environment.models import Environment
admin.site.register(Environment)
| [
"lamthierry@gmail.com"
] | lamthierry@gmail.com |
2359b782828f9d49623622307e680a93981e9e5f | b66c3ec94db4f6ced5d7fb3099c7af1227ea8c02 | /unit/test_zuoye1_2.py | c7bebbd30ec3ead23ed23d4c512451b5191ce0d3 | [] | no_license | moshang1003/hogwartsSDET11 | 0c6b6a0bc7caedaade17b9b39607cefdf4fde5e4 | e0eb30826a8f23b08c964c805dfe2cd5ae503826 | refs/heads/master | 2021-03-29T09:02:47.045166 | 2020-03-21T10:46:16 | 2020-03-21T10:46:16 | 247,939,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,737 | py | import os
import time
import allure
import pytest
# 能够正常返回结果的类似整数测试数据,数据格式(预期值,a,b,标题)
data_int = [
(5, 10, 2, '正常整数'),
(1024, 4294967296, 4194304, '大数值整数'),
(-6.25, -25, 4, '含负数整数'),
(0, 0, 999999, '被除数为0整数'),
(1.25 - 0.25j, 3 + 2j, 2 + 2j, '复数数据')
]
# 能够正常返回结果的类似浮点数测试数据,数据格式(预期值,a,b,精度,标题)
data_... | [
"you@example.com"
] | you@example.com |
9ffd2532080f8ef3fdc3d8345d8fdf308689efd5 | 0e8d49afd0e35510d8fa6901cf216896604240d8 | /lib/pyfrc/tests/docstring_test.py | 02ef66ff67747fdf692f6f5d0fb08d2fa37ddd6b | [
"MIT"
] | permissive | ThunderDogs5613/pyfrc | 3878a3d887d7adcb957128333ee71fc874c56f2b | d8e76a9284690f71ea7fab7d2aa9022cb6eec27d | refs/heads/master | 2021-08-29T14:21:13.124227 | 2017-12-04T05:46:40 | 2017-12-04T05:46:40 | 114,410,477 | 1 | 0 | null | 2017-12-15T20:55:31 | 2017-12-15T20:55:30 | null | UTF-8 | Python | false | false | 4,104 | py |
import inspect
import os
import re
import sys
# if you want to be really pedantic, enforce sphinx docstrings. Ha.
pedantic_docstrings = True
# regex to use to detect the sphinx docstrings
param_re = re.compile("^:param (\S+?):\s*(.+)$")
def ignore_object(o, robot_path):
'''Returns true if the object can be ... | [
"dustin@virtualroadside.com"
] | dustin@virtualroadside.com |
868e68a80dd8cf6eb36fcb64aa2b5052364a0f01 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02639/s328215249.py | db1cbfb4146ce4bd4f05ce69c14a0e3c330caba3 | [] | 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 | 64 | py | x = list(map(int, input().split()))
i = x.index(0)
print(i + 1)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6942cf2821993577ff91f07dbc207ed4d122aff8 | f3a7b2b71af1ca16e87fcc2c6063670d056f59c6 | /libs/models/detectors/r3det_gwd/build_whole_network_pb.py | 2f41c02e883d228bd72e6bd4fa158a571f3ccff2 | [
"Apache-2.0"
] | permissive | DLPerf/RotationDetection | 3af165ab00ea6d034774a7289a375b90e4079df4 | c5d3e604ace76d7996bc461920854b2c79d8c023 | refs/heads/main | 2023-07-16T06:01:42.496723 | 2021-08-28T03:17:39 | 2021-08-28T03:17:39 | 400,690,285 | 0 | 0 | Apache-2.0 | 2021-08-28T03:16:55 | 2021-08-28T03:16:55 | null | UTF-8 | Python | false | false | 28,153 | py | # -*-coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
import tensorflow as tf
import tensorflow.contrib.slim as slim
from libs.models.detectors.single_stage_base_network import DetectionNetworkBase
from libs.models.losses.losses_gwd import LossGWD
from libs.utils import bbox_transfo... | [
"yangxue0827@126.com"
] | yangxue0827@126.com |
712cbef7c9caa13001d11892e7ebfa5ca34642d5 | af3e249753fbf04ce10a01e4dbeab549cb4ae34d | /oscar/apps/catalogue/migrations/0014_auto_20181115_1953.py | fb912bfd712eb0dc972432ad7a40d44467e3d751 | [] | no_license | rwozniak72/sklep_oscar_test | 79588b57470c9245324cc5396aa472192953aeda | fb410dc542e6cb4deaf870b3e7d5d22ca794dc29 | refs/heads/master | 2020-08-12T04:55:25.084998 | 2019-10-16T21:14:08 | 2019-10-16T21:14:08 | 214,692,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,126 | py | # Generated by Django 2.0.7 on 2018-11-15 19:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('catalogue', '0013_auto_20170821_1548'),
]
operations = [
migrations.AlterField(
model_name='product',
... | [
"rwozniak.esselte@gmail.com"
] | rwozniak.esselte@gmail.com |
789af4de56c556d7d9dc75336e4c423b18ab8af2 | 4a36b5979b0753b32cff3956fd97fb8ed8b11e84 | /1.2/_downloads/52b26bfb61145291f5108dc7fd05ccee/35_artifact_correction_regression.py | 9a81f74c53bb80927e67f3d1046b2516c45e9edf | [] | permissive | mne-tools/mne-tools.github.io | 8aac7ae10bf2faeeb875b9a351a5530dc0e53154 | 495e878adc1ef3374e3db88604504d7542b01194 | refs/heads/main | 2023-09-03T07:06:00.660557 | 2023-09-03T04:10:18 | 2023-09-03T04:10:18 | 35,639,371 | 12 | 16 | BSD-3-Clause | 2023-05-05T19:04:32 | 2015-05-14T22:04:23 | HTML | UTF-8 | Python | false | false | 9,910 | py | # -*- coding: utf-8 -*-
"""
.. _tut-artifact-regression:
===================================
Repairing artifacts with regression
===================================
This tutorial covers removal of artifacts using regression as in Gratton et al.
(1983) :footcite:`GrattonEtAl1983` and Croft & Barry (2000)
:footcite:`Cr... | [
"dan@mccloy.info"
] | dan@mccloy.info |
22fc07b80e8a0195b0e11cd601c09efe7a51bedf | 30b98382e8621ec45bc52b8f69a3ca6285e83a6a | /python/1-GeneticAlgorithm/GA_on_Knapsack_problem.py | 94e532ea3dba37eeaa81a29e5124a564d4f03e07 | [] | no_license | JG-cmd/algrithm | 404c2d7f0c7ab677ae3f4913ffbd57370627366f | 93d8ebc7074e5411f281b1882d92d5f11bcbb652 | refs/heads/master | 2023-03-15T19:24:07.025977 | 2020-02-15T17:20:06 | 2020-02-15T17:20:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,640 | py | # encoding=utf-8
#####
# 遗传算法用于背包问题
# Python 3.6
# http://www.myzaker.com/article/59855a9c1bc8e0cf58000015/
#####
import os
import random
from copy import deepcopy
# 种群
class GAType(object):
def __init__(self, obj_cnt):
# 个体基因
self.gene = [0 for _ in range(0, obj_cnt)]
# 个体适应度
sel... | [
"zhoutong@apusapps.com"
] | zhoutong@apusapps.com |
45c0af97d21af7351b881ee9681d2dc86db4a4c9 | 60eb98538025c61cf94a91f6c96f9ee81dcd3fdf | /monai/handlers/lr_schedule_handler.py | 3b300537b273be71ed40e34dc2b2f45a984dd082 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | gagandaroach/MONAI | 167e7746995d4b6136731881e22ad4df333b16a9 | 79b83d9fac41efae9b90ed2f9ad078d6d664bf64 | refs/heads/master | 2023-06-02T19:54:47.737846 | 2021-06-24T18:34:02 | 2021-06-24T18:34:02 | 270,741,899 | 0 | 0 | Apache-2.0 | 2020-06-08T16:29:32 | 2020-06-08T16:29:31 | null | UTF-8 | Python | false | false | 3,437 | py | # Copyright 2020 - 2021 MONAI Consortium
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in wri... | [
"noreply@github.com"
] | gagandaroach.noreply@github.com |
7ea2028e24f5008ab25e293b157929cc4359f7a9 | 2567e10b9c713b0a6064147885db9628de4fca30 | /subdomain.py | a148b45749aa95eb47603ed03c443079d251ff9a | [] | no_license | Gamerited/subpyforce | 759ea42b37532ddeecbcb76020fb0fd49b02abfa | 5cc1ddd6a6d200c3a4b40b604b80317c24a29ac8 | refs/heads/master | 2022-11-13T05:29:52.809233 | 2020-06-26T07:16:54 | 2020-06-26T07:16:54 | 275,091,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,307 | py | import requests
from threading import Thread
from queue import Queue
from colored import fg, bg, attr
x = Queue() #defining x to hold the queue for subdominas
def subs(domain):
global x
while True:
sdomain = x.get()
location = f"http://{sdomain}.{domain}"
try:
requests.get... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
03dfadc9b08f7a78c163125f7724ce3c71849df2 | 43cb8b3e0a730e2a24e90c430b3399129541f328 | /2. django-models/example/migrations/0001_initial.py | 6e5f4a85a6c212fef6b7fc8649bf06b283b16b30 | [] | no_license | josancamon19/django-studies | 817c2b17b3c7c0d8fddd9a8bf938eddaa56e0019 | 875d08fc615bdc86ec8075e665aeb8a135f83efb | refs/heads/master | 2020-09-23T10:50:19.658173 | 2019-12-12T13:29:20 | 2019-12-12T13:29:20 | 225,477,236 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,812 | py | # Generated by Django 3.0 on 2019-12-03 04:26
import datetime
from django.db import migrations, models
import django.db.models.deletion
from django.utils.timezone import utc
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
... | [
"joan.santiago.cabezas@gmail.com"
] | joan.santiago.cabezas@gmail.com |
2767f917d3fa9e9be187ea894b815bd79dc4b39d | 4a1273f72e7d8a07a3fa67ac9f2709b64ec6bc18 | /main/migrations/0010_add_metric_group_20160225_2311.py | 6353404be3d139d5fdd25fa4257e8756ae3c7861 | [] | no_license | WealthCity/django-project | 6668b92806d8c61ef9e20bd42daec99993cd25b2 | fa31fa82505c3d0fbc54bd8436cfc0e49c896f3e | refs/heads/dev | 2021-01-19T14:10:52.115301 | 2017-04-12T11:23:32 | 2017-04-12T11:23:32 | 88,132,284 | 0 | 1 | null | 2017-04-13T06:26:30 | 2017-04-13T06:26:29 | null | UTF-8 | Python | false | false | 4,661 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
def check_db(apps, schema_editor):
GoalMetric = apps.get_model("main", "GoalMetric")
Portfolio = apps.get_model("main", "Portfolio")
PortfolioItem = apps.get_model("main", "PortfolioItem")
db_alia... | [
"peterroth0612@gmail.com"
] | peterroth0612@gmail.com |
f4f958de1ba2e127ee2c19421aa94948a44de570 | 9ebc9bba7577c958cc83bf52573303404ea3c7f1 | /mycasa_scripts_active/scripts_ts08_ngc3110/scripts_ts08_ngc3110_old/mypaper99_figures/mypaper99_fig12_oao_vla.py | 6b95bfef4f1994e038b1895c41e64fb00c564bf3 | [] | no_license | toshikisaito1005/mycasa_scripts | 3c3d8942d492ea5b5d28bfe7348764caea857549 | 6367ce6c28e0fe6f98e3adae9823843ba7742da1 | refs/heads/master | 2021-08-10T23:02:38.690492 | 2020-10-01T20:10:00 | 2020-10-01T20:10:00 | 225,368,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,622 | py | import os
import re
import sys
import glob
import scipy
sys.path.append(os.getcwd() + "/../../")
import mycasaimaging_tools as myim
dir_data = "../../../ngc3110/ana/data_nyquist/"
ra_center = "10:04:02.090"
dec_center = "-6.28.29.604"
xlim = [-30, 30]
ylim = [30, -30]
value = None
done = glob.glob(dir_data + "../ep... | [
"toshikisaito1005@gmail.com"
] | toshikisaito1005@gmail.com |
9605c4c35f4cd3538b731010d656254dbc417ebb | 180e1e947f3f824cb2c466f51900aa12a9428e1c | /pattern7/simple_smart_home/src/Service.py | f0f3be546dcd0e68c212e1d6e8019ec7fe1e3bcf | [
"MIT"
] | permissive | icexmoon/design-pattern-with-python | 216f43a63dc87ef28a12d5a9a915bf0df3b64f50 | bb897e886fe52bb620db0edc6ad9d2e5ecb067af | refs/heads/main | 2023-06-15T11:54:19.357798 | 2021-07-21T08:46:16 | 2021-07-21T08:46:16 | 376,543,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | #######################################################
#
# Service.py
# Python implementation of the Class Service
# Generated by Enterprise Architect
# Created on: 01-7��-2021 11:07:50
# Original author: 70748
#
#######################################################
from abc import ABC, abstractmethod
class S... | [
"icexmoon@qq.com"
] | icexmoon@qq.com |
aec4c5395fdaf7f6fb1fb92cb91e8b40a713e7fd | 62392c3a6aae2255db806374115965b35e1b8d24 | /stanfitter.py | 27581a8ae8de0cce986e3742b6f4f3bab3bfbe89 | [] | no_license | wesenu/BootcampCode | 7fb511d9cfbdd2fc8c4f0cdbde26fc160e1c7a55 | 9649f82a2464715d93ff1ddd7de9ee3bfe2c8005 | refs/heads/master | 2022-01-17T04:36:13.635334 | 2017-06-30T14:52:27 | 2017-06-30T14:52:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,783 | py | """
A wrapper around PyStan's compilation and fitting methods, providing a somewhat
more "Pythonic" interface to the fit results.
For PyStan info:
https://pystan.readthedocs.org/en/latest/getting_started.html
Created 2014-11-04 by Tom Loredo
2015-04-17: Modified for BDA class
"""
import cPickle, glob
from hashlib ... | [
"loredo@astro.cornell.edu"
] | loredo@astro.cornell.edu |
ede3854aea68816b248a134c73f8b2aa365b8327 | e8bacf4e4443ea2b8459bf7975d1ff315746cc61 | /.venv/lib/python3.8/site-packages/pygments/lexers/ecl.py | 2aba635002b5d723c1eaa4eaa21f90ef9f3eec9e | [
"Apache-2.0"
] | permissive | WhiteBuffaloTribe/Dragon-Token | 657589873de5a62be858f152808c5bc2edd1fd56 | d9b4d54268e03de1987522a779ed805137e9468f | refs/heads/main | 2023-07-11T06:13:33.525775 | 2021-08-20T21:52:05 | 2021-08-20T21:52:05 | 398,401,607 | 0 | 0 | Apache-2.0 | 2021-08-20T21:13:26 | 2021-08-20T21:13:26 | null | UTF-8 | Python | false | false | 6,270 | py | # -*- coding: utf-8 -*-
"""
pygments.lexers.ecl
~~~~~~~~~~~~~~~~~~~
Lexers for the ECL language.
:copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import re
from pygments.lexer import RegexLexer, include, bygroups, words
from pygments.... | [
"noreply@github.com"
] | WhiteBuffaloTribe.noreply@github.com |
35a4db3609ff41fec26d012ebfd1b23d77e6693a | 3bd8c98c260a783235bb9ab30bfcd645434bfeb0 | /custom_user/migrations/0001_initial.py | d2859f5c2f4b21901f0a48aefa633945a2c7f4c7 | [] | no_license | utkbansal/gharonda | 7006320e86afa5f892ee53c2c588f8e2489d3038 | a183ed542639d044130196ccf32ae83911fbe130 | refs/heads/master | 2021-01-10T02:09:45.159143 | 2015-09-26T08:06:55 | 2015-09-26T08:06:55 | 38,991,356 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,211 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
... | [
"bansalutkarsh3@gmail.com"
] | bansalutkarsh3@gmail.com |
32cdf1d579b17b1eb5c709ee08b58ddabea33509 | 331a072232cadac7ee40f139be010502e2048c54 | /test/integration_test/tools/lib/ofp/ofp_meter_stats_reply.py | a54325424c949cfedc4564ed7794fa4438d62ffe | [
"Apache-2.0"
] | permissive | zewei/lagopus | ab3790c561ed00f5a7af5da2e18543600e84b886 | 98bfe2f007729191b91466270bc82e1288c2e7c3 | refs/heads/master | 2021-01-22T16:00:25.312867 | 2016-02-11T14:40:33 | 2016-02-11T14:40:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,552 | py | import os
import sys
import copy
import logging
from checker import *
from ofp import register_ofp_creators
from ofp import OfpBase
from ofp_meter_stats import SCE_METER_STATS
from ofp_meter_stats import OfpMeterStatsCreator
# YAML:
# meter_stats_reply:
# flags: 0
# body:
# - meter_stats:
# meter_id: 0... | [
"hibi.tomoya@lab.ntt.co.jp"
] | hibi.tomoya@lab.ntt.co.jp |
a98e88df142505b55c6660fa7b7217ee02afd1bd | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2840/60793/261082.py | 2efd81729769b2a2f3cb0be53ea8f9c20c7524ef | [] | 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 | 403 | py | def lucky_num_count(num: int) -> int:
count = 0
num_ls = [int(x) for x in str(num)]
for i in num_ls:
if i == 4 or 7:
count += 1
return count
k = list(map(int, input().split(" ")))[1]
ls = list(map(int, input().split(" ")))
result = 0
for a in ls:
if lucky_num_count(a) <= k:
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
427ac42f326854d80209ad753a2bcf9e0f0e48fe | d63c4b9e05638d6abb68333edf43936134b97570 | /tests/fixtures/runners.py | a849986b7ea6682c9f0e215a67235098dc85438d | [
"Apache-2.0",
"Python-2.0"
] | permissive | SwissDataScienceCenter/renku-python | 316dc83646e9014803dff268438d34e844ba0b54 | e0ff587f507d049eeeb873e8488ba8bb10ac1a15 | refs/heads/develop | 2023-08-31T20:33:09.342385 | 2023-08-24T08:15:46 | 2023-08-24T08:15:46 | 100,947,017 | 30 | 25 | Apache-2.0 | 2023-09-12T21:52:34 | 2017-08-21T11:49:21 | Python | UTF-8 | Python | false | false | 8,429 | py | #
# Copyright 2021 Swiss Data Science Center (SDSC)
# A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and
# Eidgenössische Technische Hochschule Zürich (ETHZ).
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# Y... | [
"noreply@github.com"
] | SwissDataScienceCenter.noreply@github.com |
016e01530920eee745ba36888f79657ff27cb21d | 1f8812be38ff5dfc2bf8488e757077ebae1791be | /apps/askfm/migrations/0004_question_anonymous.py | 1478e6682af18fbd9cfb3e792902816f02d557ee | [
"MIT"
] | permissive | Morsa11/AskFmClone | d51e28a2568a2678af488fcbda63c2b1a23943e3 | 50ded5126926989627b7aa0fb445da5a8a4a5d68 | refs/heads/master | 2020-04-25T21:46:03.899930 | 2016-12-13T07:51:57 | 2016-12-13T07:51:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('askfm', '0003_auto_20160823_0038'),
]
operations = [
migrations.AddField(
model_name='question',
nam... | [
"shakib609@gmail.com"
] | shakib609@gmail.com |
9398a3090703eb99a86009ee5f9c25b5465dcd51 | 209aae9f40657d48461bed5e081c4f235f86090a | /2019/day2-2.py | 6027822c550d9b2f5a284bd7e34efa848f918fef | [] | no_license | scheidguy/Advent_of_Code | 6e791132157179928e1415f49467ad221ef1e258 | fbc09e4d26502b9a77e0c8d2840b11ec85a3c478 | refs/heads/main | 2023-03-05T12:34:15.343642 | 2021-02-20T00:27:58 | 2021-02-20T00:27:58 | 329,106,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 843 | py |
import copy
f = open('day2-1_input.txt')
# f = open('day2-1_debug.txt')
text = f.readlines()
f.close()
program = [int(i) for i in text[0].strip().split(',')]
target = 19690720
P = copy.deepcopy(program)
for noun in range(100):
for verb in range(100):
program = copy.deepcopy(P)
program[1] = noun... | [
"scheidguy@gmail.com"
] | scheidguy@gmail.com |
ab23504080ede563743c2867277a27dba9d1b2c4 | 065acd70109d206c4021954e68c960a631a6c5e3 | /shot_detector/filters/dsl/filter_condition_features.py | 0f001a19c2e2cb1545711dbabebd2c822dfea2c6 | [] | permissive | w495/python-video-shot-detector | bf2e3cc8175687c73cd01cf89441efc349f58d4d | 617ff45c9c3c96bbd9a975aef15f1b2697282b9c | refs/heads/master | 2022-12-12T02:29:24.771610 | 2017-05-15T00:38:22 | 2017-05-15T00:38:22 | 37,352,923 | 20 | 3 | BSD-3-Clause | 2022-11-22T01:15:45 | 2015-06-13T01:33:27 | Python | UTF-8 | Python | false | false | 1,779 | py | # -*- coding: utf8 -*-
"""
This is part of shot detector.
Produced by w495 at 2017.05.04 04:18:27
"""
from __future__ import absolute_import, division, print_function
import logging
from shot_detector.filters.base.base_plain_filter import BasePlainFilter
class FilterConditionFeatures(BasePlainFilter):
... | [
"w@w-495.ru"
] | w@w-495.ru |
a84213e3bd78eee8d8b8945938126d1d8f14b79c | eff4996954a41bc8edc98056be896bf5e5e7f5bd | /基礎編/19.continue/test.py | dff737b10034560f6ab2e5bf41b64566c6e95dcd | [] | no_license | tschs123/python-izm | 77675bf61e273bd51bb4ba6e3bf129150c68daef | 99d7f45a91f32b024b18fb9fc0e852f496f37891 | refs/heads/master | 2021-03-22T19:42:49.171446 | 2020-03-15T11:37:10 | 2020-03-15T11:37:10 | 247,395,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | #continueの基礎
for num in range(100):
if num % 10:
continue
print(num) | [
"username@example.com"
] | username@example.com |
374f2018883157cf160b2f2a8718c53e847003ed | 52151d0ae89622ffd5dcecdb626feb1f44e53761 | /lists/views.py | dfd1e1823872187eff8e4f38334b68962bfe4e13 | [] | no_license | jms7446/python-tdd | e77ef943fc50c0e8f9f6adb89cf0d2b47b022eb7 | 0fe47ecc0c66d302d361af39b7dc84f4915a411e | refs/heads/master | 2022-05-11T01:19:47.230300 | 2019-05-26T15:21:36 | 2019-05-26T15:21:36 | 95,457,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,004 | py | from django.shortcuts import render, redirect
from django.http import HttpRequest
from django.core.exceptions import ValidationError
from lists.models import Item, List
from lists.forms import ItemForm, ExistingListItemForm
def home_page(request: HttpRequest):
return render(request, 'home.html', context={'form':... | [
"jms7446@gmail.com"
] | jms7446@gmail.com |
c4f62f947dcc44df833367e426cdf7e6301a8eb5 | af7bc5841fd980c09da27c69dbd0cee3a9eb402a | /shop/migrations/0016_auto_20201117_2137.py | 57c8594ed7da9785c2eafce2f33406abeeea1bf4 | [] | no_license | homutovan/Django-diplom | 35c78f39f5fcdfeec7005e039242c7f4e6b19cef | 72f9f2dd49d2c760cee8cfe2609b278f8688cacc | refs/heads/master | 2023-01-14T10:54:22.498027 | 2020-11-20T20:51:48 | 2020-11-20T20:51:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | # Generated by Django 2.2.10 on 2020-11-17 21:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0015_auto_20201116_2341'),
]
operations = [
migrations.AlterField(
model_name='order',
name='amount_goods',... | [
"Smikhalcv@yandex.ru"
] | Smikhalcv@yandex.ru |
f3201f180930a559c2e0b5616789f4d32b47e9f5 | 1032ebbc585d0f9de33247ba6f30e2ffc8916aee | /slidescript/antlr3/dfa.py | bd923fbc85c5fca9c9724e0ea0ba9ebfffb724de | [] | no_license | mdornseif/Slidescript | 98db95cd55bc9838836b786cca1a4db18bb62375 | 60cc24049b75222edd4046afa08f6d1252709b33 | refs/heads/master | 2021-12-29T17:44:54.845035 | 2010-04-12T09:58:54 | 2010-04-12T09:58:54 | 544,207 | 0 | 0 | null | 2021-12-17T19:45:45 | 2010-03-03T08:02:10 | Python | UTF-8 | Python | false | false | 7,655 | py | """ANTLR3 runtime package"""
# begin[licence]
#
# [The "BSD licence"]
# Copyright (c) 2005-2008 Terence Parr
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code ... | [
"md@hudora.de"
] | md@hudora.de |
ad3583d44f92802f1bb6808f3ca8639686fdc5b6 | cf7d96bdd34205ede987f0985dfc9e3ab415ee06 | /reporting_module/sca_report/__init__.py | 16cf67d1b2d109191fe342f65c1b5d5bbaf2e891 | [] | no_license | hendrasaputra0501/btxjalan | afc93467d54a6f20ef6ac46f7359e964ad5d42a0 | d02bc085ad03efc982460d77f7af1eb5641db729 | refs/heads/master | 2020-12-30T11:02:05.416120 | 2017-07-31T01:34:08 | 2017-07-31T01:34:08 | 98,836,234 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 17 | py | import sca_report | [
"hendrasaputra0501@gmail.com"
] | hendrasaputra0501@gmail.com |
274b0189eedce0785051ebff12043aba0b2e200d | 80593bc3dd02e80381b801f96820b28e82d9641c | /lib/deprecated/softphone2.py | c7616fd09893b6e457ce124a6636d965e353d5e8 | [] | no_license | mccrorey48/mtaf_private | 39045c1a4b5288b9b9340e29b419590c3beba6bf | 0c65aaedca5189a377a78776f52773eac5645bfa | refs/heads/master | 2023-04-11T08:22:47.455990 | 2018-04-30T18:20:14 | 2018-04-30T18:20:14 | 105,019,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,833 | py | # softphone class that uses simple_pj
import random
import re
from time import time, sleep
import lib.logging_esi as logging_esi
from lib.wrappers import Trace
import lib.softphone.simple_pj as pj
from lib.softphone.wav_audio import create_wav_file
from lib.user_exception import UserException as Ux, UserTimeoutExcept... | [
"mmccrorey@esi-estech.com"
] | mmccrorey@esi-estech.com |
bda426d73a162db938d51aa0011a0c12b47e5d89 | 97caa124ffa5da9819c39a16c734165176d90349 | /projects/ideas/api/nba/nba_players.py | adde586a9f8bcb7246108819c3a5de18ab7919ce | [
"Apache-2.0"
] | permissive | YAtOff/python0 | dd684731065321fd52d475fd2b2105db59f5c19c | b5af5004131d64dd52d42746eddb72b6c43a13c7 | refs/heads/master | 2021-01-18T21:19:11.990434 | 2019-05-29T20:14:23 | 2019-05-29T20:14:23 | 44,601,010 | 6 | 7 | Apache-2.0 | 2019-10-31T22:45:21 | 2015-10-20T11:13:11 | Jupyter Notebook | UTF-8 | Python | false | false | 715 | py | """
NBA API
https://pypi.org/project/nba-api/
Преди да започнете инсталирайте:
pip install nba_api
https://github.com/swar/nba_api
"""
from nba_api.stats.static import players
from nba_api.stats.endpoints import commonplayerinfo
name = ""
while name != "exit":
name = input("Player name: ")
result = players... | [
"yavor.atov@gmail.com"
] | yavor.atov@gmail.com |
2564ea2977644b8d4ec91ec350761e03c7cfff6f | f9e3a0fb511470561d3d94bc984dafaee06000cb | /9780596009250/PP3E-Examples-1.2/Examples/PP3E/System/Filetools/site-forward.py | 43c772418aad4c045863a31bed676eaa7d153913 | [
"LicenseRef-scancode-oreilly-notice"
] | permissive | Sorath93/Programming-Python-book | 359b6fff4e17b44b9842662f484bbafb490cfd3d | ebe4c93e265edd4ae135491bd2f96904d08a911c | refs/heads/master | 2022-12-03T01:49:07.815439 | 2020-08-16T22:19:38 | 2020-08-16T22:19:38 | 287,775,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,888 | py | ###########################################################################
# Create forward link pages for relocating a web site.
# Generates one page for every existing site file; upload the generated
# files to your old web site. Performance note: the first 2 str.replace
# calls could be moved out of the for lo... | [
"Sorath.Soomro@isode.com"
] | Sorath.Soomro@isode.com |
ef153fa9651dace4d24ab5d1475eee7afaf808cb | 6cd690fb01e100f440289ea8fe7342bb58d37e78 | /tests/elemental/combat_elemental_tests.py | 1e175b4d862b30ee622ca4db805356341ff523d9 | [] | no_license | Hammerlord/Monbot | 6db8308ae492d7cfbb6f1bdff909105129924269 | fde8177d9170dddd958a89068a560008259d6e24 | refs/heads/master | 2020-03-07T16:43:20.019123 | 2019-08-29T03:08:33 | 2019-08-29T03:08:33 | 127,591,188 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,556 | py | import unittest
from src.elemental.ability.abilities.wait import Wait
from src.elemental.ability.ability import Ability
from src.elemental.combat_elemental import CombatElemental
from src.elemental.elemental import Elemental
from tests.elemental.elemental_builder import CombatElementalBuilder, ElementalBuilder
class... | [
"nepharus@gmail.com"
] | nepharus@gmail.com |
30a1e31371ef290579d9c7c19f8771ad60bf07c6 | 6e631bd7f138abb9f7eb0d936a8615287248b697 | /Home/DaysBetween.py | 76d67e4c8f9b064e75254e0764b99006c53ced5b | [] | no_license | ankiwoong/Check_Io | 24494390a851fad91f173c5e81a4eedfad7cfe6e | f417dbf1c1cce316ca25d51d645e228e7b03bf9c | refs/heads/master | 2022-06-03T14:59:04.571112 | 2020-04-25T11:29:55 | 2020-04-25T11:29:55 | 254,514,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,621 | py | '''
Days Between
We have prepared a set of Editor's Choice Solutions. You will see them first after you solve the mission. In order to see all other solutions you should change the filter.
How old are you in a number of days? It's easy to calculate - just subtract your birthday from today. We could make this a real ch... | [
"ankiwoong@gmail.com"
] | ankiwoong@gmail.com |
de53426f1c73e86d0c2bf22d218d124d89f7947c | f9033131dc4d66ede2c5c22fcaa4a0be5b682152 | /BinaryTrees/Tasks/eolymp(3326).py | 504d4e87e8e265aa065e0b26f1c53ee7288a6ca3 | [] | no_license | Invalid-coder/Data-Structures-and-algorithms | 9bd755ce3d4eb11e605480db53302096c9874364 | 42c6eb8656e85b76f1c0043dcddc9c526ae12ba1 | refs/heads/main | 2023-04-29T08:40:34.661184 | 2021-05-19T10:57:37 | 2021-05-19T10:57:37 | 301,458,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,782 | py | class BinaryTree:
def __init__(self, key):
self.key = key
self.leftChild = None
self.rightChild = None
def hasLeft(self):
return not self.leftChild is None
def hasRight(self):
return not self.rightChild is None
def setLeft(self, key):
self.leftChild = B... | [
"gusevvovik@gmail.com"
] | gusevvovik@gmail.com |
60e71440b4fa46560d11572b5594307fa09e7b55 | e7af5a3e76e674be0a85628067fa494348d45123 | /Python-for-Finance-Second-Edition-master/Chapter12/c12_28_basic_income_best.py | 360b70b1ba061b5ab73780ecb6b715663f4dfd9d | [
"MIT"
] | permissive | SeyedShobeiri/Work | 8321ead6f11de8297fa18d70a450602f700f26fb | f758e758106fbd53236a7fadae42e4ec6a4e8244 | refs/heads/master | 2022-07-25T02:33:25.852521 | 2020-05-17T16:11:27 | 2020-05-17T16:11:27 | 264,706,380 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,820 | py |
"""
Name : c12_28_basic_income_best.py
Book : Python for Finance (2nd ed.)
Publisher: Packt Publishing Ltd.
Author : Yuxing Yan
Date : 6/6/2017
email : yany@canisius.edu
paulyxy@hotmail.com
original : https://gist.github.com/stucchio/7447067
"""
from pylab import *
from sci... | [
"shobeiri@math.uh.edu"
] | shobeiri@math.uh.edu |
1cf9bc616d68317e6e54b595f5fa04659ec0aa69 | c85b91bfdd7eb2fa5a7d6c6a9b722c8548c83105 | /vscode/extensions/ms-python.python-2020.3.69010/languageServer.0.5.31/Typeshed/third_party/2/kazoo/client.pyi | 683596f0fc6c615216bdead3db0ebdda388f94a5 | [
"MIT",
"Apache-2.0"
] | permissive | ryangniadek/.dotfiles | ddf52cece49c33664b56f01b17d476cf0f1fafb1 | be272baf6fb7d7cd4f4db1f6812b710196511ffe | refs/heads/master | 2021-01-14T07:43:12.516127 | 2020-03-22T20:27:22 | 2020-03-22T20:27:22 | 242,632,623 | 0 | 0 | MIT | 2020-09-12T17:28:01 | 2020-02-24T02:50:06 | Python | UTF-8 | Python | false | false | 3,879 | pyi | from typing import Any
string_types = ... # type: Any
bytes_types = ... # type: Any
LOST_STATES = ... # type: Any
ENVI_VERSION = ... # type: Any
ENVI_VERSION_KEY = ... # type: Any
log = ... # type: Any
class KazooClient:
logger = ... # type: Any
handler = ... # type: Any
auth_data = ..... | [
"ryan@gniadek.net"
] | ryan@gniadek.net |
83ebf0a66825f6e61ab543b4e72c1939cbe90293 | 57e148ea3ebc4a7476a661ce4332fdc15912934d | /cf 606 div 2 C.py | ee6cc6c8cbec456b68807eceb9a6cee0e076571c | [] | no_license | FahimSifnatul/online_problem_solving_with_FahimSifnatul_python_version | 20f99a59dda8083ac4cf220b0cd4b45b34262fa3 | 6e1e54b78ba5d64ba4bb5edee507277fe2c1a186 | refs/heads/master | 2022-12-24T10:57:06.212206 | 2020-10-07T05:29:54 | 2020-10-07T05:29:54 | 265,504,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | from sys import stdin,stdout
ans,pos = [], 0
for i in range(int(input())):
s = stdin.readline()
cnt, j, l = 0, 0, len(s)-2
while j <= l-2:
tmp = s[j] + s[j+1] + s[j+2]
if j <= l-4 and tmp+s[j+3]+s[j+4] == 'twone':
ans.append(str(j+3))
ans.append(' ')
cnt += 1
j += 5
... | [
"noreply@github.com"
] | FahimSifnatul.noreply@github.com |
b33d369d83f2a16e6a3d0e37e3be017bafa2bca5 | 432a38514b27aba3b3b5c3ddba0b2804ebff8222 | /drf_api/settings.py | 3e407d2deb300ae3ef3b49c88bd883ff912a0825 | [] | no_license | mdAshrafuddin/drf_api | 36b35f579fd7805bca2277389e5f3b1117b0a5dc | a3b95dd014a36c61f87b7caf304a31e2ad646f32 | refs/heads/main | 2023-02-21T02:00:45.577214 | 2021-01-21T13:43:23 | 2021-01-21T13:43:23 | 331,640,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,274 | py | """
Django settings for drf_api project.
Generated by 'django-admin startproject' using Django 3.1.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib... | [
"mdtanjil01753511918@gmail.com"
] | mdtanjil01753511918@gmail.com |
45de7de2ca65f57cb6a7a2c82425aa4a63f7f879 | 2127cabeeda296f7a6b692982872d91e8bdd3016 | /tests/test_schema_priority.py | 15535c1c3ad072aac439c0948434e442010679ea | [
"Apache-2.0"
] | permissive | nomilkinmyhome/dataclass_factory | 26059993af95509e386793c42fd743d6f08e1079 | 7bcbd395acd5c61806ae36042067a7f9882cec28 | refs/heads/master | 2022-11-18T21:51:40.308764 | 2020-03-26T08:51:08 | 2020-03-26T08:51:08 | 279,984,132 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,731 | py | from dataclasses import dataclass
from unittest import TestCase
from dataclass_factory import Factory, Schema
@dataclass
class Data:
a: str = ""
b: str = ""
c_: str = ""
_d: str = ""
class TestFactory(TestCase):
def test_only_mapping(self):
factory = Factory(
schemas={
... | [
"tishka17@mail.ru"
] | tishka17@mail.ru |
72fd3453bb6ac3f150bff9dbcaa458288016d216 | 8379cb63b570eb29c2d2e52b37960ea350fe6be3 | /datasets/create_bond_dataset.py | 953ce6f39ef64c0eccda9e81138d9b55caacd945 | [] | no_license | biotite-dev/biotite-util | 3ad622cee28a556ef37c2abf7dabee8f4ae91bfb | 3c5bcce9411c6f1bd5c12df91b1c091c5eff84ab | refs/heads/master | 2022-10-13T21:49:25.040376 | 2022-09-18T15:51:42 | 2022-09-18T15:51:42 | 152,449,276 | 1 | 1 | null | 2022-09-18T15:51:43 | 2018-10-10T15:46:49 | Python | UTF-8 | Python | false | false | 2,164 | py | import argparse
import msgpack
import biotite.structure as struc
import biotite.structure.io.pdbx as pdbx
BOND_ORDERS = {
("SING", "N") : struc.BondType.SINGLE,
("DOUB", "N") : struc.BondType.DOUBLE,
("TRIP", "N") : struc.BondType.TRIPLE,
("QUAD", "N") : struc.BondType.QUADRUPLE,
("SING", "Y") : s... | [
"patrick.kunzm@gmail.com"
] | patrick.kunzm@gmail.com |
83156090bb8b3b0a4cc1a33ac9e451f5d4f13a09 | 6a33cb94d4af1d8a7329ddc6c9d42f870c35bb2f | /python/100+/euler131.py | 4d34b9b3dbb1e9573a034fa5863f2228130191e4 | [] | no_license | vochong/project-euler | 836321cc8e7d2e7cdf22b3b136d44dcba74a8701 | 6a0c7103861ff825bf84800b6e2e62819a41e36d | refs/heads/master | 2020-04-29T10:41:48.487159 | 2018-09-19T00:13:34 | 2018-09-19T00:13:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | from fractions import gcd
def isPrime(n):
for i in range(2, int(n**0.5)+1):
if n % i == 0: return False
return True
def euler131():
m = 2
n = m-1
ps = 0
while m**3 - n**3 < 1000000:
p = m**3 - n**3
if isPrime(p): ps += 1
m += 1
n = m-1
return ps
if __name__ == "__main__":
print euler131() | [
"kueltz.anton@gmail.com"
] | kueltz.anton@gmail.com |
6bcbd7cb96b17a945779fd33d2772b582faa191c | 2ba8378d2028305c2582a2d5d16a91527d207040 | /Soilder.py | 1b6e9968b690cf80f1a63808b6568dd247d9e2ac | [] | no_license | giridhararao/guvi | 41bf15e7dbd8ca3494f2e7ada5b42737e80fefe8 | e67e245a2b31463f39087430bce0f7cf5bc92b4a | refs/heads/master | 2020-03-22T06:04:27.296180 | 2019-03-30T06:52:05 | 2019-03-30T06:52:05 | 139,610,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | def factors1(n) :
L = []
i = 2
cnt = 0
while n >1 :
while n%i == 0 :
cnt += 1
n //= i
i += 1
return cnt
n = int(input())
L = [input().split() for i in range(0,n)]
for i in range(0,n) :
a = 1
n, k = L[i]
n, k = int(n), int(k)
for i in range(k+1... | [
"noreply@github.com"
] | giridhararao.noreply@github.com |
ed430e4a8ec7376b2596b58d7285585e9507bec0 | 609a4bb18ffd8e93ef28da6762266d852c9aca54 | /src/h02_bert_embeddings/bert_per_word.py | 9343c3f703ec8633f3d6dd09f9e3c73e45675912 | [
"MIT"
] | permissive | tpimentelms/lexical-ambiguity-in-context | 0fe9a6835451bc2d5abcba65654e7049109ded67 | 5277b9e0f1a846b5fe93eeba1cf37de2d48cfc62 | refs/heads/main | 2023-05-31T03:25:34.499572 | 2021-06-02T15:04:37 | 2021-06-02T15:04:37 | 373,110,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,990 | py | import torch
import torch.nn as nn
from transformers import BertModel
from utils import constants
class BertPerWordModel(nn.Module):
# pylint: disable=arguments-differ
def __init__(self, bert_option):
super().__init__()
self.bert = self.get_bert(bert_option)
@staticmethod
def get_be... | [
"tiagopms@gmail.com"
] | tiagopms@gmail.com |
0479a264837198ef41a9305938f1a57efdcd97d3 | 75e8d0da60b0e9456058eee70ada47ed11e953a2 | /584A.py | db56edd5936777f92ff2e128d8c3d63cc31d75f5 | [] | no_license | smirnoffmg/codeforces | 87aa12596b4927e5b5620369a5d4fb52330c51f7 | 1b0e7feb051c7b7c5c4e46351e122a050d1561ac | refs/heads/master | 2021-10-11T10:09:24.019018 | 2019-01-24T13:54:35 | 2019-01-24T13:54:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | # -*- coding: utf-8 -*-
n, t = map(int, raw_input().split(' '))
if t == 10:
if n > 1:
print(10 ** (n - 1))
else:
print(-1)
else:
f = 10 ** (n - 1) % t
print(10 ** (n - 1) + (t-f))
| [
"smirnoffmg@gmail.com"
] | smirnoffmg@gmail.com |
a29184b368126daa37dbeb89a73cfc13478bb9a9 | c3dc08fe8319c9d71f10473d80b055ac8132530e | /challenge-173/roger-bell-west/python/ch-1.py | 3ee4659182a9b33fabe21f977355cec1a0bd03bc | [] | no_license | southpawgeek/perlweeklychallenge-club | d4b70d9d8e4314c4dfc4cf7a60ddf457bcaa7a1e | 63fb76188e132564e50feefd2d9d5b8491568948 | refs/heads/master | 2023-01-08T19:43:56.982828 | 2022-12-26T07:13:05 | 2022-12-26T07:13:05 | 241,471,631 | 1 | 0 | null | 2020-02-18T21:30:34 | 2020-02-18T21:30:33 | null | UTF-8 | Python | false | false | 809 | py | #! /usr/bin/python3
import unittest
def esthetic(n0, base):
n = n0
pdigit = 0
ch = False
while n > 0:
digit = n % base
if ch and abs(digit - pdigit) != 1:
return False
ch = True
pdigit = digit
n //= base
return True
def esthetic10(n):
return esthetic(n, 10)
class TestEsthetic(u... | [
"roger@firedrake.org"
] | roger@firedrake.org |
d8f05b966238a7358ae208514b580ac1cdfb8039 | 0792f5f7432ef3320c16e717671726289d1db3be | /filetest.py | 7c1f8dad9c01c68c7b9df6e8a0cdd1053bf2b2b9 | [] | no_license | hujiangyi/autoupgrade | 47a28ee9751d555a11d7697105b17af1f2d6c13c | 1f6cae3a264d4ce639283bda10df97e216d1fa40 | refs/heads/master | 2020-04-13T04:53:07.185244 | 2019-05-17T06:20:06 | 2019-05-17T06:20:06 | 162,974,411 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2014 jay <hujiangyi@dvt.dvt.com>
#
cmdfile = open('./collectDataCmd.txt', "r")
for line in cmdfile.readlines():
print line.strip() | [
"hujiangyi@dvt.dvt.com"
] | hujiangyi@dvt.dvt.com |
4330e3d6164c5d652c3158e70a747de0759ed0b0 | b7cd8c2db6d7dae81c5b15203640994c3022b51f | /tigger/cluda/ocl.py | 9550e84e5568cba5bff546c6e1f448af8f5f4112 | [
"MIT"
] | permissive | tnorth/reikna_old | 1dcc66e302f25a14108be35089f899a7277d8c94 | 0e77d785742151ed17c2637545ff28948d859e33 | refs/heads/master | 2020-12-25T05:30:16.434871 | 2013-02-08T17:08:00 | 2013-02-08T17:08:00 | 6,692,032 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,102 | py | from logging import error
import sys
import numpy
import pyopencl as cl
import pyopencl.array as clarray
import tigger.cluda as cluda
import tigger.cluda.dtypes as dtypes
from tigger.helpers import wrap_in_tuple, product
from tigger.cluda.kernel import render_prelude, render_template_source
from tigger.cluda.vsize im... | [
"bogdan@opanchuk.net"
] | bogdan@opanchuk.net |
2888b0395bdc3f6679dfc6bde5a66fad4551756e | 339901caa0cbb3bd2762ad83bb9f847c01b0df39 | /rice_RILs_mPing_scripts/Construction_of_recombination_bin_and_linkage_map/scripts/genotype/Tab2SNP.py | ec1d59a1b3f5eef7fce9a54aabae2c80828dece8 | [] | no_license | stajichlab/Dynamic_rice_publications | e592e83a4842eff7354e06e5368e6f7590b472ee | 93ac8732d64b7ab4831a0b0b9b1593efc5814805 | refs/heads/master | 2020-03-24T05:10:56.815367 | 2020-02-11T07:26:17 | 2020-02-11T07:26:17 | 142,477,743 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,522 | py | #!/opt/Python/2.7.3/bin/python
import sys
from collections import defaultdict
import numpy as np
import re
import os
import argparse
import glob
from Bio import SeqIO
import subprocess
import multiprocessing as mp
import gzip
def usage():
test="name"
message='''
python Tab2SNP.py --input RILs_ALL_bam_correct
... | [
"jinfeng7chen@gmail.com"
] | jinfeng7chen@gmail.com |
e41a51d9e86953535c20916340c517b758128b50 | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/django-1.5/tests/regressiontests/custom_managers_regress/tests.py | d5e38b14778ea6d5bf1050b8bc1042a5abb637f3 | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.5/tests/regressiontests/custom_managers_regress/tests.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
45689ce9ef1065b6e18e0fd34e1d78d680c0cb51 | 162eed4191aef4431f94a0db1ad4185b6daa6f67 | /supervised_learning/0x00-binary_classification/21-deep_neural_network.py | f28ab914fda9b74ef9fc8a9f068b6e0624e1b5b5 | [] | no_license | giovannyortegon/holbertonschool-machine_learning | d6897bfb492f9d266302930927416637be3c172d | 8cd5e0f837a5c0facbf73647dcc9c6a3b1b1b9e0 | refs/heads/master | 2022-12-31T15:34:20.489690 | 2020-10-24T03:37:01 | 2020-10-24T03:37:01 | 279,656,017 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,321 | py | #!/usr/bin/env python3
""" deep neural network """
import numpy as np
class DeepNeuralNetwork:
""" DeepNeuralNetwork - defines a deep neural network
"""
@staticmethod
def he_et_al(nx, layers):
""" The weights initialized using the He et al """
if type(layers) is not list or len(layers)... | [
"ortegon.giovanny@hotmail.com"
] | ortegon.giovanny@hotmail.com |
0ce1310744f3da08e0fa94833be91e0a0a8e6cbf | 0172fee2851e3d02b855a53d8b63b262d169e6a5 | /ptsites/sites/pttime.py | 75c6b76556862fd4b682da3f9345ccdd374cb347 | [
"MIT"
] | permissive | Tuohai-Li/flexget_qbittorrent_mod | 3f3f9df45680d27853f44bee6421ceb750d9d01e | 81e3bb473f82dce759da3795b2e89bfc7717d3bb | refs/heads/master | 2023-09-02T17:46:42.077469 | 2021-11-17T04:06:53 | 2021-11-17T04:06:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,472 | py | from ..schema.nexusphp import AttendanceHR
from ..schema.site_base import Work, SignState
from ..utils.net_utils import NetUtils
class MainClass(AttendanceHR):
URL = 'https://www.pttime.org/'
USER_CLASSES = {
'downloaded': [3221225472000, 16106127360000],
'share_ratio': [3.05, 4.55],
'... | [
"12468675@qq.com"
] | 12468675@qq.com |
c82569cd70f74e9a2395eb42b18ea0e8e570ef28 | 0693cce8efbeca806f4551c22dce60d5f392c5c9 | /contentful_management/content_type_resource_proxy.py | ee4655778b24c6a08f53eb004c1fabac287e1758 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | timwis/contentful-management.py | 2dc4b7389ca2136ee2a12b89812b18ef2a347e67 | d71a0e18205d1de821b41c7225e8244e786be7f3 | refs/heads/master | 2021-06-28T12:04:58.130393 | 2017-08-10T16:30:09 | 2017-08-10T16:32:50 | 103,517,328 | 0 | 0 | null | 2017-09-14T10:04:48 | 2017-09-14T10:04:48 | null | UTF-8 | Python | false | false | 1,557 | py | """
contentful_management.content_type_resource_proxy
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This module implements the ContentTypeResourceProxy class.
:copyright: (c) 2017 by Contentful GmbH.
:license: MIT, see LICENSE for more details.
"""
class ContentTypeResourceProxy(object):
"""Base class for c... | [
"david.litvakb@gmail.com"
] | david.litvakb@gmail.com |
16742bddb05036e20ed2557be42711b55d39a3d1 | 567e89b21aca23db5f14032889fdd1cb7c7700f7 | /test19.py | 47f860f38a388291628ba60b577d81da05f51c43 | [] | no_license | MarcPartensky/Python-2018 | 7ab83d42eb28b34bed88fc6fb77892e62094dd8d | 27d2a57a6b6d6cdaa883fd2ce55e1c5eefd13ccc | refs/heads/master | 2020-04-17T13:12:41.448439 | 2019-01-19T23:55:05 | 2019-01-19T23:55:05 | 166,605,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | import sys, select, os
i = 0
while True:
print(input(""))
| [
"marc.partensky@gmail.com"
] | marc.partensky@gmail.com |
1033b438cc562e7a9ed44ead113b464f37380f81 | 1e70fa970f3c0f7d71273b5aaf97e2dfdaf249ec | /axi/planner.py | 62a712bebc75653c3622814abd414afbfcadfb36 | [
"MIT"
] | permissive | sgentle/axi | fbbd423560078878f4fdcc2e5bb6354d04077634 | cc4551e990713aa28fd6a3e10634b825041f6e3e | refs/heads/master | 2021-04-06T15:32:58.904837 | 2018-03-08T11:30:37 | 2018-03-08T11:30:37 | 124,370,678 | 1 | 0 | null | 2018-03-08T09:45:20 | 2018-03-08T09:45:20 | null | UTF-8 | Python | false | false | 7,163 | py | from __future__ import division
from bisect import bisect
from collections import namedtuple
from math import sqrt, hypot
# a planner computes a motion profile for a list of (x, y) points
class Planner(object):
def __init__(self, acceleration, max_velocity, corner_factor):
self.acceleration = acceleration... | [
"fogleman@gmail.com"
] | fogleman@gmail.com |
be0ace15d0a17f5c8094cd0c651183e8263917e7 | c6cbc2adf3acd58c8892874d0172b9844129595f | /web_flask/3-python_route.py | a85c50ff586ccdb64ea212a5e68027cc3b9e586f | [] | no_license | Joldiazch/AirBnB_clone_v2 | 4dac319e03f94ba677e5a3e17801958223c78552 | a9c2d54991e2e956fe27c89ece0ecc3400b045c1 | refs/heads/master | 2021-05-25T21:12:54.056693 | 2020-04-22T23:52:46 | 2020-04-22T23:52:46 | 253,921,574 | 1 | 0 | null | 2020-04-07T21:59:16 | 2020-04-07T21:59:16 | null | UTF-8 | Python | false | false | 824 | py | #!/usr/bin/python3
""" that starts a Flask web application """
# import flask
from flask import Flask
app = Flask(__name__)
# strict_slashes allow that this route work with /my_route and /my_route/
@app.route('/', strict_slashes=False)
def root():
""" return Hello HBNB """
return 'Hello HBNB!'
@app.route(... | [
"jluis.diaz@udea.edu.co"
] | jluis.diaz@udea.edu.co |
4f824041f4d0d7bd13c488ef541522624434f08a | 90bc7032cda25da6541a976f37e5b9f491b70bd0 | /nrlbio/chimirna/lfc2cdf.py | 9c5e2d701dd00f6abf6a59d897007688e137812b | [] | no_license | afilipch/nrlbio | da89bb262e9b900b5b71cf14612ace9630263e61 | d05258e4b1e352130999a23e4d2b9717b8f834c9 | refs/heads/master | 2020-04-12T01:21:19.231931 | 2017-03-17T16:16:08 | 2017-03-17T16:16:08 | 52,795,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,907 | py | #! /usr/bin/python
'''produces table of LFC CDF for tables of genes'''
import sys;
import copy;
import os;
import argparse;
from collections import *;
import itertools
from scipy.stats import ks_2samp, mannwhitneyu
parser = argparse.ArgumentParser(description='Script outputs presence of certain binding modes in the ... | [
"afilipch@a58d7b47-41b6-4d21-bc94-2c2c30e24b6a"
] | afilipch@a58d7b47-41b6-4d21-bc94-2c2c30e24b6a |
9f38fdd55389eccffedf6e73cd9bedac9c27be08 | 9120120ee0b52f24c627759b0901afbc55347529 | /pygis_src/ch06_spatialite/sec3_access_sqlite_via_python/test_3_import_shapefile_x_x.py | 959744afe35441f3c6f3152ce4654d40af5fc49d | [] | no_license | xiaomozi/book_python_gis | d999b17833abe746a7be2683595f48b54071cd59 | 754fa10c17a20506146d8f409e035e4d4869ad3e | refs/heads/master | 2020-03-11T18:36:40.739267 | 2018-01-04T16:31:23 | 2018-01-04T16:31:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,180 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
###############################################################################
import os; import sqlite3 as sqlite
dbfile = 'xx_shapedb.sqlite'
if os.path.exists(dbfile): os.remove(dbfile)
db = sqlite.connect(dbfile)
db.enable_load_extension(True)
db.execute('SELECT load_... | [
"bukun@osgeo.cn"
] | bukun@osgeo.cn |
9de3642c57a0d6237c06147471395720fc4207a4 | 2af6a5c2d33e2046a1d25ae9dd66d349d3833940 | /res/scripts/client/gui/scaleform/daapi/view/meta/moduleinfometa.py | d7d29dd3d8f30586b5f883e94565df3dd822e3ea | [] | no_license | webiumsk/WOT-0.9.12-CT | e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2 | 2506e34bd6634ad500b6501f4ed4f04af3f43fa0 | refs/heads/master | 2021-01-10T01:38:38.080814 | 2015-11-11T00:08:04 | 2015-11-11T00:08:04 | 45,803,240 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 967 | py | # 2015.11.10 21:27:57 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/ModuleInfoMeta.py
from gui.Scaleform.framework.entities.abstract.AbstractWindowView import AbstractWindowView
class ModuleInfoMeta(AbstractWindowView):
def onCancelClick(self):
self._printOv... | [
"info@webium.sk"
] | info@webium.sk |
5bac41f8f6ba96763a05d3c22ca3bc5063f102a4 | fff80d8049aa19dacc01e48a21032fa74f069441 | /Chapter_15_Generating_Data/mpl_squares_correct.py | 6eb1554d6bb2d9a12e7bcb4d1c83c1173e396f52 | [
"MIT"
] | permissive | charliealpha094/Project_Data_Visualization | a77d5e8290de0fa416394e188e349bf198499ff1 | ccd55db58927dbbcfd57ab750fe7b21754c2b2dc | refs/heads/master | 2022-11-29T13:24:52.725995 | 2020-08-09T09:20:02 | 2020-08-09T09:20:02 | 285,671,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | #Done by Carlos Amaral (19/07/2020)
#Styling and correcting
import matplotlib.pyplot as plt
input_values = [1,2,3,4,5]
squares = [1, 4, 9, 16, 25]
plt.style.use('seaborn')
fig, ax = plt.subplots()
ax.plot(input_values, squares, linewidth = 3)
#Set chart title and label axes.
ax.set_title("Square Numbers", fonts... | [
"carlosamaral94@gmail.com"
] | carlosamaral94@gmail.com |
335642bb7e305c8a7e2f0448c2a1ec8d75c1a15b | 60dd6073a3284e24092620e430fd05be3157f48e | /tiago_public_ws/build/pal_gripper/pal_gripper_controller_configuration/catkin_generated/pkg.installspace.context.pc.py | 72d62140668fd30c806c4d71575a513fdfde1439 | [] | no_license | SakshayMahna/Programming-Robots-with-ROS | e94d4ec5973f76d49c81406f0de43795bb673c1e | 203d97463d07722fbe73bdc007d930b2ae3905f1 | refs/heads/master | 2020-07-11T07:28:00.547774 | 2019-10-19T08:05:26 | 2019-10-19T08:05:26 | 204,474,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "pal_gripper_controller_configuration"... | [
"sakshum19@gmail.com"
] | sakshum19@gmail.com |
999b8d39e8434c5a1188b45fd7c163f18721d4d2 | db3662b35d48cc2b34b48350db603bb08fd47e81 | /tf_api/arithmetic_experiment.py | eb4d6e474336695b88f01debfe787147f2456e1b | [] | no_license | JuneXia/handml | 70b4c172940e0e10b2775ec0dad462f2b08f47bf | 35c23568065178e48347b440851ad5a38db5f93e | refs/heads/master | 2020-04-02T01:59:23.073289 | 2020-02-11T02:57:16 | 2020-02-11T02:57:16 | 153,885,392 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,434 | py | # 各种算术运算实验
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
if __name__ == '__main__1':
# ref = tf.Variable([1, 2, 3, 4, 5, 6, 7, 8],dtype = tf.int32)
# indices = tf.constant([4, 3, 1, 7],dtype = tf.int32)
# updates = tf.constant([9, 10, 11, 12],dtype = tf.int32)
ref = tf.V... | [
"junxstudio@sina.com"
] | junxstudio@sina.com |
1cec5040d91a46de4c6181b2f40f9673101e9b6d | f8d2521a88e465eed01adc3981c7a173d5c2554b | /etc/educational/round0001-0025/round0003/a1.py | 852c5741db4bf0680c354c4cf3bf35dd431c8deb | [] | no_license | clarinet758/codeforces | b2a8a349bba40e7761a8ce50dd5ff9a57477b60d | d79870c47bdb109547891a0d076dd173d6d647cf | refs/heads/main | 2021-12-15T05:46:51.000160 | 2021-12-01T12:01:33 | 2021-12-01T12:01:33 | 41,968,658 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,028 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
import time
import sys
import io
import re
import math
import itertools
import collections
import bisect
#sys.stdin=file('input.txt')
#sys.stdout=file('output.txt','w')
#10**9+7
mod=1000000007
#mod=1777777777
pi=3.141592653589
IS=float('inf')
xy=[(1,0),(-1,0),(0,1),(0,-1)]
... | [
"clarinet758@gmail.com"
] | clarinet758@gmail.com |
18534c36016112cf39c8feb7b8f6c6f3149600d6 | f5ffd566166948c4202eb1e66bef44cf55a70033 | /openapi_client/model/single_group_obj.py | 488b753fff9c74b25461ac8e906c70079b56882d | [] | no_license | skyportal/skyportal_client | ed025ac6d23589238a9c133d712d4f113bbcb1c9 | 15514e4dfb16313e442d06f69f8477b4f0757eaa | refs/heads/master | 2023-02-10T02:54:20.757570 | 2021-01-05T02:18:03 | 2021-01-05T02:18:03 | 326,860,562 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,667 | py | """
Fritz: SkyPortal API
SkyPortal provides an API to access most of its underlying functionality. To use it, you will need an API token. This can be generated via the web application from your profile page or, if you are an admin, you may use the system provisioned token stored inside of `.tokens.yaml`. ### ... | [
"profjsb@gmail.com"
] | profjsb@gmail.com |
365149b42675dd45c83444b739330f8d68f7586e | d6de6311ab2794cd3cce36ae0d1e591330941e8a | /2019/day09/part1_and_2.py | 623945fb25630ccddae81196e6974a98fb25a7e6 | [] | no_license | candyer/Advent-of-Code | a5346cffb4b9b1f45691c7f1b8d45bfd480b3fc0 | d5c6758c5b1feb66c4afb8ee773085a3751d8b37 | refs/heads/master | 2022-03-27T23:07:42.712877 | 2019-12-12T23:11:54 | 2019-12-12T23:11:54 | 112,863,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,525 | py | import sys
from typing import List, Tuple, Dict
from collections import defaultdict
def breakDown(num: int) -> Tuple[int, List[int]]:
modes = list(map(int, str(num)[:-2][::-1]))
modes.extend([0] * (3 - len(modes)))
return (num % 100, modes)
def solve(d: Dict[int, int], inpt: int) -> int:
relative_base = 0
output... | [
"candyer@users.noreply.github.com"
] | candyer@users.noreply.github.com |
f8532b1c94622cc29700d629fee455cb052c8cc0 | 1aaaca67031d81eabb07e9e9fb1a4fcae9de7462 | /dictionary.py | 090cb29f273b4decfd6bba42bd4c69c4ede70104 | [] | no_license | supriyo-pal/Joy-Of-Computing-Using-Python-All-programms | 9e08bdf4c2a88cc360c0cb296b217230f0ae0b2c | bd450dfdbc879e0b200d03fa9106ece09456fa8c | refs/heads/main | 2023-01-21T07:28:02.312421 | 2020-12-02T09:18:08 | 2020-12-02T09:18:08 | 317,161,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Oct 12 10:24:41 2020
@author: Supriyo
"""
#dictionary is represented by {}
#example of dictionary {key:value}
conv_factor={'dollar':60,'euro': 80 }
print(conv_factor)
print(conv_factor["dollar"])
print(conv_factor["euro"]) | [
"noreply@github.com"
] | supriyo-pal.noreply@github.com |
5c77f798c033cb12c4cf21c9e04ca72aa05a8927 | ead94ab55e0dc5ff04964a23b16cc02ab3622188 | /src/commands/pendingsubscr.py | e90bca3836fe62c655cb330efdf290ad4acc1fdf | [] | no_license | caifti/openstack-security-integrations | 88d92d6fcfb2a5a438f3a7e98f2e738d7434476f | bddd51675fe0ad4123f23520f3fdc6a793bf7bbc | refs/heads/master | 2023-03-11T02:49:38.442233 | 2020-12-16T07:39:12 | 2020-12-16T07:39:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,475 | py | # Copyright (c) 2014 INFN - "Istituto Nazionale di Fisica Nucleare" - Italy
# 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/LIC... | [
"paolo.andreetto@pd.infn.it"
] | paolo.andreetto@pd.infn.it |
8570f0b581dbd4ad8bbf7a06e2040630abddadc0 | 9784a90cac667e8e0aaba0ca599b4255b215ec67 | /chainer_/datasets/svhn_cls_dataset.py | 41da30bcecc81e26b5d6dc68f2b4f4fc67cabb8f | [
"MIT"
] | permissive | osmr/imgclsmob | d2f48f01ca541b20119871393eca383001a96019 | f2993d3ce73a2f7ddba05da3891defb08547d504 | refs/heads/master | 2022-07-09T14:24:37.591824 | 2021-12-14T10:15:31 | 2021-12-14T10:15:31 | 140,285,687 | 3,017 | 624 | MIT | 2022-07-04T15:18:37 | 2018-07-09T12:57:46 | Python | UTF-8 | Python | false | false | 1,587 | py | """
SVHN classification dataset.
"""
import os
from chainer.dataset import DatasetMixin
from chainer.datasets.svhn import get_svhn
from .cifar10_cls_dataset import CIFAR10MetaInfo
class SVHN(DatasetMixin):
"""
SVHN image classification dataset from http://ufldl.stanford.edu/housenumbers/.
Each sample... | [
"osemery@gmail.com"
] | osemery@gmail.com |
2473d2a63db36b6ae3c726be1d617079d514ab75 | 7bbfc7dc130f31c2e78b1feb6ff48888e4985c08 | /static/main.py | c06dd9b40934e457fb3e2162b3acb5e0dc47e753 | [] | no_license | swappt/CodeIslands | 7ce80e6297c2280ec24b8f0d773ffc0242761d52 | ef5419eb668cbbc22a290ff00a5933dfe94c0653 | refs/heads/master | 2021-09-06T07:10:35.849987 | 2018-02-03T16:10:32 | 2018-02-03T16:10:32 | 105,559,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,054 | py | print('loading main.py')
from browser import document, alert, window, timer
from math import sin, cos, tan, radians
from random import choice
result = window.gebi('result')
start = window.gebi('start')
win = window.gebi('win')
challenges = window.gebi('challenges')
display = window.gebi('display')
map_ = window.geb... | [
"judewrs@gmail.com"
] | judewrs@gmail.com |
c738e7dd0a22c2c6d399f18ba00ba42343053ea5 | 90cad1df7b7d424feb8e71ff3d77e772d446afdf | /reebill/payment_dao.py | 7a26623a1f93df8ab5c4f36c04a68d01f167cc14 | [] | no_license | razagilani/billing | acb8044c22b4075250c583f599baafe3e09abc2e | fd2b20019eeedf0fcc781e5d81ff240be90c0b37 | refs/heads/master | 2021-05-01T14:46:32.138870 | 2016-03-09T18:55:09 | 2016-03-09T18:55:09 | 79,589,205 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,111 | py | from datetime import datetime
from sqlalchemy import and_
from core.model import Session, UtilityAccount
from reebill.exceptions import IssuedBillError
from reebill.reebill_model import ReeBillCustomer, Payment
class PaymentDAO(object):
'''CRUD for Payment objects. Some of these methods are used only in tests
... | [
"dklothe@skylineinnovations.com"
] | dklothe@skylineinnovations.com |
19e03a975d6e84656aa59f9380034203aaaba1c3 | d3fa8ded9d393ba9b03388ba7f05fc559cf31d1e | /Codes/antman/agent/framework/controllers/file.py | e53710b676cb8afb754414194c3a23579657a3a0 | [] | no_license | lengxu/YouYun | e20c4d8f553ccb245e96de177a67f776666e986f | b0ad8fd0b0e70dd2445cecb9ae7b00f7e0a20815 | refs/heads/master | 2020-09-13T22:30:49.642980 | 2017-11-27T03:13:34 | 2017-11-27T03:13:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,515 | py | # coding: utf-8
import nfs
import os
import logging
import time
from tornado import web, gen
from tornado.locks import Semaphore
from tornado.httpclient import AsyncHTTPClient
from framework import settings
from framework.config import config
MAX_BODY_SIZE = 4 * 1024.0 * 1024.0 * 1024.0 # 4GB
GMT_FORMAT = '%a, %d %b ... | [
"smartbrandnew@163.com"
] | smartbrandnew@163.com |
1dcce5aa67012ed2cdbf673010edcbb66619eacf | b58d01d25e1fe4d157834c3bd88d38bef5b07eff | /phy/cluster/manual/clustering.py | 82439ac5b85a7d51fc4e1c17f6c2daf35d79389f | [] | no_license | apeyrache/phy | 75f01f876c95d44dc08048eb87db09c5c3c19798 | 0c9b1c71666bb66d7856fab78decc7c2934c9027 | refs/heads/master | 2021-01-17T11:23:10.793863 | 2015-03-10T13:05:28 | 2015-03-10T13:05:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,041 | py | # -*- coding: utf-8 -*-
"""Clustering structure."""
#------------------------------------------------------------------------------
# Imports
#------------------------------------------------------------------------------
from collections import namedtuple, defaultdict, OrderedDict
from copy import deepcopy
import ... | [
"cyrille.rossant@gmail.com"
] | cyrille.rossant@gmail.com |
b7e9a84dfee84fe3a63a89a7b9e557c566d47949 | 0805420ce1890c36aa9e0cc1a782945464433ef6 | /client/eve/client/script/ui/structure/structureSettings/schedule/__init__.py | 2527ee24c593c6d6a1cfdf69e8d5bb20d7008db8 | [] | no_license | cnrat/dec-eve-serenity | 4ebc3b2ab8faa6e6714dbb72b7ebcf92c4b2d75c | 37519e66a5fbb0d7c417d5cf9778636991efbed8 | refs/heads/master | 2021-01-21T03:39:48.969227 | 2016-08-10T05:25:07 | 2016-08-10T05:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\eve\client\script\ui\structure\structureSettings\schedule\__init__.py
__author__ = 'bara' | [
"victorique.de.blois@asu.edu"
] | victorique.de.blois@asu.edu |
a88b50f072fc292e98b1924ee430d4fb78ab9eb7 | dc50eb6176b4f5609519e912bc5379cea3fac9d2 | /Learn/spider/21DaysOfDistributedSpider/ch06/jianshu_spider/jianshu_spider/start.py | 93c5f64fabc256f15c10cbb8676d97c8fddd221c | [] | no_license | shuxiangguo/Python | 890c09a028e660206a8b3a8c7ca094a6f642095d | 089b2795e1db113dea6333d8dee6803071921cab | refs/heads/master | 2020-04-06T10:28:17.851981 | 2018-12-20T04:39:03 | 2018-12-20T04:39:03 | 157,381,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | # encoding: utf-8
"""
@author: shuxiangguo
@file: start.py
@time: 2018-11-29 17:26:57
"""
from scrapy import cmdline
cmdline.execute("scrapy crawl js".split()) | [
"shuxiangguo7@gmail.com"
] | shuxiangguo7@gmail.com |
d82c316008ae3777ac502b60b15b2a6e27e8e845 | 7986ec6498e3f93967fa9bfe2b6a9d4056138293 | /Protheus_WebApp/Modules/SIGAPCP/MATA660TESTCASE.py | 16968c8e2418ee95143f196717d2106ec59cdfd2 | [
"MIT"
] | permissive | HelenaAdrignoli/tir-script-samples | 7d08973e30385551ef13df15e4410ac484554303 | bb4f4ab3a49f723216c93f66a4395e5aa328b846 | refs/heads/master | 2023-02-21T11:26:28.247316 | 2020-04-28T16:37:26 | 2020-04-28T16:37:26 | 257,304,757 | 0 | 0 | MIT | 2020-04-20T14:22:21 | 2020-04-20T14:22:20 | null | UTF-8 | Python | false | false | 1,304 | py | from tir import Webapp
import unittest
class MATA660(unittest.TestCase):
@classmethod
def setUpClass(inst):
inst.oHelper = Webapp()
inst.oHelper.Setup('SIGAPCP','26/04/2019','T1','D MG 01 ','10')
inst.oHelper.Program('MATA660')
def test_MATA660_001(self):
self.oHelper.SetButton('Outras Ações', 'Incluir')... | [
"hadrignoli@gmail.com"
] | hadrignoli@gmail.com |
b260ab5265f53119dfc20bd10fab69410b969e8d | 39a5908ff24b9a4d9b5e9a90f76ba248ec47fd39 | /mymultispider/mymultispider/spiders/myspd2.py | c1944c6bf3acf97d9f71130cedffe87a9a2df2b9 | [] | no_license | terroristhouse/crawler | 281b10ccc2490b4f1a86eae7ae819cf408f15bd8 | 3c501da46deef73b80e381d6d3c45cc049702d14 | refs/heads/master | 2020-12-27T03:28:20.586755 | 2020-09-08T03:43:56 | 2020-09-08T03:43:56 | 284,569,509 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | # -*- coding: utf-8 -*-
import scrapy
from mymultispider.items import Myspd2spiderItem
class Myspd2Spider(scrapy.Spider):
name = 'myspd2'
allowed_domains = ['sina.com.cn']
start_urls = ['http://sina.com.cn/']
# custom_settings = {
# 'ITEM_PIPELINES': {'mymultispider.pipelines.Myspd2spiderPipeli... | [
"867940410@qq.com"
] | 867940410@qq.com |
17f36f2e6c5b6dc04263fd98c3913c332d50c9a7 | 7cd30248342dc83e0b49409bed4b3df378b629b1 | /sampling_image_15channels.py | d5d3bc787979ea380c94ef835d399663a0d72d43 | [] | no_license | minhnd3796/NGUYENDUCMINH_CODE | d34fc5cb0c9ba4108faf500170a8bea5bdef1d04 | 9fb27777ca0d40018c7154f7be19b420cf391471 | refs/heads/master | 2021-04-06T20:47:34.958473 | 2018-06-12T08:36:33 | 2018-06-12T08:36:33 | 125,452,799 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,190 | py | import os
import numpy as np
import scipy.misc as misc
base_dir_train = "../ISPRS_semantic_labeling_Vaihingen/train_15channels"
base_dir_validate = "../ISPRS_semantic_labeling_Vaihingen/validate_15channels"
base_dir_annotations = "../ISPRS_semantic_labeling_Vaihingen/annotations"
base_dir_top = "../ISPRS_semantic_lab... | [
"gordonnguyen3796@gmail.com"
] | gordonnguyen3796@gmail.com |
1ad8e42d8d9f216254a022a78cade94d1ffdf242 | 25ebc03b92df764ff0a6c70c14c2848a49fe1b0b | /daily/20191209/example_metashape/conf2.py | 24069b8dfc3798d4637b5f160b6a247571a22e1b | [] | no_license | podhmo/individual-sandbox | 18db414fafd061568d0d5e993b8f8069867dfcfb | cafee43b4cf51a321f4e2c3f9949ac53eece4b15 | refs/heads/master | 2023-07-23T07:06:57.944539 | 2023-07-09T11:45:53 | 2023-07-09T11:45:53 | 61,940,197 | 6 | 0 | null | 2022-10-19T05:01:17 | 2016-06-25T11:27:04 | Python | UTF-8 | Python | false | false | 1,089 | py | from __future__ import annotations
import typing as t
import dataclasses
@dataclasses.dataclass
class Toplevel:
site_name: str = "Material for MkDocs"
class Theme:
name: str = "material"
language: str = "en"
class Palette:
primary: str = "indigo"
accent: str =... | [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
d7c44772d25a6fdde5ccc1ecb583a18f77d7c22e | 2c926b4847a44c7f831d47ed0160751d3248e8f4 | /venv/lib/python3.8/site-packages/hubspot/crm/objects/models/batch_input_simple_public_object_input.py | 20216ea23651ee62851a64e4df5154661908c214 | [] | no_license | Women-in-Tech-Society/WITS_Site | c42cd2c9abe1b5515b80be82dc876a6c3842e42a | 5dbf22f5ee5a36358f6f279af4c13d86d31653c5 | refs/heads/main | 2023-05-11T02:34:05.531902 | 2021-06-01T01:05:12 | 2021-06-01T01:05:12 | 278,658,100 | 0 | 5 | null | 2022-11-22T18:41:35 | 2020-07-10T14:43:28 | Python | UTF-8 | Python | false | false | 4,993 | py | # coding: utf-8
"""
CRM Objects
CRM objects such as companies, contacts, deals, line items, products, tickets, and quotes are standard objects in HubSpot’s CRM. These core building blocks support custom properties, store critical information, and play a central role in the HubSpot application. ## Supported O... | [
"mhuda@uwo.ca"
] | mhuda@uwo.ca |
c3c267c38c57dffabbb56aeea85b6750efebb684 | 57d964ebf76d2462f21017ec68e124b6728d8ccb | /setup.py | e663edcf79392ac1efe703d50ba0012944b55225 | [
"MIT"
] | permissive | chaeminlim/netron | a2983ada9d803549a3266e1a5922894b39226b26 | d75991128647a636425c746205b0a28a21d40e07 | refs/heads/master | 2021-01-15T03:54:05.742616 | 2020-03-05T10:45:53 | 2020-03-05T10:45:53 | 242,869,800 | 0 | 0 | MIT | 2020-02-24T23:56:50 | 2020-02-24T23:56:49 | null | UTF-8 | Python | false | false | 6,854 | py | #!/usr/bin/env python
import distutils
import io
import json
import os
import setuptools
import setuptools.command.build_py
import distutils.command.build
node_dependencies = [
( 'netron', [
'node_modules/d3/dist/d3.min.js',
'node_modules/dagre/dist/dagre.min.js',
'node_modules/handlebars... | [
"lutzroeder@users.noreply.github.com"
] | lutzroeder@users.noreply.github.com |
ded0b78eb650a9a7b1f02e68ec43f07f81a9da48 | 2b020a49e5c2bff241fd1a99fc31531ea2b6f8c1 | /pyLeetCode/S11_1_Container_With_Most_Water.py | 6e8aa6b416c2cb0808fe6774a90a5b807468c13c | [] | no_license | yangze01/algorithm | 7855461430dc0a5abcc8f1a94fda9318a0653e3e | 44968c3fd2ce02bd9ab18d02b487401a0d72c1a8 | refs/heads/master | 2021-01-11T11:09:54.668345 | 2018-04-08T15:04:11 | 2018-04-08T15:04:11 | 78,757,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py |
height = [1,2,3,4,5,6,7]
class Solution(object):
def maxArea(self,height):
max_val = 0
for i in range(0,len(height)-1):
for j in range(i+1,len(height)):
print(i,j)
tmp = (j-i)*min(height[i],height[j])
if(tmp>max_val):
m... | [
"858848101@qq.com"
] | 858848101@qq.com |
5330811aaf49a7feff3c2159e41445feaa2201d3 | 0c110eb32f2eaea5c65d40bda846ddc05757ced6 | /scripts_from_Astrocyte/scripts/mridataSort.py | 2ec9b124d72314d9b7234cf11aa592e10cf844cc | [
"BSD-2-Clause"
] | permissive | nyspisoccog/ks_scripts | 792148a288d1a9d808e397c1d2e93deda2580ff4 | 744b5a9dfa0f958062fc66e0331613faaaee5419 | refs/heads/master | 2021-01-18T14:22:25.291331 | 2018-10-15T13:08:24 | 2018-10-15T13:08:24 | 46,814,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,926 | py | import os, shutil, csv
src = '/media/katie/storage/PanicPTSD/data/raw_data'
dst = '/media/katie/storage/PanicPTSD/data-neworg/Panic/'
lst = '/media/katie/storage/PanicPTSD/data/PanicSubjListPHI.csv'
lst = open(lst)
def copy_and_rename(sub, exam, time):
for folder in os.listdir(src):
if folder == e... | [
"katherine@Katherines-MacBook-Pro.local"
] | katherine@Katherines-MacBook-Pro.local |
f6316387c1470593c9210fdc9d875d597262e49b | bb6ebff7a7f6140903d37905c350954ff6599091 | /third_party/openmax_dl/dl/dl.gyp | d43f546805dcdbd4d725192e3e9f3ecd3cc8e5a8 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0"
] | permissive | PDi-Communication-Systems-Inc/lollipop_external_chromium_org | faa6602bd6bfd9b9b6277ce3cd16df0bd26e7f2f | ccadf4e63dd34be157281f53fe213d09a8c66d2c | refs/heads/master | 2022-12-23T18:07:04.568931 | 2016-04-11T16:03:36 | 2016-04-11T16:03:36 | 53,677,925 | 0 | 1 | BSD-3-Clause | 2022-12-09T23:46:46 | 2016-03-11T15:49:07 | C++ | UTF-8 | Python | false | false | 10,916 | gyp | # Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
#
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file in the root of the source
# tree. An additional intellectual property rights grant can be found
# in the file PATENTS. All contributing proje... | [
"mrobbeloth@pdiarm.com"
] | mrobbeloth@pdiarm.com |
124e013441d004398f64e0732e3bf47043367432 | ce6271f3dc32cf374e4dde5e4666e80242e83fde | /grow/partials/partial_test.py | c9db7c2b496316826deeb59f55989568296bcb5e | [
"MIT"
] | permissive | kmcnellis/grow | 26ab42e051906a1aaa28e52aae585b5ed5c497a9 | 4787f5a01681ef0800e9b4388a56cdbc48209368 | refs/heads/master | 2020-04-18T09:44:35.950251 | 2019-01-24T22:05:06 | 2019-01-24T22:05:06 | 167,445,373 | 1 | 0 | MIT | 2019-01-24T22:07:44 | 2019-01-24T22:07:44 | null | UTF-8 | Python | false | false | 1,289 | py | """Test the pod partial."""
import unittest
from grow import storage
from grow.pods import pods
from grow.testing import testing
class PartialTestCase(unittest.TestCase):
"""Tests for partials."""
def setUp(self):
dir_path = testing.create_test_pod_dir()
self.pod = pods.Pod(dir_path, storage... | [
"randy@blinkk.com"
] | randy@blinkk.com |
972103bb17ed3d5a13dc49f753c7d97fdf963e30 | 705fa27fb794898a3ee52a4af8446d7ef8ea13f4 | /tests/constants/route_parser.py | 4d3a6dc8de7d6c0fb40031e61128aa7085a0f51e | [
"MIT"
] | permissive | Mause/pytransperth | 1612063a0c9276ca9b0ae7399b2e9d15598c5dc3 | 411c6a38b8451dc917927bdc4fdb70aeb9acd52b | refs/heads/master | 2022-07-20T00:24:39.252527 | 2014-06-19T07:23:43 | 2014-06-19T07:23:43 | 16,773,465 | 0 | 0 | MIT | 2022-07-06T19:27:24 | 2014-02-12T16:25:48 | Python | UTF-8 | Python | false | false | 1,628 | py | import os
from lxml.html import builder as E
from lxml.etree import HTML
PATH = os.path.dirname(__file__)
with open(os.path.join(PATH, 'header.html')) as fh:
HEADER = HTML(fh.read()).find('body/tr')
STEPS = E.HTML(
E.TD(
E.DIV(
E.TABLE('STEP1'),
E.TABLE('STEP2'),
E... | [
"jack.thatch@gmail.com"
] | jack.thatch@gmail.com |
d4d41250ca36686c6ae73595c77ed8af59c24f08 | bc86ba9fcbb19711e1af3891120a505d0da95a63 | /backend/mobile_12_dev_5928/urls.py | a8f3bd6fdb90b26e0566b75e6e456cc98ff17aec | [] | no_license | crowdbotics-apps/mobile-12-dev-5928 | 8c0281d1ee1ad08ad1cc47e6f0bfeafb630fb219 | d5a28035de34631d834f49931ada0c7b5c2b5324 | refs/heads/master | 2022-10-25T19:05:11.263550 | 2020-06-12T12:37:36 | 2020-06-12T12:37:36 | 271,712,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,964 | py | """mobile_12_dev_5928 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')
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
2be54c9eb80269c4b94a171aa565464b596c6fc1 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/240230d6f4f34654aed81c439a0398cd.py | 6166c2b7d7b980ccf4335bc4439fcae7d5daf5a5 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 491 | py | def hey(statement):
if is_silence(statement):
return 'Fine. Be that way!'
if is_yelling(statement):
return 'Whoa, chill out!'
if is_question(statement):
return 'Sure.'
else:
return 'Whatever.'
def is_silence(statement):
if statement.isspace() or not statement:
... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
940ee3c9cce97e80e85a1dcc48bf6688e73046d2 | bd649f51496a24a55a2327e658f31d6e03e2f602 | /InvTL/lm_py/py/apigen/project.py | 0f9fe198fd2c4884e281894e55ad3d2e3a5b2efb | [
"MIT"
] | permissive | mickg10/DARLAB | 6507530231f749e8fc1647f3a9bec22a20bebe46 | 0cd8d094fcaf60a48a3b32f15e836fcb48d93e74 | refs/heads/master | 2020-04-15T20:39:23.403215 | 2019-01-10T06:54:50 | 2019-01-10T06:54:50 | 16,510,433 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,264 | py | """ this contains the code that actually builds the pages using layout.py
building the docs happens in two passes: the first one takes care of
collecting contents and navigation items, the second builds the actual
HTML
"""
import py
from layout import LayoutPage
class Project(py.__.doc.confrest... | [
"root@darlab1.mickg.net"
] | root@darlab1.mickg.net |
dd9000bb994165c09b867fb4b448862822153bc1 | b891f38eb12eeafdbcec9deee2320acfaac3a7ad | /0x01-python-if_else_loops_functions/5-print_comb2.py | 54df4340c244496ec2e94b9a6613cb44bdfb060f | [] | no_license | davixcky/holbertonschool-higher_level_programming | bb112af3e18994a46584ac3e78385e46c3d918f6 | fe4cd0e95ee976b93bd47c85c2bc810049f568fa | refs/heads/master | 2023-01-11T00:41:03.145968 | 2020-09-22T22:55:53 | 2020-09-22T22:55:53 | 259,390,611 | 0 | 5 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | #!/usr/bin/python3
for number in range(0, 99):
print("{:02d}, ".format(number), end='')
print("99")
| [
"dvdizcky@gmail.com"
] | dvdizcky@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.