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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4be8a9f91ad8fbc6da7e187636382f69d3e9014f | 3fe272eea1c91cc5719704265eab49534176ff0d | /scripts/field/jett_tuto_7_1.py | 14fea3977f59741c0b2fb4a9b3c317feb3510588 | [
"MIT"
] | permissive | Bratah123/v203.4 | e72be4843828def05592298df44b081515b7ca68 | 9cd3f31fb2ef251de2c5968c75aeebae9c66d37a | refs/heads/master | 2023-02-15T06:15:51.770849 | 2021-01-06T05:45:59 | 2021-01-06T05:45:59 | 316,366,462 | 1 | 0 | MIT | 2020-12-18T17:01:25 | 2020-11-27T00:50:26 | Java | UTF-8 | Python | false | false | 805 | py | # Created by MechAviv
# Map ID :: 620100027
# Spaceship : Spaceship Cockpit
sm.curNodeEventEnd(True)
sm.setTemporarySkillSet(0)
sm.setInGameDirectionMode(True, True, False, False)
sm.forcedInput(1)
sm.sendDelay(30)
sm.forcedInput(0)
sm.sendDelay(1000)
sm.showEffect("Effect/DirectionNewPirate.img/newPirate/balloonM... | [
"pokesmurfuwu@gmail.com"
] | pokesmurfuwu@gmail.com |
68f9c64f9fdba88df8225851e68798225af2346d | 63acfadae1b26e521169191ae441cfdb86817651 | /tests/argparse/special/modules/defaults/__init__.py | 3505b0795f024d936847202220a08964b18c6216 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | da-h/miniflask | 4e1e8889623665309b7194948222635275acea34 | e8398bcf2b81e1d1cd8d53d9f4b1125c027552b1 | refs/heads/master | 2023-05-10T19:28:59.669718 | 2023-05-05T12:54:05 | 2023-05-05T12:54:05 | 240,955,157 | 7 | 1 | MIT | 2023-02-28T14:44:33 | 2020-02-16T19:47:49 | Python | UTF-8 | Python | false | false | 573 | py |
def printVal(state, name):
val = state[name]
print("%s:" % state.fuzzy_names[name], val)
def print_all(state):
printVal(state, "var_default")
printVal(state, "var_default_override")
printVal(state, "var_default_override_twice")
printVal(state, "var_default_override_twice_and_cli")
def regis... | [
"dhartmann@uni-mainz.de"
] | dhartmann@uni-mainz.de |
bda4bdd71bd5d2eeec3b1942611e2b982c0b36bc | fe3ecb9b1ddd8de17b8cc93209134f86cd9c4a6f | /6_Tensorflow/chap04_Classification/lecture_1x/step05_softmax_classifier.py | 848aca28e11509d6d891b478e7025c2ba6458666 | [] | no_license | nsh92/Bigdata-and-Machine-Learning-Education-at-ITWILL | d1a7292ee4865a3d0c664dd6ecf3afc0d6325847 | 3cb5661001597499178a2c85f4ccf70dcf0855d6 | refs/heads/master | 2022-11-21T23:10:51.421708 | 2020-07-23T12:49:11 | 2020-07-23T12:49:11 | 275,540,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,903 | py | # -*- coding: utf-8 -*-
"""
step04_softmax_classifier.py
- 활성함수 : Sotfmax(model)
- 손실함수 : Cross Entropy
"""
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
import numpy as np
from sklearn.metrics import accuracy_score
# 1. x, y 공급 data
# [털, 날개]
x_data = np.array(
[[0, 0], [1, 0], [1, 1], [0, 0], [0, 1... | [
"totols1092@gmail.com"
] | totols1092@gmail.com |
32b5982fddad50b11c0b227150e2672caa73c81f | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_9466.py | 1ba8719a21b95b29fa4d86d410b7cf87c9d36a21 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35 | py | # In [2]: tuple(a[:-1] for a in x)
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
3da9a6b0aae255dd6bffb0296b6c0b05017d03a9 | 7bf51d5550195a7fae26bd626ed82c5f2b5d9737 | /my_graphs/g_graph_12.py | bbfbc1c98ccd7f78677de75c49227f306cf19173 | [] | no_license | venkatram64/python_ml | 9fcadc380c2a56856f590b40a7c3b015c19c62a0 | b0b40fec4547f3675a500af24878cddacc4c270c | refs/heads/master | 2020-04-08T05:07:28.993601 | 2018-12-26T08:30:28 | 2018-12-26T08:30:28 | 159,047,402 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | import matplotlib.pyplot as plt
import matplotlib.animation as animation
from matplotlib import style
style.use('fivethirtyeight')
fig = plt.figure()
ax1 = fig.add_subplot(1,1,1)
def animate(i):
graph_data = open('chart_file.txt', 'r').read()
lines = graph_data.split('\n')
xs = []
ys = []
for lin... | [
"venkat.veerareddy@hotmail.com"
] | venkat.veerareddy@hotmail.com |
4d8c2d81ee6ea261b59ddb4eb91cb66024778ed6 | ce607df215bd0569a966033092ae3d24f48af714 | /docs/guide/code/awesome-bot-7/awesome/plugins/usage.py | 825a57f9849268c8956a25255a3e924fee1d6840 | [
"MIT"
] | permissive | nonebot/nonebot | fbf926e77329fc129dd51a31cfcb62a8f4aab578 | 4b49289759af0ef774d28fd0ffaed7e1a9e35fbf | refs/heads/master | 2023-08-16T00:01:06.288649 | 2023-06-01T08:44:04 | 2023-06-01T08:44:04 | 75,402,138 | 1,521 | 268 | MIT | 2022-08-17T06:07:19 | 2016-12-02T14:23:43 | Python | UTF-8 | Python | false | false | 714 | py | import nonebot
from nonebot import on_command, CommandSession
@on_command('usage', aliases=['使用帮助', '帮助', '使用方法'])
async def _(session: CommandSession):
# 获取设置了名称的插件列表
plugins = list(filter(lambda p: p.name, nonebot.get_loaded_plugins()))
arg = session.current_arg_text.strip().lower()
if not arg:
... | [
"richardchienthebest@gmail.com"
] | richardchienthebest@gmail.com |
fb72e7fda094f7a1f4ccc7ffd78655c181bfa750 | 40d404e424489bb48c3673dee6664de64dbab39c | /myWebsite/.venv/lib/python3.8/site-packages/zope/site/next.py | 38c06ddc842113ca7eb79f312ea3f6a6a5c3b223 | [] | no_license | alyasamba/me | 07c9f5f27aa16f768e0432780ac8f6f5ab6afbd1 | 978053c867181bad8eb316a0920ba290a7b1ceae | refs/heads/main | 2023-01-28T09:57:46.616285 | 2020-12-02T02:31:25 | 2020-12-02T02:31:25 | 315,935,399 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | # BBB. Remove in Version 5.0
from zope.deprecation import moved
moved('zope.component', 'Version 5.0')
| [
"sopesherifabdoulah@gmail.com"
] | sopesherifabdoulah@gmail.com |
8c36bd998975fdb247485f1edf6cec1b02d2fe58 | f5d4863b6a62ef19ffc98e4f94f6ade1bc8810d3 | /Linked List/92_Reverse_Linked_List_II.py | 05f389e0d67f52c991bda6256be9df9eda403617 | [] | no_license | xiaomojie/LeetCode | 138808eb83938f9bd3c2e8a755d908509dff0fd3 | eedf73b5f167025a97f0905d3718b6eab2ee3e09 | refs/heads/master | 2021-06-12T09:26:01.257348 | 2019-10-23T10:41:06 | 2019-10-23T10:41:06 | 76,184,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 905 | py | """
Reverse a linked list from position m to n. Do it in one-pass.
Note: 1 ≤ m ≤ n ≤ length of list.
Example:
Input: 1->2->3->4->5->NULL, m = 2, n = 4
Output: 1->4->3->2->5->NULL
"""
# Definition for singly-linked list.
class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None... | [
"519399762@qq.com"
] | 519399762@qq.com |
36e45f93482d35cb5c9a7c17abd4badb5d472b96 | 32257983a6aa9b6f719ce8835e789c94df8b9346 | /manager/migrations/0001_initial.py | 57184eafc16e89981afeb99c3c784f17cc78d511 | [] | no_license | alireza-shirmohammadi/MySite | 2b165260460ea2a74769b0ceb81e520b26307a64 | 4537069f0ba50ac46f265d0157195f91bac5d853 | refs/heads/master | 2023-07-26T13:50:52.249782 | 2021-01-30T10:55:06 | 2021-01-30T10:55:06 | 303,093,825 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | # Generated by Django 2.2 on 2020-10-18 21:00
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Manager',
fields=[
('id', models.AutoField(au... | [
"alireza.sh076@gmail.com"
] | alireza.sh076@gmail.com |
9d3aee1939e7056e99df2e8fa0513615f8dad64d | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_5/mllgad001/question1.py | f6592b8f10857fa9939c268f718db83ab9bf37c1 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,801 | py | # program to simulate a simple Bulletin Board System
# Gadija Moollagie
# 14 April 2014
def displayName(): # defines the menu that will be displayed every time
print("Welcome to UCT BBS")
print("MENU")
print("(E)nter a message")
print("(V)iew message")
print("(L)ist files")
print("(D... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
71987f9861827fdaa4915ab742137953ec85ddef | 5baf3cb8b08dcea2d53d2ef022e5c6d4b2468494 | /test/test_io_k8s_api_apps_v1_deployment_strategy.py | f56bb807af8c59d37eff53eb5135e7e72f41d20d | [] | no_license | atengler/swagger-kqueen-python | a4fc0de38378a08c6c2e0c339032ed4ad63f09f5 | 01225c74a743636483211f0274f772193517ffaf | refs/heads/master | 2021-08-07T18:16:28.453730 | 2017-11-08T17:24:53 | 2017-11-08T17:29:03 | 110,007,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | # coding: utf-8
"""
Kubernetes Queen API
A simple API to interact with Kubernetes clusters
OpenAPI spec version: 0.8
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import swagger_client
from swa... | [
"atengler@mirantis.com"
] | atengler@mirantis.com |
5c6074b51caf0a45af3c5c46d88fbaaddb811393 | e1d6de1fb5ce02907df8fa4d4e17e61d98e8727d | /search2/lagou_query_range.py | ccacf67d6ac1eb4513901b1aca0d24fbce30db0d | [] | no_license | neuroph12/nlpy | 3f3d1a8653a832d6230cb565428ee0c77ef7451d | 095976d144dacf07414bf7ee42b811eaa67326c1 | refs/heads/master | 2020-09-16T08:24:37.381353 | 2016-09-10T19:24:05 | 2016-09-10T19:24:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | # coding=utf-8
import datetime
from whoosh.index import open_dir
from whoosh.qparser import MultifieldParser
idx_dir = 'lagou_idx'
ix = open_dir(idx_dir)
searcher = ix.searcher()
parser = MultifieldParser(["name", "com_name"], schema=ix.schema)
# Single field parser.
k = u'自然 语言 自然语言 处理 salary_from:[1 TO 5000] salar... | [
"anderscui@gmail.com"
] | anderscui@gmail.com |
840e123871abe4d70ae652e6987bb7fc4d6070e5 | f6078890ba792d5734d289d7a0b1d429d945a03a | /hw1/submissions/reyesortegacynthia/reyesortegacynthia_35890_1251163_homework 2.py | cb61aa6481078c83a83132baf98896513680dbad | [] | no_license | huazhige/EART119_Lab | 1c3d0b986a0f59727ee4ce11ded1bc7a87f5b7c0 | 47931d6f6a2c7bc053cd15cef662eb2f2027712c | refs/heads/master | 2020-05-04T23:40:53.709217 | 2019-06-11T18:30:45 | 2019-06-11T18:30:45 | 179,552,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | import matplotlib from matplotlib
import numpy as np
V_1 = (1,1)
V_2 = (3,1)
V_3 = (4,2)
V_4 = (3.5,5)
V_5 = (2,4)
A = area_of_polygon
#get number x or y in each v
#set area of ploygon as x_1*y_1
| [
"hge2@ucsc.edu"
] | hge2@ucsc.edu |
8ec98c5c953c24f01a12563fcd3198185f008a6e | 56014da6ebc817dcb3b7a136df8b11cf9f976d93 | /Django天天生鲜项目/14.1-注册基本逻辑.py | 939067bb95629536cb0337f2ca1fc38b2e11d8ce | [] | no_license | sunday2146/notes-python | 52b2441c981c1106e70a94b999e986999334239a | e19d2aee1aa9433598ac3c0a2a73b0c1e8fa6dc2 | refs/heads/master | 2022-01-12T22:55:45.401326 | 2019-01-18T03:18:26 | 2019-01-18T03:18:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,191 | py | """
1.将static静态文件添加到static文件夹中----为前端制作完成
2.将register.html文件放入templates文件夹下
3.views.py
def register(request):
""显示注册页面""
return render(request,'register.html')
4.配置url
from user import views
urlpatterns = [
url(r'^register$',views.register,name = 'register'),#注册
5.无法显示全部页面,须在register.html中增加
{% load st... | [
"964640116@qq.com"
] | 964640116@qq.com |
cb398291bbb438e6bf0220616db35cda393e4eb2 | 254ef44b90485767a3aea8cbe77dc6bf77dddaeb | /589N叉树的前序遍历.py | 767e3339554f17bf5d43e7c275cfe267c364da5a | [] | no_license | XinZhaoFu/leetcode_moyu | fae00d52a52c090901021717df87b78d78192bdb | e80489923c60ed716d54c1bdeaaf52133d4e1209 | refs/heads/main | 2023-06-19T02:50:05.256149 | 2021-07-09T00:50:41 | 2021-07-09T00:50:41 | 331,243,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | """
给定一个 N 叉树,返回其节点值的前序遍历。
例如,给定一个 3叉树 :
返回其前序遍历: [1,3,5,6,2,4]。
"""
"""
# Definition for a Node.
class Node(object):
def __init__(self, val=None, children=None):
self.val = val
self.children = children
"""
class Solution(object):
def preorder(self, root):
"""
:type root: N... | [
"948244817@qq.com"
] | 948244817@qq.com |
f597844ce432d96d2774092744d6b634d89b6c85 | 45e376ae66b78b17788b1d3575b334b2cb1d0b1c | /tests/terraform/checks/resource/aws/test_CloudfrontDistributionDefaultRoot.py | d8d77e5bbb716f2cb97de4f4c46442fb83f1cd30 | [
"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,337 | py | import os
import unittest
from checkov.runner_filter import RunnerFilter
from checkov.terraform.checks.resource.aws.CloudfrontDistributionDefaultRoot import check
from checkov.terraform.runner import Runner
class TestCloudfrontDistributionDefaultRoot(unittest.TestCase):
def test(self):
runner = Runner()
... | [
"noreply@github.com"
] | bridgecrewio.noreply@github.com |
16c4945708dd2b7588e59f769cc9178b68bbeade | f016dd6fd77bb2b135636f904748dbbab117d78b | /L07/视频笔记/4.4继承.py | c73e1dd32f1d67db92adfd7ce88c54ac9f2b604e | [
"Apache-2.0"
] | permissive | w7374520/Coursepy | b3eddfbeeb475ce213b6f627d24547a1d36909d8 | ac13f8c87b4c503135da51ad84c35c745345df20 | refs/heads/master | 2020-04-26T23:57:42.882813 | 2018-05-24T07:54:13 | 2018-05-24T07:54:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,539 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
#Author:xp
#blog_url: http://blog.csdn.net/wuxingpu5/article/details/71209731
class Parent:
def foo(self):
print('from Parent.foo')
self.bar()
def bar(self):
print('From parent.bar')
class Sub(Parent):
def __init__(self):
pass
... | [
"windfishing5@gmail.com"
] | windfishing5@gmail.com |
e0a0021b739a598d5e7da40233741d987a92d645 | 1040b320168c49e3fd784d93ff30923527582d26 | /calm/dsl/api/quotas.py | 172ca96fefdcfea68cac18e809db25579b1930c6 | [
"Apache-2.0"
] | permissive | nutanix/calm-dsl | 87eb8a82f202ec0c71b5c8d8fe49db29bdcf2cfc | 56c52702cec4370f551785508d284e5cbe1a744a | refs/heads/master | 2023-08-31T16:43:51.009235 | 2023-08-28T05:20:41 | 2023-08-28T05:20:41 | 227,190,868 | 41 | 59 | Apache-2.0 | 2023-08-28T05:20:43 | 2019-12-10T18:38:58 | Python | UTF-8 | Python | false | false | 1,363 | py | from .resource import ResourceAPI
from .connection import REQUEST
class QuotasAPI(ResourceAPI):
def __init__(self, connection):
super().__init__(connection, resource_type="quotas", calm_api=True)
self.CREATE = self.PREFIX
self.UPDATE_STATE = self.PREFIX + "/update/state"
self.LIST ... | [
"abhijeet.kaurav@nutanix.com"
] | abhijeet.kaurav@nutanix.com |
2a730c0c977de022c76c2c650b814ec8d6a8a287 | bafb1c203362a9711f783115c7c573fdcd00a3d4 | /venv/Lib/site-packages/kivy/uix/splitter.py | 4a4f4150266aa94cc92fc95a9cbb437f991b1178 | [] | no_license | santokalayil/kivy_android_test_project | 0c41c40f6c8869767729cd153f4ce31ac09c0f1c | a4283ba4f4ca8961b2689ee7150297349aedb897 | refs/heads/main | 2023-04-14T08:18:40.453585 | 2021-04-27T19:15:21 | 2021-04-27T19:15:21 | 362,220,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,352 | py | '''Splitter
======
.. versionadded:: 1.5.0
.. image:: images/splitter.jpg
:align: right
The :class:`Splitter` is a widget that helps you re-size its child
widget/layout by letting you re-size it via dragging the boundary or
double tapping the boundary. This widget is similar to the
:class:`~kivy.uix.s... | [
"49450970+santokalayil@users.noreply.github.com"
] | 49450970+santokalayil@users.noreply.github.com |
9362bfbe15c850ef4711769abd97cb5b1a358e37 | f023692f73992354a0b7823d9c49ae730c95ab52 | /AtCoderBeginnerContest/1XX/107/D_pypy.py | 0cdd99bfb61357c3953e409610ae3e254b7b3a46 | [] | no_license | corutopi/AtCorder_python | a959e733f9a3549fab7162023e414ac2c99c4abe | a2c78cc647076071549e354c398155a65d5e331a | refs/heads/master | 2023-08-31T09:40:35.929155 | 2023-08-20T06:19:35 | 2023-08-20T06:19:35 | 197,030,129 | 1 | 0 | null | 2022-06-22T04:06:28 | 2019-07-15T15:57:34 | Python | UTF-8 | Python | false | false | 2,636 | py | # 解説を参考に作成
# https://qiita.com/DaikiSuyama/items/7295f5160a51684554a7
# https://algo-logic.info/binary-indexed-tree/
# import sys
# sys.setrecursionlimit(10 ** 6)
# import bisect
# from collections import deque
class BinaryIndexedTree:
"""
l = [1, 2, 3, 4, 5, 6, 7, 8] のlistを例とした場合、
以下のような範囲での演算結果(sum)を配列に... | [
"39874652+corutopi@users.noreply.github.com"
] | 39874652+corutopi@users.noreply.github.com |
e1e69599554fc2a6265bebc374c81fc5ce30e2c7 | 25ebc03b92df764ff0a6c70c14c2848a49fe1b0b | /daily/20171208/tinyparse/src/00.py | 67a7bccef96e3d12ce568646dbc86e3a7ecbac8c | [] | 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 | 67 | py | def f(x):
return g(x) # error
def g(x, y):
return g + y
| [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
28c91f379d6f7e52de4f2d24f3ab989eb31b410d | c71b3aa6091d3cc0469198e64cd394fa9dae1817 | /setup.py | f108ef64003f3065d39aab473ffa5fb5a93686e0 | [
"MIT"
] | permissive | offermann/elizabeth | 8a30f65f93aee244437de4cd42084cb29607c724 | 3b89512e566895846136809e571abf50b93c5312 | refs/heads/master | 2020-01-23T21:40:46.324687 | 2016-11-23T07:21:03 | 2016-11-23T07:21:03 | 74,689,354 | 0 | 1 | null | 2016-11-24T16:27:52 | 2016-11-24T16:27:52 | null | UTF-8 | Python | false | false | 1,385 | py | from distutils.core import setup
import elizabeth
setup(
name='elizabeth',
version=elizabeth.__version__,
packages=['elizabeth'],
keywords=['fake', 'data', 'testing',
'generate', 'faker', 'elizabeth',
'bootstrap', 'db', 'generic',
'church', 'dummy'
... | [
"likid.geimfari@gmail.com"
] | likid.geimfari@gmail.com |
2db441df96d69d4eda30cd22d74ee1b62a47205e | 9680c27718346be69cf7695dba674e7a0ec662ca | /Pattern-Python/A shape.py | ad545c440e124919825e93bc861239a679658909 | [] | no_license | Md-Monirul-Islam/Python-code | 5a2cdbe7cd3dae94aa63298b5b0ef7e0e31cd298 | df98f37dd9d21784a65c8bb0e46d47a646259110 | refs/heads/main | 2023-01-19T05:15:04.963904 | 2020-11-19T06:10:09 | 2020-11-19T06:10:09 | 314,145,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | for row in range(7):
for col in range(5):
if ((col==0 or col==4) and row!=0) or ((row==0 or row==3) and (col>0 and col<4)):
print('*',end='')
else:
print(end=' ')
print() | [
"61861844+Md-Monirul-Islam@users.noreply.github.com"
] | 61861844+Md-Monirul-Islam@users.noreply.github.com |
687e72bc28d39ba17e95104a1d67e294b817f16e | 92993cff825da80a8ff601572a0c52b0b7d3cbde | /algorithms/Svm/ADMM/L1/ADMM_L1_m162.py | 47a9f8d3349521c04157398120ef42791fb5ac66 | [] | no_license | yingzhuoy/MRs-of-linear-models | 06e8b1f84b08c6aa77553813824cf35c1806c5a7 | c3df8299e039a12613f2022b370b8c3e9c2dd822 | refs/heads/master | 2023-04-07T23:09:37.736952 | 2021-04-04T05:33:37 | 2021-04-04T05:33:37 | 265,124,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,222 | py | import numpy as np
from numpy import linalg
#import cvxopt
#from cvxopt import matrix,solvers
#import scipy.sparse.linalg
from algorithms.clf import Clf
"""
Preconditioned Conjugate Gradient Method
"""
def precond(M, r):
q = M * r
return q
def inner_prod(A, B):
A = np.matrix(A)
B = np.matrix(B)
r... | [
"yingzhuoy@qq.com"
] | yingzhuoy@qq.com |
5cb4bea24ec8cb56b25d43314f597cbdc352b4cc | e749e94163a0e20c551875583baef4e02e72de5e | /Github/IPS-10/test_script.py | e65add9190f155013f39296105ebadd5a65a640f | [] | no_license | tritims/TensorFlow-Program-Bugs | 3445200179f4b7f5cc4ac1c6f076468ec19e51bb | 158ba0a23e0cb74e73dbab08571b05fc36848f2a | refs/heads/master | 2022-07-08T16:33:38.511696 | 2020-05-20T14:20:47 | 2020-05-20T14:20:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | import tensorflow as tf
import sys
import os
import subprocess
try:
assert len(sys.argv) == 2
version = ["-buggy", "-fix"][int(sys.argv[1])]
except:
print(
"Please run 'python test_script 0' for testing the buggy-version and "
"'python test_script 1' for testing the fix-version.\nAborted...... | [
"zyhzyhzyh@pku.edu.cn"
] | zyhzyhzyh@pku.edu.cn |
09900557e13191fe7b23e98ddf0f10fc11d17428 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AlipayFundJointaccountAccountModifyResponse.py | 58d20e1c923c22e32b35d37c8b7fca6babba5937 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 470 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayFundJointaccountAccountModifyResponse(AlipayResponse):
def __init__(self):
super(AlipayFundJointaccountAccountModifyResponse, self).__init__()
def parse_response_... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
1c557226222f8ae8fd3b3380ddf57faa8460ae07 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/documentdb/v20210401preview/sql_resource_sql_role_definition.py | cb30538f8830dbc7262f71c0d975a9f11388df98 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 15,536 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
183e2af0650d8c37d8a20a17832530637e0782da | d18c9e4bccc85d3c5770515966ce9866f8bc39dc | /tests/test_stream_xep_0077.py | c47c4de5941515e66302ac4bad41a3d39db6f0b6 | [
"MIT",
"BSD-3-Clause"
] | permissive | dhsc19/slixmpp | fa1192e05477ebff1ab1fcf92389f75c6a66e30f | 2ba89727a6627f86e66ec4f3baba464da1b0b19c | refs/heads/master | 2023-03-07T14:27:33.863558 | 2021-02-19T18:06:41 | 2021-02-19T18:06:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,044 | py | """
This only covers the component registration side of the XEP-0077 plugin
"""
import unittest
from slixmpp import ComponentXMPP, Iq
from slixmpp.xmlstream import register_stanza_plugin
from slixmpp.test import SlixTest
from slixmpp.plugins.xep_0077 import Register
class TestRegistration(SlixTest):
def setUp(s... | [
"mathieui@mathieui.net"
] | mathieui@mathieui.net |
c75f84f20e771674176cbd904fd7adf259635e28 | 758ac341257ea099e678fd08830a7b95f5d85e59 | /tc_gan/networks/tests/test_euler_ssn.py | 0faf3937702d1e05a5834e3d49e983876d109aa7 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ahmadianlab/tc-gan | 98d17e087e89d70bc571cb35e7e7b035e87ca0f2 | 06c549e8ae74bc6af62fddeed698565ea1f548c5 | refs/heads/master | 2020-04-12T16:52:15.051511 | 2018-12-21T01:06:53 | 2018-12-21T01:06:53 | 162,626,424 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,577 | py | import copy
import numpy
import pytest
from ... import ssnode
from ...utils import report_allclose_tols
from ..fixed_time_sampler import new_JDS
from ..ssn import BandwidthContrastStimulator, EulerSSNModel
from ..wgan import DEFAULT_PARAMS, grid_stimulator_inputs
def make_ssn(model_config):
kwds = dict(model_co... | [
"aka.tkf@gmail.com"
] | aka.tkf@gmail.com |
6fd7ab16aec3e11a12f934268050bab75d09ea8b | 562d4bf000dbb66cd7109844c972bfc00ea7224c | /addons/efact/models/account/account_move.py | f03773b2e4e3da25665a8331f5175c34c931716c | [] | no_license | Mohamed33/odoo-efact-11-pos | e9da1d17b38ddfe5b2d0901b3dbadf7a76bd2059 | de38355aea74cdc643a347f7d52e1d287c208ff8 | refs/heads/master | 2023-03-10T15:24:44.052883 | 2021-03-06T13:25:58 | 2021-03-06T13:25:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,523 | py | from odoo import api,fields,models,_
from odoo.exceptions import UserError, ValidationError
class AccountMove(models.Model):
_inherit = ['account.move']
@api.multi
def post(self):
invoice = self._context.get('invoice', False)
self._post_validate()
for move in self:
... | [
"root@vmi414107.contaboserver.net"
] | root@vmi414107.contaboserver.net |
5097e022046f18b13e5260b89c8f292eb264a408 | 967056372d123ad5a86705156aea928d7352fe6a | /python实战/pytesttraining/src/ut/test_module.py | a20576ceafeee7df7faaa7acddff08cce684ca89 | [] | no_license | lxy39678/Python | ea179ef929eb9ddddb2460656aad07880ae67f84 | aba0434bc8ca7a2abdaa3ced3c4d84a8de819c61 | refs/heads/master | 2020-04-18T22:05:11.683134 | 2019-01-27T07:49:09 | 2019-01-27T07:49:09 | 167,783,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 902 | py | #!/usr/bin/env python
# encoding: utf-8
#author: Jim Yin
import unittest
import logging
def setUpModule():
print("setup method\n")
global foo
foo = list(range(10))
class simple_test(unittest.TestCase):
def test_1st(self):
logging.info('info')
logging.error('error')
... | [
"895902857@qq.com"
] | 895902857@qq.com |
e2997c7f2c9473f23e58fc3b9d8e197a81943c02 | 16e842bcb73638586d93c17e9838fb89bc2b60bc | /Module-13/13.1 Django Framework/django-model-forms/Django-Demos-feature-django-model-forms/model_form_project/model_app/models.py | 7aed7bad4cb083d98332cb7a9d1e9a1f370c6161 | [] | no_license | krupa-thakkar/Python | dcbda2fe8296ffdd25641cf1e039132f41e0e44e | cbf0ec0399084a9a0a4ba5cebe739580bff4ce06 | refs/heads/master | 2023-03-24T05:43:58.799704 | 2021-01-25T06:20:44 | 2021-01-25T06:20:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | from django.db import models
class UserDetails(models.Model):
Firstname = models.CharField(max_length=100)
Lastname = models.CharField(max_length=255)
Mobile = models.CharField(max_length=11,default='123')
def __str__(self):
return self.title
| [
"47570231+enji-coder@users.noreply.github.com"
] | 47570231+enji-coder@users.noreply.github.com |
e692d7540ebbcd152e9cb9b958002b5c933ad7ec | eef72818143c9ffef4c759a1331e8227c14be792 | /sktime/forecasting/online_learning/tests/test_online_learning.py | 151298059c33206969c1a11bb443b9eb09866944 | [
"BSD-3-Clause"
] | permissive | jattenberg/sktime | 66a723d7844146ac1675d2e4e73f35a486babc65 | fbe4af4d8419a01ada1e82da1aa63c0218d13edb | refs/heads/master | 2023-08-12T07:32:22.462661 | 2022-08-16T10:19:22 | 2022-08-16T10:19:22 | 298,256,169 | 0 | 0 | BSD-3-Clause | 2020-09-24T11:20:23 | 2020-09-24T11:20:23 | null | UTF-8 | Python | false | false | 3,221 | py | #!/usr/bin/env python3 -u
# -*- coding: utf-8 -*-
# copyright: sktime developers, BSD-3-Clause License (see LICENSE file)
"""Test OnlineEnsembleForecaster."""
__author__ = ["magittan"]
import numpy as np
from sklearn.metrics import mean_squared_error
from sktime.datasets import load_airline
from sktime.forecasting.e... | [
"noreply@github.com"
] | jattenberg.noreply@github.com |
baf86efde77e669c26a16a2636a47d246e9c6551 | 724d4b6d4d7a834f138b6fe620db30fb9e0fb686 | /design_principles/modularity_tutorial/parametrized_ml.py | ba372e0e5dd4f6b499090803355b13bba47bd53c | [] | no_license | spierre91/medium_code | 0b1d9b8c683b7432d7b1bfb980f436c1afb6e61f | 0ad618b7a557083216e77717705bc49aa847b17e | refs/heads/master | 2023-09-04T11:03:59.291613 | 2023-08-16T22:18:02 | 2023-08-16T22:18:02 | 214,266,919 | 85 | 80 | null | 2022-08-06T05:56:10 | 2019-10-10T19:20:05 | Python | UTF-8 | Python | false | false | 2,443 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Jun 9 15:22:18 2023
@author: sadrach.pierre
"""
import numpy as np
import pandas as pd
import catboost as cb
import seaborn as sns
from sklearn.model_selection import train_test_split, GridSearchCV
from sklearn.metrics import confusion_matrix, precisi... | [
"noreply@github.com"
] | spierre91.noreply@github.com |
951505c501fbaadeb5da86e0a7e8d1942d24ca8c | 0ba7a4571720e8e8af2944ed61fae7542b1fd556 | /plugins/modules/influxdb_user.py | 4080c1da7750743aeb3661988c34d375e3138a3e | [] | no_license | ansible-collection-migration/database.influxdb | 1395a40bb2f27482465f1ab190c9275d6cb1bceb | 81f060e5e02d1e0fa8a0679f45650c6f21ed4cb4 | refs/heads/master | 2020-12-18T13:02:11.364756 | 2020-02-03T21:58:43 | 2020-02-03T21:58:43 | 235,393,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,106 | py | #!/usr/bin/python
# (c) 2017, Vitaliy Zhhuta <zhhuta () gmail.com>
# insipred by Kamil Szczygiel <kamil.szczygiel () intel.com> influxdb_database module
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__meta... | [
"ansible_migration@example.com"
] | ansible_migration@example.com |
47b2b5549a877f3b8f29674f02a58a285f2fd471 | 435b287d58ed65bfa65bf042134e1bb1bfaed0dd | /day13/intcode.py | ed741db6a87696a5e6ec3c8c8a3fafa89e171c25 | [] | no_license | marxin/AoC2019 | 2ef5b79b37351e86be3e44c9d400332f6dae3ae0 | 2a76ec78908be2f3c3c145fef6e52ade11c48a7b | refs/heads/master | 2020-12-01T20:53:38.068563 | 2019-12-25T08:38:05 | 2019-12-25T08:38:05 | 230,766,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,335 | py | #!/usr/bin/env python3
import time
from termcolor import colored
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('--verbose', '-v', help="Verbose mode", action = 'store_true')
args = parser.parse_args()
init_data = [1,380,379,385,1008,2663,456801,381,1005,381,12,99,109,2664,1101,0,0,383,1101,0... | [
"mliska@suse.cz"
] | mliska@suse.cz |
4d0575b00916108e551507643d17db31afd73b54 | 0b01cb61a4ae4ae236a354cbfa23064e9057e434 | /alipay/aop/api/request/AlipayEbppPdeductSignAddRequest.py | 86e8b05744659d68438f3023124b0cc1e40d40f5 | [
"Apache-2.0"
] | permissive | hipacloud/alipay-sdk-python-all | e4aec2869bf1ea6f7c6fb97ac7cc724be44ecd13 | bdbffbc6d5c7a0a3dd9db69c99443f98aecf907d | refs/heads/master | 2022-11-14T11:12:24.441822 | 2020-07-14T03:12:15 | 2020-07-14T03:12:15 | 277,970,730 | 0 | 0 | Apache-2.0 | 2020-07-08T02:33:15 | 2020-07-08T02:33:14 | null | UTF-8 | Python | false | false | 12,513 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
class AlipayEbppPdeductSignAddRequest(object):
def __init__(self, biz_model=None):
self._biz_model = biz_model
self._agent_channel = None
... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
3f0a3b27cc1ee9e8a2ddfae7039cafc76d780269 | c31c38b567b5a5053e71d0112c069b2728f83582 | /setup.py | 034492e1e4ba614cc4cf8489fd443a60fa06ace1 | [] | no_license | TyberiusPrime/Dicodon_optimization | e79d301d4039b3fa4c3f22d8b5490c717bba4c79 | badeb4daff0984fb6d1481b854afd80d29329fb3 | refs/heads/master | 2022-11-06T11:06:44.893498 | 2020-06-25T08:42:00 | 2020-06-25T08:42:00 | 274,868,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | # -*- coding: utf-8 -*-
"""
Setup file for dicodon_usage.
Use setup.cfg to configure your project.
This file was generated with PyScaffold 3.2.3.
PyScaffold helps you to put up the scaffold of your new Python project.
Learn more under: https://pyscaffold.org/
"""
import sys
from pkg_resources impo... | [
"finkernagel@imt.uni-marburg.de"
] | finkernagel@imt.uni-marburg.de |
488cc25f3e057e4d4e5c2f5515b8c69b37e885ad | 3851985ce5793de321c8a6d7eacf889a5c4d89e4 | /aries_cloudagent/core/tests/test_plugin_registry.py | 92ec76a398807d161e315d9e6b3ed2472e3f3324 | [
"LicenseRef-scancode-dco-1.1",
"Apache-2.0"
] | permissive | Nick-1979/aries-cloudagent-python | af812069c648f064e5fac05616b7b4910ab921ed | de322abbeaf16a7ca9769d31f9d030c0fb2846a5 | refs/heads/master | 2021-04-21T07:48:23.066245 | 2020-03-24T16:45:43 | 2020-03-24T16:45:43 | 249,762,233 | 1 | 0 | Apache-2.0 | 2020-03-24T16:40:53 | 2020-03-24T16:40:52 | null | UTF-8 | Python | false | false | 1,490 | py | from asynctest import TestCase as AsyncTestCase, mock as async_mock
from ...config.injection_context import InjectionContext
from ...utils.classloader import ClassLoader
from ..plugin_registry import PluginRegistry
class TestPluginRegistry(AsyncTestCase):
def setUp(self):
self.registry = PluginRegistry(... | [
"cywolf@gmail.com"
] | cywolf@gmail.com |
d1d9d993c26ae3c749bd4f9afb49800aefeedb7b | c34d3dfeb068b1a8d7b017d352c91ec9401f115b | /experiment/tak/text2command/tutorial/venv/bin/ftfy | 060b4650d6eed19d0baefae8dbede2227b788770 | [] | no_license | HiroIshikawa/speech2craft | ef6c54359f513f5aefe801ae43f2588c8981d891 | 7717aed4942999780164b8c9060e1dc7bd502c1d | refs/heads/master | 2021-01-19T21:59:30.406605 | 2017-06-27T14:59:12 | 2017-06-27T14:59:12 | 88,735,488 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | #!/Users/hiro99ishikawa/Dropbox/school_projects/6spring2017/175/project/experiment/spacy_tutorial/venv/bin/python3
# EASY-INSTALL-ENTRY-SCRIPT: 'ftfy==4.4.2','console_scripts','ftfy'
__requires__ = 'ftfy==4.4.2'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] ... | [
"hiro52ishikawa@gmail.com"
] | hiro52ishikawa@gmail.com | |
5650104f810a270b0667179b4ddcce2860b9be30 | 72cc55e9599276203a99ba3e5dc211559b00ad76 | /book_liveblog/wsgi.py | 4c6fee4e22d83f50aa6c89a06c96105b42e32244 | [] | no_license | hanzhichao/django_liveblog | b551cfacc8e0991728aefddc10f54d5a20d0692c | 0a58ebcfb5fd102b7d83d025c6131aef81923a5c | refs/heads/master | 2021-09-05T22:52:03.262756 | 2018-01-31T13:49:57 | 2018-01-31T13:49:57 | 104,088,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
WSGI config for book_liveblog project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO... | [
"han_zhichao@sina.cn"
] | han_zhichao@sina.cn |
4d86d567418021ca56c5beb0432c631977639bc9 | f9d5f6e8e0021b03a3429605a059375a8d9193d1 | /package_from_installed.py | 7ef04fd8d2a902ffa3083ab2919a1a238e378d9b | [] | no_license | ftahmed/msvc2013onwine | a1d195e2828cce4117a95c325bddeb2b45b27443 | 996659d63be12696e092b40d946882a403d123e7 | refs/heads/master | 2021-01-17T22:18:46.268568 | 2015-05-12T20:27:42 | 2015-05-12T20:27:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,278 | py | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
From a system-installed copy of the toolchain, packages all the required bits
into a .zip file.
It assumes default install locations for tools, in parti... | [
"ehsan@mozilla.com"
] | ehsan@mozilla.com |
498e9af00a73cf1f71cbf81f6d19da86078aa56d | 8613ec7f381a6683ae24b54fb2fb2ac24556ad0b | /70~79/ABC071/bnot.py | 9ea6b41f33667b764a8a5f3a347a202be7a65d15 | [] | no_license | Forest-Y/AtCoder | 787aa3c7dc4d999a71661465349428ba60eb2f16 | f97209da3743026920fb4a89fc0e4d42b3d5e277 | refs/heads/master | 2023-08-25T13:31:46.062197 | 2021-10-29T12:54:24 | 2021-10-29T12:54:24 | 301,642,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | s = input()
for i in range(26):
if s.count(chr(ord("a") + i)) == 0:
print(chr(ord("a") + i))
exit()
print("None") | [
"yuuya15009@gmail.com"
] | yuuya15009@gmail.com |
d9acb6046dfbc3236d8937d16f0d309fed1f6164 | b06e21f2731fd1000fbe5694312aa9cebf543809 | /ElectronPhononCoupling/core/ddbfile.py | 935e1037cec2ce342aed7719a77cf2a39c0006d5 | [] | no_license | Maruf001/ElectronPhononCoupling | 932be124a58b1d49ebbdb5655ea7e30fcf9b6e20 | 434be79b20397bcc8ab4789f7fbde9de55deca77 | refs/heads/master | 2023-03-17T09:42:27.631568 | 2021-01-06T21:37:06 | 2021-01-06T21:37:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,980 | py |
from __future__ import print_function
__author__ = "Gabriel Antonius, Samuel Ponce"
import os
import warnings
import numpy as np
from numpy import zeros
import netCDF4 as nc
from .mpi import MPI, comm, size, rank, mpi_watch
from .constants import tol5, tol6, me_amu, kb_HaK
from .functions import get_bose
from . i... | [
"gabriel.antonius@gmail.com"
] | gabriel.antonius@gmail.com |
a27d5d8af270a654ded5ce5a4130f7bad3dffe0a | 2e9dbde82d0f9a215d30ee4a807cc5afe4ad848e | /clock/profiles/middleware.py | 1ef4e6c8eed256e32552917668cf7d25d7261ccc | [
"MIT"
] | permissive | mimischi/django-clock | b053788249ec47b23fc2f741be30b896f54ab149 | 3914da6a48b89cb80ab5205c6ce1c279012472fe | refs/heads/develop | 2020-04-04T06:00:47.981324 | 2018-05-27T12:29:05 | 2018-05-27T12:29:05 | 43,012,938 | 6 | 4 | MIT | 2018-05-27T12:29:06 | 2015-09-23T16:25:29 | Python | UTF-8 | Python | false | false | 1,219 | py | from django.conf.urls.i18n import is_language_prefix_patterns_used
from django.middleware.locale import LocaleMiddleware
from django.utils import translation
from clock.profiles.models import UserProfile
class LocaleMiddlewareExtended(LocaleMiddleware):
"""This middleware extends Djangos normal LocaleMiddleware ... | [
"gecht.m@gmail.com"
] | gecht.m@gmail.com |
107df7a0e5ce28dc0a41353af47e8273ee9ee549 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /work_or_world/right_group/work_or_part/young_life/world/new_thing_or_small_woman.py | 21ff767cbbc1678056687a4bb608c2f90f9a18ff | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py |
#! /usr/bin/env python
def year_or_work(str_arg):
world(str_arg)
print('number')
def world(str_arg):
print(str_arg)
if __name__ == '__main__':
year_or_work('come_child')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
b2752676dc368bf1edfcca13a05dff4b1d09244d | 4ce2cff60ddbb9a3b6fc2850187c86f866091b13 | /tfrecords/src/wai/tfrecords/object_detection/core/batcher_test.py | 1e22a572cceb6031539e660c79130b2c7b99c527 | [
"Apache-2.0",
"MIT"
] | permissive | 8176135/tensorflow | 18cb8a0432ab2a0ea5bacd03309e647f39cb9dd0 | 2c3b4b1d66a80537f3e277d75ec1d4b43e894bf1 | refs/heads/master | 2020-11-26T05:00:56.213093 | 2019-12-19T08:13:44 | 2019-12-19T08:13:44 | 228,970,478 | 0 | 0 | null | 2019-12-19T03:51:38 | 2019-12-19T03:51:37 | null | UTF-8 | Python | false | false | 5,985 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"coreytsterling@gmail.com"
] | coreytsterling@gmail.com |
62e64dfe9d700d8ec7b1cead731218ebd10a44ea | bb970bbe151d7ac48d090d86fe1f02c6ed546f25 | /arouse/_dj/db/backends/oracle/compiler.py | a098adba42b387847e1a7ea80c74a94da3510a2b | [
"Python-2.0",
"BSD-3-Clause"
] | permissive | thektulu/arouse | 95016b4028c2b8e9b35c5062a175ad04286703b6 | 97cadf9d17c14adf919660ab19771a17adc6bcea | refs/heads/master | 2021-01-13T12:51:15.888494 | 2017-01-09T21:43:32 | 2017-01-09T21:43:32 | 78,466,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,048 | py | from arouse._dj.db.models.sql import compiler
class SQLCompiler(compiler.SQLCompiler):
def as_sql(self, with_limits=True, with_col_aliases=False, subquery=False):
"""
Creates the SQL for this query. Returns the SQL string and list
of parameters. This is overridden from the original Query ... | [
"michal.s.zukowski@gmail.com"
] | michal.s.zukowski@gmail.com |
7bf98c286a1ea5b67caef02f49147b68a2c65ed7 | 85b8a52f1be2c4838f885f0e5a4d6963f4109dfe | /codes_/0242_Valid_Anagram.py | 2e9af90a62a0b06ef6ba06c0cf8cb3861493ee08 | [
"MIT"
] | permissive | SaitoTsutomu/leetcode | 4cc5bac4f983b287ec1540d188589ce3dd6e409a | 4656d66ab721a5c7bc59890db9a2331c6823b2bf | refs/heads/master | 2023-03-12T11:37:29.051395 | 2021-02-27T06:11:34 | 2021-02-27T06:11:34 | 281,815,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | # %% [242. *Valid Anagram](https://leetcode.com/problems/valid-anagram/)
# 問題:2つの文字列がアナグラムかどうかを返す
# 解法:collections.Counterを用いる
class Solution:
def isAnagram(self, s: str, t: str) -> bool:
return collections.Counter(s) == collections.Counter(t)
| [
"tsutomu7@hotmail.co.jp"
] | tsutomu7@hotmail.co.jp |
a9298b5a6ccd581226c2b508678daf7a0288d332 | d2c92cfe95a60a12660f1a10c0b952f0df3f0e8e | /zz91mobile/mobile/pingpp/certificate_blacklist.py | 420deff41b859b0b1c656b590b60a8b8b9d0878d | [] | no_license | snamper/zzpython | 71bf70ec3762289bda4bba80525c15a63156a3ae | 20415249fa930ccf66849abb5edca8ae41c81de6 | refs/heads/master | 2021-12-21T16:12:22.190085 | 2017-09-30T06:26:05 | 2017-09-30T06:26:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 968 | py | import hashlib
from pingpp.error import APIError
BLACKLISTED_DIGESTS = [
'05c0b3643694470a888c6e7feb5c9e24e823dc531',
'5b7dc7fbc98d78bf76d4d4fa6f597a0c901fad5c'
]
def verify(certificate):
"""Verifies a PEM encoded certificate against a blacklist of known revoked
fingerprints.
re... | [
"2496256902@qq.com"
] | 2496256902@qq.com |
9ea296767e1557de0a4f4913f45b4b01c53f2940 | 665add8c434df0445294931aac7098e8a0fa605b | /ch5/designer/connect.py | 2cc9044ec0e4fa25e176af549690aa94c514b07e | [] | no_license | swkim01/RaspberryPiWithIOT | f43cef567ca48f2ce9deec0cba87fa801dcbcbe2 | d4b5c9aeb09490429a551f357d3c83ab04deed82 | refs/heads/master | 2023-04-14T20:04:33.924243 | 2023-04-12T05:15:32 | 2023-04-12T05:15:32 | 48,477,439 | 4 | 14 | null | null | null | null | UTF-8 | Python | false | false | 3,111 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'connect.ui',
# licensing of 'connect.ui' applies.
#
# Created: Wed Aug 28 17:40:14 2019
# by: pyside2-uic running on PySide2 5.11.2
#
# WARNING! All changes made in this file will be lost!
from PySide2 import QtCore, QtGui, QtWidgets
... | [
"swkim01@gmail.com"
] | swkim01@gmail.com |
3101f4b4d66bc96addf9fdcaea38f55c99999bca | e4638ff152796e13f5d176c3aa303246bc57fced | /ontask/migrations/0033_auto_20180829_0940.py | 9cee4f91ea8ff26b9f7ad6702ef99420218c36f6 | [
"MIT",
"LGPL-2.0-or-later",
"Python-2.0",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | LucasFranciscoCorreia/ontask_b | 8989ec86905d308e929b6149b52b942321be2311 | 5473e9faa24c71a2a1102d47ebc2cbf27608e42a | refs/heads/master | 2020-07-25T16:52:00.173780 | 2019-09-13T23:31:28 | 2019-09-13T23:31:28 | 208,359,655 | 0 | 0 | MIT | 2019-09-13T23:00:53 | 2019-09-13T23:00:52 | null | UTF-8 | Python | false | false | 414 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-08-29 00:10
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('ontask', '0032_auto_20180829_0939'),
]
operations = [
migrations.AlterUniqueTogeth... | [
"abelardo.pardo@gmail.com"
] | abelardo.pardo@gmail.com |
fe3662dcd8f362491af0c4761067ffe9eed642c7 | 9f0f5816b9d810c9ce01c56588024e1c804809fe | /study/day3/day3_3.py | 9fc5cd1c0a6e16afeeab8578680ad7c92ea6c11c | [] | no_license | parkwisdom/Python-Study-step1 | bf8cc8c5f89bfb9ccbb395a3827e23d4f0d6ae9a | bae2f5653c5a0d1eac1d4b89476ece7e0802d33b | refs/heads/master | 2020-04-03T13:49:58.990930 | 2018-10-30T00:37:29 | 2018-10-30T00:37:29 | 155,300,210 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,885 | py | import re
# re.compile('\\white')#\white
pat = re.compile('Java|Python')
res=pat.match('Python')
print(res)
res=pat.match('Java')
print(res)
res=pat.match('PythonJava')
print(res)
res=pat.match('PythonRuby')
print(res)
res=pat.match('RubyPython')
print(res)
print(re.search('How','How are you'))
print(re.search('are','... | [
"43980901+parkwisdom@users.noreply.github.com"
] | 43980901+parkwisdom@users.noreply.github.com |
7e25a96700cf91cac44a590dab054dbb0d049013 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_twinned.py | d2947990b7968c1468d068757b1b53885272e675 | [
"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 | 228 | py |
from xai.brain.wordbase.verbs._twin import _TWIN
#calss header
class _TWINNED(_TWIN, ):
def __init__(self,):
_TWIN.__init__(self)
self.name = "TWINNED"
self.specie = 'verbs'
self.basic = "twin"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
47c2c3d706674d36d2e15fa9fd99cbd6aa7e8634 | 0179aa7d1a6ea99f6191e596e23a4ac900de979f | /gcp/evaluation/dtw_utils.py | b9ef712e91a591cb92dc3c1385638cac8c4430ed | [] | no_license | Douxation/video-gcp | 562aa10caf68fe6fe0bd53a5989e95746de3c93c | 4608a543fe60c550363de864be7a38c4f663836a | refs/heads/master | 2022-12-04T15:44:23.105262 | 2020-07-10T19:48:20 | 2020-07-10T19:48:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,889 | py | import numpy as np
import torch
from scipy.spatial.distance import cdist
from math import isinf
try:
import gcp.evaluation.cutils as cutils
except:
pass
def dtw_dist(x, y, dist=None, warp=1, w=np.inf, s=1.0):
"""
Computes Dynamic Time Warping (DTW) of two sequences.
:param array x: N1*M array
... | [
"oleh.rybkin@gmail.com"
] | oleh.rybkin@gmail.com |
6b87f507408b3fc904e01f2243e6137866d10c72 | f7258525ad6c311a138a82fc59c4d84e318cc30f | /book1/aa.py | ea38e13a6b2d90fbb8e0d06ce860a7287256fa16 | [] | no_license | lianzhang132/book | e358ae555de96e36dbf9ac6c1f7f887444d91e81 | 71ed81a6464997c77dd75b4849ef6eecf7a2e075 | refs/heads/master | 2020-07-11T03:18:07.352745 | 2019-08-26T08:45:16 | 2019-08-26T08:45:16 | 204,434,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,174 | py | class Auther(models.Model):
nid = models.AutoField(primary_key=True)
name= models.CharField(max_length=32)
age=models.IntegerField()
authorinfo=models.OneToOneField(to="Auther_info",on_delete=models.CASCADE)
def __str__(self):
return (self.name)
class Auther_info(models.Model):
nid = m... | [
"2327431669@qq.com"
] | 2327431669@qq.com |
7b64769558d2289317314543419e07fade2628ca | 155ab3ed394669fa552e6bcb47ad9ae62519c028 | /Arcade/Python/34 - multiplicationTable.py | efe69edc398e1e10b349046b3ff45dd73382cdb0 | [] | no_license | rbiegelmeyer/CodeFights-Python | e3336b9249c55b0bd44ca81917ee38557ab06adc | e0e63f14677db9741a0531fdc8aa6e44d2155f33 | refs/heads/master | 2021-09-28T22:05:07.442470 | 2018-11-20T21:10:45 | 2018-11-20T21:10:45 | 108,603,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | def multiplicationTable(n):
return [[(x+1)*(y+1) for x in range(n)] for y in range(n)]
| [
"robertobiegel@gmail.com"
] | robertobiegel@gmail.com |
c565ec43d09ff8f46b60ef4c43cf2f2aab5929a4 | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /third_party/chromite/cbuildbot/builders/generic_builders.py | 1f47b675cd72b18f023d22c575debb47b20797c0 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | Python | false | false | 12,874 | py | # Copyright 2015 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Module containing the generic builders."""
from __future__ import print_function
import multiprocessing
import os
import sys
import tempfile
import t... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
17d6a1d1e5388c6b85ab8a475b79ab605c31a328 | 8997a0bf1e3b6efe5dd9d5f307e1459f15501f5a | /html_parsing/get_population_from_wikidata.py | b298fdfe997103ec021047c1272812e4fb2d6d89 | [
"CC-BY-4.0"
] | permissive | stepik/SimplePyScripts | 01092eb1b2c1c33756427abb2debbd0c0abf533f | 3259d88cb58b650549080d6f63b15910ae7e4779 | refs/heads/master | 2023-05-15T17:35:55.743164 | 2021-06-11T22:59:07 | 2021-06-11T22:59:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,613 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
import requests
from bs4 import BeautifulSoup
def get_populations(url: str) -> dict:
rs = requests.get(url)
root = BeautifulSoup(rs.content, 'html.parser')
# P1082 -- идентификатор для population
population_node = root.select_o... | [
"ilya.petrash@inbox.ru"
] | ilya.petrash@inbox.ru |
457f651d068dae1e551d1eb386df946c6f285aa0 | 200bcbebf6e4009abe2807cd5d844d655fb431c2 | /ch16/ex_1.py | 4a5bec19fa2e81e6d802f1d059478721dc42b9d3 | [] | no_license | SHUHAIB-AREEKKAN/think_python_solutions | 7b022fd7e19e87495c2c9722e0b1516d4fa83b85 | bf1996d922574c367ea49e9954940662166c46b2 | refs/heads/master | 2021-01-25T08:07:19.865147 | 2017-06-08T07:43:05 | 2017-06-08T07:43:05 | 93,716,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py |
class Distance():
""" x start ,and y end poin"""
def distance_between_points(x,y):
print("distance between"+str(y-x))
finder=Distance()
finder.x=10
finder.y=30
distance_between_points(finder.x,finder.y)
| [
"homeshuhaib@gmail.com"
] | homeshuhaib@gmail.com |
c51427dac75e8302202610302e6adea7783b101a | 1e5cbe7d3085a5406c3bf4c0dd3c64ec08005e19 | /p017.py | b6a8c9aab5a2ed049721f5f7a8d9ce1d7b608766 | [] | no_license | mingrammer/project-euler | 0dfdd0ba83592c49003cb54708e2c520de27f6ac | 4ae57ac9279472c68a27efc50f6d0317f9b73f17 | refs/heads/master | 2021-01-21T16:38:28.983077 | 2018-09-26T10:24:21 | 2018-09-26T10:24:21 | 38,953,014 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | # Number letter counts
one_digit = [3, 3, 5, 4, 4, 3, 5, 5, 4]
ten_to_twenty = [3, 6, 6, 8, 8, 7, 7, 9, 8, 8]
two_digit = [6, 6, 5, 5, 5, 7, 6, 6]
hundred = 7
thousand = 8
and_letter = 3
sum_len = 0
sum_len += sum(one_digit)
sum_len += sum(ten_to_twenty)
sum_len += 10*sum(two_digit) + 8*sum(one_digit)
sum_len += 10... | [
"k239507@gmail.com"
] | k239507@gmail.com |
410bb29639ebcc51003884b5c567fb3451c74f12 | 3dcc44bf8acd3c6484b57578d8c5595d8119648d | /MOVED_TO_ROSETTA_TOOLS/pdb_util/read_pdb.py | acd9665f3b78b4dcff882cfab945127df48531b7 | [] | no_license | rhiju/rhiju_python | f0cab4dfd4dd75b72570db057a48e3d65e1d92c6 | eeab0750fb50a3078a698d190615ad6684dc2411 | refs/heads/master | 2022-10-29T01:59:51.848906 | 2022-10-04T21:28:41 | 2022-10-04T21:28:41 | 8,864,938 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 948 | py | #!/usr/bin/python
# quick and dirty PDB reader
def read_pdb( filename ):
coords = {}
pdb_lines = {}
sequence = {}
for line in open( filename ):
if (len(line)>54 and (line[0:4] == 'ATOM' or line[0:4] == 'HETA' ) ):
resnum = int( line[22:26] )
chain = line[21]
... | [
"rhiju@stanford.edu"
] | rhiju@stanford.edu |
bd06eae999b50905759544ab6ba8529547dfa5a9 | 6e466f7432de5f0b66a72583bc33bf0c96120cd4 | /userprofiles/views.py | 2985d63d975451dcb8e22f6676228a78da2b4370 | [] | no_license | Venezolanos/cines-unidos | c9ecc471f1d972af0a3dde89b979e3b8426e712c | e9f5f3b69d9a87098cb9ebf8e392677f111f7f51 | refs/heads/master | 2020-05-29T14:40:30.130621 | 2016-08-25T19:58:53 | 2016-08-25T19:58:53 | 65,574,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | from django.shortcuts import render
from django.views.generic import CreateView
from .models import UserProfile
class UserCreateView(CreateView):
model = UserProfile
template_name = 'userprofiles/user_create.html'
success_url = '/'
form_class = 'UserForm'
def form_valid(self, form):
form.save()
return supe... | [
"undefined.hlo.o@gmail.com"
] | undefined.hlo.o@gmail.com |
9a6e984e05f946fb47176fd1e463fb0fbbe1f739 | 8168895c50924ce7f2df0570c490cc4c9cea3619 | /jupytext/cli.py | a1555c3dd4e7c4583ae59f99c151a3128ffb1ede | [
"MIT"
] | permissive | GapData/jupytext | fe146bc59ab1cfe623840fad5a900b70dc84d05b | ae943a9a701090fe16c69e0e87b784f833a2ea14 | refs/heads/master | 2020-04-01T18:27:54.812349 | 2018-10-16T21:13:14 | 2018-10-16T21:13:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,838 | py | """Command line conversion tools `jupytext` and `nbsrc`
"""
import os
import sys
import argparse
from .jupytext import readf, reads, writef, writes
from .formats import NOTEBOOK_EXTENSIONS, JUPYTEXT_FORMATS, check_file_version, one_format_as_string, parse_one_format
from .combine import combine_inputs_with_outputs
fro... | [
"marc.wouts@gmail.com"
] | marc.wouts@gmail.com |
49be057ff2047be2b384ad0122012c526a1548b1 | afabd1f1778d4911c825409501f215c634319f0b | /src/python/wordalign.py | 3c3e198d3fff84aee4424baca774edd1fa2272e8 | [] | no_license | texttheater/xlci | 030b275a8ecf2bea640c9f9b70aa3fb9fbc768df | 702d3e90b2a97f56b98da62cd072f0988fcfa5a7 | refs/heads/master | 2021-12-24T09:40:10.803445 | 2021-12-22T13:54:49 | 2021-12-22T13:54:49 | 173,109,877 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,162 | py | #!/usr/bin/env python3
"""Converts (M)GIZA++ output to a token-offset-based format.
Input example:
# Sentence pair (1) source length 8 target length 5 alignment score : 0.000275724
tom is obviously scared .
NULL ({ 2 }) jak ({ }) je ({ }) vidět ({ 3 }) , ({ }) tom ({ 1 }) má ({ }) strach ({ 4 }) . ({ 5 })
Assumi... | [
"noreply@texttheater.net"
] | noreply@texttheater.net |
f9d797c43df21655a86fdee684138f49cb9bed79 | af33dc088dbbd4274abf44c1356dc3a66c65ca28 | /normalize.py | c4c09e44d178aecccf7ba71c87dc260b8ee0261a | [] | no_license | rasoolims/PBreak | dce2b14165e864803544a062a4dc68b3a6edffa7 | f2f5b4bdc626f1695ccd55aed8e35c8c69e827bf | refs/heads/master | 2023-01-18T15:58:07.947365 | 2020-12-09T18:57:34 | 2020-12-09T18:57:34 | 300,011,165 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | from break_words import *
if __name__ == "__main__":
parser = get_lm_option_parser()
(options, args) = parser.parse_args()
normalizer = Normalizer()
with open(options.input_path, "r") as r, open(options.output_path, "w") as w:
for i, line in enumerate(r):
sen = line.strip()
... | [
"rasooli.ms@gmail.com"
] | rasooli.ms@gmail.com |
f457a73cbca000fc2a445c94d38d41594ff73c95 | 64c5341a41e10ea7f19582cbbf3c201d92768b9f | /webInterface/aligner_webapp/yalignve/bin/easy_install | 93fd0dc0b09c482e2de9bddd82e729cf5bbb7991 | [] | no_license | CLARIN-PL/yalign | 6b050b5c330b8eaf7e1e2f9ef83ec88a8abe5164 | 6da94fbb74e803bea337e0c171c8abff3b17d7ee | refs/heads/master | 2023-06-10T18:30:42.112215 | 2021-06-24T13:07:17 | 2021-06-24T13:07:17 | 51,368,327 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 281 | #!/home/nlp/Downloads/Aligner/aligner_webapp/yalignve/bin/python2
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"krzysztof@wolk.pl"
] | krzysztof@wolk.pl | |
a773e41ef132000b96c67ea4fe54eb8f7125c6ab | 93c22f53bc7ce33a4384c53f02988e6c9ccd86c9 | /re_flags_ascii.py | 392bb3d7d26fc66b2dea16eb68f1e9ebb5721655 | [
"Apache-2.0"
] | permissive | Kalpavrikshika/python_modules | a5ce678b58f94d32274846811388d991c281d4d3 | 9f338ab006dd5653fd7f65ff253bc50e0fd61fc6 | refs/heads/master | 2020-03-08T02:23:08.650248 | 2018-06-28T07:38:01 | 2018-06-28T07:38:01 | 127,858,450 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | import re
text = u'Français złoty Österreich'
pattern = r'\w+'
#Give Ascii flag to compile in ascii.
ascii_pattern = re.compile(pattern, re.ASCII)
#Defined in unicode by default.
unicode_pattern = re.compile(pattern)
print ('Text :', text)
print ('Pattern :', pattern)
print ('ASCII : ', list(ascii_pattern.finda... | [
"vrikshikakalpa@gmail.com"
] | vrikshikakalpa@gmail.com |
446b1954ef0713f46373376108286f757197384f | bade79e88dd32b42b4841a1e1a94eddfc86652bf | /Agreement/modus/skio/protocol/pms.py | a2649f7c82895dd6c1173cf5fd9b2ba7fdb2a83c | [] | no_license | a452669850/DCSNEW | 927171b10f455b396b50e8400001efcdb5fd1217 | 7578b6b18e021108c3e8b31c5dab2a17ac16a79d | refs/heads/master | 2023-01-04T11:25:09.787625 | 2020-10-20T13:16:54 | 2020-10-20T13:16:54 | 305,712,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,498 | py | import socket
import struct
import typing
from modbus_tk import defines as cst
from modbus_tk.exceptions import ModbusError
from modbus_tk.modbus_tcp import TcpMaster
from pubsub import pub
from Agreement.modus.skio import exception
from Agreement.modus.skio.define import IDev, IVar, T_Val, ValType
_T_OUTPUT_VALUE =... | [
"a452669850@outlook.com"
] | a452669850@outlook.com |
217ccb92296cf39042a30cba2c587c4da9ac194d | 6e402eabc041dfef73a41a987b53eea6b566fb0c | /best/buses/handlers/bus.py | b35a6dcae3ad41131a502f9e77f978a3afe77103 | [] | no_license | batpad/bombayography | fb125a168ccdb217aff3672074001edb9866f2e8 | 0c6a64d32f826f8b9e43a695a327d64fcb4f58cf | refs/heads/master | 2021-01-25T05:15:51.161024 | 2011-01-02T10:30:23 | 2011-01-02T10:30:23 | 1,213,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 910 | py | #!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
from rapidsms.contrib.handlers.handlers.keyword import KeywordHandler
from buses.models import *
class BestHandler(KeywordHandler):
keyword = "route"
def help(self):
self.respond("Send route <bus_no>")
def handle(self, text):
bus_no = t... | [
"b@pad.ma"
] | b@pad.ma |
1574bf91fa053aef47cf8548c54380b76988e91f | 80861e99492590d314dde6f3f19103c6d36fd02f | /ucsmsdk/methodmeta/EquipmentInstantiateNNamedTemplateMeta.py | 526b9387bec99f130ce1272c4922def3c95d0f68 | [
"Apache-2.0"
] | permissive | CiscoUcs/ucsmsdk | 2abf67cc084b0f23e453ae3192669a56018aa784 | d0f0fe2bfc7507e3189408e0113e204bd0d69386 | refs/heads/master | 2023-08-31T04:07:22.546644 | 2023-08-30T06:44:19 | 2023-08-30T06:44:19 | 46,483,999 | 83 | 94 | NOASSERTION | 2023-08-30T06:44:20 | 2015-11-19T10:06:22 | Python | UTF-8 | Python | false | false | 1,336 | py | """This module contains the meta information of EquipmentInstantiateNNamedTemplate ExternalMethod."""
from ..ucscoremeta import MethodMeta, MethodPropertyMeta
method_meta = MethodMeta("EquipmentInstantiateNNamedTemplate", "equipmentInstantiateNNamedTemplate", "Version142b")
prop_meta = {
"cookie": MethodProperty... | [
"vijayvikrant84@gmail.com"
] | vijayvikrant84@gmail.com |
be7c6ed98d927a0bf90132514d10d3e80d087d74 | 6f06e33ee01027b8429fdf8563fae88b65e604e4 | /Lab04_03_QueuRunners.py | c45d63f3a357c54085ef0827a8092782e452a2b9 | [] | no_license | wjcheon/DeeplearningPractice_MODU | 0f8bf29f59087dffca92d3cb82eebdab545ee811 | 40e0115c71ab03fc2b038718516780a86feb0bfd | refs/heads/master | 2021-01-01T06:52:01.075539 | 2017-08-24T07:15:55 | 2017-08-24T07:15:55 | 97,533,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,366 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Tue Jul 18 13:58:48 2017
@author: Wonjoong Cheon
"""
#%%
import tensorflow as tf
import numpy as np
filename_queue = tf.train.string_input_producer(['data-01-test-score.csv','data-01-test-score.csv'])
xy = np.loadtxt('data-01-test-score.csv', delimiter=',... | [
"you@example.com"
] | you@example.com |
a4e969cf1aba0818fcce2f0589c09f8557df1e0b | 1867c4c3f402424863f0dce931e4d4553d04bb0a | /office/migrations/0007_auto_20210110_2013.py | 7e6ff6eea0045a4fcfe44fe6ebca6e0a16256754 | [] | no_license | AnthonyRedGrave/innowise-task-api | 67f02792cf1b8fe30e0469a85375d9a45cbf858b | 819593d0873c40bd20925a9cd503548bb1544295 | refs/heads/master | 2023-02-20T13:51:35.054540 | 2021-01-27T18:37:57 | 2021-01-27T18:37:57 | 327,998,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | # Generated by Django 3.1.5 on 2021-01-10 17:13
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('office',... | [
"obarnev@inbox.ru"
] | obarnev@inbox.ru |
a5a46356428a18fbccc661b250af675d7b5334c5 | 8dde6f201657946ad0cfeacab41831f681e6bc6f | /62. Unique Paths.py | 59341fd6c2040b99346b7d2dce4546f675fd0360 | [] | no_license | peraktong/LEETCODE_Jason | c5d4a524ba69b1b089f18ce4a53dc8f50ccbb88c | 06961cc468211b9692cd7a889ee38d1cd4e1d11e | refs/heads/master | 2022-04-12T11:34:38.738731 | 2020-04-07T21:17:04 | 2020-04-07T21:17:04 | 219,398,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | class Solution(object):
def uniquePaths(self, m, n):
"""
:type m: int
:type n: int
:rtype: int
"""
# DP
dp = [[1] * n for i in range(m)]
for i in range(1, m):
for j in range(1, n):
dp[i][j] = dp[i - 1][j] + dp[i][j - 1]
... | [
"caojunzhi@caojunzhisMBP3.fios-router.home"
] | caojunzhi@caojunzhisMBP3.fios-router.home |
ac0e03c9aabb196bcd25e697acd16276ed0dfb48 | 4944541b0cd0fa48a01581ffce5e7ce16f5cf8d7 | /src/Backend/MbkExam/SimpleExam/views.py | 041952f4adbc8875326e27a1df3d2cbda002813f | [] | no_license | aballah-chamakh/the_exam | 49a5b5c9d28c61b2283f2d42d2b2fb771dd48bf4 | dbbbdc7a955ca61572f26430a7788407eaf0c632 | refs/heads/main | 2023-03-28T13:19:18.148630 | 2021-04-03T22:12:51 | 2021-04-03T22:12:51 | 354,404,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | from django.shortcuts import render
from rest_framework.decorators import action
from rest_framework.response import Response
from rest_framework import viewsets,status,generics
from .models import SimpleExam
from .serializers import SimpleExamSerializer
class SimpleExamViewSet(viewsets.ModelViewSet):
serializer... | [
"chamakhabdallah8@gmail.com"
] | chamakhabdallah8@gmail.com |
0284d92e23809cd7d04fd9c59c3266ec025e9d92 | 3dc9f2aaea2620d6c382211369548d9b52f4039a | /FaceQuality/qualityface/config.py | f0753116b5bb74da50ad2f23270be1c25b0be2cd | [
"MIT"
] | permissive | banana1024/FaceProjects | 6fd4961d73356139c7ebba85428a9c40b02335a8 | 87ae30191c01eadc3cfa59b751db91f1aa76bc5d | refs/heads/master | 2022-09-18T15:40:19.346332 | 2020-05-29T08:15:17 | 2020-05-29T08:15:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | import torch
import torchvision.transforms as T
class Config:
# data preprocess
test_transform = T.Compose([
T.ToTensor(),
T.Normalize(mean=[0.5] * 3, std=[0.5] * 3),
])
# training settings
checkpoints = "checkpoints"
restore_model = "last.pth"
device = 'cuda' if torch... | [
"forrest_zhu@foxmail.com"
] | forrest_zhu@foxmail.com |
1cc98c58b0790dbe9fcc7b0cafa6d97fb43db76b | c7a39ecf433a6b954096aed2ef8ef2b3366fab35 | /quora_project/questions/api/views.py | 686c01b36dd75ef3c615aec616367168208b3896 | [
"MIT"
] | permissive | vojta-janousek/Questions-and-Answers-Website | 78f28a8f8ad6e66f7f6aca6db733e41eef3c1485 | 02cfb6274a73f64382e57f3718beb5ee89c2d1ac | refs/heads/master | 2020-11-24T16:09:10.519718 | 2020-04-01T20:58:17 | 2020-04-01T20:58:17 | 228,234,952 | 0 | 0 | MIT | 2020-06-07T17:19:59 | 2019-12-15T18:58:25 | Python | UTF-8 | Python | false | false | 2,803 | py | from rest_framework import viewsets, generics, status
from rest_framework.exceptions import ValidationError
from rest_framework.generics import get_object_or_404
from rest_framework.permissions import IsAuthenticated
from rest_framework.views import APIView
from rest_framework.response import Response
from questions.a... | [
"janousek315@gmail.com"
] | janousek315@gmail.com |
682ad7458ee8c3a3b669d39d903e656bb7072887 | 651a296c8f45b5799781fd78a6b5329effe702a0 | /monomial/mono_upto_enum.py | 3a359439d6875442b34669e9b22902025af36554 | [] | no_license | pdhhiep/Computation_using_Python | 095d14370fe1a01a192d7e44fcc81a52655f652b | 407ed29fddc267950e9860b8bbd1e038f0387c97 | refs/heads/master | 2021-05-29T12:35:12.630232 | 2015-06-27T01:05:17 | 2015-06-27T01:05:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,963 | py | #!/usr/bin/env python
def mono_upto_enum ( m, n ):
#*****************************************************************************80
#
## MONO_UPTO_ENUM enumerates monomials in M dimensions of degree up to N.
#
# Discussion:
#
# For M = 2, we have the following values:
#
# N VALUE
#
# 0 1
# 1 3
# ... | [
"siplukabir@gmail.com"
] | siplukabir@gmail.com |
9957e7a14d7db921fad9a4cdccf9aeaacb5ce2e9 | 559f3dec0964d2e0f86c6c871371fe779cf3726c | /Matting/tools/predict.py | 83cff09e4a9dc949138a30d8d2bcd28e38cacff4 | [
"Apache-2.0"
] | permissive | PaddlePaddle/PaddleSeg | 319ab26665ea492527a1949671650135123ffc39 | 2c8c35a8949fef74599f5ec557d340a14415f20d | refs/heads/release/2.8 | 2023-08-31T09:08:06.724717 | 2023-08-18T01:59:56 | 2023-08-18T01:59:56 | 204,380,779 | 8,531 | 1,866 | Apache-2.0 | 2023-09-12T02:30:42 | 2019-08-26T02:32:22 | Python | UTF-8 | Python | false | false | 3,468 | py | # Copyright (c) 2021 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 applic... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
fa28d630bdb2be7b15926769daaf0cf6361c335e | 8bf8ab29cb25de00c6a799d1f58610528b810592 | /모의 SW 역량테스트/5648. [모의 SW 역량테스트] 원자 소멸 시뮬레이션/참고.py | 29928d51765559d7b11a787d3a4eb2fcd27baddb | [] | no_license | mgh3326/sw_expert_academy_algorithm | fa93fb68862cabeba8f9f5fff00a87f26a014afc | 97cbd2a1845e42f142d189e9121c3cd5822fc8d8 | refs/heads/master | 2020-07-03T21:40:29.948233 | 2019-11-23T07:26:15 | 2019-11-23T07:26:15 | 202,058,567 | 0 | 0 | null | 2019-11-30T06:11:34 | 2019-08-13T03:40:18 | Python | UTF-8 | Python | false | false | 2,743 | py | T = int(input())
for tc in range(1, T + 1):
N = int(input())
atoms = [list(map(int, input().split())) for _ in range(N)]
for atom in atoms:
atom[0] *= 2
atom[1] *= 2
energy = 0
candidates = [[0, 0, 0]]
for i in range(N - 1):
for j in range(i, N):
dx = atoms[i]... | [
"mgh3326@naver.com"
] | mgh3326@naver.com |
b28477b4e29bb41a9e9b42c78ded882797d1b48b | 7ccdcd8e7885603141c55f4c065373417f4aa118 | /list_ele.py | db3665532a1696e4d0b1c27fe0e4ee5bad465db8 | [] | no_license | Icode4passion/practicepythonprogams | f8330c499c660d4e46ab54d7ed44d62625f250db | 8936166d6419df5deef290a5723a30661ea064a2 | refs/heads/master | 2020-03-19T10:02:13.992465 | 2018-06-06T14:26:27 | 2018-06-06T14:26:27 | 136,337,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | #Write a Python program to display the first and last colors from the following list.
color_list = ['red','green','white','black']
for color in color_list:
print (color) | [
"yogeerama@gmail.com"
] | yogeerama@gmail.com |
d95ae65b44a40731a4a2e3009dc55d90af9ea531 | 58ffe83eb9828668c13242c6f98238f08655f561 | /app/notebooks/problang/custom_mlp.py | 4ac8b927457fd104f247d84542cc19d8682ce335 | [
"Apache-2.0"
] | permissive | DanFu09/esper | f9dcc47cd5677dee8dffb1e066d69332471a0d6c | ccc5547de3637728b8aaab059b6781baebc269ec | refs/heads/master | 2020-04-04T21:31:43.549572 | 2020-01-16T01:14:13 | 2020-01-16T01:14:13 | 156,289,533 | 4 | 0 | Apache-2.0 | 2018-12-14T03:01:02 | 2018-11-05T22:05:07 | Jupyter Notebook | UTF-8 | Python | false | false | 6,720 | py | from inspect import isclass
import torch
import torch.nn as nn
from pyro.distributions.util import broadcast_shape
class Exp(nn.Module):
"""
a custom module for exponentiation of tensors
"""
def __init__(self):
super(Exp, self).__init__()
def forward(self, val):
return torch.exp... | [
"wcrichto@cs.stanford.edu"
] | wcrichto@cs.stanford.edu |
61fc96cbdbdbae2bdd17f620cf967d0f0f88ef4d | b2545b8c1a7ed01216ae090a634ddf19099f175a | /python/coding-challenges/cc-005-create-phonebook/phone_book_class.py | ffe561d02e48a6472d28362db9e9b284221663c4 | [] | no_license | kopuskopecik/my-aws-devops-projects | 50f222986150ccd20d724ccaec9ec637aaf08a3c | 4a25f8f72c262c933ada26c0ac0476f4ef68fbcf | refs/heads/master | 2023-01-10T00:59:39.718578 | 2020-11-03T14:58:48 | 2020-11-03T14:58:48 | 290,531,908 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,056 | py | class PhoneBook:
phone_book = {} # class attribute
liste = []
demet = ()
print("Sınıf niteliği")
def __init__(self):
print("init çalıştı")
self.elma = ""
self.liste2 = []
self.demet2 = ()
self.start()
def start(self):
#self.book = {}
... | [
"kopuskopecik@gmail.com"
] | kopuskopecik@gmail.com |
900fd54df91d24ab3780bcd44f4f40e790869f97 | c57439f0c98af370ace65f9d55ef5a457bedc531 | /ydk/models/infra/_meta/_Cisco_IOS_XR_infra_infra_locale_cfg.py | f4b0a7c537e95d67b1f589244f48ddddf454a625 | [
"Apache-2.0"
] | permissive | myahmao/ydk-py | c932fbd8245e554227cce0fd723d9a22887b0c40 | 2f367d93f2088d4abdc2f2bb10ca4864952b458a | refs/heads/master | 2021-01-14T11:32:29.064494 | 2016-03-15T22:44:05 | 2016-03-15T22:44:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,749 | py |
import re
import collections
from enum import Enum
from ydk._core._dm_meta_info import _MetaInfoClassMember, _MetaInfoClass, _MetaInfoEnum, _dm_validate_value
from ydk.types import Empty, YList, DELETE, Decimal64, FixedBitsDict
from ydk._core._dm_meta_info import ATTRIBUTE, REFERENCE_CLASS, REFERENCE_LIST, REFEREN... | [
"manradha@cisco.com"
] | manradha@cisco.com |
c436b52eec4081f8bf526d9d4795f98aa8cf4ae2 | 132826d3f9d0a68d70ec9ba411846bbf3695140d | /scripts/sklearn_classifier.py | 53ff3015511ebcee5e6fdc9dbd968284bcb8293c | [
"MIT"
] | permissive | deep-spin/spec | c7f9a4eae08ec7d6a422b7d9f21e52980c836312 | 23db7a559e09ff7f63ede06b04cad226432b90db | refs/heads/master | 2023-03-03T22:53:49.647064 | 2021-02-18T05:01:35 | 2021-02-18T05:01:35 | 312,660,674 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,704 | py | import argparse
import numpy as np
from sklearn.feature_extraction.text import (TfidfVectorizer, CountVectorizer,
HashingVectorizer)
from sklearn.linear_model import LogisticRegression, SGDClassifier
from sklearn.metrics import accuracy_score, matthews_corrcoef, \
preci... | [
"marcosvtreviso@gmail.com"
] | marcosvtreviso@gmail.com |
9db96abccd5b62b41daa94a3a729d2e868c9c8b7 | 3efca607aefbd6cf558517bae689ccdacb7b383e | /contrib/devtools/symbol-check.py | 5fdf31de16afe2e2d14e6880f9d5cb158835dd4b | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | MicroBitcoinOrg/MicroBitcoin | f761b2ff04bdcb650d7c0ddbef431ef95cd69541 | 0119e8eff44ec4d94313eaa30022a97692b71143 | refs/heads/snapshot | 2022-12-27T10:04:21.040945 | 2021-02-09T05:51:45 | 2021-02-09T05:51:45 | 132,959,214 | 21 | 33 | MIT | 2020-06-12T04:38:45 | 2018-05-10T22:07:51 | C++ | UTF-8 | Python | false | false | 6,136 | py | #!/usr/bin/env python3
# Copyright (c) 2014 Wladimir J. van der Laan
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
A script to check that the (Linux) executables produced by gitian only contain
allowed gcc, glibc and libstdc+... | [
"iamstenman@protonmail.com"
] | iamstenman@protonmail.com |
c09a0cfac0b3372a8ca32d91799975aac6a12330 | 2b0f4f3590f5407da83d179db8103803f7c75e8f | /app/migrations/0001_initial.py | 772108d2acc8d7505d61bc9d919cf0a57b15c355 | [] | no_license | caiomarinhodev/ciacimento | 6c783f169ac912ed599bcfaa6a208d5be5c7942e | cf7a6951196bc36655fe0b303e3131932ec254cf | refs/heads/master | 2023-07-07T00:25:16.101307 | 2023-02-28T00:46:12 | 2023-02-28T00:46:12 | 117,120,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,211 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2018-01-16 10:38
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.... | [
"caiomarinho8@gmail.com"
] | caiomarinho8@gmail.com |
947a32e74b228a2939732969ff1b57e7dc5e68cc | 364edc98a05ddecf5ad7b7614d2a35a95d19705b | /os_bitcoin/Bithumb_20170412_RESTFulAPI-python3/xcoin_api_client.py | bccc8fe928a3987f5073f8daa14df026d9ad127e | [] | no_license | as950118/outsource | f7f10b5ba62487da8ccddd894aaedc8af48e9d50 | 05a9f654aa222f4da4ce9c4902dde094c9d158d0 | refs/heads/master | 2022-12-21T00:18:45.405708 | 2020-02-03T15:53:16 | 2020-02-03T15:53:16 | 193,331,277 | 0 | 0 | null | 2022-12-06T22:38:00 | 2019-06-23T09:50:33 | HTML | UTF-8 | Python | false | false | 2,400 | py | #
# XCoin API-call related functions
#
# @author btckorea
# @date 2017-04-12
#
# Compatible with python3 version.
import sys
import time
import math
import base64
import hmac, hashlib
import urllib.parse
import pycurl
import json
import certifi
class XCoinAPI:
api_url = "https://api.bithumb.com";
api_key = "b023e33... | [
"na_qa@icloud.com"
] | na_qa@icloud.com |
e250fcd488a4c2615d7fe6db55c69dfc2945a987 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-dws/huaweicloudsdkdws/v2/model/switch_over_cluster_request.py | e198efd2d141632f65d73c68f05ebd92d2babbf9 | [
"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 | 3,122 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class SwitchOverClusterRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is att... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
9bace68bb00dea446e490b5150b8ea921d0e8499 | 94a4388cee6dfeaa1674fba20423e8a3f8f6dd42 | /backend/users/migrations/0003_user_group.py | 33f315c63bb0addf839fdc3d8a692489f8be205a | [] | no_license | crowdbotics-apps/game-mdoe-18873 | 0dc5c1e1827f382d5a84847697d0b1b05191066d | 8bcbe6c9b116fa1294b8104018c9cd36b1536c13 | refs/heads/master | 2022-11-15T17:29:36.126851 | 2020-07-13T22:23:28 | 2020-07-13T22:23:28 | 279,423,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | # Generated by Django 2.2.14 on 2020-07-13 22:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('course', '0001_initial'),
('users', '0002_auto_20200713_2221'),
]
operations = [
migrations.AddField(
model_name='user'... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
3381f548bbfad75fbeb08e50c0769df83dd078b6 | a38b27d0eac787ca453c0ef06f1a819305b2f648 | /varappx/main/view_tools/main_views_tools.py | 6368bb5d40f33d9ebd93088403443fe118f06682 | [
"MIT"
] | permissive | 444thLiao/VarappX-flask | 9417b84167c31276c9342b23ab56cbcc4b71fa1f | 9a59f4eb5897a1ecf90978e9f357954cdd7d410a | refs/heads/master | 2021-01-19T05:00:05.575501 | 2017-05-16T07:04:59 | 2017-05-16T07:04:59 | 87,406,853 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,465 | py | # import logging
# import re
# from varapp.samples.samples_factory import *
#
#
# def samples_selection_from_request(request, db, from_ped=True):
# """Parse a GET request to make the samples groups and return a SamplesSelection.
# :param from_ped: read groups info based on 'phenotype' attribute in the Samples t... | [
"l0404th@gmail.com"
] | l0404th@gmail.com |
ae7f12952f1b16f9a54b0c881fa92120c72709c2 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /FJk4mJwRk2TYZhkeQ_16.py | 9e35fdec6941c741373d0760b5d1ed5dc67a750f | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py |
def accum(txt):
return '-'.join([(n * ch).title() for n, ch in enumerate(txt, 1)])
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
b675b567f1ca8b19f71f13a481b2c1f48fed4a7a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02991/s309121406.py | e6af09084c5db2471cde62c6c8b5d88d68d8a2e5 | [] | 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 | 627 | py | import sys
input = sys.stdin.readline
N,M = map(int,input().split())
UV = [tuple(map(int,input().split())) for i in range(M)]
S,T = map(int,input().split())
S,T = S-1,T-1
es = [[] for _ in range(N*3)]
for u,v in UV:
u,v = u-1,v-1
es[u].append(v+N)
es[u+N].append(v+N+N)
es[u+N+N].append(v)
from collect... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
deb97f79158dad95e29030e083d12abf5eb6d1d4 | 1eaf69357dfca66e4dc6651da2b93db8665164f9 | /2022/06/test_code.py | 11832d889e5e26ee9deaddc92f34934c444b4cd3 | [
"MIT"
] | permissive | Akumatic/Advent-of-Code | deb89b9a5302999ffb344766bb3f1b0dd5272445 | 5377d8d653092246a7a35c7fa2a3e22cc74ebb0b | refs/heads/master | 2022-12-21T20:32:05.978675 | 2022-12-16T14:41:23 | 2022-12-16T14:41:23 | 221,700,755 | 24 | 13 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | # SPDX-License-Identifier: MIT
# Copyright (c) 2022 Akumatic
from code import part1, part2
def test():
inputs = ["mjqjpqmgbljsphdztnvjfqwrcgsmlb", "bvwbjplbgvbhsrlpgdmjqwftvncz",
"nppdvjthqldpwncqszvftbrmjlhg", "nznrnfrfntjfmvfwmzdfjlvtqnbhcprsg", "zcfzfwzzqfrljwzlrfnpqdbhtmscgvjw"]
expected_values = [(7... | [
"ugp@hotmail.de"
] | ugp@hotmail.de |
0ee4b1f629f10089a33bd6119d6964d0b041ed3d | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-alidns/aliyunsdkalidns/request/v20150109/DescribeDohSubDomainStatisticsSummaryRequest.py | f21d8c0c0b01b28d6156cd3ef3b28b308f708744 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 2,588 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
8384c58d74daedb0e579241902fe89914974b152 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_shibboleths.py | 479b492df20a757071eeea8dcfd92915bc99a468 | [
"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 | 266 | py |
from xai.brain.wordbase.nouns._shibboleth import _SHIBBOLETH
#calss header
class _SHIBBOLETHS(_SHIBBOLETH, ):
def __init__(self,):
_SHIBBOLETH.__init__(self)
self.name = "SHIBBOLETHS"
self.specie = 'nouns'
self.basic = "shibboleth"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
a0a636dd1aaf47c3b8b20d61ef35980706c7cc74 | 39e03684081b27311385a0ab31afcc2e09883e5c | /tools/train_saliency.py | 99a78842aca4431f7cdfd83729401f8bcf65db99 | [
"MIT",
"Python-2.0"
] | permissive | witnessai/MMSceneGraph | 8d0b2011a946ddcced95fbe15445b7f4da818509 | bc5e0f3385205404c712ae9f702a61a3191da0a1 | refs/heads/master | 2023-08-12T06:54:00.551237 | 2021-10-12T03:04:21 | 2021-10-12T03:04:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,333 | py | from __future__ import division
import argparse
import copy
import os
import os.path as osp
import time
import mmcv
import torch
from mmcv import Config
from mmcv.runner import init_dist
from mmdet import __version__
from mmdet.apis import set_random_seed, train_detector
from mmdet.datasets import build... | [
"23736866+Kenneth-Wong@users.noreply.github.com"
] | 23736866+Kenneth-Wong@users.noreply.github.com |
eb6e327944cbc63a28f6744e79a24841cf289c7b | a7ded5d3d19a98e61a44189cffe3703f7938e0db | /xero_python/payrolluk/models/leave_type_object.py | a3951dbe79d8171aed1d4532a1909c00f97b9355 | [
"MIT"
] | permissive | liseekeralbert/xero-python | dfd1076344f763d74f81f701e32600cf88bcc7b2 | d27ab1894ecd84d2a9af0ca91583593756b21ab3 | refs/heads/master | 2022-12-16T07:41:14.331308 | 2020-09-18T17:12:35 | 2020-09-18T17:12:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,074 | py | # coding: utf-8
"""
Xero Payroll UK
This is the Xero Payroll API for orgs in the UK region. # noqa: E501
OpenAPI spec version: 2.3.0
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
from xero_python.models import BaseModel
class LeaveTypeObject(... | [
"sid.maestre@gmail.com"
] | sid.maestre@gmail.com |
8f436fd55a4a3cb924fcf951eecdd1aec41559a7 | efa87ca56d83e2e40015c4578c8774f5606d09f3 | /src/part_2.py | ea042d2b3dfabf37cc7e43cfed447537919e4180 | [] | no_license | dev2033/vk_api_pars_group | ea4eed70b5dabedf41a1f18252094314bba45593 | f6589d4447a3b45578f18d42966e6a659910b1b6 | refs/heads/master | 2023-02-03T12:16:20.105976 | 2020-12-26T20:36:18 | 2020-12-26T20:36:18 | 324,630,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,311 | py | import json
import youtube_dl
import requests
import os
from auth_data import token
def get_wall_posts(group_name):
"""
Функция для парсинга групп в социальной сети ВК,
Если в url - не указывать domain=, а сразу после ?=,
то будет парситься ваша стена в ВК, все посты и фото
"""
url = f"https... | [
"dev.elop.02@mail.ru"
] | dev.elop.02@mail.ru |
beb0e5f57a3463005136baba1b8c7c3c9e533db5 | e9f598d4e2e53bdffd95e2b91726eed156a9bd25 | /we_chat_tou.py | 50911f89aa338c6ccce63b1f6e0df506ceb609c7 | [] | no_license | z991/play_pillow | e2d1b17ccdc7e3b5aacb0d1dc7b04805699942f8 | e01f99be129a5790c78700cb09b1fa85825f832a | refs/heads/master | 2020-11-27T12:20:51.237125 | 2019-12-21T14:19:48 | 2019-12-21T14:19:48 | 229,437,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,926 | py | import os
import math
from wxpy import Bot
from PIL import Image
# 创建头像存放文件夹
def creat_filepath():
# 返回一个表示当前工作目录的unicode字符串。
"""
/Users/zhuxuanyu/python_xuexi/pil_play
:return:
"""
avatar_dir = os.getcwd() + "/wechat/"
if not os.path.exists(avatar_dir):
os.mkdir(avatar_dir)
... | [
"1049939190@qq.com"
] | 1049939190@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.