blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
356be04021b29b9a7c920c8ee1f2c281659bcfae | 771e8f04928486e0bf20bb0b40b1b2ba019facb1 | /flexx/ui/widgets/_bokeh.py | 722cfbc1ef29820da8a3bdbb08b361d39edb6ee9 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | Septaris/flexx | 61a015aff3e496a67fdb4faeb4bb8a65f11060b9 | 400c24908e6968575c470dc6a193d77e34f0e184 | refs/heads/master | 2020-07-27T06:05:18.532265 | 2016-11-10T11:20:35 | 2016-11-10T11:20:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,018 | py | """
Simple example:
.. UIExample:: 300
import numpy as np
from bokeh.plotting import figure
from flexx import app, ui, event
x = np.linspace(0, 6, 50)
p1 = figure()
p1.line(x, np.sin(x))
p2 = figure()
p2.line(x, np.cos(x))
class Example(ui.Widget):
... | [
"almar.klein@gmail.com"
] | almar.klein@gmail.com |
54b62b7b7cc6db6c7cbe755286e3326989fd0328 | c2f6722d51f119b9f588cbea4121d2f8fddafcd2 | /charm/src/charm.py | 2778d60d5801e202b179a9cb5b806e679a38ef23 | [] | no_license | facundobatista/blog | f4c670b48b52b0e651c7a89ad9de702abd16a39c | 4461457c185ef3949e0d6b1398b0a7feb4a68cde | refs/heads/master | 2023-07-09T09:02:17.503586 | 2023-07-04T00:36:22 | 2023-07-04T00:36:22 | 30,439,511 | 3 | 0 | null | 2019-01-24T15:43:51 | 2015-02-07T00:33:57 | PHP | UTF-8 | Python | false | false | 4,636 | py | #!/usr/bin/python3
import logging
import os
import shutil
import subprocess
from ops.charm import CharmBase
from ops.main import main
from ops.model import MaintenanceStatus, ActiveStatus
logger = logging.getLogger(__name__)
SYSTEM_DEPENDENCIES = ['git', 'python3-pip']
BASEDIR = '/var/lib'
BLOGDIR = os.path.join(B... | [
"facundo@taniquetil.com.ar"
] | facundo@taniquetil.com.ar |
a061a7e5344d6712ae1132dab40facb9d1b8f5ef | 05169e203974411667ab947298a74575b8a179e0 | /packages/jet_bridge_base/jet_bridge_base/exceptions/request_error.py | 54c434d84e57f4c0e76b79cd485556d1f636c7e4 | [
"MIT"
] | permissive | jet-admin/jet-bridge | f6b563e1801985063483ddb02e9e1c3301dc0612 | c53d30fb308eed5822083eaf71f641c4098610cc | refs/heads/master | 2023-09-01T14:31:42.261427 | 2023-08-24T13:54:34 | 2023-08-24T13:54:34 | 163,167,532 | 1,564 | 166 | MIT | 2023-03-18T03:20:04 | 2018-12-26T10:27:33 | Python | UTF-8 | Python | false | false | 418 | py | from jet_bridge_base import status
from jet_bridge_base.exceptions.validation_error import ValidationError
class RequestError(ValidationError):
default_detail = 'invalid request'
default_code = 'invalid_request'
default_status_code = status.HTTP_400_BAD_REQUEST
def __init__(self, request, *args, **kw... | [
"f1nal@cgaming.org"
] | f1nal@cgaming.org |
d0ea47dacf0ff5e78279bd188ae62cb6eb6b2b23 | 3a2efd4a86f90e618a2b575d3696be376aa9233a | /conjureup/maas.py | bcd6c51759ddbec1e6a6a906c2b57cdec48eb218 | [
"MIT"
] | permissive | come-maiz/conjure-up | 2a4cf0666e758d2ecabd4baed3c2178f3650cfa4 | 4a83ed060d15576066380151aa618db4b2b13018 | refs/heads/master | 2022-08-17T23:21:58.599680 | 2016-11-22T19:35:12 | 2016-11-22T19:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,040 | py | """ simple maas client
"""
import requests
from requests_oauthlib import OAuth1
class MaasClient:
API_VERSION = '2.0'
def __init__(self, server_address, consumer_key,
token_key, token_secret):
"""
Arguments:
server_address: maas server ip/hostname
consumer_k... | [
"battlemidget@users.noreply.github.com"
] | battlemidget@users.noreply.github.com |
673124bc1f89597c2192910250580b5a507a20ad | e1239451e55718ba3d69bee7c725b7165c81cf8d | /tests/unit_tests/test_tethys_quotas/test_handlers/test_base.py | 36e5ca27bbb8a98f645598cb7ec16f435265d054 | [
"BSD-2-Clause"
] | permissive | BYU-Hydroinformatics/tethys | d610b62e2d8960cf2449b62755442025bb2ada31 | 9f0223ddc619f1edee8d74bb96cccdfce0ccbd8f | refs/heads/master | 2022-02-01T05:31:13.275945 | 2022-01-07T21:10:01 | 2022-01-07T21:10:01 | 194,173,626 | 0 | 0 | BSD-2-Clause | 2021-01-23T22:50:34 | 2019-06-27T23:01:29 | Python | UTF-8 | Python | false | false | 3,474 | py | from unittest import mock
from django.test import TestCase
from django.contrib.auth.models import User
from tethys_apps.models import TethysApp
from django.db import transaction
from tethys_quotas.models.user_quota import UserQuota
from tethys_quotas.models.tethys_app_quota import TethysAppQuota
from tethys_quotas.mode... | [
"sdc50@byu.net"
] | sdc50@byu.net |
11b53fe551711887c02ddf7914111c6f4210958f | fd62d8096dc95923341cfac29f0209bfbea887b4 | /models_evaluation/xgboost/grid_search/jobs_test/5.0_0.07_0.0_100.0_10.0.job.py | 4c6f29b96074da8cae871a971d259728856fe7a6 | [] | no_license | Eulerianial/premise-selection-deepmath-style | 06c8f2f540bc7e3840c6db0a66c5b30b5f4257f9 | 8684a59b5d8beab1d02a3a7c568a16c790ea4b45 | refs/heads/master | 2021-07-17T17:04:13.472687 | 2017-10-25T13:54:44 | 2017-10-25T13:54:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,637 | py | import xgboost as xgb
import argparse
import sys
import os
from saving_loading import *
#####################################
p = {
"max_depth":int(5.0),
"eta":0.07,
"gamma":0.0,
"num_boost_round":int(100.0),
"early_stopping_rounds":int(10.0)
}
#####################################
if __name__ == ... | [
"bartoszpiotrowski@post.pl"
] | bartoszpiotrowski@post.pl |
7c3c1100c1998a16de8e5325d701a8eb72d83fbc | 42d33e5bd38f9213b53cdb344349529355441bc6 | /blog/views.py | 676409cb00d0b88ac7127aafeceb5f349d683507 | [] | no_license | daniellawson9999/my-first-blog | 1208e985a92cf767eb59048956fb556cf12b2610 | aa201c2742efa0d8c2025cfc1be93422dc9ec20e | refs/heads/master | 2021-05-14T17:48:56.340394 | 2018-01-02T23:20:36 | 2018-01-02T23:20:36 | 116,056,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,486 | py | from django.shortcuts import render
from django.utils import timezone
from .models import Post
from django.shortcuts import render, get_object_or_404
from .forms import PostForm
from django.shortcuts import redirect
def post_list(request):
posts = Post.objects.filter(published_date__lte=timezone.now()).order_by('p... | [
"daniellawson9999@gmail.com"
] | daniellawson9999@gmail.com |
f90829ea9ba9f4ca86d084890288a38645213540 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/nistData/atomic/gMonth/Schema+Instance/NISTXML-SV-IV-atomic-gMonth-maxExclusive-4-5.py | 95bf2bc113f811c8f84d49ab907ad06594cbb033 | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 331 | py | from output.models.nist_data.atomic.g_month.schema_instance.nistschema_sv_iv_atomic_g_month_max_exclusive_4_xsd.nistschema_sv_iv_atomic_g_month_max_exclusive_4 import NistschemaSvIvAtomicGMonthMaxExclusive4
from xsdata.models.datatype import XmlPeriod
obj = NistschemaSvIvAtomicGMonthMaxExclusive4(
value=XmlPeriod... | [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
69f8b386ba55629eb223c6e687bf920b9aa8ba04 | 111e6c08c9bfc7a3aeb22ddd69765cfdda2fd38d | /5/day05/app/migrations/0002_auto_20181116_1058.py | aec4177ae5f65509bc67f114359493b40c69e4b9 | [] | no_license | huaxiawudi/yz1806 | 1f9e16292a44f68f7a126fc5e4655f3663ef27b1 | 0bc9ef8f4bd8b8e0ed9c6416caa0e083ec61d3ea | refs/heads/master | 2020-04-07T08:54:53.319535 | 2018-11-20T04:15:45 | 2018-11-20T04:15:45 | 158,233,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2018-11-16 02:58
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('app', '0001_initial'),
]
operations = [
m... | [
"you@example.com"
] | you@example.com |
d1f14a87660963ddef73d8414834addc973cde51 | c934e7c27f0e72385218a14b4e2a7e94a747a360 | /google-cloud-sdk/lib/surface/run/jobs/describe.py | 8b74b8b1a99fbabcf0e686aed9d68b56f947e6b5 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | PrateekKhatri/gcloud_cli | 5f74b97494df4f61816026af9460b9c4d8e89431 | 849d09dd7863efecbdf4072a504e1554e119f6ae | refs/heads/master | 2023-03-27T05:53:53.796695 | 2021-03-10T04:08:14 | 2021-03-10T04:08:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,461 | py | # -*- coding: utf-8 -*- #
# 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 requir... | [
"actions@github.com"
] | actions@github.com |
59a138239bdb329fd67b6a6f99615a002f48fccc | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/greater_20200428124754.py | 6a38474d8c0f8dadb98d6dab1fbb5c227748e640 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | array = [13,7,6,12]
for index,number in enumerate(array):
next_greater = -1
for j in range(index+1,len(array)):
break
print(number,'===>',next_greater if number > array[j] else array[j])
| [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
80b3c359d4382fd850a3b07d83323bc4a26631c2 | bda892fd07e3879df21dcd1775c86269587e7e07 | /leetcode/0303_E_区域和检索 - 数组不可变.py | 5f1c5421cc709e6bcecae1b0cf45b0d5682c7d4d | [] | no_license | CrzRabbit/Python | 46923109b6e516820dd90f880f6603f1cc71ba11 | 055ace9f0ca4fb09326da77ae39e33173b3bde15 | refs/heads/master | 2021-12-23T15:44:46.539503 | 2021-09-23T09:32:42 | 2021-09-23T09:32:42 | 119,370,525 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,440 | py | '''
给定一个整数数组 nums,求出数组从索引 i 到 j(i ≤ j)范围内元素的总和,包含 i、j 两点。
实现 NumArray 类:
NumArray(int[] nums) 使用数组 nums 初始化对象
int sumRange(int i, int j) 返回数组 nums 从索引 i 到 j(i ≤ j)范围内元素的总和,包含 i、j 两点(也就是 sum(nums[i], nums[i + 1], ... , nums[j]))
示例:
输入:
["NumArray", "sumRange", "sumRange", "sumRange"]
[[[-2, 0, 3, -5,... | [
"1016864609@qq.com"
] | 1016864609@qq.com |
a0d74f2e8316674cd75f9c2e4ef6013ec3d2275d | 000c243b4c30bd089867f73ca1bcfede1c3ef801 | /catkin_ws/build_isolated/tf2_eigen/catkin_generated/pkg.develspace.context.pc.py | 7ae2baef93f64d7ef89dc1b0c5d5b070fac3ac38 | [] | no_license | dangkhoa1210/SLAM-AND-NAVIGATION-FOR-MOBILE-ROBOT-OUTDOOR-INDOOR- | b4d9bf2757d839d9766d512c2272731300320925 | 7273ea9e966353440d3993dcba112bc0a2262b98 | refs/heads/master | 2023-07-15T14:07:17.123812 | 2021-09-02T10:12:30 | 2021-09-02T10:12:30 | 402,361,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/khoa/catkin_ws/src/geometry2/tf2_eigen/include;/usr/include/eigen3".split(';') if "/home/khoa/catkin_ws/src/geometry2/tf2_eigen/include;/usr/include/eigen3" != "" else []
PROJECT_CATKIN_DEPENDS =... | [
"dangkhoaphamdang1210@gmail.com"
] | dangkhoaphamdang1210@gmail.com |
889ee93160f32f46c5a834f5b909e700f0933e26 | 3fc7a6ffc39390c8228b30b6d53a3429104bf5f3 | /August/directory-8-3/test.py | 1f0d916881adfaed2f248f3ddfc021c6d153d14b | [] | no_license | liuluyang/miller | a5463c0f9625570de2cf16a9844ed4c7f82dde76 | 786f286749972fb2c3a66e068a3874a00aa0f2ee | refs/heads/master | 2020-09-21T22:20:22.987833 | 2019-11-30T03:20:13 | 2019-11-30T03:20:13 | 224,952,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | # import reprlib
# print(reprlib.repr)
# from datetime import datetime
# print(format(datetime.now(), "%Y-%m-%d %H:%M:%S %p"))
# # 年月日 时分秒 上下午
# print(format(10, "b")) # "b" 表示 二进制
# print(format(10, "x")) # "x" 表示 十六进制
# # 以上两种都是 整数类型
# print(format(10, "f")) # "f" 表示浮点型
# print(format(2/3, "%")) # "%" 表示 ... | [
"1120773382@qq.com"
] | 1120773382@qq.com |
c7a411177d07e8cce8d0de8abc81c391a3a027ca | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2375/60585/311519.py | a4a3f77e3b6db159cc79e7236ed8f140a7c1fde0 | [] | 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 | 288 | py | N, M = [int(x) for x in input().split()]
edges = [] # 边集
vertices = [[i] for i in range(1, N+1)] # 点集
for i in range(M):
a, b, L = [int(x) for x in input().split()]
edges.append([L, a, b])
edges.sort() # 边按长度升序排列
nums = [] # 用来存储已选边变长 | [
"1069583789@qq.com"
] | 1069583789@qq.com |
f0b863d600476e278bcba026e95861aefd1e6236 | 6a6984544a4782e131510a81ed32cc0c545ab89c | /src/icetray/resources/test/context_abuse.py | d4ba6bd5ab79439315ea8f06f83ec9d5cbb97e61 | [] | no_license | wardVD/IceSimV05 | f342c035c900c0555fb301a501059c37057b5269 | 6ade23a2fd990694df4e81bed91f8d1fa1287d1f | refs/heads/master | 2020-11-27T21:41:05.707538 | 2016-09-02T09:45:50 | 2016-09-02T09:45:50 | 67,210,139 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py | #!/usr/bin/env python
from icecube import icetray, phys_services
from I3Tray import *
# Ensure that services can be passed directly (as a wrapped pointer),
# or via the context (as a string).
class UseRandom(icetray.I3Module):
def __init__(self, context):
icetray.I3Module.__init__(self, context)
... | [
"wardvandriessche@gmail.com"
] | wardvandriessche@gmail.com |
c8ff436b686a0930584416ffcb82250f8d31d0af | 6146d080087b21e36347408eea76598f4691ed67 | /code/stack1/4837-2.py | f27cf67fcd3144daa6ea855859c845fe223b5542 | [] | no_license | banggeut01/algorithm | 682c4c6e90179b8100f0272bf559dbeb1bea5a1d | 503b727134909f46e518c65f9a9aa58479a927e9 | refs/heads/master | 2020-06-27T14:07:51.927565 | 2019-12-19T03:48:30 | 2019-12-19T03:48:30 | 199,800,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | # 부분집합의 합 4837-2.py
# 백트래킹으로 풀어보기
# 가지치기 해보기
def subset(k, n, cnt, tmpsum): # cnt = 현재 선택한 원소수, tmp_sum: 원소들 합
global result, ele_cnt, setsum
if tmpsum > setsum:
return
if k == n:
if tmpsum == setsum and cnt == ele_cnt:
result += 1
return
subset(k + 1, n, cnt + 1, tm... | [
"genie121110@gmail.com"
] | genie121110@gmail.com |
2d4f361e34aed242fa6aac739a911dda7eb81782 | 2a54e8d6ed124c64abb9e075cc5524bb859ba0fa | /.history/1-Python-Basics/25-dictionary-keys_20200413193402.py | fb70974d357b77e40fbc319e628226a6d91b12a0 | [] | no_license | CaptainStorm21/Python-Foundation | 01b5fbaf7a913506518cf22e0339dd948e65cea1 | a385adeda74f43dd7fb2d99d326b0be23db25024 | refs/heads/master | 2021-05-23T01:29:18.885239 | 2020-04-23T19:18:06 | 2020-04-23T19:18:06 | 253,171,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | # Dictionary key has to be immutable
# do not create an array as a key
# for example [32]
game_archive = {
'weapons': [1,2,3],
'greeting': "Good day",
'is_Magic': True
}
print(game_archive['a'[1]])
| [
"tikana4@yahoo.com"
] | tikana4@yahoo.com |
f4794bef1a7d087afa8255c38b19b412cd5d9252 | 26b03741c4651eb2f076e51cd34d71f2fb826fcf | /dev/web/Rocky/src/accounts/migrations/0012_tollbillings.py | cfcf1021da40c7cb4f9f185d6b40428068d1a958 | [] | no_license | sreeram315/Rocky---Hardware-project-ATmega-Django-mySQL | 072fc8e9913f22dc0e47a73d29ace6ff1795ed0f | 1ef82b1914bdfc57866e7420e12bf4318cf3f030 | refs/heads/main | 2023-06-04T16:01:51.176564 | 2021-06-21T22:18:01 | 2021-06-21T22:18:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,287 | py | # Generated by Django 2.2.7 on 2020-04-03 10:16
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('vehicles', '0005_auto_20200403_0824'),
('tollgate', '0003_auto_20200402_1859'),
('accounts', '0011_auto_2020... | [
"sreerammaram2@gmail.com"
] | sreerammaram2@gmail.com |
6d8b7dac69f9f00dd5750a5decf91f9e94b9f378 | 16d7c6a3618c49bda9388126fb5e537a8d76431b | /p_metro.py | 4aad880310ed30443c0e15477ad3f3ffdc3a851f | [] | no_license | mikegleen/elementary | d673e5f1107668b151e1ebe600c798add5602fe1 | 11b2b8a387908283b965743ea47e5a1f3979bd03 | refs/heads/main | 2023-08-14T16:43:10.080770 | 2021-09-23T08:13:57 | 2021-09-23T08:13:57 | 409,232,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,736 | py | """
This is a transliteration of the Pascal program in "Murder at the
Metropolitan Club" in Elementary Pascal by Ledgard and Singer.
"""
unknown = 0
red = 1
black = 2
grey = 3
brown = 4
pincenez = 1
goldwatch = 2
rubyring = 3
tatteredcuffs = 4
colwoodley = 1
mrholman = 2
mrpope = 3
sirraymond = 4
SIRRAYMOND... | [
"mike.gleen@gmail.com"
] | mike.gleen@gmail.com |
08f18826e691751ffa9037049f378ee98d8ba9be | b51568ab53efdc11eaf62dc4b19cad1badb481c0 | /idiosync/test/__init__.py | 3bd66e2b52bf08f44155c84c44b42fd0aa1c5be7 | [] | no_license | mcb30/idiosync | 78b25b4b1b8616282c5d01bcb2fb5aa15bdcb8e2 | 068f6f75f1ef03173450963391dccc586d76aee4 | refs/heads/master | 2022-04-09T15:15:39.038897 | 2020-02-26T11:05:13 | 2020-02-27T12:00:42 | 228,376,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | """Unit tests"""
from .common import TestCase
from .replay import ReplayTestCase
from .sync import SynchronizerTestCase
from .sqlalchemy import SqlTestCase
| [
"mbrown@fensystems.co.uk"
] | mbrown@fensystems.co.uk |
ca8cdb9e79289398afb42be0f93fb2569498689e | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_fudges.py | ce3d740f76af3f86f3c3dd16ab1788a8c338edd1 | [
"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 | 231 | py |
from xai.brain.wordbase.verbs._fudge import _FUDGE
#calss header
class _FUDGES(_FUDGE, ):
def __init__(self,):
_FUDGE.__init__(self)
self.name = "FUDGES"
self.specie = 'verbs'
self.basic = "fudge"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
d9c645ea5226fd140087737862c5ecfc01385a45 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/batch_hand_response.py | 7bded391020d59a130e1f5c0729a4634d94d944a | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 2,419 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class BatchHandResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
d26474c7f9dd30ca35cc7fe4616824d627303d92 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03657/s458330232.py | a81d6dcb29751b87dc2594674720bd454c116ced | [] | 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 | 172 | py | a, b = map(int, raw_input().split())
if a%3 == 0:
print('Possible')
elif b%3 == 0:
print('Possible')
elif (a+b)%3 == 0:
print('Possible')
else:
print('Impossible') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
60d55e2ac17511c0563f951545d0dc0dcc8f5768 | 0c66e605e6e4129b09ea14dbb6aa353d18aaa027 | /diventi/accounts/migrations/0111_auto_20190430_1537.py | 42c898fe444f7857878dd86fd5e0be19dcdd5678 | [
"Apache-2.0"
] | permissive | flavoi/diventi | 58fbc8c947f387cbcc1ce607878a59a6f2b72313 | c0b1efe2baa3ff816d6ee9a8e86623f297973ded | refs/heads/master | 2023-07-20T09:32:35.897661 | 2023-07-11T19:44:26 | 2023-07-11T19:44:26 | 102,959,477 | 2 | 1 | Apache-2.0 | 2023-02-08T01:03:17 | 2017-09-09T14:10:51 | Python | UTF-8 | Python | false | false | 452 | py | # Generated by Django 2.1.7 on 2019-04-30 13:37
import diventi.accounts.models
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0110_auto_20190430_1537'),
]
operations = [
migrations.AlterModelManagers(
name='diventiuser'... | [
"flavius476@gmail.com"
] | flavius476@gmail.com |
24768dee48d4dce7a66867aa7fd9fd267cd02ba5 | 6cd3de9d6aa0c52602010aa857966d5dc4d57442 | /_unittests/ut_onnxrt/test_rt_valid_model_calibrated.py | d7fd5b6a08fb526188309ae8a946f29026803397 | [
"MIT"
] | permissive | xadupre/mlprodict | 2307ca96eafeeafff08d5322184399bb5dc1c37e | f82c8a26a60104948c67849b1c4af95ca812c153 | refs/heads/master | 2022-12-10T18:50:36.953032 | 2020-09-03T08:53:58 | 2020-09-03T08:53:58 | 292,824,744 | 1 | 0 | NOASSERTION | 2020-09-04T10:56:45 | 2020-09-04T10:56:44 | null | UTF-8 | Python | false | false | 1,469 | py | """
@brief test log(time=9s)
"""
import unittest
from logging import getLogger
from pyquickhelper.loghelper import fLOG
from pyquickhelper.pycode import ExtTestCase
from sklearn.exceptions import ConvergenceWarning
try:
from sklearn.utils._testing import ignore_warnings
except ImportError:
from sklearn.uti... | [
"xavier.dupre@gmail.com"
] | xavier.dupre@gmail.com |
123407c7394007036757a24f22b3cad4bf68371c | 041276f414a90b72ee1e1449aed1ff646d5eabe0 | /hadoop_yarn_spark/src/main/python/demo.py | a8ffaefcec63e56354554a0471466d44d26476a6 | [] | no_license | yennanliu/data_infra_repo | 73f94982735cb618823a33e0e87f44a4b98e1272 | 99fee0b73928beeaf387c36bce282bd6f75368ee | refs/heads/master | 2023-05-27T02:29:48.585989 | 2022-12-08T23:17:07 | 2022-12-08T23:17:07 | 167,244,678 | 5 | 0 | null | 2023-05-01T20:32:58 | 2019-01-23T19:54:49 | Python | UTF-8 | Python | false | false | 309 | py | from pyspark.sql import SparkSession
from pyspark import SparkConf, SparkContext
print ("Run Pyspark demo script ...")
conf = SparkConf().setAppName("spark demo job")
sc = SparkContext(conf=conf).getOrCreate()
data = [1,2,3,4]
RDD = sc.parallelize(data)
print (data)
print (RDD.collect())
print (RDD.count()) | [
"f339339@gmail.com"
] | f339339@gmail.com |
fa9dd9683897385acadfa8cc1ba729fe83050d9f | 76e62ddbfdfba19c80b37e855a4df67672ef0808 | /PINp/2014/TsivunchikDVnew/task_3_25.py | 65d2ec7c254955500fa0e0e8c7c1fbb09a4e8e76 | [
"Apache-2.0"
] | permissive | stasvorosh/pythonintask | 9d30f3cd492e89783b7221402375c1ebe4690baa | 8169ed26510022fe0d589f4013f11749131957df | refs/heads/master | 2021-01-17T16:49:32.778063 | 2016-10-10T14:08:04 | 2016-10-10T14:08:04 | 52,255,539 | 6 | 0 | null | 2016-02-22T07:33:16 | 2016-02-22T07:33:15 | null | UTF-8 | Python | false | false | 826 | py | # Задача 3. Вариант 25.
# Напишите программу, которая выводит имя "Алессандро Филипели", и запрашивает
# его псевдоним. Программа должна сцеплять две эти строки и выводить полученную
# строку, разделяя имя и псевдоним с помощью тире.
# Цивунчик Денис Владимирович
# 27.05.2012
name=input("Герой нашей программы - Алесса... | [
"stasyan.v@gmail.com"
] | stasyan.v@gmail.com |
48bf67b2ee5835734f0dc16bf0afa87c7cf0d3f2 | abcb66b9da5c7d817c1e42ca28173a630938a18c | /tests/data/test_pp/expected_abc001/abc001_3/codes/solve.py | c8ff0e627f7e5f31b0d3106e09d21a2a9fae6aa7 | [
"MIT"
] | permissive | kjnh10/pcm | 0f197e5d9f719938042d42fa73e50b4469e76691 | 85bcf805b9e9ed05c3babfe42acc7771ce57971b | refs/heads/master | 2021-08-16T13:08:04.417117 | 2021-06-08T01:28:59 | 2021-06-08T01:28:59 | 120,071,154 | 5 | 0 | MIT | 2020-06-27T14:11:50 | 2018-02-03T07:56:30 | Python | UTF-8 | Python | false | false | 1,288 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys # {{{
import os
import time
import re
from pydoc import help
import string
import math
from operator import itemgetter
from collections import Counter
from collections import deque
from collections import defaultdict as dd
import fractions
from heapq import hea... | [
"kojinho10@gmail.com"
] | kojinho10@gmail.com |
de2ca40238a984dd8fe329370a7bb230e11bc911 | 2ce27b05f45cef6ce3ae5c02b8e83e548def2fc6 | /BASICS/Operator Precedence.py | 6ff54dcc0243da40df24a57cc3a1cbb1316b15f3 | [] | no_license | Ajay2521/Python | 775b7d99736e83e4d0c37302b91d1413dd2c0d3b | a426dd7717de8a5e60e584d208ae7120bb84c1b3 | refs/heads/master | 2022-12-01T17:49:12.672061 | 2020-08-15T14:55:12 | 2020-08-15T14:55:12 | 273,632,074 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,535 | py | #In this lets see about "Operator Precedence" in Python Programming.
#Operator Precedence is used to which operator should be evaluated first.
#The precedence of the operators in Python is
#1) Exponent Operator - ( ** )
#2) Negation , unary puls and minus - ( ~ , + , - )
#3) The multiplication, divide, m... | [
"noreply@github.com"
] | Ajay2521.noreply@github.com |
f2de12fffcdea53ea52f009f190b84ce5d4a0a2a | c16ab2c9c675bdbca43a4603a14106790d9e7da2 | /lib/sqlalchemy_back/sqlalchemy/dialects/mssql/zxjdbc.py | 588ecd80e3893fd4ef083a133cceca111e406037 | [] | no_license | y2bishop2y/microengine | 7e7e8b5852188fcceb9559f9d8d339bf6257a0d7 | 2322fdce0718a06bdc0332682e8ef9e393f8e7af | refs/heads/master | 2021-01-01T18:38:17.250888 | 2013-03-20T08:21:53 | 2013-03-20T08:22:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,560 | py | # mssql/zxjdbc.py
# Copyright (C) 2005-2012 the SQLAlchemy authors and contributors <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""Support for the Microsoft SQL Server database via the zxjdbc JDBC
connector.
JDBC ... | [
"eberenbaum@okta.com"
] | eberenbaum@okta.com |
477d421807ed6e72753067df0b4f11f1ad472b02 | 2f6d017dedc68588b2615d65c1e8ca8bcdd90446 | /api/dynamic_tests_v2/kldiv_loss.py | 62cba7f677d8b7f3883b9f6acd87ca36cef1e419 | [] | no_license | hysunflower/benchmark | 70fc952a4eb1545208543627539d72e991cef78a | c14f99c15b4be9e11f56ea378ca15d9c3da23bab | refs/heads/master | 2022-06-30T07:04:14.986050 | 2022-06-15T02:43:04 | 2022-06-15T02:43:04 | 224,449,279 | 1 | 0 | null | 2019-11-27T14:29:29 | 2019-11-27T14:29:29 | null | UTF-8 | Python | false | false | 2,862 | py | # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | [
"noreply@github.com"
] | hysunflower.noreply@github.com |
419500b4b7c99363f3f845c53ec588bf1ee7729e | a83059ec56dea890e003201b7ccf3cc583d1410a | /core/admin.py | 6c60afebca0f7e3ba26f691934a804ec5328cfd1 | [] | no_license | leynos/canvassing | a1e22f355bea77674dbf67fd5831a34e50e46808 | 3320e657f7c79525ee56bed7d8d4c25f82eca746 | refs/heads/master | 2021-01-17T22:53:17.200718 | 2015-03-01T21:59:09 | 2015-03-01T21:59:09 | 31,497,784 | 0 | 0 | null | 2015-03-01T13:49:06 | 2015-03-01T13:49:05 | null | UTF-8 | Python | false | false | 934 | py | from django.contrib.gis import admin
from models import ElectoralRegistrationOffice, Contact, Domecile, Ward, Region
class DomecileAdmin(admin.ModelAdmin):
list_display = ('obj_name', 'postcode')
fields = (
"address_1", "address_2", "address_3", "address_4", "address_5", "address_6", "address_7", "add... | [
"scott.scotm@gmail.com"
] | scott.scotm@gmail.com |
3bebd5edec149a71ffded2d5f284d064cf5f3186 | f777d6cc5c713cb983119687fd6a6403355adfb4 | /flask_orm/manage.py | 7e73e662274f8f294502e81fc678ac5bbc8e0c28 | [
"BSD-2-Clause"
] | permissive | maozhiqiang/callcenter | 71304bb451482ec61ceafbcfc017472ac2de4dac | 65678718b9beadf61aa6786b43d7192f63b2cfee | refs/heads/master | 2021-09-05T15:14:05.250642 | 2018-01-12T07:33:37 | 2018-01-12T07:33:37 | 119,644,546 | 1 | 1 | null | 2018-01-31T06:24:55 | 2018-01-31T06:24:55 | null | UTF-8 | Python | false | false | 919 | py | #!/usr/bin/env python
import os
from flask_script import Manager, Server
from flask_script.commands import ShowUrls, Clean
from webapp import create_app, db
from webapp.models.user import User
# default to dev config because no one should use this in
# production anyway
env = os.environ.get('APP_ENV', 'dev')
app = cr... | [
"wuhaichao@aicyber.com"
] | wuhaichao@aicyber.com |
9c159ba30fbf8908ce7cb2139b6700a927c6b1ed | 155cbccc3ef3b8cba80629f2a26d7e76968a639c | /thelma/repositories/rdb/schema/views/moleculesuppliermoleculedesign.py | 9467b22460f9315892acb27b005d1570be941c18 | [
"MIT"
] | permissive | papagr/TheLMA | 1fc65f0a7d3a4b7f9bb2d201259efe5568c2bf78 | d2dc7a478ee5d24ccf3cc680888e712d482321d0 | refs/heads/master | 2022-12-24T20:05:28.229303 | 2020-09-26T13:57:48 | 2020-09-26T13:57:48 | 279,159,864 | 1 | 0 | MIT | 2020-07-12T22:40:36 | 2020-07-12T22:40:35 | null | UTF-8 | Python | false | false | 1,466 | py | """
This file is part of the TheLMA (THe Laboratory Management Application) project.
See LICENSE.txt for licensing, CONTRIBUTORS.txt for contributor information.
Molecule supplier molecule design view.
"""
from sqlalchemy.schema import ForeignKey
from sqlalchemy.sql import and_
from sqlalchemy.sql import select
from ... | [
"fogathmann@gmail.com"
] | fogathmann@gmail.com |
92c9bd8ce595bcaac6b2ac99de47dfe8cd7848f9 | 8ff12c53e31f134b9f39f59b9a6f7d4f9142cea7 | /python1/linklist/main.py | 4c392ab5db6574a71a157911c55302129627249f | [] | no_license | quhuohuo/python | 5b0a80dbec7d22a0b274e4a32d269e85d254718c | 5732c5974519da8e8919dab42b36ab0ab2c99b37 | refs/heads/master | 2021-06-13T11:41:12.356329 | 2017-04-07T08:58:05 | 2017-04-07T08:58:05 | 75,054,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | #!/usr/bin/python
from linklist import *
l = Linklist()
l.initlist([1,2,3,4,5])
l.show()
l.insert(3,10)
l.show()
l.delete(4)
l.show()
| [
"813559081@qq.com"
] | 813559081@qq.com |
1fffbcc4594bc7f203ab1dfcaaadec191e3761bb | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D11B/RECALCD11BUN.py | f676ace8f9a3ae28966cf2d45392b878de23c84e | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 1,545 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD11BUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'GEI', MIN: 1, MAX: 5},
{ID: 'NAD', MIN: 1, MAX: 9, LEVEL: [
{ID: 'CTA', MIN: 0, MAX: 1},
... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
0d0cc496d5edc9fc8f16cf72b91e50f3cf4f230b | 8a286a54913bf6d741d8c307f7427d11747ea134 | /PycharmProject/exception handling/list out of error.py | 77a31ea45847248c1b11df678c6f8416c2d98e0f | [] | no_license | Jitha-menon/jithapythonfiles | 4378d35081f939856ae0e00dddb5578a30b83e9f | d53fde0a020c3020fa958b8d3698600998ed830d | refs/heads/master | 2023-08-10T17:03:43.017156 | 2021-09-15T13:45:01 | 2021-09-15T13:45:01 | 402,320,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | lst=[1,2,3,4,5,6,7]
index=int(input("enter th index"))
try:
print(lst[index])
except:
print('not exist')
finally:
print('inside') | [
"jithamenon1994@gmail.com"
] | jithamenon1994@gmail.com |
7fd0b8b2cdbcbeec87b1b8f93900d840b9ba7eb1 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_chisel.py | 40e88be55bfc2f655491b08e5d86bd13db8a390b | [
"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 | 296 | py |
#calss header
class _CHISEL():
def __init__(self,):
self.name = "CHISEL"
self.definitions = [u'to use a chisel: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'verbs'
def run(self, obj1 = [], obj2 = []):
return self.jsondata
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
95efabeccbfdcf14223c25a876d945ec3bb73f7d | 11587d450eb274a4684a393bd1073ea7cf6e28bf | /codingtest/week08/level9_math2/Bertrand_postulate.py | eed5ec1fb57d2ef479e79b0cb047d7056f344034 | [] | no_license | Greek-and-Roman-God/Athena | 3b45869806ea06812e3d26661b159294fb49593b | 73a3a24df9667402258bff038325fd31cca36cf1 | refs/heads/main | 2023-05-28T23:04:10.760717 | 2021-06-13T04:39:31 | 2021-06-13T04:39:31 | 308,242,740 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | # 베르트랑 공준
prime=[True]*(123456*2)
prime[0]=False
prime[1]=False
end=int((123456*2)**0.5)+1
for i in range(2,end):
if prime[i]==True:
for j in range(i+i, 123456*2, i):
prime[j]=False
answer=[]
while True:
n=int(input())
if not n: break
print(prime[n+1:n*2+1].count(True))
| [
"yelin1106@naver.com"
] | yelin1106@naver.com |
843bdc7d32bf4d05e8493be2a636bbb19ba246bd | 930c207e245c320b108e9699bbbb036260a36d6a | /BRICK-RDFAlchemy/generatedCode/brick/brickschema/org/schema/_1_0_2/Brick/Discharge_Air_Flow_Reset_Low_Setpoint.py | 1186c80f40516bea06e7316ba8402d8403956bb4 | [] | no_license | InnovationSE/BRICK-Generated-By-OLGA | 24d278f543471e1ce622f5f45d9e305790181fff | 7874dfa450a8a2b6a6f9927c0f91f9c7d2abd4d2 | refs/heads/master | 2021-07-01T14:13:11.302860 | 2017-09-21T12:44:17 | 2017-09-21T12:44:17 | 104,251,784 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | from rdflib import Namespace, Graph, Literal, RDF, URIRef
from rdfalchemy.rdfSubject import rdfSubject
from rdfalchemy import rdfSingle, rdfMultiple, rdfList
from brick.brickschema.org.schema._1_0_2.Brick.Discharge_Air import Discharge_Air
from brick.brickschema.org.schema._1_0_2.Brick.Discharge_Air_Flow_Reset_Setpoin... | [
"Andre.Ponnouradjane@non.schneider-electric.com"
] | Andre.Ponnouradjane@non.schneider-electric.com |
bd9de8db654d0b49231b70acb2dd1c2afb964e20 | 45e376ae66b78b17788b1d3575b334b2cb1d0b1c | /checkov/terraform/checks/resource/azure/AppServiceSetHealthCheck.py | 1107a82fc2c70083403f4774b787d22ec05b4b5e | [
"Apache-2.0"
] | permissive | bridgecrewio/checkov | aeb8febed2ed90e61d5755f8f9d80b125362644d | e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d | refs/heads/main | 2023-08-31T06:57:21.990147 | 2023-08-30T23:01:47 | 2023-08-30T23:01:47 | 224,386,599 | 5,929 | 1,056 | Apache-2.0 | 2023-09-14T20:10:23 | 2019-11-27T08:55:14 | Python | UTF-8 | Python | false | false | 1,303 | py | from typing import Any
from checkov.common.models.consts import ANY_VALUE
from checkov.common.models.enums import CheckCategories
from checkov.terraform.checks.resource.base_resource_value_check import BaseResourceValueCheck
class AppServiceSetHealthCheck(BaseResourceValueCheck):
def __init__(self) -> None:
... | [
"noreply@github.com"
] | bridgecrewio.noreply@github.com |
bcee9d740952f1ec715cf5d8889b37bbea31f5fb | be62b7f40b3d7e14e559db15651da7b2f37c77b5 | /sailfish_flows/turbulent_flow_2d.py | 4b907b4ef43679e053388e826b597034574eed20 | [] | no_license | vastyellowNew/Flow-Sculpter | 0adf5636f0add760428c9d9db3845d1fc7f4248a | f62d0fa699d7d01e24795856fd87186dd1eb6f7e | refs/heads/master | 2020-05-22T14:15:55.991850 | 2018-02-20T04:32:12 | 2018-02-20T04:32:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,543 | py | """2D flow around a object in a channel.
Lift and drag coefficients of the object are measured using the
momentum exchange method.
Fully developed parabolic profile is prescribed at the inflow and
a constant pressure condition is prescribed at the outflow.
The results can be compared with:
[1] M. Breuer, J. Bern... | [
"loliverhennigh101@gmail.com"
] | loliverhennigh101@gmail.com |
02304d224718189155f722919432f13c6f2cf81f | 096b5937cab04037afe484aa11282e7cd7854a2a | /components/ally-http/ally/http/impl/processor/headers/accept.py | 0c44bafbc39bcddc57138e2edc9c3194fe859a89 | [] | no_license | bonomali/Ally-Py | 375bd2fd95c461cdc12f093d83a406ee2ea6d228 | a10cb774c8cbc5010950eed9342413846734fea7 | refs/heads/master | 2020-04-29T16:39:35.939971 | 2016-06-10T11:06:03 | 2016-06-10T11:06:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,180 | py | '''
Created on Jun 11, 2012
@package: ally core http
@copyright: 2012 Sourcefabric o.p.s.
@license: http://www.gnu.org/licenses/gpl-3.0.txt
@author: Gabriel Nistor
Provides the accept headers handling.
'''
from ally.container.ioc import injected
from ally.design.processor.attribute import requires, defines
from ally... | [
"gabriel.nistor@sourcefabric.org"
] | gabriel.nistor@sourcefabric.org |
4f304a6d33c84fd40a228ff72e063e37f765ee74 | ae3f23efcdc4b7fdd1c224043d0ece002955956e | /xplace/xplace/events/api.py | 7f3af04d76d2606a35eed9924ced2559a52e896a | [] | no_license | alexeysofin/xplace | 4466682fe76c808288d69f2808ddbca38a583bc4 | 9f12f066a62fae4e789bee94e5e554cc6de26d90 | refs/heads/master | 2023-01-12T01:02:40.137609 | 2021-02-14T20:41:30 | 2021-02-14T20:41:30 | 208,021,139 | 0 | 0 | null | 2023-01-04T10:18:46 | 2019-09-12T10:07:17 | Python | UTF-8 | Python | false | false | 386 | py | from celery.result import AsyncResult
from rest_framework.generics import RetrieveAPIView
from xplace.events import serializers
class MockQuerySet:
pass
class EventRetrieveAPIView(RetrieveAPIView):
queryset = MockQuerySet()
serializer_class = serializers.EventSerializer
def get_object(self):
... | [
"sofin.moffin"
] | sofin.moffin |
c4cde0f45965b9685eb49403adbf860074b95bdc | bc441bb06b8948288f110af63feda4e798f30225 | /ucpro_sdk/model/container/ingress_pb2.pyi | ae4065343cf63274105cbc088feadb34ef496f3c | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,669 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
)
from google.protobuf.internal.containers import (
RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedC... | [
"service@easyops.cn"
] | service@easyops.cn |
c8a92863730c3ca3e05fe2aa87b049e99904180d | 849a174efea976d4daed419b85668c2ba05fd2b9 | /datastructures/queue/max_width_of_binary_tree.py | 34dc4a238c36c449ccb9f76cb25265ca77297808 | [] | no_license | samyuktahegde/Python | 61e6fedbdd2a94b29e4475621afa6d5e98bf49b8 | b02fa6e908661a918e0024f508df0192d5553411 | refs/heads/master | 2018-09-18T20:27:55.980689 | 2018-08-09T05:49:33 | 2018-08-09T05:49:33 | 116,491,078 | 0 | 0 | null | 2018-02-05T05:33:53 | 2018-01-06T14:52:16 | null | UTF-8 | Python | false | false | 885 | py | class Node:
def __init__(self, data):
self.data = data
self.left = None
self.right = None
def get_max_width(root):
if root is None:
return 0
q = []
max_width = 0
q.insert(0, root)
while (q!= []):
count = len(q)
print(count)
... | [
"noreply@github.com"
] | samyuktahegde.noreply@github.com |
172ac6d25c6ec934ff0fb01490a179ef35e87592 | c7d889ce5cac6e32ce22caf5bd0fcb2e45d28d92 | /extra/dropbox/code.py | 2a0535e21cc736be58da1d4426c29dc207610274 | [] | no_license | hereismari/crackingTheCode | a99d05678609ac925f545abfb2d36585607938f3 | eb266251bdb264aac1f06236f7c70397dfdee116 | refs/heads/master | 2021-07-11T04:53:09.275724 | 2017-10-11T14:43:41 | 2017-10-11T14:43:41 | 60,911,032 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | n = 8
lamps = [[1, 6], [5, 6], [7, 3], [3, 2]]
queries = [[3, 4], [7, 6]]
def horizontal_compare(a, b):
if a[0] != b[0]:
return a[0] - b[0]
else:
return a[1] - b[1]
def vertical_compare(a, b):
if a[1] != b[1]:
return a[1] - b[1]
else:
return a[0] - b[0]
def diagonal_co... | [
"mariannelinharesm@gmail.com"
] | mariannelinharesm@gmail.com |
d8b66f294f4e9b67b0110a4859ee26c2c536373f | 84bf0086bfe7af894bbfba353f1884ae9f31c335 | /882. Reachable Nodes In Subdivided Graph/Python 3/solution.py | a0f0d5f5146a2e65821c04c9d50098de0303b22a | [] | no_license | HarrrrryLi/LeetCode | 7625d9ec3d7854f72e7aeeb0292960af06a78d05 | fe5c6936627c2459731ddda6f67422c217b3cc91 | refs/heads/master | 2020-04-12T23:57:12.387253 | 2020-01-16T02:22:26 | 2020-01-16T02:22:26 | 162,834,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | class Solution(object):
def reachableNodes(self, edges, M, N):
graph = collections.defaultdict(dict)
for node1, node2, nums in edges:
graph[node1][node2] = nums
graph[node2][node1] = nums
heap = [(0, 0)]
dist = {0: 0}
used = {}
result = 0
... | [
"lfrharry@gmail.com"
] | lfrharry@gmail.com |
c7b36ab9b288d45bf670ad1e183c61adbb07dc20 | 2ab3577f24cf934ab194141860b51db119fc5d23 | /classify.py | 05a80bd5b65e0dc02a48d16bb68ac01de9ba0ff1 | [] | no_license | anandpatel0099/CrimePredict | c7594142cb9658749aeac1879f510ea5de7254d6 | c46b4d5f44c3b1d37b233a059c2caaa083606a9f | refs/heads/master | 2020-03-28T05:12:43.935042 | 2018-09-07T16:29:26 | 2018-09-07T16:29:26 | 147,762,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,371 | py | from __future__ import division
import warnings
warnings.filterwarnings("ignore")
import trainClassifiers as tc
from nltk.classify import ClassifierI
from nltk.tokenize import TweetTokenizer
import re
import pickle
import nltk
from nltk.corpus import stopwords
stop_words = set(stopwords.words('english'))
tknzr = Twe... | [
"you@example.com"
] | you@example.com |
b64ed3f3c9cf7e0d998d024469d1ae2a76718874 | 4eed62d2b03e6f5c32c9883ac01bc66d9fe1205b | /src/forj/payment/backends/stripe.py | 4790228020ec322b8a7dafa4033a48fd31f94894 | [] | no_license | thoas/forj | 442475d4ff6ae06e72ad61f309968b7b530da7b8 | ef6e12217864e7489d94a836e2b87e4c24956519 | refs/heads/master | 2022-12-22T01:04:03.875055 | 2021-11-11T14:38:09 | 2021-11-11T14:38:09 | 97,319,831 | 1 | 0 | null | 2022-12-10T22:23:30 | 2017-07-15T14:08:13 | Jinja | UTF-8 | Python | false | false | 1,795 | py | from django.conf import settings
from django_hosts import reverse as reverse_full
from forj.payment.backends.base import Backend
import stripe
class StripeBackend(Backend):
def handle_order(self, order, **kwargs):
stripe_session = order.stripe_session
if not stripe_session:
cancel_... | [
"florent.messa@gmail.com"
] | florent.messa@gmail.com |
2d83717bfcd07d6e2513e995c708f43c90fff46c | 89bae02f23e787416fda894a128c9abfb4986515 | /metalearning/allennlp/allennlp/modules/stacked_bidirectional_lstm.py | ae586e5a3f4942f35214cdaecde7d2ab2db6c8ca | [
"Apache-2.0"
] | permissive | asheverdin/multilingual-interference | f2e64cebfffc749b080fa64860659922224e6e65 | 7bc1b5918142e3c84bea83c5a7f39e3f245172e9 | refs/heads/main | 2023-05-12T13:07:19.997696 | 2021-05-28T22:16:26 | 2021-05-28T22:16:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,607 | py | from typing import Optional, Tuple, List
import torch
from torch.nn.utils.rnn import PackedSequence, pack_padded_sequence, pad_packed_sequence
from allennlp.modules.augmented_lstm import AugmentedLstm
from allennlp.modules.input_variational_dropout import InputVariationalDropout
from allennlp.common.checks import ... | [
"lcur0308@test3.irc.sara.nl.irc.sara.nl"
] | lcur0308@test3.irc.sara.nl.irc.sara.nl |
5ea30ecd8e784c7810d9d8cbbd5e4da3f598b8bb | 9f6f31bb7fc79067d22bf61feeec03afce663bf2 | /Challenge_Longest_String_Chain.py | 2ada9e9e627f9cf1ec4283b226e0bc1486d2b8d4 | [] | no_license | elena0624/leetcode_practice | 8910fef20d5bf7ff0d749602f6aaf5cd4cfc856f | 393ca92a76f00335dd6f4830938d126b9c5af8bc | refs/heads/main | 2023-06-24T00:37:00.890871 | 2021-07-22T10:54:41 | 2021-07-22T10:54:41 | 349,133,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,204 | py | # My solution(slow- like approach1)
class Solution:
def longestStrChain(self, words: List[str]) -> int:
memo = collections.defaultdict(int)
def check_pre(cur_str):
if memo[cur_str]:
return memo[cur_str]
remove_chr = [cur_str[:k-1]+cur_str[k:] for k in range(1... | [
"daipeinew.dif02@g2.nctu.edu.tw"
] | daipeinew.dif02@g2.nctu.edu.tw |
5ebb1e5af5c3addf223a8b73a8a842d4853278a3 | f82e67dd5f496d9e6d42b4fad4fb92b6bfb7bf3e | /scripts/client/messenger/gui/scaleform/channels/bw_chat2/battle_controllers.py | 9586e2f448a3a3f702e7fbf7e060fde9ea19c8b1 | [] | no_license | webiumsk/WOT0.10.0 | 4e4413ed4e7b00e22fb85d25fdae9400cbb4e76b | a84f536c73f86d9e8fab559e97f88f99f2ad7e95 | refs/heads/master | 2021-01-09T21:55:00.662437 | 2015-10-23T20:46:45 | 2015-10-23T20:46:45 | 44,835,654 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,717 | py | # Embedded file name: scripts/client/messenger/gui/Scaleform/channels/bw_chat2/battle_controllers.py
from gui.battle_control import g_sessionProvider
from gui.shared import g_eventBus, EVENT_BUS_SCOPE
from gui.shared.events import MessengerEvent
from gui.battle_control.arena_info import isArenaInWaiting
from messenger.... | [
"info@webium.sk"
] | info@webium.sk |
56814097b9a3faf08e80a760fcb04ef4a944b5c2 | 09562880d8e18679f6dd9980851c9feeb2d2f9cf | /code/manim/law_of_cosines.py | d77f576d66fa0bd4ab36ef4f780af5bcf5ca386e | [
"MIT"
] | permissive | aav789/study-notes | 52fea8b71b7956a61bcd78f0fb5cb92929c4aa09 | 889b7f0c1d0adf6c316fc79e9519bead0c01b1c8 | refs/heads/master | 2023-08-22T04:37:06.848292 | 2022-12-13T01:48:38 | 2022-12-13T04:46:03 | 118,661,354 | 0 | 0 | MIT | 2022-12-15T01:14:23 | 2018-01-23T19:52:16 | Jupyter Notebook | UTF-8 | Python | false | false | 2,291 | py | from pathlib import Path
from manim import *
from numpy import array
from theme import Theme
config.background_color = WHITE
config.save_as_gif = True
config.pixel_height = 300
config.pixel_width = 300
config.medium_quality = True
config.output_file = Path(__file__).resolve().parent.parent.parent / Path('notes/_medi... | [
"lextoumbourou@gmail.com"
] | lextoumbourou@gmail.com |
111df07da246a52cb3672048e7a618d8ead1f22c | 99dd64265ef0df4aea7bf9171766bb0b2edda764 | /packs/vdx/actions/services_vrrp.py | b9cdf56f231ad64a41ef7cd30f2205defc546c4a | [
"Apache-2.0"
] | permissive | uken/st2contrib | faadc2c83d447337ae40d5a903015a2354cfef38 | 182af2fb6e26a1d002954b19a5cc7afc73307872 | refs/heads/master | 2021-07-04T08:49:24.341542 | 2016-10-03T20:02:54 | 2016-10-03T20:02:54 | 65,758,415 | 0 | 1 | Apache-2.0 | 2021-05-08T17:11:00 | 2016-08-15T19:21:40 | Python | UTF-8 | Python | false | false | 553 | py | from pynos import device
from st2actions.runners.pythonrunner import Action
class services_vrrp(Action):
def run(self, **kwargs):
conn = (str(kwargs.pop('ip')), str(kwargs.pop('port')))
auth = (str(kwargs.pop('username')), str(kwargs.pop('password')))
test = kwargs.pop('test', False)
... | [
"matthew99@gmail.com"
] | matthew99@gmail.com |
57ecd607661ca2298636d7e02bfa518c28403029 | 8fb846f4f4ac5fd417489d731eae8a8a1bdc77c3 | /rllab/policies/categorical_mlp_policy.py | 50bc2184cb102e86a6940d77f3b6779881b546d8 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | zhongwen/rllab | 0a9f9ea2d8995037b83aaae5853a299d5cf9e432 | d8239c05179fcc55d865db7ce933defa3baae24d | refs/heads/master | 2021-01-14T08:36:37.272071 | 2016-08-17T12:29:00 | 2016-08-17T12:29:00 | 65,801,245 | 1 | 1 | null | 2016-08-16T08:18:47 | 2016-08-16T08:18:46 | null | UTF-8 | Python | false | false | 2,999 | py | import lasagne.layers as L
import lasagne.nonlinearities as NL
from rllab.core.lasagne_powered import LasagnePowered
from rllab.core.network import MLP
from rllab.core.serializable import Serializable
from rllab.distributions.categorical import Categorical
from rllab.misc import ext
from rllab.misc.overrides import ov... | [
"dementrock@gmail.com"
] | dementrock@gmail.com |
424585f407e9d23401994fab23be6fcebf867c62 | 2a67dc681af4c4b9ef7a8e18c2ff75377dc5b44f | /aws.opsworks.Stack-python/__main__.py | 197dd13ec6c688ce2baa5c10942c625784a77534 | [] | no_license | ehubbard/templates-aws | e323b693a18234defe6bd56ffcc64095dc58e3a1 | 2ae2e7a5d05490078017fed6d132dcdde1f21c63 | refs/heads/master | 2022-11-17T13:53:14.531872 | 2020-07-10T21:56:27 | 2020-07-10T21:56:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | import pulumi
import pulumi_aws as aws
main = aws.opsworks.Stack("main",
custom_json="""{
"foobar": {
"version": "1.0.0"
}
}
""",
default_instance_profile_arn=aws_iam_instance_profile["opsworks"]["arn"],
region="us-west-1",
service_role_arn=aws_iam_role["opsworks"]["arn"],
tags={
"N... | [
"jvp@justinvp.com"
] | jvp@justinvp.com |
38092eff90f55ba3d866656a7f633bc2c798ded7 | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/io_vue_camera.py | 8bc3b12c4dffd13acf78241bc94bf36981ac4493 | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,201 | py | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program 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 2
# of the License, or (at your option) any later version.
#
# This program is ... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
7f0bdb6a3a0a8849f77fece29642f610d0abbb79 | bbe7d6d59ef6d7364ff06377df9658367a19c425 | /hood/DDHood.py | 545f0de9f65d65bbd009e3c0e3d1776d59c4057c | [
"Apache-2.0"
] | permissive | DedMemez/ODS-August-2017 | 1b45c912ad52ba81419c1596644d8db2a879bd9b | 5d6214732e3245f63bfa250e3e9c881cc2dc28ad | refs/heads/master | 2021-01-22T18:37:51.626942 | 2017-08-19T02:04:51 | 2017-08-19T02:04:51 | 100,762,513 | 0 | 8 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | # Fuck you Disyer. Stealing my fucking paypal. GET FUCKED: toontown.hood.DDHood
from panda3d.core import Fog
from toontown.safezone.DDSafeZoneLoader import DDSafeZoneLoader
from toontown.town.DDTownLoader import DDTownLoader
from toontown.toonbase import ToontownGlobals
from toontown.hood.ToonHood import ToonHood
... | [
"noreply@github.com"
] | DedMemez.noreply@github.com |
956fb85be89d8022d2e5ef25824387ab52fb153c | 78a340cc45babe2ed8ae1b542918074e95be19ff | /tests/test_pp.py | 7613544bd24719d1783d238a096ab8b9695f5c61 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | asteriogonzalez/pathos | 352f072dc84ca4a7065089bb1ee480c0c8ae79a2 | fe029d74dd267dc369b314771b63e6322a8968b2 | refs/heads/master | 2021-06-26T21:12:09.699688 | 2017-09-10T21:36:58 | 2017-09-10T21:36:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,027 | py | #!/usr/bin/env python
#
# Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
# Copyright (c) 1997-2016 California Institute of Technology.
# Copyright (c) 2016-2017 The Uncertainty Quantification Foundation.
# License: 3-clause BSD. The full license text is available at:
# - https://github.com/uqfoundation/pa... | [
"mmckerns@8bfda07e-5b16-0410-ab1d-fd04ec2748df"
] | mmckerns@8bfda07e-5b16-0410-ab1d-fd04ec2748df |
9dcd8247edd4bffc178a39df3efe894cb2225acf | 2dfb3a4dc389542d566dc3b84f09930c0dda96bd | /steamer/steamer/spiders/steamerpro.py | c30645922ee72bc3009b84482244fff236679857 | [
"MIT"
] | permissive | BenikaH/baseball-fangraphs-steamer-importer | c772cbcd0d5009217742becf84e2cb5b47763e78 | 5ef93f0b658557c4d0b300ca2275c68ed3fe198d | refs/heads/master | 2021-04-29T02:29:52.352886 | 2017-11-17T01:05:11 | 2017-11-17T01:05:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,305 | py | # -*- coding: utf-8 -*-
import decimal
import os
import re
import unicodecsv as csv
import urlparse
import scrapy
from ..items import Projection
PROFILE_URL = 'http://www.fangraphs.com/statss.aspx?playerid={player_id}'
GAMELOG_URL = 'http://www.fangraphs.com/statsd.aspx?playerid={player_id}&position={position}'
T... | [
"mattdennewitz@gmail.com"
] | mattdennewitz@gmail.com |
2cc1ef1fdeb9dbf741c4b1c271bdcedb025010bb | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2455/61132/301173.py | fccbe022e15e79afd0ed58e8ea6ea82612fed1ea | [] | 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 | 451 | py | def dfs1(l,tr,vi,u):
Sum=0
for i in l[u]:
if vi[i]==0:
vi[u]=1
Sum+=dfs1(l,tr,vi,i)
vi[u]=0
return max(0,Sum+tr[u])
t=int(input())
g = [[] for i in range(t)]
vi=[0 for i in range(t)]
tr=list(map(int,input().split()))
for j in range(t - 1):
u, v= map(int, inpu... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
a5dafa35859ac23707a802023d849f197d5a2fe3 | 2c74bb301f1ed83b79254944183ac5a18a639fdf | /tests/components/gdacs/test_config_flow.py | a928f5f5810f96b04e5227e73f21ba415730ec68 | [
"Apache-2.0"
] | permissive | Adminiuga/home-assistant | 5bec93007ddac1a268cc359bf7e48530c5f73b38 | dcf68d768e4f628d038f1fdd6e40bad713fbc222 | refs/heads/dev | 2023-02-22T22:03:31.013931 | 2022-11-09T00:27:20 | 2022-11-09T00:27:20 | 123,929,062 | 5 | 4 | Apache-2.0 | 2023-02-22T06:14:31 | 2018-03-05T14:11:09 | Python | UTF-8 | Python | false | false | 2,745 | py | """Define tests for the GDACS config flow."""
from datetime import timedelta
from unittest.mock import patch
import pytest
from homeassistant import config_entries, data_entry_flow
from homeassistant.components.gdacs import CONF_CATEGORIES, DOMAIN
from homeassistant.const import (
CONF_LATITUDE,
CONF_LONGITUD... | [
"noreply@github.com"
] | Adminiuga.noreply@github.com |
441df508ddc9788b150ae03c9867aa5800601813 | 2accfab4c9d731f8aa8a3504d160b78b8009feab | /bin/mogu_minerule | bf59aec94d1b9b0ff2fbfb6e090842cd2fb58d80 | [
"MIT"
] | permissive | stephenhky/MoguNumerics | 0e8d4976e6189cb937eb4a40a3eaf5d83a41474f | 0fd45408949e4be392b4e3f76bd1390a3734c53e | refs/heads/master | 2022-09-25T14:17:47.103598 | 2022-09-13T02:23:12 | 2022-09-13T02:23:12 | 73,148,212 | 11 | 5 | MIT | 2022-09-13T02:22:30 | 2016-11-08T04:13:47 | Python | UTF-8 | Python | false | false | 1,095 | #!/usr/bin/python
import argparse
def getArgParser():
parser = argparse.ArgumentParser(description='Mine association rules from transaction using apriori algorthm.')
parser.add_argument('filename',
help='the name of the file containing all transactions')
parser.add_argument('--minS... | [
"stephenhky@yahoo.com.hk"
] | stephenhky@yahoo.com.hk | |
3c8d7efe5fb6603bff19d9139414473aab53fd5f | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Docs/Controlling the Keyboard and Mouse/typer/tests/test_tutorial/test_first_steps/test_tutorial001.py | 8b1ed49a682caee1c6b6bbb011cfa87a2b9dbc44 | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:5684fa31b07b5cbaae3cad54697cdf736b9256b63666eb997aa9a1deb30c04c6
size 528
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
62b353c207d2649da82965225e9ab796b1fd211f | 26d63fd45a0b736c35c7883e71971a5c966fdaaf | /foodtruck/views/menu.py | 02fec7d98d8e9fd5e7ec8c08bab2e0c8ff6ad390 | [
"Apache-2.0"
] | permissive | germanschnyder/PieCrust2 | c85302e8ea5e6da29a7de45c0baa7e57336a2df7 | e57cb7939fb8e836cde3a452acf86b7926f47196 | refs/heads/master | 2020-12-14T07:19:41.733611 | 2016-07-04T07:22:30 | 2016-07-04T07:22:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,822 | py | from flask import g, request, url_for
from flask.ext.login import current_user
def get_menu_context():
entries = []
entries.append({
'url': '/',
'title': "Dashboard",
'icon': 'speedometer'})
site = g.site.piecrust_app
for s in site.sources:
if s.is_theme_source:
... | [
"ludovic@chabant.com"
] | ludovic@chabant.com |
5248d8d12f86b465e47a995f7730668f34d09359 | 12a6f15a0ed1af285459ea61707984c0a4fd368d | /code/bootstrap_web_py3/base_stream_processing_py3.py | f5ca9499a162f1464dcb9fcad4ea4e7eb3aef090 | [
"MIT"
] | permissive | NanoDataCenter/nano_data_center | 66ec84ef8f78a6d35238bd18c71bb774b38b37db | 76ad521e1a5139a37df80214af1413d2fd4ade60 | refs/heads/master | 2022-12-12T13:58:04.761671 | 2020-09-18T17:33:32 | 2020-09-18T17:33:32 | 119,457,568 | 2 | 2 | MIT | 2022-12-06T19:37:49 | 2018-01-29T23:58:26 | C | UTF-8 | Python | false | false | 5,416 | py |
class Base_Stream_Processing(object):
def format_data(self,stream_data,show_legend = False, title = "",title_x="",title_y="",ntick_x = 20,ntick_y=20):
return_value = {}
keys = list(stream_data[0]["data"].keys())
for i in keys:
new_key = i
new_key = new_key.repla... | [
"glenn-edgar@onyxengr.com"
] | glenn-edgar@onyxengr.com |
9946f89446b1a2dc0448b841bff76ac7b802ee94 | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DY1JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544841/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_414/run_cfg.py | 4f836fb620fb410f8bf057f54f91108c384518ef | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,494 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DY1JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544841/HTT_24Jul_newTES_manzoni_... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
6654807c29f133193289368e44f8eff36eb912ed | bbb477cdd4ff797e524f4237dfe831d86a9f3680 | /helloPillow/Crawling/jsCrawling.py | 0a53edc1991b455ea51bdaf713c779c69f778863 | [] | no_license | ul8ksgdmy/myPythonpractice | 27f0323629d6fb8fcdf17d61b3b3bed699fced25 | 2e111aef3a9a5dacf9a71bcd03e6b37b35d8b6b1 | refs/heads/master | 2020-03-31T02:04:53.658065 | 2019-01-09T17:17:56 | 2019-01-09T17:17:56 | 151,807,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | import re
import requests
import json
url = 'https://askdjango.github.io/lv3/'
response = requests.get(url)
js_text = response.text
# print(js_text)
matched = re.search(r'var courses = (.*?);', js_text, re.S)
json_string = matched.group(1)
output_list = json.loads(json_string)
for output in output_list:
print ... | [
"clickmy7@gmail.com"
] | clickmy7@gmail.com |
2ecff235fb32fe010a07a5d523f8b37565a6fba3 | f160d992d0ea5fa4e36af0025b5637c8962f2a29 | /anoah_spider/diff/job_manager/management/commands/addjobs.py | 58ac7a248e523b42f0be87e58c65174826135240 | [] | no_license | Zachypentakill/Afanti_tiku | 369dde43a32cecb136eb1207bf4223f6decd9843 | aebee5b3d8dce76f95620cb52fda5a0f19965945 | refs/heads/master | 2021-07-11T15:59:03.099600 | 2017-10-11T10:27:43 | 2017-10-11T10:27:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 898 | py | from django.core.management.base import BaseCommand, CommandError
from job_manager.models import BaseSpiderTask
from rq.job import Job
from rq import Queue
import django_rq
import time
class Command(BaseCommand):
def handle(self, *args, **options):
redis_conn = django_rq.get_connection()
task_name... | [
"yanfeng.li@lejent.com"
] | yanfeng.li@lejent.com |
bb76cc8a80243ea1795b75e9c2461873a0925fd3 | 3bb9db98b70cc63151324499f650531fc21df59f | /src/users/admin.py | 63f8cded5826bf76f4feec078aefc3c6adbbdd6d | [
"MIT"
] | permissive | NestorMonroy/docker-django-blog | fbe724d53c565c0fb4b438e80efdcf8bb6b882c4 | a1aba04c4b56110a1dab0d4844c670c30f5d58dd | refs/heads/master | 2023-04-20T07:40:26.548043 | 2021-04-23T01:33:04 | 2021-04-23T01:33:04 | 354,080,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | """User models admin."""
# Django
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
# Models
from src.users.models import User, Profile, EmailActivation
admin.site.register(User)
admin.site.register(EmailActivation)
# class CustomUserAdmin(UserAdmin):
# """User model admin."""
# ... | [
"nestor.monroy.90@gmail.com"
] | nestor.monroy.90@gmail.com |
7548140bea9b3a1a455562e6200ac1c9d251e11a | 1afe3895ae8969ccba6d45e531ab5d59b8a41696 | /confession/user_app/migrations/0015_auto_20190121_2244.py | cd39603a0d2d1a691b154e68425607536964c6eb | [] | no_license | FZTeam/confession | 72e3ca0b2ab6016055b4ad6791f5a69aa3732368 | 7808d2810c65d0be956270f15d8ca489e1a9defe | refs/heads/master | 2022-12-12T08:30:37.603455 | 2019-02-25T15:56:31 | 2019-02-25T15:56:31 | 167,647,099 | 0 | 1 | null | 2022-07-06T19:59:26 | 2019-01-26T03:52:59 | Python | UTF-8 | Python | false | false | 859 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2019-01-21 22:44
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user_app', '0014_auto_20190121_2003'),
]
operations = [
migrations.RemoveF... | [
"2094531487@qq.com"
] | 2094531487@qq.com |
62c934a9c4eeaaedc8052799690d47d279391eff | 9c69e2fc689194237ef294071a9c14c6dfabe545 | /src/ultimate/leagues/migrations/0018_auto_20211011_2238.py | d32adc5c6fe52a8c701cc52c7b0c9c51216e6919 | [] | permissive | a2ultimate/ultimate-league-app | 69f0331f5efeb2883c00990eb7a59ac346a34c69 | 1b40e8a01950fc526db9b649b78ada71ec567624 | refs/heads/main | 2023-04-03T06:43:24.471566 | 2023-03-16T00:55:22 | 2023-03-16T00:55:22 | 8,152,035 | 4 | 2 | BSD-3-Clause | 2023-03-16T00:55:24 | 2013-02-12T03:15:25 | Python | UTF-8 | Python | false | false | 584 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2021-10-11 22:38
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('leagues', '0017_auto_20200204_2133'),
]
operations = [
migrations.AlterFie... | [
"ryanjdonnelly@gmail.com"
] | ryanjdonnelly@gmail.com |
fac1f895df0c3395f2af1e56c4a42df898a4f058 | 67c86d1514ae573d424716283a582c7d9238ff40 | /Chapter6/6-1.py | fcf58839ac80404f5e0a92e758bfeef9f175750e | [] | no_license | TheXJT/python_study | e55f53a020c0219e0c39a9b00fd93c4d1af17df9 | be5308f3bc2dadef283671de8aec5681c2dde8d6 | refs/heads/master | 2021-05-04T10:27:51.760751 | 2019-01-14T09:36:34 | 2019-01-14T09:36:34 | 45,985,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,866 | py | from abc import ABC,abstractmethod
from collections import namedtuple
Customer=namedtuple('Customer','name fidelity')
class LineItem:
def __init__(self,product,quantity,price):
self.product=product
self.quantity=quantity
self.price=price
def total(self):
return self.price*self.quantity
class Order:
def... | [
"1251284167@qq.com"
] | 1251284167@qq.com |
07ddf2d850674766b8e775facfd2104acfcb7b8f | e077aaaa60a39ba40855f36bc3a53f8adfc8fc08 | /tensorflow-master-tensorflow/tensorboard/tensorboard.py | 99d250d51ebc0d5f127bda8e6fecf857c080c0ee | [
"MIT"
] | permissive | xijunlee/tensorflow-learning | fe9dd1d9b0d3e79b7ed3cad16c4d25073ab14483 | 936c384667632c43ccd3d536b8136d46a978d5aa | refs/heads/master | 2022-11-01T13:27:22.423217 | 2018-12-05T07:19:34 | 2018-12-05T07:19:34 | 88,263,357 | 1 | 1 | MIT | 2022-10-11T19:19:53 | 2017-04-14T11:48:26 | C++ | UTF-8 | Python | false | false | 5,833 | py | # Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"xijun.lee@hotmail.com"
] | xijun.lee@hotmail.com |
8b37c66d85b3d11b36e2da359dca7d75e8edd7a5 | 1ba8d8ae275524a2ac61226dca4a21972cf6c355 | /Deep_Learning_with_TensorFlow/1.4.0/Chapter07/5. 输入文件队列.py | 4fb553930eabd49f28c0e2b934634ca18860ccfb | [
"MIT"
] | permissive | hyphenliu/TensorFlow_Google_Practice | 4e2da546f6056ddbbda26a2d9855cc96c2e3a708 | 0ea7d52a4056e5e53391a452a9bbd468175af7f5 | refs/heads/master | 2020-09-28T17:13:05.032238 | 2018-07-18T08:07:34 | 2018-07-18T08:07:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,402 | py | import tensorflow as tf
# #### 1. 生成文件存储样例数据。
# 创建TFRecord文件的帮助函数
def _int64_feature(value):
return tf.train.Feature(int64_list=tf.train.Int64List(value=[value]))
num_shards = 2 # 定义总共写入多少文件
instances_per_shard = 2 # 定义每个文件写入有多少个数据
for i in range(num_shards):
# 将数据分为多个文件时,可以将不同文件以类似0000n-of-0000m的后缀加一区分。其... | [
"1786546913@qq.com"
] | 1786546913@qq.com |
a8420590334204c327c1c512e339444e95af279b | ec75eca580d7dbafd4152afcb509b9022b20ef7a | /feedly/serializers/base.py | 5a0f34ba39cfa66929620b6f76188fec9af78d14 | [
"BSD-3-Clause"
] | permissive | shurph-quiet-harbor/Feedly | 43da57987f62b96383b37d97ee8762329cf4e8ed | 55a1b2f5d58fa572dded66f936119ee23b4f6507 | refs/heads/master | 2020-05-07T20:39:53.048270 | 2014-05-13T10:01:51 | 2014-05-13T10:01:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | from feedly.activity import Activity, AggregatedActivity
class BaseSerializer(object):
'''
The base serializer class, only defines the signature for
loads and dumps
It serializes Activity objects
'''
def check_type(self, data):
if not isinstance(data, Activity):
raise Va... | [
"thierryschellenbach@gmail.com"
] | thierryschellenbach@gmail.com |
12276b30cfd8283e3aae95a62b3a5890f44ea0f9 | af799a1857171554049d0251bb059f95cdcbd17e | /main.py | 6bda4723f771def5719b2e151dd43feda23cfb35 | [] | no_license | JalexDooo/BrainstormAneurysm | 5a74a9dff75de7bf33de4bcc1e5d62cde7e92ae7 | 903c51f405ca832696152dfd006dd3b34e4b530d | refs/heads/master | 2023-05-12T02:55:40.981339 | 2020-12-28T10:03:50 | 2020-12-28T10:03:50 | 277,969,053 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,785 | py | # coding=utf-8
import os
import gzip
import glob
import math
import numpy as np
import pandas as pd
import nibabel as nib
import matplotlib.pylab as plt
import matplotlib.cm as cm
import matplotlib.image as Image
from data.BraTS2020 import BraTS2020
import torch as t
import torch.nn as nn
import torch.optim as optim... | [
"393351322@qq.com"
] | 393351322@qq.com |
87d6574ce127c1327207690a788def56df4b518c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03785/s658155715.py | 7484e3629f2d29f2523abfa1a6be9f835066529a | [] | 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 | 796 | py | import sys
readline = sys.stdin.buffer.readline
sys.setrecursionlimit(10 ** 8)
INF = float('inf')
MOD = 10 ** 9 + 7
def main():
n, c, k = map(int, input().split())
t = [int(input()) for _ in range(n)]
t.sort()
waitP = 1
l = t[0]
ans = 0
for i in range(1, n):
if waitP == c:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
83b5b14943e3a488f943a6b31a203a508c1b23eb | d4c720f93631097ee048940d669e0859e85eabcf | /third_party/android_build_tools/lint/rebuild_baselines.py | e1e337809ea3360753de71bd9e17e26646971069 | [
"Apache-2.0",
"LGPL-2.0-or-later",
"MIT",
"GPL-1.0-or-later",
"BSD-3-Clause"
] | permissive | otcshare/chromium-src | 26a7372773b53b236784c51677c566dc0ad839e4 | 3b920d87437d9293f654de1f22d3ea341e7a8b55 | refs/heads/webnn | 2023-03-21T03:20:15.377034 | 2023-01-25T21:19:44 | 2023-01-25T21:19:44 | 209,262,645 | 18 | 21 | BSD-3-Clause | 2023-03-23T06:20:07 | 2019-09-18T08:52:07 | null | UTF-8 | Python | false | false | 6,062 | py | #!/usr/bin/env python3
# Copyright 2022 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Rebuilds baseline files by deleting the xml and re-building lint targets."""
import argparse
import logging
import pathlib
import subprocess
from typing ... | [
"chromium-scoped@luci-project-accounts.iam.gserviceaccount.com"
] | chromium-scoped@luci-project-accounts.iam.gserviceaccount.com |
44fc045717adec6577771858e7764c79062080d7 | e338aa48d405a71b897c0b71ce31a31d7eb9d1ab | /users/admin.py | 2373494f4c788d0df2f6183d8ceb8bb2fdbbf6af | [] | no_license | reteps/covidscreen | b9b44cb7b5e16caad2ac6cb968b9b6de704549cc | 049bc8beea055e757270f27903eb0eec756b6231 | refs/heads/master | 2023-02-12T07:07:57.861943 | 2021-01-09T00:53:48 | 2021-01-09T00:53:48 | 314,957,654 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | from django.contrib import admin
from users.models import Account
# Register your models here.
@admin.register(Account)
class AccountAdmin(admin.ModelAdmin):
pass | [
"peter.a.stenger@gmail.com"
] | peter.a.stenger@gmail.com |
3d141b90d4894c453f96d4e76ab20df80a9643dc | fc3f784c8d00f419b11cbde660fe68a91fb080ca | /algoritm/20상반기 코딩테스트/토마토/bj7569.py | c2596bb6bc65c91adc5c892c53ff9af9ec2214aa | [] | no_license | choo0618/TIL | 09f09c89c8141ba75bf92657ac39978913703637 | 70437a58015aecee8f3d86e6bfd0aa8dc11b5447 | refs/heads/master | 2021-06-25T07:01:34.246642 | 2020-12-21T04:57:13 | 2020-12-21T04:57:13 | 163,782,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 900 | py | import sys
sys.stdin = open('bj7569.txt','r')
dh=[0,0,0,0,1,-1]
dx=[1,0,-1,0,0,0]
dy=[0,1,0,-1,0,0]
def IS(z,y,x):
return -1<z<H and -1<y<N and -1<x<M
M,N,H=map(int,input().split())
A,Que,R,c=[],[],0,1
for h in range(H):
a=[]
for i in range(N):
I=[int(x)for x in input().split()]
a.append(I)... | [
"choo0618@naver.com"
] | choo0618@naver.com |
de006366a38042fcf8d674826ac7f339468a8dac | bf06bf980ef359615604d53567d1cc435a980b78 | /data/HW3/hw3_102.py | a964216cb7085725cb0317ff8b638b1ab40b6e27 | [] | no_license | am3030/IPT | dd22f5e104daa07a437efdf71fb58f55bcaf82d7 | 6851c19b2f25397f5d4079f66dbd19ba982245c5 | refs/heads/master | 2021-01-23T05:03:53.777868 | 2017-03-09T18:10:36 | 2017-03-09T18:10:36 | 86,270,526 | 0 | 0 | null | 2017-03-26T22:53:42 | 2017-03-26T22:53:42 | null | UTF-8 | Python | false | false | 807 | py |
BOIL_CELSIUS = 100
FREEZE_CELSIUS = 0
BOIL_KELVIN = 373.15
FREEZE_KELVIN = 273.15
def main():
userTemp = float(input("What temperature is it?"" "))
tempType = str(input("Is that number in Kelvin or Celsius?"" "))
if(userTemp < FREEZE_CELSIUS and tempType == "C"):
print("You have a solid")
... | [
"mneary1@umbc.edu"
] | mneary1@umbc.edu |
486652351edbaade2226945e39a669b824a1c331 | 9114a65cb643c076452d7d51d87ce764b175d22a | /dsba6155project/data_pull/entity_tag_beam.py | 9d5d7161b28bbbada14d9e3eeb4d07e2810d5173 | [] | no_license | jananiarunachalam/dsba6155project | 827463a3570e060e2e58cc4e988a512bebdfc072 | 6cbcf9eda7aeb98b998d2653d9f9d5983b23442d | refs/heads/master | 2022-06-09T00:25:44.193250 | 2020-05-06T04:41:47 | 2020-05-06T04:41:47 | 261,603,534 | 0 | 0 | null | 2020-05-05T23:15:09 | 2020-05-05T23:15:08 | null | UTF-8 | Python | false | false | 2,712 | py | import apache_beam as beam
from apache_beam.options.pipeline_options import PipelineOptions
from apache_beam.io import ReadFromTextWithFilename
import logging
import pathlib
import spacy
import os
logging.basicConfig(level=logging.INFO)
class SpacyNLP():
nlp = spacy.load("en_core_web_md")
def getPathToRequ... | [
"abhijeetdtu@gmail.com"
] | abhijeetdtu@gmail.com |
0d86df4db69273d7b3a450ddfd0e900905d0d372 | 73f46235edfa4de3c985ec7adcedb4b97446ec61 | /task/urls.py | 3d8d323f21e9baa64e82563ba2ba715f61cefa7d | [] | no_license | a-bautista/mydashboard_tasks | b69b395ddcc8662d2d645c54869637a5aefdbd73 | 0b96ac2ca4c41815a175c1a7d864de0bd3ad650c | refs/heads/multi-container | 2023-05-01T07:09:03.526445 | 2022-07-09T17:08:49 | 2022-07-09T17:08:49 | 215,153,341 | 0 | 0 | null | 2023-04-21T20:38:39 | 2019-10-14T22:02:52 | JavaScript | UTF-8 | Python | false | false | 799 | py | from django.urls import path
# import the component task
from .views import (create_task, delete_task, update_task,
view_previous_tasks, view_previous_tasks_monthly, view_previous_tasks_yearly, retrieve_all, main_dashboard)
# Because I am redirecting the root address to the Task application, I need... | [
"alex.bautista.ramos.90@gmail.com"
] | alex.bautista.ramos.90@gmail.com |
79f80126d76023827cfc04fc2055db608cd05a6b | edac17fde865811fc69d0fd6badc4c9fd252aa12 | /Telescope/Map/TelescopeMap.py | a70e5b1e7023a181c1618f45a37d51490595d8cf | [] | no_license | hashimoto0106/Astronomy | 1ae9326f8f3053678c1ec872c9f9ea1ce1f1ff39 | 4ac4d4684d9ebb39cf9d9648867fe345fb609b5f | refs/heads/master | 2020-12-21T17:21:35.901475 | 2020-09-02T14:15:20 | 2020-09-02T14:15:20 | 236,501,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,005 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jun 27 19:07:28 2019
@author: PC
"""
import folium
import pandas as pd
# from CAL_RHO import CAL_RHO
from tqdm import tqdm
import geocoder
import numpy as np
CSV_FILE = "TelescopeDB.csv"
def main():
csv_telescope = pd.read_csv(filepath_or_buffer=CSV_FILE,
... | [
"hashimoto0106@gmail.com"
] | hashimoto0106@gmail.com |
f1dff0b8c16501de3b3a25d789e7125960329270 | b835a371d6e96e3bf01e157825367fa8cb977101 | /website/authors/views/article.py | d42b2fb6b8fbe5a0dad5713f0be293e5af953699 | [
"MIT"
] | permissive | SebastiaanZ/minigigscyclingteam | c832858c5164c66782a082301bf46df15ded7fc4 | 6c8c4f7ae41a5b01a551c592dc81fd37fd4f686e | refs/heads/master | 2022-11-29T18:22:58.005902 | 2020-01-28T22:15:42 | 2020-01-28T22:15:42 | 196,997,653 | 0 | 0 | MIT | 2022-11-22T05:16:55 | 2019-07-15T12:49:03 | HTML | UTF-8 | Python | false | false | 3,434 | py | """View that allows an authenticated user to create a new article."""
import logging
from django.contrib.auth.mixins import LoginRequiredMixin
from django.shortcuts import redirect, render, reverse
from django.urls import reverse_lazy
from django.views.generic.edit import CreateView, DeleteView, UpdateView
from websi... | [
"33516116+SebastiaanZ@users.noreply.github.com"
] | 33516116+SebastiaanZ@users.noreply.github.com |
31dc2924aecef9c046d1b57021204cc862d29971 | ddfaf705d73c621fcd20ddb42beb89bcddb21bee | /game_functions.py | 6a597fe1d896aa1cc6c864723f3c20087f10795c | [] | no_license | Richiewong07/alien_invasion | e85c6d1686b64edd28a8202ea899600d94c2efc0 | 14cbda515ef089f0bedfce53f735c6c7046bf549 | refs/heads/master | 2020-03-13T16:54:15.018865 | 2018-05-03T19:46:01 | 2018-05-03T19:46:01 | 131,208,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,123 | py | import sys
import pygame
from bullet import Bullet
from alien import Alien
def check_events(ai_settings, screen, ship, bullets):
"""Respond to keypresses and mouse events."""
for event in pygame.event.get(): # ACCESSES EVENT
if event.type == pygame.QUIT: # EVENT TO CLOSE SYSTEM
sys.exi... | [
"richiewong07@yahoo.com"
] | richiewong07@yahoo.com |
8c88675fbb1b51f111c223306c3101fd08f6f803 | 94589f1a3565022b28f6bdc2cd7b2dcf99c48e5c | /webcab/sendsms/management/commands/ballance_sms_messages.py | 988419eab7383d56b72c516ba11d6538862827e5 | [] | no_license | brat002/ExpertBilling | e8825c10487c2f5b179fa5548977c262982c4fc7 | bb7e041b21736f16ee69759a9cce52c4ce544a95 | refs/heads/trunk | 2023-01-20T18:36:01.075704 | 2017-08-31T07:23:53 | 2017-08-31T07:23:53 | 39,003,439 | 8 | 9 | null | 2022-12-27T15:01:29 | 2015-07-13T09:36:11 | PLpgSQL | UTF-8 | Python | false | false | 1,231 | py | # -*- coding=utf-8 -*-
from django.core.management.base import BaseCommand
from django.core.urlresolvers import reverse
from sendsms.models import Message
from billservice.models import Account, Template
import datetime
from django.conf import settings
class Command(BaseCommand):
help = 'Check ballance amount and ... | [
"a_kuzmitsky@wargaming.net"
] | a_kuzmitsky@wargaming.net |
38d21dae85a302eea91647f6e4c3109d8a522b3d | 06c9edb02884ced68c62b5527d2be0e1a2e65bf1 | /10799.py | d3baff060dfb163b2443ff9af2a55bacebc16afb | [] | no_license | 0x232/BOJ | 3c5d3973b62036bfe9b761c88c822cf7fe909bce | 5f135ac51b1c304eff4630798fb5c516b666a5c6 | refs/heads/master | 2021-07-03T02:56:00.132987 | 2020-10-31T02:18:19 | 2020-10-31T02:18:19 | 191,161,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | stack = []
count = 0
total = 0
for paren in input():
if paren == '(':
stack.append(paren)
count += 1
else:
# Laser
if stack[-1] == '(':
stack.append(paren)
count -= 1
total += count
# Iron Rod
else:
stack.append(pare... | [
"51640066+0x232@users.noreply.github.com"
] | 51640066+0x232@users.noreply.github.com |
f81f02454c8de563f0662644c35ac587e312ea06 | c83fe2005a44b436a8be1e0787834a8a93b2024b | /scripts/dynamic_programming/partition_equal_sum.py | 0dc1910375ccc0fc9b07e67911b97c5430796bc3 | [] | no_license | wulfebw/algorithms | 9eb0bacd8a7851d28beecb608a895925e26f543b | cbae6aba464a021ada842adb4eaed9dbd16dc0f2 | refs/heads/master | 2021-01-19T02:28:12.666777 | 2019-05-02T02:52:08 | 2019-05-02T02:52:08 | 49,041,959 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,061 | py | '''
Idea is that for there to be a partition, then one of these subsets must
add up to half the sum
so with that you just have a "do these add up" problem, which is a known DP problem
and part of the include / exclude category
'''
import numpy as np
def partition(a):
if sum(a) % 2 != 0:
return False
... | [
"wulfebw@stanford.edu"
] | wulfebw@stanford.edu |
b18252de7a9f44a5d2971fff1fe6119b5e08cf3f | bdc10ba57424040129cc72ad018ff26bc8bca66a | /ConfigDefinitions/CuttingDefinitions/UserCutConfigs/SMHTT2017Cuts_MC_AntiIso_wDeep.py | d84856c0b65dff5fc658b252d68da8df281d309b | [] | no_license | aloeliger/Jesterworks | 61e0ac38ca325fefbbd8ccedaa8eb02d8a76ebbe | 96a22bac4ce20b91aba5884eb0e5667fcea3bc9a | refs/heads/master | 2021-06-09T15:39:06.976110 | 2021-04-23T11:25:06 | 2021-04-23T11:25:06 | 157,698,363 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | import ConfigDefinitions.CuttingDefinitions.CutDef as CutDef
SMHTT2017Cuts = CutDef.UserCutConfig()
SMHTT2017Cuts.Cuts=[]
SMHTT2017Cuts.Cuts.append("abs(eta_1) < 2.1 && abs(eta_2) < 2.3")
SMHTT2017Cuts.Cuts.append("!(Flag_goodVertices || Flag_globalSuperTightHalo2016Filter || Flag_HBHENoiseFilter || Flag_HBHENoiseIsoF... | [
"aloelige@cern.ch"
] | aloelige@cern.ch |
e6076eefcb43438d384206d239ccd9f063db6d04 | 08ee36e0bb1c250f7f2dfda12c1a73d1984cd2bc | /src/mnistk/networks/conv1drelu_20.py | dbb3451441d1e85f8b1de2b9993132971a4fdff3 | [] | no_license | ahgamut/mnistk | 58dadffad204602d425b18549e9b3d245dbf5486 | 19a661185e6d82996624fc6fcc03de7ad9213eb0 | refs/heads/master | 2021-11-04T07:36:07.394100 | 2021-10-27T18:37:12 | 2021-10-27T18:37:12 | 227,103,881 | 2 | 1 | null | 2020-02-19T22:07:24 | 2019-12-10T11:33:09 | Python | UTF-8 | Python | false | false | 1,590 | py | # -*- coding: utf-8 -*-
"""
conv1drelu_20.py
:copyright: (c) 2019 by Gautham Venkatasubramanian.
:license: MIT
"""
import torch
from torch import nn
class Conv1dReLU_20(nn.Module):
def __init__(self):
nn.Module.__init__(self)
self.f0 = nn.Conv1d(in_channels=16, out_channels=45, kernel_... | [
"41098605+ahgamut@users.noreply.github.com"
] | 41098605+ahgamut@users.noreply.github.com |
49bc66d7d599f539e7e9bbf60ba8176921d884ea | 66ff3d5c4dc5a57304e15927de4068c836c6c68e | /OneQuestionPerDay/104/maximum_depth_of_binary_tree3.py | 4a3182ca645822fe1db8587c590e73a2a0ba75b2 | [] | no_license | ppd0705/10-week-algorithm-excercise | 375ddcb9176c06a78aa296cdfd1b5c06ee93ae17 | 6a60a86a493bee190ad3551193b141da1873016c | refs/heads/master | 2023-03-02T04:01:55.380523 | 2021-01-31T23:21:47 | 2021-01-31T23:21:47 | 318,496,360 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def maxDepth(self, root: TreeNode) -> int:
if root is None:
return 0
level = 0
queue = [root]
while queue:
n = len(queue)
... | [
"ppd0705@163.com"
] | ppd0705@163.com |
8fdd05830e388fdb88e2363664b96c78aa33fabb | a9e3f3ad54ade49c19973707d2beb49f64490efd | /Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/course_goals/migrations/0002_auto_20171010_1129.py | 0121aaafec40ff4181c4309d11557f32e69ef1ba | [
"AGPL-3.0-only",
"AGPL-3.0-or-later",
"MIT"
] | permissive | luque/better-ways-of-thinking-about-software | 8c3dda94e119f0f96edbfe5ba60ca6ec3f5f625d | 5809eaca7079a15ee56b0b7fcfea425337046c97 | refs/heads/master | 2021-11-24T15:10:09.785252 | 2021-11-22T12:14:34 | 2021-11-22T12:14:34 | 163,850,454 | 3 | 1 | MIT | 2021-11-22T12:12:31 | 2019-01-02T14:21:30 | JavaScript | UTF-8 | Python | false | false | 501 | py | from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('course_goals', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='coursegoal',
name='goal_key',
field=models.CharField(default='unsure'... | [
"rafael.luque@osoco.es"
] | rafael.luque@osoco.es |
f367ec70662a87818414db316f6e908a6ec6170a | b3b7f07a07a169a590e95d70e772b26477c3ace0 | /backend/system_service/server/modules/users/managers.py | ab4e319539876e29ecdf4c85d51632a1d4409781 | [] | no_license | roomanidzee/transportik-lite | 984fff1af9a55273004d4fe2eec75ef956239d66 | 50e873d604eb4c931dfc99ce5f10db16886e99bd | refs/heads/master | 2020-08-21T16:55:32.272729 | 2020-01-22T19:29:38 | 2020-01-22T19:29:38 | 216,203,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,139 | py |
from django.db import transaction
from django.contrib.auth.models import (
BaseUserManager
)
class UserManager(BaseUserManager):
"""
Manager for users of project
"""
def _create_user(self, email: str, password: str, **extra_fields):
"""Save user with email and password"""
if not... | [
"romanov_andrey_vl@protonmail.com"
] | romanov_andrey_vl@protonmail.com |
4a37dcafba455dbe276d07c3df9eb45e382324af | b5c2571948d1e7fd6a21cfe3267cb7de9088cf56 | /Bytecode Decompile/DistributedSmoothNode.py | 15ad03082bd2536dc718275f9b9851bc4f15cc77 | [] | no_license | C0MPU73R/Toontown-2003-Bytecode | ff32042d4da5894ec3a4fb7da43614df26d25a9d | aa6862f86034f342d5fee9934cd6ed3e83de99f3 | refs/heads/master | 2023-05-03T11:55:57.959617 | 2018-12-02T00:05:43 | 2018-12-02T00:05:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,080 | py | from PandaModules import *
from ClockDelta import *
import DistributedNode, Task
MaxFuture = base.config.GetFloat('smooth-max-future', 0.2)
EnableSmoothing = base.config.GetBool('smooth-enable-smoothing', 1)
EnablePrediction = base.config.GetBool('smooth-enable-prediction', 1)
Lag = base.config.GetDouble('smooth-lag', ... | [
"flamingdog101@gmail.com"
] | flamingdog101@gmail.com |
55538d87627a33abb277e29932abb008c9135c38 | 7534b54a007dc0aeb997f6e5c4e5455b7be31eae | /SPOJ_BACKUP/POLTOPOL-7295118-src.py | e4b58bd3c0e222b9a43203d30a8252c4d2922cc2 | [] | no_license | rishirajsinghjhelumi/Coding-Templates | 7708023c990dbaedd4e07fcfc5964a6632b60cbf | 8085bbf343e99daa27af392923c81a266a36fe6d | refs/heads/master | 2021-01-10T18:59:50.830519 | 2013-08-16T13:40:23 | 2013-08-16T13:40:23 | 11,998,810 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | import psyco
psyco.full()
diff=[[0 for j in range(30)]for i in range(30)]
for i in range(30):
diff[0][i] = 1
for i in range(1,30):
for j in range(i):
diff[i][j] = 0
k = 1
for j in range(i,30):
diff[i][j] = k*diff[i-1][j]
k+=1
t=input()
while t:
t-=1
d=input()
c = map(int,raw_input().split())
a=[0]*30
a[d... | [
"rishirajsingh.jhelumi@students.iiit.ac.in"
] | rishirajsingh.jhelumi@students.iiit.ac.in |
ca9272e1188b823e77c568c9089c090ec18f3e6c | d452e34253561a47b974e260dabd8dcda6e750a2 | /unsupervised_learning/0x00-dimensionality_reduction/1-pca.py | 8d26638f327c041fa3a26facf1dde7cfe28cff60 | [] | no_license | JohnCook17/holbertonschool-machine_learning | 57fcb5b9d351826c3e3d5478b3b4fbe16cdfac9f | 4200798bdbbe828db94e5585b62a595e3a96c3e6 | refs/heads/master | 2021-07-07T10:16:21.583107 | 2021-04-11T20:38:33 | 2021-04-11T20:38:33 | 255,424,823 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | #!/usr/bin/env python3
"""Performs PCA on a matrix"""
import numpy as np
def pca(X, ndim):
"""Returns T after performing PCA on a matrix"""
X = X - np.mean(X, axis=0)
V = np.linalg.svd(X)
V = V[2]
T = np.matmul(X, V[:ndim].T)
return T
| [
"jcook0017@gmail.com"
] | jcook0017@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.