blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2deca391a42294fa9a1e3b7a3e7a081a8a035d51 | 93a016fe0430c57ca6cbe4a1064b0451130f113a | /63. Unique Paths II/Solution1.py | efbd9db5396aff210c1df27060e0a1a1beb5b21d | [] | no_license | ChenPH0522/LeetCode | fcca5eaa707c25a1d60d22dc16fe0d46ab7aba12 | 0b0911851bad871b1da66fa5b8731b96bf9c313a | refs/heads/master | 2020-04-16T21:51:17.845752 | 2019-03-18T01:41:36 | 2019-03-18T01:41:36 | 165,942,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,260 | py | # 2019.2.20
class Solution(object):
def uniquePathsWithObstacles(self, obstacleGrid):
"""
:type obstacleGrid: List[List[int]]
:rtype: int
"""
# initialize
nr = len(obstacleGrid)
if nr == 0:
return 0
nc = len(obstacleGrid[0])
... | [
"[email protected]"
] | |
85b509b27de898050b210a48965adbce12130a4a | 38dd9d9b5b4887c29a8ab7a4fff2017fdfa79217 | /08. RESTful API Web/02. Sentence Corrector/app/util/spellcheck.py | 440b76813468da2ac4519fea63ac9ca28cd5920b | [] | no_license | ZippoCode/SAR | f7defb01273451a06aae2af0885b4ac87b3ccff9 | 63ab4789a80af5927153e110d80af8a8c05449bb | refs/heads/master | 2020-04-06T09:45:20.392836 | 2018-11-13T09:40:38 | 2018-11-13T09:41:00 | 138,259,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,241 | py | import unirest
import re
import string
import random
from app_secrets import mashape_key
regex = re.compile('[%s]' % re.escape(string.punctuation))
DEFAULT_KEY = "https://montanaflynn-spellcheck.p.mashape.com/check/?text="
def get_dict_spellcheck(text):
"""
Effettua una GET sulle API si Spellcheck. Restitu... | [
"[email protected]"
] | |
9933352045d96cc5d2c27b9f4a3be54ce25e1fbe | cd79b051f67fb014a9494749598e37e1585a5af0 | /task1.py | 9a2a9c2862e63e447fa8faeab9fc8390ab6e7cb0 | [] | no_license | gskirankumar6/lab-6 | 598be50745ebb0712484190c0f8165ee04bd829a | 2ba746c9653846fc1e12a9fdf79a2a4c42e3480c | refs/heads/master | 2021-05-10T13:51:30.333294 | 2018-01-22T21:27:59 | 2018-01-22T21:27:59 | 118,494,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | import math
class point():
x=0
y=0
p1=point()
p2=point()
p2.x=1
p2.y=2
def distance_between_points(p1,p2):
distance=math.sqrt((p1.x-p2.x)**2+(p2.y-p1.y)**2)
return distance
print(distance_between_points(p1,p2))
| [
"[email protected]"
] | |
69a05928de9ed76446b23f57b1dc1340e6eaaaef | f3b233e5053e28fa95c549017bd75a30456eb50c | /bace_input/L3A/3A-3N_wat_20Abox/set_1ns_equi_m.py | e4ea2818a930af0f9347d9ab3c2a65bf3ce26e2e | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | import os
dir = '/mnt/scratch/songlin3/run/bace/L3A/wat_20Abox/ti_one-step/3A_3N/'
filesdir = dir + 'files/'
temp_equiin = filesdir + 'temp_equi_m.in'
temp_pbs = filesdir + 'temp_1ns_equi_m.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j... | [
"[email protected]"
] | |
f6841ab723b264264e63b0292554b13c38cc0029 | 5dcb58862de8905a8ea254ce229686b40ab869c6 | /python/laba8_modules/graph.py | 2a9eba10310e0fc57d24ed517b55a5d969465a22 | [] | no_license | neverkor/labi | 30785d7a6b4b06fb6b233223a5ef12c4e6e689e3 | 58f60671d0147158d5d91dc29b3a751e413aec5f | refs/heads/master | 2022-03-04T14:20:48.182091 | 2019-10-07T13:55:27 | 2019-10-07T13:55:27 | 120,272,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | import data
import matplotlib.pyplot as plt
# Графическое изображение (не обязательно, так нагляднее)
def graphic():
circle = plt.Circle((data.centr_x, data.centr_y), data.radius, color='blue', fill=False)
fig, ax = plt.subplots()
ax.add_artist(circle)
ax.axis("equal")
plt.xlim(-50, 50)
plt.yli... | [
"[email protected]"
] | |
58757ab16287a0e8fe9e579352191ef57f453aed | 46fd19b150edec1ee25b3f809ffc385708024a15 | /Jewels_And_Stones.py | b312caf6a4bc0e57ec815a8206569adb6e1df08c | [] | no_license | vrushti-mody/Leetcode-Solutions | a5e16b7f6e786a023b1a7db8895f905119e4aa2e | 194b7c29e31e80d7589e83e00cf100ce743871c4 | refs/heads/master | 2022-11-21T21:43:29.875987 | 2020-07-29T10:48:40 | 2020-07-29T10:48:40 | 279,860,314 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | # You're given strings J representing the types of stones that are jewels, and S representing the stones you have. Each character in S is a type of stone you have. You want to know how many of the stones you have are also jewels.
# The letters in J are guaranteed distinct, and all characters in J and S are letters. ... | [
"[email protected]"
] | |
22a8528b7f3e90d3daa6100e399bbe178244f3b3 | a0df0314a9e934e26daf0fe3dee6a88b7e91e53d | /langs/spanish/subselect_PROP.py | ac65d507dc3a458ceb6d5edbc3364e516e78e737 | [
"MIT"
] | permissive | bplank/ud-conversion-tools | 13e3f2093ed04873092db5c3a73349d601d554ce | 1818df8f47822564d4bf0ae954ebfb405902dd02 | refs/heads/master | 2023-05-30T00:58:49.090074 | 2023-05-07T12:17:18 | 2023-05-07T12:17:18 | 258,237,683 | 1 | 2 | MIT | 2023-05-07T12:17:19 | 2020-04-23T14:48:50 | Python | UTF-8 | Python | false | false | 799 | py |
import nltk, re
stoplist = list(nltk.corpus.stopwords.words())+ "& bajo al".split(" ")
romans = re.compile("^M{0,4}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})$")
for line in open("PROPNlist").readlines():
line = line.strip()
freq, word, POS, underscore = line.split()
newPOS = "PROPN"
newfeats = ... | [
"[email protected]"
] | |
38aa1cecef456e46672f644af502b036e9857c79 | 58cf4e5a576b2baf7755ae19d410bf8afc2f3709 | /leetcode-solutions/P1718Lexicographically_valid_sequence.py | c9d06c89c6e96e5f0b886e1ffc39ed7c4e203f95 | [] | no_license | srihariprasad-r/leet-code | 78284beac34a4d84dde9f8cd36503496b618fdf7 | fc4f1455bafd1496eb5469a509be8638b75155c1 | refs/heads/master | 2023-08-16T20:24:09.474931 | 2023-08-07T14:23:36 | 2023-08-07T14:23:36 | 231,920,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,267 | py | class Solution(object):
def constructDistancedSequence(self, n):
"""
:type n: int
:rtype: List[int]
"""
visited = set()
def backtrack(idx):
if idx == el:
return True
if ans[idx] != 0:
return backtrack(idx+1)
... | [
"[email protected]"
] | |
d5c24aad7f699753b6f6b9dd0785c1360a3c4486 | 7670d3ab993875f935e7cd40e522e5a44d6acb87 | /EMSController/EMSBroker/serializers.py | 5738d594d66ced2ac449b9e868a3e608e5dd7574 | [] | no_license | sr-kulkarni/Eirene | b2a2057a55505d27cb3a268d60408a275e2cd7f5 | 1d074811a23bac1fa451e37d8eaa87328ed87c5f | refs/heads/master | 2021-01-10T03:38:42.465389 | 2016-03-21T04:47:37 | 2016-03-21T04:47:37 | 47,056,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | from rest_framework import serializers
from EMSBroker.models import Service, ServiceHelper
class ServiceSerializer(serializers.ModelSerializer):
class Meta:
model = Service
fields = ('name','address',)
class ServiceHelperSerializer(serializers.ModelSerializer):
class Meta:
model = Ser... | [
"[email protected]"
] | |
069aa72a031f9524c83c56938ef67ba5540f6609 | 19d801b2248c1f277fbffeac0b44c7508ed1dd9a | /python/cours1/2_4_1_quotes.py | b8f9b3ab8030336ad60bd1227f16ac9875ee41ea | [] | no_license | eminet666/eminet_tutoriels | 92a24bc820cc3637727f0c5a9fdfc9c90d9450be | f5220caaf5c37b22f3cd667533f922e34deac245 | refs/heads/main | 2023-07-31T06:18:37.657750 | 2021-09-09T19:56:20 | 2021-09-09T19:56:20 | 356,902,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | # -*- coding: utf8 -*-
quotes = [
"Ecoutez-moi, Monsieur Shakespeare, nous avons beau être ou ne pas être, nous sommes !",
"On doit pouvoir choisir entre s'écouter parler et se faire entendre."
]
characters = [
"alvin et les Chipmunks",
"Babar",
"betty boop",
"calimero",
"casper",
... | [
"[email protected]"
] | |
c5da38cf828ee2e7f9f04fe2a3062059242b45d0 | 1c7fa268ee031395806f38d52b6a7282ba5a4633 | /hr_python/collections/medium/WordOrder.py | f5ae2f7799e2749511ce13812c98aa411f7532da | [] | no_license | murugesan-narayan/hr_python | d2f562ecd2aa6c4eef4aab8363d5d040447ed727 | 86542342fc77cf7c95ebd08e5142186410f6385d | refs/heads/master | 2022-04-12T14:59:16.293611 | 2020-03-24T14:25:30 | 2020-03-24T14:25:30 | 249,729,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | from collections import OrderedDict
if __name__ == '__main__':
od = OrderedDict()
for i in range(int(input())):
w = input()
od[w] = od.get(w, 0) + 1
print(len(od))
print(*od.values())
| [
"[email protected]"
] | |
25d05a6156015393e9e10755b75e63847b9ff2d4 | 89d1f88b63723cb9c90bb50d947c6c9b0ef8909c | /code/YESR/make_filelist.py | 657d2eec43b383d52c8d6fe0e36dd562d3f71735 | [] | no_license | yexuehua/Cell_SR | 9240138a387d4b7e64348869e3167772584a052d | 25f5dcdc821ae11da22fdbf87bf389bcfacc01f4 | refs/heads/master | 2023-03-05T01:49:04.120027 | 2021-02-15T12:30:34 | 2021-02-15T12:30:34 | 264,704,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | import pandas as pd
import os
import numpy as np
top_path = r"C:\Users\212774000\Documents\python\gitclone\SR\Cell_SR\data"
lr_names = os.listdir(os.path.join(top_path,"overlay256"))
lr_names.sort(key=lambda x:int(x[:-12]))
lr_lists = [os.path.join("overlay256",i) for i in lr_names]
hr_names = os.listdir(os.path.join(... | [
"[email protected]"
] | |
649c8bdf219d3d84de1f29cd783c3241ea33cbc8 | c205aaf81190afcd78c20434f95af890cf05eb55 | /100-199/141-linked-list-cycle.py | b7397c42245bf96c9920d356d2e841c285153683 | [] | no_license | StdioA/LeetCode | 94be861978952364549dcb64d6effbcc05952449 | 2b0ed54a5bfc3496a6234afc8568bb7ec8bd9c5d | refs/heads/master | 2021-09-18T20:55:51.402776 | 2021-09-08T11:45:24 | 2021-09-08T11:45:24 | 52,870,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | # coding: utf-8
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
from made_list import ListNode
class Solution:
# @param head, a ListNode
# @return a boolean
def hasCycle(self, head):
nodes = {}
cur = hea... | [
"[email protected]"
] | |
324bc5c67b22e80c45f9991b08b6e18b97fed42e | 3203738cdab38847dbf396411b1ea6d0140de539 | /venv/bin/pip2.7 | 2accc2ba9901fa0063695a5f935ef5c42932705f | [] | no_license | ChenPaulYu/rpi-video-example | 7e000dd1dd88f90a49430507c7407f2ae2bcb077 | 37fd455c57b6a921617ad1d97437daf426cd8461 | refs/heads/master | 2021-04-15T07:32:17.841990 | 2018-03-26T10:49:40 | 2018-03-26T10:49:40 | 126,814,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | 7 | #!/var/www/lab_app/venv/bin/python2
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"[email protected]"
] | |
35d63f1643bbb28b4a418dc38659f9d3048320b8 | 57e4571b018e59b307c52dda8b21920d3817747e | /simplesocial/groups/urls.py | adec226988e5c7fa2d9cb797f871307fe4726951 | [] | no_license | rajatsaini736/simple_social | f39031e829fc1ff58eb547c4b4dacd1404fe6aab | 3334cd09e8eb2c40179c3891f4750b039ba8a66e | refs/heads/master | 2020-03-22T20:35:39.410307 | 2018-07-11T18:19:16 | 2018-07-11T18:19:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | from django.conf.urls import url
from . import views
app_name = 'groups'
urlpatterns = [
url(r'^$',views.ListGroups.as_view(),name='all'),
url(r'^new/$',views.CreateGroup.as_view(),name='create'),
url(r'^posts/in/(?P<slug>[-\w]+)/$',views.SingleGroup.as_view(),name='single'),
url(r'^join/(?P<slug>[-\w]+)/$'views.... | [
"[email protected]"
] | |
50c21f40e005535778798626eec9e021586efbda | 25f22d78a376389ff0f825ce1ef9d985de85b422 | /venv/lib/python3.6/tokenize.py | e055e11934aee4f85b4022182011d69cb11b8a53 | [] | no_license | DelanoJo/flask_page | 59ebb7ec6d71debe74f1b19c3d0f4eb9c0ceeece | 1eb96ea99a69ed207593626903bc59eb3f9c7ce5 | refs/heads/master | 2020-12-30T16:41:06.036540 | 2017-05-11T19:01:38 | 2017-05-11T19:01:38 | 91,010,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56 | py | /Users/delanojohnson/anaconda3/lib/python3.6/tokenize.py | [
"[email protected]"
] | |
b43237a959e7f5df821a1de7944f76ab53d41fbe | 13aa5daad57fcb5458e4788779602fe64dd53b3c | /reconect user in conf/test.py | dada1e6b1a5a1852b405a879c371cfae265e35fd | [] | no_license | QAkharkivTC/Server | c2a1f7ce5ef0e6074d301f8a36f66e8a43e7ce5e | eb6bab434c461bd66b2db2850116aa13b9931df7 | refs/heads/main | 2023-08-31T21:49:45.648597 | 2021-10-24T20:05:11 | 2021-10-24T20:05:11 | 394,217,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,664 | py | import json
import requests
import time
import urllib3
import certifi
import ssl
import re
#test data
user = 'artem_7'
server_name = 'aa111.trueconf.name'
ip = '10.130.2.209'
token = '2PReau6pERNRhbHZcd1Q6I2Y1Mlnd7C3'
cid = 'chat'
login_admim = 'tc'
password_admin = 'qweASD123'
def invite_partisipa... | [
"[email protected]"
] | |
5260df6b703ce981378e8ce7186a7d59f0aa27dd | 74a0372356b332098a29dde176d3ea0dc9d2ee9d | /koalixcrm/crm/product/unit_transform.py | 0249658ed77853e7ee6410bae24f7f4c8019a238 | [
"BSD-3-Clause"
] | permissive | Shikhar10000/koalixcrm | 6fd1d6d3e341af108d1eb090c9a00a7f815edd32 | 6d0230a0f192bb7126c42db59ecfc4369a765a7a | refs/heads/master | 2022-06-19T10:31:00.524875 | 2020-05-09T18:46:43 | 2020-05-09T18:46:43 | 262,627,556 | 1 | 0 | BSD-3-Clause | 2020-05-09T17:53:09 | 2020-05-09T17:53:08 | null | UTF-8 | Python | false | false | 1,950 | py | # -*- coding: utf-8 -*-
from django.db import models
from django.contrib import admin
from django.utils.translation import ugettext as _
class UnitTransform(models.Model):
from_unit = models.ForeignKey('Unit',
verbose_name=_("From Unit"),
blank=... | [
"[email protected]"
] | |
2ba3413d40aec8e567953a35086628cad4676329 | 4dda19ac20fb8dcf1abd5495a323fceec02d6c74 | /depth_analyzer.py | e0f3f0cc2dfb3f2ff56e7feb8cfb9d97e2c4ec8a | [] | no_license | AndreSlavescu/Stereo-Vision-Depth-Analyzer | cc6832905e9581c314f5a82f54accd3421207a2a | e915b3e38dcb96fe5b1153563053bf961fa791dd | refs/heads/main | 2023-04-10T22:37:57.580173 | 2021-05-05T01:16:38 | 2021-05-05T01:16:38 | 357,052,381 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,647 | py | #!/usr/bin/env python3
import cv2
import depthai as dai
import matplotlib.pyplot as plt
from collections import deque
class DataPlot:
def __init__(self, max_entries=20):
self.axis_x = deque(maxlen=max_entries)
self.axis_y = deque(maxlen=max_entries)
self.max_entries = max_... | [
"[email protected]"
] | |
bcfd5af36d4792ba100793bf21ba608c5053a457 | 053b436a21874cb35d5376f7c45d046d80e08e04 | /Chapter 9 Excercise 2.py | a62ca54f3d25297e349701d28ddff78b6083b112 | [] | no_license | braeden-smith/Chapter-8-9-10 | 4b34f813e1c6f8fc0c7ca1c87062d96e4c851dc9 | c8d575dcc941f8dd121074096a37d0966e52fc33 | refs/heads/master | 2021-05-02T09:15:24.292906 | 2018-02-09T18:05:35 | 2018-02-09T18:05:35 | 120,820,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | #Braeden Smith Chapter 9 Excercise 2
# Exercise 2
# Write a program that categorizes each mail message by which day of the week the
# commit was done. To do this look for lines that start with “From”,
# then look for the third word and keep a running count of each of the days of the week.
# At the end of the ... | [
"[email protected]"
] | |
fbe81a7e2f5b2e9010815422bc4c7d0db403fb9b | 1ffc799602225024bc8adccbd6988478c9ce434f | /mags_raw_to_processed_fast_forward.py | e727f0b5c6299c9152fe8bacf336d2ee13722531 | [
"Apache-2.0"
] | permissive | Thomas-Hirsch/airflow-dags | 8adf63ebca05bf24d2f787e0a478f5ca5d14dcd5 | 37b1e9a44dbfd508c1f6b86c712d699bfdff4ca2 | refs/heads/master | 2020-04-21T09:05:22.364622 | 2019-03-19T12:31:25 | 2019-03-19T12:31:25 | 169,438,103 | 0 | 0 | Apache-2.0 | 2019-03-19T13:31:08 | 2019-02-06T16:33:38 | Python | UTF-8 | Python | false | false | 2,600 | py | from datetime import datetime, timedelta
import airflow
from airflow import DAG
from airflow.contrib.operators.kubernetes_pod_operator import KubernetesPodOperator
from airflow.utils.dates import days_ago
TAR_PROCESS_SCRIPT = "tar_raw_to_process.py"
DB_REBUILD_SCRIPT = "rebuild_databases.py"
DB_VERSION = 'v1'
DBS_TO_... | [
"[email protected]"
] | |
450436a24d35b4f202b9f4b0862ca5a54129f0c6 | e7ab780aeae5a6910eb0b7f23d204ae6b6d4b93b | /case/dataTable/scriptCreteTable.py | 01854fce4d6f2253fd1d256142c0a4012c9ccef2 | [] | no_license | wmengchen/hufu_ui | 59dd60cc48bffc5685a2e82235d98496cf6972a9 | 324497bb9f1c4461d8d80cd956e24317a6565e60 | refs/heads/master | 2023-01-14T04:39:52.260732 | 2020-11-17T02:34:58 | 2020-11-17T02:34:58 | 276,246,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,141 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
# @date: 2020/7/23 15:07
# @name: scriptCreteTable
# @author:menghuan.wmc
import ddt,unittest,sys,os,re
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(__file__))))
from comm.element import Element
from comm.readExcel import ReadExcel
from comm import login
... | [
"[email protected]"
] | |
6d4d355c0b0481060525524ea626bc594a5bbb5b | f3693916a8b118bf139364604dac3f51235ed613 | /functional/Components/Permissions/ManageConfiguration/Clients/Clients_POST/test_TC_42284_Clients_POST_Admin_Create_Flag_Set_To_False_1.py | 89199af884dce34566d2d26a0c8dc211f7f1fe2f | [] | no_license | muktabehera/QE | e7d62284889d8241d22506f6ee20547f1cfe6db1 | 3fedde591568e35f7b80c5bf6cd6732f8eeab4f8 | refs/heads/master | 2021-03-31T02:19:15.369562 | 2018-03-13T02:45:10 | 2018-03-13T02:45:10 | 124,984,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,133 | py | # -*- coding: UTF-8 -*-
"""PFE Component Tests - Clients.
* TC-42284 - Clients POST:
Verify that Create button is not displayed on 'Proximities zones' page under Intelligent Content Routing menu for user with "Manage Configuration" permission, while "Config admin can create" flag is set to false within the token e... | [
"[email protected]"
] | |
8116929850f819d2d6e3998cffe99660ffe4a130 | 838457ddaffd69fe1b6f1754884a938b73f5996f | /ar.py | cb84479e94f25b6362a81c74b00dfc0809911dae | [] | no_license | ociepkam/MISK | eb813501084b56b3b2a702b269a7b6254641d781 | 622299326af3fa944800ac2ea76e4a42a71f569f | refs/heads/master | 2020-12-25T08:36:50.101904 | 2016-06-07T13:34:36 | 2016-06-07T13:34:36 | 60,355,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | class Square:
def __init__(self, x, y, wood, fire, humidity, square_size):
self.x = x
self.y = y
self.wood = wood
self.fire = fire
self.humidity = humidity
self.square_size = square_size
| [
"[email protected]"
] | |
581220800a7ae91d87aec06578cf5db8869815c6 | f6020796383233cbb992a9e55d7659d2a4b75174 | /EXPENSE-ENV/bin/pasteurize | 7ab611cbfc8fbd333f8dfcba7bfa71f7b48d7bb7 | [
"MIT"
] | permissive | ADL175/expense_tracker_401d6 | 1420e03c68349c526cb7b12466c1e67e274976f3 | 2827cda2ca154ce70a9b1879c198f1ec94ebd121 | refs/heads/master | 2021-01-23T01:26:22.415883 | 2017-05-31T15:49:16 | 2017-05-31T15:49:16 | 92,872,053 | 0 | 0 | null | 2017-05-31T15:49:17 | 2017-05-30T20:12:10 | Python | UTF-8 | Python | false | false | 464 | #!/Users/davidlim/Desktop/Project/401_python/wk3/expense_tracker_401d6/EXPENSE-ENV/bin/python3
# EASY-INSTALL-ENTRY-SCRIPT: 'future==0.16.0','console_scripts','pasteurize'
__requires__ = 'future==0.16.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub... | [
"[email protected]"
] | ||
52426587ad4df18dd187e5edfcd235f5002b9f89 | a423e93de507af4edbfe09d9b082a6c0e05bc30d | /main.py | c52331f61323dbd18df3dc50973d5bb52738acec | [] | no_license | mibre2/PythonStockCandlestickChart | ffca3fdc8f8559a5da023ce206a174204769b15a | a733c8b01751feeee4051b4dd28969caa28b8f1f | refs/heads/master | 2023-03-19T00:09:27.123249 | 2021-03-14T23:20:28 | 2021-03-14T23:20:28 | 347,778,647 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | import datetime as dt
import pandas_datareader as web
import matplotlib.pyplot as plt
import matplotlib.dates as mdates
from mplfinance.original_flavor import candlestick_ohlc
# Define Time Frame
start = dt.datetime(2021, 1, 4) # Start of 2021
end = dt.datetime.now() # Present TIME
# Load Data
ticker ... | [
"[email protected]"
] | |
5632ec92f87da31b038a9178cbd330bca059d3cb | 6f801f3e71c934a7a41dfdcbb83acffcba7ee2a4 | /lib/pantone.py | bf3689ab31758fa26e881005b87e265b7774d214 | [
"MIT",
"GPL-1.0-or-later"
] | permissive | alyberty/we-love-colors | 149d9f3d652fa9617b88829eb2845c150b7050c1 | 47883048b651601db64b4ad44950ba28ec88ae2b | refs/heads/master | 2020-07-27T23:57:08.603352 | 2019-09-19T17:25:37 | 2019-09-19T17:25:37 | 209,248,991 | 0 | 0 | MIT | 2019-09-18T07:44:48 | 2019-09-18T07:44:48 | null | UTF-8 | Python | false | false | 12,728 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
##
# Imports
# For more information, see https://www.python.org/dev/peps/pep-0008/#imports
##
import os
import json
from urllib.request import urlopen
from bs4 import BeautifulSoup
from palette import Palette
from lib.helpers.nat_sort import natural_sort
class Panton... | [
"[email protected]"
] | |
dd74d8fa5aa418703d42a9054b81922bd2acbdfa | 061bbd366dfce18a6703ea8b42af9856c16304c2 | /baysian_neural_decoding/baysian_neural_decoding/latency.py | 09ac7bca84bdf0fa6e966cb73c67fa30fbd56240 | [
"MIT"
] | permissive | badralbanna/Insanally2017 | 671f991df3c70a54ae6b8a4bb47e761d27b19491 | cd77550ec6f25961f236bc31600189d26d05dc19 | refs/heads/master | 2021-01-02T09:10:41.415077 | 2019-02-20T14:44:00 | 2019-02-20T14:44:00 | 99,155,119 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | import numpy
#####################
# Finding Latencies #
#####################
def first_spike_latency(response, log=False, **kwargs):
if len(response) > 0:
time = [response[response > 0][0]]
else:
time = []
if not log:
return(numpy.array(time), numpy.array(time))
else:
... | [
"[email protected]"
] | |
252f1a6776995a522d5b7f0d6c852580ebd19803 | 2a22fc2d2b05ac1cc871777a1ac97f38fed2aea9 | /utils/focalloss.py | 5895b2bc0e526683a33885b46956fa5d7ba7615c | [] | no_license | tbornt/text_classification_pytorch | a3bcd7e7d3037608dad51105919663ba36a348a0 | d2dd5d948489629b1aacc3cfd6f6201e516175b3 | refs/heads/master | 2023-02-24T20:13:19.143752 | 2018-11-27T02:25:22 | 2018-11-27T02:25:22 | 156,794,961 | 16 | 1 | null | 2023-02-15T20:19:06 | 2018-11-09T01:54:54 | Python | UTF-8 | Python | false | false | 2,199 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
class FocalLoss(nn.Module):
r"""
This criterion is a implemenation of Focal Loss, which is proposed in
Focal Loss for Dense Object Detection.
Loss(x, class) = - \alpha (1-softmax(x)... | [
"[email protected]"
] | |
c456ffedaa816a4036a4f62abdf89c0116d62451 | b24ab5f07fc60de448662ef4b213f5bac499a93e | /Player.py | d4d5eb2cc6b57acb71030d58e6a514c1d479be3a | [] | no_license | RhevanP/HangmanPYQT5 | 67d6bbe05dff8d4e23b1053b46a83e424ca2ceee | a760f6f4217a8ccac2bc47151abf2629cfd1f6a2 | refs/heads/main | 2023-02-05T15:13:37.770544 | 2020-12-28T12:16:13 | 2020-12-28T12:16:13 | 325,003,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Dec 26 16:23:24 2020
@author: antho
"""
class Player() :
def __init__(self) :
self.lifeMax = 6
self.currentLife = self.lifeMax
self.userInput = []
self.lostGame = False
def loosingLife(self) :
self.currentLi... | [
"[email protected]"
] | |
f6f969236282077c72f14344524d390376e73ef6 | 0ed5a6f1b3f30c39b93886d6bad3fc202ac48260 | /stock.py | 7bea686dc1f26f47041705845af17755bed5e193 | [] | no_license | Hawkgirl/nse | 4c4b595f93ccd861bceb7f9813d95ae37d12da9d | 72b52c2c3dbbf3906e872ae33e6e24d3eb573b3b | refs/heads/master | 2020-04-05T07:46:03.023140 | 2018-11-12T10:36:37 | 2018-11-12T10:36:37 | 156,687,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | class stock():
def __init__(self, *arg, **kwargs):
if 'name' in kwargs:
self._name=kwargs['name']
if 'ltp' in kwargs:
self._ltp=kwargs['ltp']
if 'high52' in kwargs:
self._high52=kwargs['high52']
if 'tradevalue' in kwargs:
self._tradevalue=kwargs['tradevalue']/10000000
@property
... | [
"[email protected]"
] | |
64cacb4092c260debe1654e1c4e577df432fe9ac | ccbdc11e15ee36a9a36ee75af8ce7ab41e2ca45f | /reciver.py | c4a7198d9b15c9da38b65b6e242015af536fcf7e | [] | no_license | musk03an22/arth | 36e482328cca01c35cc83ba2f04ab36a0aa71d0f | 22a9be1693fa611c9216b9bc656be28639c30ff7 | refs/heads/main | 2023-05-19T02:34:40.768872 | 2021-06-13T18:20:35 | 2021-06-13T18:20:35 | 376,076,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | import socket,cv2, pickle,struct
# create socket
client_socket = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
host_ip = '192.168.56.1' # erver ip
port = 9999
client_socket.connect((host_ip,port))
data = b""
payload_size = struct.calcsize("Q")
while True:
while len(data) < payload_size:
pac... | [
"[email protected]"
] | |
addfdf28434227d4c5d4be3ceb9ead15bad88b04 | 27de4db430ebd3264ce4bf148a4a9062f95541d7 | /jedi/long_file/hdf5_functions.py | e50164fc87326fa5fb747225f82d392c8ec76cf8 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | broadinstitute/jedi-public | 1afb499bb9c927b630945bca7f20e3df2baa0842 | bce10d7e1a89e666ec4c77a1e3448f684dc21daf | refs/heads/master | 2023-08-17T15:48:49.325910 | 2021-09-28T22:30:50 | 2021-09-28T22:30:50 | 409,325,595 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,626 | py | import json
import logging
import os
from collections import defaultdict
from dataclasses import dataclass
from enum import Enum
from typing import Dict, List, Optional, Callable, Any, Iterator, TypeVar, Set, Iterable
import h5py
import numpy as np
import pandas as pd
Instance = h5py.Group
BASELINE = 'baseline'
BASEL... | [
"[email protected]"
] | |
6933106ff0df2eb00e3c7ef2da963992e0091811 | 3b5b326e0cf9b4e65ed12c104b5ff07f49c9ef52 | /introdução-web/Oficina/servico_carro.py | 411ff0351b8fbb772bd397e2ab46b996bbdb6226 | [] | no_license | lcgandolfi/DevWeb | 641569306bad78b441b86ca0e2dcccd115130682 | 76c7558ade526f9faa39750555458cb67cc03179 | refs/heads/master | 2023-07-14T17:20:53.457506 | 2021-09-02T23:40:21 | 2021-09-02T23:40:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | class ServicosAutomovel:
def __init__(self,servicos ,automovel,data):
self.servicos = servicos
self.automovel = automovel
self.data = data
| [
"[email protected]"
] | |
2785105a509415ffd42a0b2ee22247d42f05b027 | dd5e84730c1e834a542dd41d287000b74d5927d8 | /scripts/20_plot_results.py | e74521b059e0c473945f9c2a9969388af93e3ad3 | [
"MIT"
] | permissive | chrisroadmap/loaded-dice | d464b719a612a199fcebcfa01a95ee3073b13570 | 76c05460c483a745014b46acbf77b776c1c21204 | refs/heads/main | 2023-08-31T19:15:05.970381 | 2023-08-18T10:08:19 | 2023-08-18T10:08:19 | 508,031,466 | 1 | 1 | MIT | 2023-07-17T13:42:09 | 2022-06-27T19:07:42 | Python | UTF-8 | Python | false | false | 9,980 | py | import os
import matplotlib.pyplot as pl
from matplotlib.lines import Line2D
from matplotlib.ticker import ScalarFormatter
from matplotlib.patches import Patch
import numpy as np
import pandas as pd
from fair.energy_balance_model import EnergyBalanceModel
from fair.forcing.ghg import meinshausen2020
pl.rcParams['fig... | [
"[email protected]"
] | |
16fab1befc0dde26d0fd57cc24fb39addc400dd5 | 2b5e1cdb4129558ec959d9af4a07f4febb37b9ef | /launcherByPython | 5dd3716e8fb410734a2f37aea7405764731a2529 | [] | no_license | Madaerpao/tlbbLauncher | c17fad6f4650eb7f2240979a307ff016b9a1f12b | f8293afc309cd31c29341cc8cee40abad0424728 | refs/heads/main | 2023-04-05T00:24:45.785501 | 2021-04-14T06:50:21 | 2021-04-14T06:50:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,245 | #!bin/bash/python3
# -*- coding=utf-8 -*-
import socket
import threading
import subprocess
def sock_close(conn):
try:
conn.close()
except:
pass
# 转发
def transport(src, dst):
try:
recp = src.recv(1024)
sname = src.getsockname()[0]
dname = dst.getsockname()[0]
... | [
"[email protected]"
] | ||
2cb12d91c5ce732999eb89bd21d0e22224d089b4 | 61c9c7c3eadec0a0432dba387e7466df6759d914 | /paws/operations/ARRAYS/ArrayYMean.py | 02299936494860b72b61d12092ff1ee04e701804 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-other-permissive"
] | permissive | rwalroth/paws | 6f0a397daaeec9805c9223b64d177d010415b23b | bd591b0c0e7e9f0163ef5bbfce53ff51cee95532 | refs/heads/master | 2020-07-05T10:20:44.051138 | 2019-10-01T21:13:35 | 2019-10-01T21:13:35 | 202,622,126 | 1 | 0 | null | 2019-08-15T22:57:31 | 2019-08-15T22:57:31 | null | UTF-8 | Python | false | false | 849 | py | from collections import OrderedDict
import numpy as np
from ..Operation import Operation
inputs = OrderedDict(x_y_arrays=[])
outputs = OrderedDict(x_ymean=None)
class ArrayYMean(Operation):
"""
Average the second column of one or more n-by-2 arrays
"""
def __init__(self):
super(ArrayYMean, ... | [
"[email protected]"
] | |
ad1ce5baf8ce68b999f340a1a33a2c306518ee2e | 38549f01416081db6880038608c32b5e23a20be5 | /Day_24/python_files/day24_emotion_analyzer.py | e7d25e5cc1103874b4115f90123c1dc0ab00e860 | [
"MIT"
] | permissive | DuckBoss/VAIL-Training | 51da4d2919ea3eeb477dddf3dd8e017af9d885dc | de219465e9484cee619c915b37d544dc86add0cb | refs/heads/main | 2023-03-23T07:39:17.580327 | 2021-03-05T09:20:22 | 2021-03-05T09:20:22 | 336,456,326 | 0 | 0 | null | 2021-02-19T06:11:47 | 2021-02-06T04:37:39 | Jupyter Notebook | UTF-8 | Python | false | false | 2,513 | py | # -*- coding: utf-8 -*-
"""day24_emotion_analyzer.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/16BJQSbiJlWOhNCAcESRbgLLtzCoac2WR
### Import required libraries -
"""
import librosa
import glob
import librosa.display
import numpy as np
import ... | [
"[email protected]"
] | |
5fb9e7ffdd9447e5cce93082ccc561665d782ba7 | 87966dabac9acf0170e873cf8ce75e81e45374a0 | /Lab8/Hryshchuk-2-1-8/__init__(python_rest).py | bfb005c28dc557e337697b1cf618e14c7cc9c250 | [
"MIT"
] | permissive | triod315/SysProgLabworks | d7fdf75024413c76519950881680617a507ea966 | c9f98e8d3d507b738334f459bb76924fb280196d | refs/heads/master | 2020-05-31T01:35:58.940293 | 2019-06-20T17:54:59 | 2019-06-20T17:54:59 | 190,051,560 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,486 | py | from flask import Flask, request, json
import os
import sys
import smtplib
from email.mime.text import MIMEText
from email.header import Header
from datetime import datetime
import requests
app = Flask(__name__)
DB_FILE_NAME = '/user/src/app/shared_folder/users.txt'
# curl -X GET localhost:5000/users/IsLoginFree?logi... | [
"[email protected]"
] | |
262470f846c7e0deb175e5ed89df29920e2ed718 | 49ee9dacfab0e4bfc7750f3b81bd8ddfa8bd14b3 | /djangoProject/apps/blog/dev_migrations/0030_auto_20201201_1124.py | 0f4759bcb5e2401b4926ec2a84e9da054bd16a6e | [] | no_license | QingChang1204/djangoProject | 97c069d08cb2d4959b862fbb546440e349d21c27 | 559be0cfba1477a3d110d776523c4ccddafb1cf7 | refs/heads/master | 2023-01-19T04:56:18.447895 | 2020-12-02T15:11:42 | 2020-12-02T15:11:42 | 286,429,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | # Generated by Django 3.1.2 on 2020-12-01 11:24
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blog', '0029_auto_20201201_1120'),
]
operations = [
migrations.AlterUniqueTogether(
name='tagship',
unique_together={('artic... | [
"[email protected]"
] | |
0114f117a6d559f858e8d3b6a931cd7f002e046e | 9075d5a2b228de748227a36e1a9c5fa279d1a444 | /Desktop/Desktop/Semester5/AppliedScience/Python Programming/Week 06 Lecture/Lecture 06 Total Code/week06_05_MovieList.py | 3af85012fb33a9884b2493fb844f065d405dff33 | [] | no_license | fatihkgm/mobileApplication-react-fench-id | 986dfd3ddac217a8b0aee0c658c03f3a11af4094 | 78ead5874e15d8c2a6fac803c31ec52fbadc38ec | refs/heads/master | 2023-01-23T04:16:27.109957 | 2020-10-16T04:57:51 | 2020-10-16T04:57:51 | 314,138,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,569 | py | FILENAME = "movies.txt"
def write_movies(movies):
with open(FILENAME, "w") as file:
for movie in movies:
file.write(movie + "\n")
def read_movies():
movies = []
with open(FILENAME) as file:
for line in file:
line = line.replace("\n", "")
movi... | [
"[email protected]"
] | |
37ecc6de058f4da68843c1d9b4ecac697bb48148 | 46a468301f12494091fff124d1e4541f9f080c62 | /src/algorithms/DynamicProgramming/lis.py | 1f06338cd6ceee7e041ec3a8d6c13788b90f34a9 | [] | no_license | anuragsarkar97/hailey | 46c9d4328e80e3c99e7d98fa2f89599d4aec79c8 | a6b3dc0576ad8839ce1f4def0e1c1758b8857b2a | refs/heads/master | 2020-04-19T08:59:01.764133 | 2020-03-20T05:43:41 | 2020-03-20T05:43:41 | 168,096,003 | 0 | 1 | null | 2020-02-13T07:40:06 | 2019-01-29T05:37:59 | Python | UTF-8 | Python | false | false | 249 | py |
def lis_dp(a):
dp = [0]*len(a)
dp[0] = 1
for i in range(1, len(a)):
for j in range(i):
if a[i] > a[j] and dp[i] < dp[j] + 1:
dp[i] = 1 + dp[j]
print(dp)
return max(dp)
a = [4,3,1,4,2,5,6,7]
print(lis_dp(a)) | [
"[email protected]"
] | |
43d8f41a6cdd21d994e2ceb228e8dbd6514dbf75 | 27c9eb81a68dba24c1f13457025fe9578eb782ca | /app/modeladmins/accounts_transfer.py | 8f8dff0c5a9c681d9d6f12b9ba47200bf8924b4e | [] | no_license | bkm009/Daily-Finance-Django | 39469536ea9e16d86a4c9cba02851e9055696d6c | 60ae25e1d2f1352f3d90919a9f4a90f50e3792aa | refs/heads/master | 2022-12-05T12:25:16.000741 | 2020-08-19T07:14:12 | 2020-08-19T07:14:12 | 288,658,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 581 | py | from django.contrib.admin import ModelAdmin
from app.modelforms.accounts_transfer_form import AccountsTransferForm
class AccountTransferAdmin(ModelAdmin):
def has_view_or_change_permission(self, request, obj=None):
return False
def has_delete_permission(self, request, obj=None):
return False... | [
"[email protected]"
] | |
24ab0e23e412856fbf3251c70d415fd78f18a9db | b254f218532fb565ca9a4acb08241dbed34dc474 | /wordplay/longest_palindrome_better.py | fd265659d67af907fe42873c440b329be71439f5 | [] | no_license | BMariscal/intermediate_python | c00420681e611069294709a6588fd551caa1cd1e | f5da095b1097de9495c111640001ab74dfad7dc4 | refs/heads/master | 2020-05-23T18:05:27.948829 | 2017-03-31T12:39:48 | 2017-03-31T12:39:48 | 84,777,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | import scrabble
import time
start = time.time()
longest =""
for word in scrabble.wordlist:
is_palindrome = True
for index in range(len(word)):
if word[index] != word[-(index + 1)]:
is_palindrome = False
if is_palindrome and len(word) > len(longest):
longest = word
print(longe... | [
"[email protected]"
] | |
474cafb91cac2b18a34e05571e47f5101b705bf1 | d4b55377b92c287435b3b42254abb5263a24df5d | /18 Projects/Project_hskinner_attempt_2018-12-12-10-21-35_ProjectTemplate/ProjectTemplate/my_module/test_functions.py | 7542a3ae84be978b63872552629665b1e077e377 | [] | no_license | brn016/cogs18 | 3a7ce413504683dff5396e79aad81f1679469c71 | ee866ef7ed341f5d4f77512887c3a5521ec5ff7f | refs/heads/master | 2020-03-31T20:22:05.213429 | 2018-12-14T04:36:54 | 2018-12-14T04:36:54 | 152,537,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,531 | py | """Test for my functions.
"""
import random
from functions import *
from dictionaries import *
def test_remember_punc():
assert isinstance(remember_punc('hello.'), str)
assert remember_punc ('hello.') == '.'
assert isinstance(remember_punc('hello'), str)
assert remember_punc ('hello') == ''
def tes... | [
"[email protected]"
] | |
3510745d963b2b35f3bdf88d51838de062837206 | a4dc13112ecc0e510ed9ea5de4d6d62e9b336466 | /stickman_game_moving_platforms.py | 87f0c6539d16156cde3a0ff616c2025dd7350356 | [] | no_license | ethyl2/stickman | 67aa1a460070e32c8fc028385a6f06154e02f60a | 377c644c1c8b07de4aa212586a0cb0153bf52af2 | refs/heads/master | 2021-01-13T10:14:07.814617 | 2016-09-27T15:40:48 | 2016-09-27T15:40:48 | 69,371,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,917 | py | #Stickman Game from Python for Kids
#With moving platforms
from Tkinter import *
import random
import time
class Coords:
def __init__(self, x1=0, y1=0, x2=0, y2=0):
self.x1 = x1
self.y1 = y1
self.x2 = x2
self.y2 = y2
def within_x(co1, co2):
if (co1.x1 > co2.x1 and co1.x1 < co... | [
"[email protected]"
] | |
ab3eab1a23bb4c92b20d6dfe73579aed909130dd | 97194f1f32c2461e8f89f0ece213cedbcdac7010 | /main/ocr/wsgi.py | cc2098ce1ef23c3dd1fec173214b2a2c2ac7ceb8 | [] | no_license | tienhung2812/ocr | eb77125c88c70bd3664c77622fa52d6559d2ecd5 | a14d46426f3ab22296ba03b71c8664b5ff01cf81 | refs/heads/master | 2020-05-01T13:50:16.562865 | 2019-10-02T16:12:40 | 2019-10-02T16:12:40 | 177,503,321 | 3 | 0 | null | 2019-10-02T10:06:52 | 2019-03-25T02:52:47 | Jupyter Notebook | UTF-8 | Python | false | false | 383 | py | """
WSGI config for ocr 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/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_... | [
"[email protected]"
] | |
106755deaf8d41b33c8e305145718e0b2122ac89 | 9e7c4f5e723bb85115aee2198ba84143a0cffc28 | /pipeline.py | 6b84a58d30433d713bf6e775d746aa9d8122d175 | [] | no_license | krzjoa/kaggle-sberbank | 56ba608485c96b42dda98f5edbda5f354f30321b | 10d1b2072ba5642936e2fbebfa4442b981b071a5 | refs/heads/master | 2021-01-20T06:05:06.876381 | 2017-05-20T21:40:55 | 2017-05-20T21:40:55 | 89,840,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,762 | py | # -*- coding: utf-8 -*-
def without(columns, with_no):
return list(set(columns).difference(with_no))
class TestPipe(object):
def transform(self, test):
testdf = common_pipe(test)
return testdf[without(testdf.columns, ['price_doc', 'id'])].values, test.id.values
class TrainPipe(object):
... | [
"[email protected]"
] | |
35828fc54e55365946f49f01dff96bba3f4f97c8 | 83f40e01db20bb94e84d3d6e272bd78f338ed951 | /env/bin/viewer.py | 68d8b10a12396b077777426bf8371867844b8db7 | [] | no_license | s-wirth/Snackbar | 26ffa79635b29b7721f99e0774de205a0410d0a9 | 210ec931b95893dd022542bd91bbc527d192a2c6 | refs/heads/master | 2021-01-10T03:54:33.721493 | 2015-11-25T14:46:28 | 2015-11-25T14:46:28 | 46,731,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | #!/Users/sophie/Projects/Snackbar/env/bin/python2.7
#
# The Python Imaging Library
# $Id$
#
from __future__ import print_function
try:
from tkinter import Tk, Label
except ImportError:
from Tkinter import Tk, Label
from PIL import Image, ImageTk
#
# an image viewer
class UI(Label):
def __init__(self,... | [
"[email protected]"
] | |
4515d580247c5ba93dec172bf0dcae2163e1b42f | 270e038578f67c05c2c1653b1bc6c8c128a68aa5 | /Object_to_Json/env/bin/pyreverse | e41dd0c844ab8ba9a3abec23d5dc771b6d9cf75b | [] | no_license | VALQUIRIAFABRO/Study_Python | 11c4ef63453f05489841fc3a52a5f0b4ebfd856c | 688de5e5f81f4f041e4ce418c95add258bc380fa | refs/heads/master | 2021-07-17T03:00:45.698147 | 2020-03-01T18:13:10 | 2020-03-01T18:13:10 | 244,197,291 | 0 | 0 | null | 2021-03-20T03:03:16 | 2020-03-01T17:56:54 | Python | UTF-8 | Python | false | false | 251 | #!/mnt/d/projPython/projVal/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_pyreverse
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_pyreverse())
| [
"[email protected]"
] | ||
1cf7cc93ebcaaf841cd3ce276c85a9655ca80797 | 772242d1354ae3864cfd82c77ce08893a2a3837c | /1-aloparca/0-BRANDS/0-DELETE/aston_martin/myproject/spiders/parts.py | 929208d8beee189572b9bc0148f4a48339be67f4 | [] | no_license | codenotespy/SCRAPY_PROJECTS | 7f1a1839a4461c76b838fb2c3cd70f6b945ee98f | c3c965fca86758510b2980d40929c0da989d4f68 | refs/heads/main | 2023-06-11T08:29:03.505349 | 2021-06-29T03:18:39 | 2021-06-29T03:18:39 | 381,224,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,817 | py | import scrapy
from myproject.items import MyprojectItem
#from scrapy.loader import ItemLoader
class PartsSpider(scrapy.Spider):
name = 'parts'
page_number = 2
start_urls = ['https://www.aloparca.com/oto-yedek-parca/ASTON_MARTIN']
def parse(self, response):
items = MyprojectItem()
for ... | [
"[email protected]"
] | |
0118cbde92183909ac35dc3d61941d92afaa2979 | 997a65cffc140b9005ac88f29222e7e632ec518c | /train_w_center.py | 4d6ea9310cee83550c12e2b2998285313feffcd1 | [
"Apache-2.0"
] | permissive | Maeve-D/reid_for_deepsort | 5e900be1f22b09e9079bb8a0f6a36bad3e2fae91 | f82e2280443829339de4d29c7bbede9d992c4f97 | refs/heads/master | 2022-07-10T01:47:54.645557 | 2020-05-19T06:03:42 | 2020-05-19T06:03:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,077 | py | import argparse
import os
import time
import matplotlib
import matplotlib.pyplot as plt
import torch
import torch.backends.cudnn as cudnn
import torch.optim as optim
import torchvision
from torchvision import datasets
from eval import get_result
from models import build_model
from utils.center_loss import CenterLoss
... | [
"[email protected]"
] | |
8711b82efde4f4ea06535e355750e4d054e92d9f | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/django-1.3/django/contrib/auth/decorators.py | 90bb7a127cf216433ad50dc3c58dae54e28a51b2 | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.3/django/contrib/auth/decorators.py | [
"[email protected]"
] | |
876af148e0e1a2e8891d6f308c68e89c6048db7a | d4573e15795c02ff98aab5e02d4c8effde4691dc | /PythonTasks/isValidSubsequence.py | dddf11e0c5b685688e8010a62f97c23f47b3a15c | [] | no_license | maantos/PythonTask | 524a34ed6cfeac2651e362d15e767434b337302a | 3460fb118ad725ad5aa549b8de53dddfea9b1ca3 | refs/heads/main | 2023-08-31T16:20:16.445474 | 2021-10-24T10:09:36 | 2021-10-24T10:09:36 | 403,981,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | def isValidSubsequence(array, sequence):
indexArray = 0
indexSequence = 0
for a in array:
if a == sequence[indexSequence]:
indexSequence+=1
return indexSequence == len(sequence)
def main():
a= [5, 1, 22, 25, 6, -1, 8, 10]
s = [5, 1, 22, 25, 6, -1, 8, 10, 10]
print(isV... | [
"[email protected]"
] | |
b6aeae9d49474feca35b642020450f59b805f6a1 | 89c4a43a505df8fdf1f0d7386988c4896c2e631b | /examples/billing/get_invoices.py | 2ed69a7c2a8bbecccaf83ad8e70d6bd01cd8c19e | [
"Apache-2.0"
] | permissive | hurricanelennane/google-ads-python | a0a1fed690776a8bb2e81f637eb7eae10fb4992f | 310a488b6fdad9d5beea8fa4b166edce779a2511 | refs/heads/master | 2023-07-04T03:07:53.344466 | 2021-07-16T19:06:36 | 2021-07-16T19:06:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,262 | py | #!/usr/bin/env python
# Copyright 2021 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
"[email protected]"
] | |
4757bdbb45e9943f57229c66382e143fdb7eedb0 | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/notification-hub/azext_notification_hub/aaz/latest/notification_hub/credential/wns/__cmd_group.py | 5037cd17f20259548803ca3dbaa434de49a782a9 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 604 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------... | [
"[email protected]"
] | |
8385b642855ce52a447c4cbb7ee9daef09d08a97 | eccb79e51d0805d5643e4bfb37d8bf771a33d07d | /day1/test2.py | f7758110e95c0427b4246ca452a4e96d9e7d8890 | [] | no_license | kkc272104568/python_test | a05d1f07f240f9f82410a3ac283f1766591013b3 | 75ca1e937c830114a6df84d0340c438ce9a01c91 | refs/heads/master | 2020-03-26T13:45:28.831829 | 2020-02-25T09:48:45 | 2020-02-25T09:48:45 | 144,955,227 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,520 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
'''题目:企业发放的奖金根据利润提成。利润(I)低于或等于10万元时,奖金可提10%;利润高于10万元,低于20万元时,
低于10万元的部分按10%提成,高于10万元的部分,可提成7.5%;20万到40万之间时,高于20万元的部分,可提成5%;
40万到60万之间时高于40万元的部分,可提成3%;60万到100万之间时,高于60万元的部分,可提成1.5%,高于100万元时,
超过100万元的部分按1%提成,从键盘输入当月利润I,求应发放奖金总数?
程序分析:请利用数轴来分界,定位。注意定义时需把奖金定义成长整型。
程序源代码:'''
# i=... | [
"[email protected]"
] | |
3ef7c170aff0467ec017ff6fa55cfec5011d76af | 7ed8b6fda0bdf14ae4145d913b1cd6675ea1e8dc | /interspeech2020_codes/vaw-gan/convert-vawgan.py | 32d99356060a5fa966244fd2c33bd3efaa2d6242 | [] | no_license | hongwen-sun/Speaker-independent-emotional-voice-conversion-based-on-conditional-VAW-GAN-and-CWT | 9a8198ad10da163704f9711bcf06f2e44f08ec8c | 876fa67c29536afcae05496ca8f8f37abde9b8ee | refs/heads/master | 2023-01-10T11:35:24.935806 | 2020-11-13T12:50:09 | 2020-11-13T12:50:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,229 | py | import json
import os
import sys
import tensorflow as tf
import numpy as np
import soundfile as sf
from util.wrapper import load
from analyzer import read_whole_features, pw2wav
from analyzer import Tanhize
from datetime import datetime
from importlib import import_module
args = tf.app.flags.FLAGS
tf.app.flags.DEFIN... | [
"[email protected]"
] | |
f1a816139f85ed6a57d84606962de0bae8e26e2b | 431af022b62460f5bf81ff19450e391e22133e0a | /w1/web_app_1/bin/pip | db7ab663bb63410e004d2006c2dae86b3d2fc921 | [] | no_license | marcin-jamroz/pythonLvlUp | a8e3d758a807fa1c1ebcc079b86c90fa2aa505f6 | 1aa966c5e988dd92b7bfff9ccb599332ccbb6f71 | refs/heads/master | 2020-03-11T10:57:36.634715 | 2018-04-17T19:49:32 | 2018-04-17T19:49:45 | 129,956,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | #!/home/marcin/Kod/Python/pythonLvlUp/w1/web_app_1/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"[email protected]"
] | ||
775bfe54fc558de9f2d13cdfab215fb701858979 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5652388522229760_1/Python/hwmaltby/counting_sheep.py | 28c65f65b3bc6c9b939b87a0d25dfc2ef60af483 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | #Henry Maltby
#Code Jam 2016
f = open('A-large.in')
g = open('A-large.out', 'w')
N = int(f.readline())
data = [int(x) for x in f.read().split('\n')]
def count_sheep(n):
"""
Takes a number and returns the last value Bleatrix would say.
Does so directly: iterates over each number said and each digit in num... | [
"[email protected]"
] | |
185f4234ea2c1aafdc20a163089442b5a7b72a70 | f8b5e12316bce07b7e1ea568e81e40442fed17bc | /meloshare/api/resources.py | bcdc0cccbe3734cd43f69597e44f68e617e63dd6 | [
"MIT"
] | permissive | xavierfav/meloshare | 56ea9d228c4c7a6d6c0bf031e5222ce15ddff5aa | a52bf321135382b415a453ad29498901c96f8cdb | refs/heads/master | 2022-12-12T21:10:24.055102 | 2018-01-30T03:05:15 | 2018-01-30T03:05:15 | 119,074,174 | 1 | 1 | MIT | 2022-12-08T00:53:21 | 2018-01-26T16:18:24 | Python | UTF-8 | Python | false | false | 15 | py | RESOURCES = []
| [
"[email protected]"
] | |
0e84c6a4d779d67cc768bbeaf77a684bb7a6e521 | ed363858c2a88ed125f7b7dce507a2978201f0ca | /week1/Project1/api/migrations/0001_initial.py | 7cabcca21f272fb82e94bba55ef3f0fcbd7abe4f | [] | no_license | progF/advanced-django2019 | cc058e99c3d3add3eb0ebac773cdee23f49a284a | e3e2cc37c88cf697446ffa8493db811c1f8a8aa8 | refs/heads/master | 2022-11-24T17:34:24.951650 | 2019-12-05T13:28:31 | 2019-12-05T13:28:31 | 206,416,155 | 0 | 0 | null | 2022-11-22T04:52:36 | 2019-09-04T21:20:02 | Python | UTF-8 | Python | false | false | 1,502 | py | # Generated by Django 2.2.5 on 2019-09-04 19:01
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Product'... | [
"[email protected]"
] | |
a4d4aa0f096c5e18c6c767b951eeab397e31ee94 | 4eb4677d051a2372dd74f00f19ed6a1ac643662b | /practice8h.py | 0f91c5b5ae6be660570286a6e6dc4068d5a7244a | [] | no_license | harmansehmbi/Project8 | 015625578dd48c5df87631d5e0cfa712836cc8fc | f500ec90c6fa71990987e418adca0e5f5fb00b61 | refs/heads/master | 2020-06-05T08:54:00.382629 | 2019-06-17T16:37:22 | 2019-06-17T16:37:22 | 192,383,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | class Counter:
ccount = 1
def __init__(self):
self.count = 1
Counter.ccount = 1
def incrementCount(self):
self.count = self.count + 1
Counter.ccount = Counter.ccount + 1
def showCount(self):
print("count is {} and ccount is {}".format(self.count, Counter.ccoun... | [
"[email protected]"
] | |
b9152793bd39062b3450e1f61fd161cfbeecde12 | fbd3b8a646091400df5ba5d586eec55eff0b056d | /src/AS/s05_parse_PSI_vals.py | 658051a8e7fa77e17fae73ba111f316bccb5c469 | [] | no_license | mpandeyWU/diurnalCycleCodes | a538fe28190d5c62f848ad2ca9802fc98eb22785 | 14951f768371c1c3ed9e549b6f8863c241a6b7cf | refs/heads/master | 2021-08-06T16:06:18.559827 | 2020-04-16T04:59:15 | 2020-04-16T04:59:15 | 151,189,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,706 | py | #!/usr/bin/python
#########################################################
# Purpose: Parse tsv output files and filter the relevant LSVs
# Author: Manishi Pandey
# Date: October 16, 2018
# Usage: python s05_parse_PSI_vals.py -majiqpath ../output/Majiq_PSI_All/tsvFiles/ -outfile ../output/s05_output/all_LSV_list.txt
... | [
"[email protected]"
] | |
e2d86aa7be06a9fab29cfa499261d2adc9a00dfe | b76615ff745c6d66803506251c3d4109faf50802 | /pyobjc-framework-Quartz/PyObjCTest/test_ciplugininterface.py | 9dd711b881eaa697be75fbe4494b6429783fdfd1 | [
"MIT"
] | permissive | danchr/pyobjc-git | 6ef17e472f54251e283a0801ce29e9eff9c20ac0 | 62b787fddeb381184043c7ff136f1c480755ab69 | refs/heads/master | 2021-01-04T12:24:31.581750 | 2020-02-02T20:43:02 | 2020-02-02T20:43:02 | 240,537,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | from PyObjCTools.TestSupport import *
from Quartz.QuartzCore import *
from Quartz import *
class TestCIPluginInterfaceHelper(NSObject):
def load_(self, h):
return 1
class TestCIPlugInInterface(TestCase):
def testMethods(self):
self.assertResultIsBOOL(TestCIPluginInterfaceHelper.load_)
d... | [
"[email protected]"
] | |
2159f026e2e91ee4f34ac0e77548ea497fcf9d65 | b05761d771bb5a85d39d370c649567c1ff3eb089 | /venv/lib/python3.10/site-packages/numpy/typing/tests/data/pass/ufunc_config.py | fd64c8eab5a129e2e7cedb231f7ad525b70f0bed | [] | no_license | JawshyJ/Coding_Practice | 88c49cab955eab04609ec1003b6b8c20f103fc06 | eb6b229d41aa49b1545af2120e6bee8e982adb41 | refs/heads/master | 2023-02-19T10:18:04.818542 | 2023-02-06T21:22:58 | 2023-02-06T21:22:58 | 247,788,631 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | /home/runner/.cache/pip/pool/6f/49/d6/2f2ab45761f898a657acd334913f8633ec7c8a0f6dbf76a5e74fd80163 | [
"[email protected]"
] | |
841f0308c5117d12505da207be5622d21060d121 | 4ab4f763fec96977dd37ae531c20e66528018287 | /examples/script.py | 5193361b099624704e1fa9b864033643fdd25e69 | [] | no_license | rienafairefr/py-bricklink | 4187de386dec8c128308fc27ca1a5f25d142f7f8 | 0e7ea6dbc02dc9a44042fc70feaf164a0c4e92aa | refs/heads/master | 2020-08-28T15:10:55.075476 | 2019-10-26T18:56:28 | 2019-10-26T18:56:28 | 217,735,256 | 0 | 0 | null | 2019-10-26T16:14:29 | 2019-10-26T16:14:29 | null | UTF-8 | Python | false | false | 164 | py | import json
import bricklink
auth = json.load(open('auth.json', 'r'))
client = bricklink.ApiClient(**auth)
print(client.catalog.getItem('MINIFIG', 'cty0859'))
| [
"[email protected]"
] | |
26f58016bf981e3c9bc9c093f5729428cb70b710 | 0a40a27bdc9ad234d2f3ec8bc68b082881065fc7 | /riko/modules/udf.py | e89eef2ba850ba8862ff29b9ea73cbb05034bc64 | [
"MIT"
] | permissive | anilktechie/riko | 5130ff054e03315e5e47ea99f68ec5099079675f | 9549a1a23153e274069f6d13de0b528488d7ba92 | refs/heads/master | 2022-11-30T21:39:20.328527 | 2020-08-14T16:47:45 | 2020-08-14T16:47:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,288 | py | # -*- coding: utf-8 -*-
# vim: sw=4:ts=4:expandtab
"""
riko.modules.udf
~~~~~~~~~~~~~~~~
Provides functions for performing an arbitrary (user-defined) function on stream
items.
Examples:
basic usage::
>>> from riko.modules.udf import pipe
>>>
>>> items = [{'x': x} for x in range(5)]
... | [
"[email protected]"
] | |
e7f453b02820dc50a5ea35812ca6076647f21f09 | f4bc9842fce9846fc94d73c4e52a2ad9cb69aa1b | /Workshop 2/2.3 - String operations.py | b39a3d24c878e139b7666568319f472f4ebb9443 | [] | no_license | Honza-m/python-training | df486a160dbc193b5d47a5d54853f4eb6c3a96df | 9c0da5bd37ab2fd8164abe7c8970b31ec6a4c083 | refs/heads/master | 2020-03-08T14:21:02.798713 | 2018-08-14T11:24:29 | 2018-08-14T11:24:29 | 128,182,822 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | #definitions
def string_def():
x = 'This is a string'
print(x)
x = "This is also a string"
print(x)
z = """ This
is
a multiline
string - good for documentation!"""
print(z)
def special_chars():
x = "What is I want \"quotes\"?"
print(x)
x = "C:\\Users\\Jan"
print(x)
... | [
"[email protected]"
] | |
4a14d5356601d80e01b3a25d247ce1190222db4e | 4d993938125a1c54e11359e2baa498a8c22edbd7 | /venv/bin/player.py | b2717055a500daccdc379137dce67b5c515f8519 | [] | no_license | william-index/plantgod | 57e2454dd9718d918e73558f4951af9ea7ad882b | 6aa07ed2694a59659fe56fc95f2c5adf7757c498 | refs/heads/master | 2020-02-26T15:22:18.724558 | 2018-08-16T19:41:50 | 2018-08-16T19:41:50 | 70,263,435 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,211 | py | #!/Users/wanderson/Repos/evolving-plants/venv/bin/python
#
# The Python Imaging Library
# $Id$
#
from __future__ import print_function
try:
from tkinter import *
except ImportError:
from Tkinter import *
from PIL import Image, ImageTk
import sys
# -----------------------------------------------------------... | [
"[email protected]"
] | |
4e341fd28736e9eea2da274a054fc88727cef941 | 6b7e87cc96948178a9e6b7c60cba81e210607ba4 | /com.stonedog/src/com/stonedog/study/metaclass/metaclasstest.py | 22bbc3235654621a4e6d5042d807ef87b66d95cf | [] | no_license | stonedog/stonedog-learn-to-python | 9025161b70ba47c4b3b7aa60d52b28ceeae1c8c5 | a9f90f2285a19b01f91d1e188ae1fbac0e1c43a1 | refs/heads/master | 2016-09-06T07:07:56.616372 | 2013-02-17T09:15:36 | 2013-02-17T09:15:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,025 | py | '''
Created on 2013-2-12
@author: Administrator
'''
class Metaclass(type):
def __new__(typeclass,classname,superclass,classdict):
print(type(typeclass))
return type.__new__(typeclass,classname,superclass,classdict)
class Test():
__metaclass__=Metaclass
def __init_... | [
"[email protected]"
] | |
4df520463024b038d97879f2ec416f27e784bbb7 | 1967af25a4e18b053682b2dbe8116f4bd38a0479 | /Basic Scripts/Animal_Quiz.py | 005ce2aae8a062947d70fc972063c90e5e2082b8 | [
"Unlicense"
] | permissive | shubhi13/Python_Scripts | c2a82a550fa26cc8a578b1e1263689c29b87facc | 9bd8fd402c61f24355a4d6b0d0815ad913becac3 | refs/heads/master | 2023-08-22T00:45:21.423803 | 2021-10-29T06:54:16 | 2021-10-29T06:54:16 | 422,703,282 | 0 | 0 | Unlicense | 2021-10-29T20:40:02 | 2021-10-29T20:20:32 | null | UTF-8 | Python | false | false | 818 | py |
def check_guess(guess, answer):
global score
still_guessing = True
attempt = 0
while still_guessing and attempt < 3:
if guess.lower() == answer.lower():
print("Correct Answer")
score = score + 1
still_guessing = False
else:
if attempt < 2:... | [
"[email protected]"
] | |
a4f9ea4b9c476bded45c0146c0fb8c9fc24c872f | d9a22d4dcdfc0c28176c0e8afd784b30d275597e | /lib/geometry/rotations.py | 6bf545f8075e9092d440c71f9612e0e729c5803c | [] | no_license | jlec/relax | fda1b3ff77be0afc21c2e6cc52348ae7635cd07a | c317326ddeacd1a1c608128769676899daeae531 | refs/heads/master | 2016-09-08T00:27:57.256090 | 2015-02-10T12:24:55 | 2015-02-10T12:24:55 | 30,596,131 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 72,517 | py | ###############################################################################
# #
# Copyright (C) 2004-2014 Edward d'Auvergne #
# #
... | [
"bugman@b7916896-f9f9-0310-9fe5-b3996d8957d5"
] | bugman@b7916896-f9f9-0310-9fe5-b3996d8957d5 |
2d345456c811079050eed477f26593bbabcee8e7 | 9fd767635ecc37f0650a409f88ccc4f2127f1a73 | /estudios/views.py | 80bf2633acdf63bc046b8b0754f378d43ead7138 | [
"MIT"
] | permissive | JVacca12/FIRST | d3175f12595fc39403d72d436a234b7ba6ac2438 | e3906209cae1198e1fbda4d00bc0a906e8294a69 | refs/heads/main | 2023-09-04T18:11:57.460379 | 2021-09-30T04:40:48 | 2021-09-30T04:40:48 | 410,325,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,408 | py | # Django REST Framework
from rest_framework import mixins, status, viewsets
from rest_framework.response import Response
# Models
from estudios.models import Estudios
# Permissions
from rest_framework.permissions import IsAuthenticated
from users.permissions import IsStandardUser
# Serializers
from estudios.serializ... | [
"[email protected]"
] | |
f02e9e368f9dbaa8e480bcb7e184e688a9e90469 | ec79881536aa2136a6bde6da632eabc4adf603ed | /src/compute_tfidf.py | d3ee1029552388103f17a1333d0a56a51999eaad | [] | no_license | knkumar/tweet_analysis | 4cebfee436eed16d81fbda8c214ea5ce56ca788b | 1718cd0a864b86379a8a5d0b84486d1d97357b4d | refs/heads/master | 2020-05-09T23:12:00.089244 | 2012-06-19T17:28:54 | 2012-06-19T17:28:54 | 4,524,337 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,911 | py | import shelve
import numpy as np
import sys
import time
import pickle as pl
import math
from settings import *
class c_tfidf:
def __init__(self):
self.fldict = shelve.open("%s_%s"%(flickr_inp,bin_size))
self.twitdict = shelve.open("%s_%s"%(twitter_inp,bin_size))
self.fl_ubins = shelve.ope... | [
"[email protected]"
] | |
eb8f8368b4ae1c7f06f5fbb290ed6efb9ffbe3a2 | b3b066a566618f49ae83c81e963543a9b956a00a | /Python Data Science Toolbox (Part 1)/02_Default arguments, variable-length arguments and scope/05_Nested Functions II.py | 0c86dd3ba3ffbdb4f2819c05d637b47bd72b72ed | [] | no_license | ahmed-gharib89/DataCamp_Data_Scientist_with_Python_2020 | 666c4129c3f0b5d759b511529a365dfd36c12f1a | f3d20b788c8ef766e7c86c817e6c2ef7b69520b8 | refs/heads/master | 2022-12-22T21:09:13.955273 | 2020-09-30T01:16:05 | 2020-09-30T01:16:05 | 289,991,534 | 2 | 0 | null | 2020-08-24T17:15:43 | 2020-08-24T17:15:42 | null | UTF-8 | Python | false | false | 1,885 | py | '''
Nested Functions II
100xp
Great job, you've just nested a function within another function. One other pretty cool
reason for nesting functions is the idea of a closure. This means that the nested or inner
function remembers the state of its enclosing scope when called. Thus, anything defined
locally in the enclosi... | [
"Your-Email"
] | Your-Email |
8426db9d315c63d1b58b87fc61bc26cdac2cfdd4 | facb69b5ac8741234546ec3932b776f3f28a965b | /samples/src/main/resources/datasets/python/84.py | c1567b02f9f3629e38c3a57007b11e70996d0da6 | [
"Apache-2.0"
] | permissive | CommanderTvis/kotlingrad | 47bf579d885e893a0214269a117fe810bd5a4ecc | 56a6d4d03544db1bcaa93c31ffc7e075bc564e64 | refs/heads/master | 2023-06-25T06:43:21.644844 | 2021-07-29T04:29:55 | 2021-07-29T04:29:55 | 365,717,366 | 0 | 0 | Apache-2.0 | 2021-05-09T09:43:28 | 2021-05-09T09:43:28 | null | UTF-8 | Python | false | false | 30 | py | def test21(a, b):
a + b.x
| [
"[email protected]"
] | |
bbc86de8d4e07cb290ae05a8ae472beb042f7da0 | 6d2659f3ac85dbcc168835ab841dbfef99ad5b97 | /ctrl.py | ea99b0acc6fad0b8a273a6cc3d024ab8dedbef9a | [
"MIT"
] | permissive | sysid/munggoggo | 348db6282e1e6349321e1dceb81e6abb15706f43 | 6b2f398678c51bedc566be5dda579ffa4ff566c5 | refs/heads/master | 2023-01-28T21:45:03.330412 | 2022-12-13T15:29:58 | 2022-12-13T15:29:58 | 218,945,509 | 24 | 1 | MIT | 2023-01-17T20:59:27 | 2019-11-01T08:31:16 | Python | UTF-8 | Python | false | false | 6,870 | py | #!/usr/bin/env python
import asyncio
import logging
import sys
from datetime import datetime
from pathlib import Path
import click
sys.path.insert(0, str(Path(__file__).parent / "munggoggo"))
from behaviour import Behaviour
from core import Core
from messages import ListBehav, ManageBehav, ListTraceStore
from twpy ... | [
"[email protected]"
] | |
6b0be7613cc411613219c39a2e460d4b9ff5b3c3 | 08f61d5432b6cf14bb6fc3448259a6c445b26780 | /dapodik/peserta_didik/peserta_didik_baru.py | e973ecbc1b9dba59b799edc8b00f3c1fa4b2a89d | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | nainaidaa/dapodik | 9ecfabc6f262c24a4cd0288b3b1a7116b3a09199 | d89c0fb899c89e866527f6b7b57f741abd6444ea | refs/heads/master | 2023-07-22T23:37:16.694675 | 2021-09-08T15:04:23 | 2021-09-08T15:04:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,337 | py | from datetime import datetime, date
from typing import Optional
from uuid import UUID
import attr
@attr.dataclass
class PesertaDidikBaru:
pdb_id: UUID
sekolah_id: UUID
nama_pd: str
jenis_kelamin: str
nik: str
tempat_lahir: str
tanggal_lahir: date
nama_ibu_kandung: str
jenis_pendaf... | [
"[email protected]"
] | |
f5d5a6877aa307cae604b2014d304f5a80aeedbe | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/eqptcapacity/bdusagehist5min.py | 99446d6b79141cb2c690a779a3622e853429f447 | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 18,985 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"[email protected]"
] | |
a10765120a7758b9dc943cb42170270d4fb26a28 | a02016f368e9e9615dabe0c30b97d4e3f494ff20 | /Transformer/Model.py | 049fc2085f4d12ebeec365b9d16f86db63f5a069 | [] | no_license | carmelocs/Learning | d46a9c58035fe22204585ebcad2001ffee07d9b4 | f0eea71a689ac4e4f5c75a69fd6bd56a0f606da8 | refs/heads/master | 2023-06-11T03:36:03.521019 | 2021-07-07T04:40:02 | 2021-07-07T04:40:02 | 286,873,786 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,493 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from Layer import EncoderLayer, DecoderLayer
def get_pad_mask(seq_q, seq_k):
'''
Input:
seq_q: [B, len_q]
seq_k: [B, len_k]
Output:
pad_mask: [B, len_q, len_k]
'''
len_q = seq_q.size(1)
# `PAD` is 0
... | [
"[email protected]"
] | |
d47a7be89ea03b1b9eea03e8ab1f78a3ad026051 | 606c03cdf70fe642d8d0ad1b55bc0a01ade33776 | /twitter/twitter/setup.py | 4f77ed74a85bc45045ceb22a1f1bb76d2a6dd1fd | [] | no_license | pravallika2207/TWITTER-SENTIMENT-ANALYSIS-USING-STREAMING-API | f8353bb9a7ffd341bfccc2820057ade72e47185d | 69e58f6a1d10b7d3a4b1d8aeb4e096a587c7073f | refs/heads/master | 2020-05-23T18:27:28.230447 | 2019-05-15T20:00:24 | 2019-05-15T20:00:24 | 186,888,131 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | from setuptools import setup,find_packages
setup(name='twitter',
version='0.1',
description='Twitter Sentiment Analysis Using Streaming APi',
url='https://github.com/Mrudula09/twitter',
author='Mrudula Nudurupati',
author_email='[email protected]',
packages=find_packa... | [
"[email protected]"
] | |
717f01eec18028cda1a7a1fc9cd5684655077da5 | a55fcbe94032f98f8a858cebf7cfe843410aea76 | /hw4/env/lib/python3.6/encodings/palmos.py | 1235c0724933a47f8554a706098c955e9509af68 | [] | no_license | quentintruong/UCLA-ECE239AS-W19 | a3aca9302125ee7b85f8cecf82485782718d8266 | f734aa7a8178b64b309761f4a390ed4689c4caed | refs/heads/master | 2022-12-10T19:01:28.589101 | 2020-02-14T08:00:33 | 2020-02-14T08:00:33 | 166,895,199 | 1 | 0 | null | 2022-12-08T01:43:39 | 2019-01-21T23:34:01 | Jupyter Notebook | UTF-8 | Python | false | false | 64 | py | /Users/quentintruong/anaconda3/lib/python3.6/encodings/palmos.py | [
"[email protected]"
] | |
6fd7f3b2f75c83c5bd806a7fa3e9207ca1a109b0 | 707afa88f15e7bbf7d0d1c89b5076a9d6d17547e | /Python-Selenium unittest/EpilepsyTC_AirCondition.py | abbd1206e995a656f1bc6447c62ade17f053ad00 | [] | no_license | Longmann94/DFI_testing | 769f7211313b6303271b556b97e1038992d927a9 | a42430a25bdea98c5551f51003078a547335f7c6 | refs/heads/master | 2020-03-15T19:11:51.965865 | 2018-06-07T15:40:27 | 2018-06-07T15:40:27 | 132,302,477 | 3 | 0 | null | 2018-05-27T15:04:44 | 2018-05-06T03:11:25 | Python | UTF-8 | Python | false | false | 10,769 | py | import unittest
import time
import HtmlTestRunner
import os
from selenium import webdriver
from selenium.webdriver.support.ui import Select
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys
cwd = os.getcwd()+'/results'
class Test_setUp_menu_... | [
"[email protected]"
] | |
77b06ffff76eaa8fc30bc45f6bbc686ae4474388 | 76f44f087082cc0092485803edacf8bdef9ac513 | /alfabet.py | be7b6a2a9d87cbbe7b58f946292014245e296c9e | [] | no_license | marcinmaslach/Enigma | 6a556fda7cb2351d2b5da41077039ad428490f5e | 68492ba60eb9140764b8429b631bef173f2972fd | refs/heads/master | 2020-04-11T04:40:09.248195 | 2018-12-12T17:46:40 | 2018-12-12T17:46:40 | 161,520,996 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | class Alphabet():
def __init__(self, alphabet):
self.alphabet = [i for i in alphabet.upper()]
def check_len_alphabet(self):
if len(self.alphabet) != 26:
raise ValueError ("Your alphabet have wrong lenght!")
def repeat_alphabet(self):
for i in range(len(self.alphabet)):
if self.alphabet.count(self.al... | [
"[email protected]"
] | |
47ae4bdf56fb000fd7182d52f0ac862315036afa | 44d1ce981d0a0607e5394f837e555ac7ffe5d8f2 | /Python Machine Learning CookBook/ch04_无监督学习_聚类/P68_k-means_聚类.py | 4f21dd98d25bd1a520a21487764de7ad1277b61a | [] | no_license | sola1121/references_of_machine_learning | 9b6a8dfdc41884a0cedc0c1ce93da2af91686648 | acd6b41646a7f95793b08b8590ce5daa66877b0d | refs/heads/master | 2020-04-24T14:45:22.659428 | 2019-07-31T10:02:29 | 2019-07-31T10:02:29 | 172,034,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,465 | py | import numpy as np
import matplotlib; matplotlib.use("Qt5Agg")
import matplotlib.pyplot as plt
from sklearn.cluster import KMeans # 从聚合中导入kmeans
file_dir = "./dat/data_multivar.txt"
data = list()
with open(file_dir, 'r') as file:
for line in file.readlines():
data.append(line[:-1].split(","))
data = np... | [
"[email protected]"
] | |
fdcf843cbacd5bff6bea2c85dac2f94b4f88c0b9 | a8db7a0be1cf92d1ad8f3106114209dc6518ba8e | /flaskapp.wsgi | 3e1de5ee94885429942c11636c1a041db0b17b6d | [] | no_license | mensurm/registar | b14544df2e703fc5e6ab86e4b628aa607367175e | 9008d58cd4802703d76e0638ae90f87ab1195160 | refs/heads/master | 2021-01-10T21:46:41.924983 | 2015-10-21T17:05:23 | 2015-10-21T17:05:23 | 34,619,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | wsgi | import sys
sys.path.insert(0, '/var/www/flaskapp')
from admin import app as application
| [
"[email protected]"
] | |
cda9c9c57511424f73367de4ffc507d2fc22a9ba | 94f278407a5b4254d94663be768bd9bd604804a8 | /django_boards/urls.py | f927f00b92cb90d742e65a506ab03ef89473319a | [] | no_license | SriNandan33/django-boards | 25fca0192618aae4ed1ccae507880a95340d850c | 3f12f49aef4fd3d018d91a2456ed6d024e3fb63d | refs/heads/master | 2020-04-02T03:54:58.422667 | 2018-10-25T17:58:46 | 2018-10-25T17:58:46 | 153,990,835 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,109 | py | """django_boards URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class... | [
"="
] | = |
99a3a7aed12047431b1087b08ede9b531b7d3dc8 | 7e48ab347783507edc388887827a60db9b186a12 | /thermal_2p_0salt.py | 739d5be221c81fb75c5a4cbfe39b44bee5a3b1e3 | [] | no_license | laphysique/Protein_RPA | 188b825a66799293a629a25ee214877df7f81b8c | 9668caccea88a85fd1334bc0a64938a98710a24c | refs/heads/master | 2023-04-19T11:36:11.277320 | 2021-04-28T13:45:34 | 2021-04-28T13:45:34 | 255,717,263 | 1 | 1 | null | 2021-04-28T13:45:36 | 2020-04-14T20:22:21 | Python | UTF-8 | Python | false | false | 5,611 | py | # RPA model (no FH) for 2 overall neutral charge sequences
# No salt. No conterions.
# Constant permittivity
# solute sizes are not tunable
# ver Git.1 Apr 14, 2020
# Upload to github
# Rewrite data structure: from class to dict
# Rewrtie the code for calculating S(k): from matrix product to linear summation
# ve... | [
"[email protected]"
] | |
4d3f87a0b767ed6f306f99fa37a60b0cde0a70c5 | 5e35f570b2c9c6a507039ff97189c1d679b8510f | /abandon/TypeParser.py | af71f95063a96290d32b0ceac96c9ea0d776c617 | [] | no_license | FMX/qt-gui | 7e48cc21e963a69ef80b70bfa7a2198dbbfe3813 | 5185662fc4b58fcc5ad932ca79650305734cb1d3 | refs/heads/master | 2021-03-19T08:26:45.262904 | 2016-08-30T03:01:55 | 2016-08-30T03:01:55 | 65,461,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | # coding:utf-8
class TypeParse:
def __init__(self):
self.dbtype = {1: 'oracle', 2: 'sql server', 3: 'mysql'}
self.ostype = {1: 'windows', 2: 'linux', 3: 'unix'}
def parDBType(self, dbtype):
return self.dbtype.get(dbtype)
def parOSType(self, ostype):
return self.ostype.get... | [
"[email protected]"
] | |
5b221f2049670502c0c49c8cbd7e7685ee710bd4 | 82805dab063b51dd679a1acb0693ff51cf9ea287 | /aixm_adr.py | 9dc353230b0c71c09a7a0c98196bee5e13620c06 | [] | no_license | fgraciani/connectedbyairm | 33ca73f8d42675fe1c1c19350edabf4028e9d94f | 1eefc81dd377e69fa9975df6a89792de3ceeb13e | refs/heads/master | 2023-01-27T23:33:11.431592 | 2020-12-11T11:19:19 | 2020-12-11T11:19:19 | 297,360,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,725 | py | import pandas as pd
class Aixm_adr:
aixm_adr_mapping_dataframe = pd.read_excel (r'data/xlsx/ADR_23.5.0_Semantic_Correspondence_Report.xlsx', sheet_name='semantic_correspondence') #it would be nice to align sheet names
def __init__(self):
self.aixm_adr_mapping_dataframe.fillna("missing data", inplace = True)
... | [
"[email protected]"
] | |
9eefe86c11ef3e2b2f7ef456699a607f1177291e | 5fa445e459693a1fd96d6572b1ed8d3bfababebd | /tp3/testing/plot.py | 7b1a2bf3e25df14208a457b8f30838b509c173f0 | [
"MIT"
] | permissive | gabriel-milan/distributed-systems | 1cb98b091e20414be3f74f4342669db2c8a5ccf6 | 7c016eb5dda7ae7d68c33fc3048397aae9b9bc5f | refs/heads/master | 2023-03-24T20:01:40.871857 | 2020-12-15T17:01:50 | 2020-12-15T17:01:50 | 292,856,988 | 0 | 0 | MIT | 2021-03-14T11:38:29 | 2020-09-04T13:37:11 | C++ | UTF-8 | Python | false | false | 315 | py | import matplotlib.pyplot as plt
X = [2, 4, 8, 16, 32, 64, 128]
y = [
200.169,
400.339,
800.707,
1601.553,
3203.045,
6405.874,
12813.326,
]
plt.figure (figsize=(20,20))
plt.title ("Tempo vs. nº processos")
plt.plot(X, y)
plt.xlabel("Number of processes")
plt.ylabel("Execution time (s)")
plt.show()
| [
"[email protected]"
] | |
c61f5704f188e3c500d22acef254827b5a5aef7f | a8da8667bbf3281cf726f4849f61b091bf8093fe | /number.py | 5ab2ef2eb705e9bce2bb3147fa7723343227f263 | [] | no_license | gaoyanping/myself | db3dda6a8359d733e24123831d32d774807ed111 | 91c855c8266db89e9c4dfc3523fb4ce208aaefae | refs/heads/master | 2020-05-16T23:18:37.133773 | 2014-03-14T05:30:46 | 2014-03-14T05:31:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | #-*- coding=utf-8 -*-
#python可以直接用于数学计算,对于两个句子之间可以用”,“号分开
print "the number is", 5+3
print "true or false",5<3
print 5+4/2
print 5%2
print 5/2
print 5.00%2.00
print 5.00/2.00 | [
"[email protected]"
] | |
6d1193ea718c006898d0ac5103a9ef072ba31aae | 39dc1d0988b35a3c641d6a47508dcd9cd3e1f9d6 | /Google/Code Jam/NumberGuessing.py | f53306ad52f5e14531947c50c3c05b8b1ec02ba2 | [] | no_license | luisfernado28/PythonProjects | 4934b6bc407584b05fde4fec27fd3c6245e54386 | 49b48376b8b7860eb1bd741bdd52c1356db07860 | refs/heads/master | 2022-12-11T04:25:44.640193 | 2020-08-28T01:47:01 | 2020-08-28T01:47:01 | 286,575,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | import sys
def guess(a, b):
guessed = (a + b) // 2
print(guessed)
sys.stdout.flush()
res = input()
if res == "CORRECT":
return
elif res == "TOO_SMALL":
a = guessed + 1
else:
b = guessed - 1
guess(a, b)
cases = int(input())
for i in range(cases):
a, b = map... | [
"[email protected]"
] | |
5e6fc921fca826083a87a4ee84ea466f3504d39d | 21d3283b6695a2a93d316858a2b5d43e6a2caeef | /test/test1/myquetsion.py | dd9f68bf08f7967ce1063c11846573fb09cb1938 | [] | no_license | ReCodeLife/tianshoutest | d95f93e121c1d5ca168033af9cd93d0d55fffb0d | 74f701b9b90a9f2dea7c13625ee382ca40c4b120 | refs/heads/master | 2023-02-26T16:03:29.848070 | 2021-02-07T01:14:08 | 2021-02-07T01:14:08 | 336,672,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | from diylib.question.question import DiyQuestion
class DQNQuestion(DiyQuestion):
def __init__(self,gameclass:type,reward_threshold:float):
super(DQNQuestion, self).__init__(gameclass)
self.reward_threshold=reward_threshold | [
"[email protected]"
] | |
d3320481d1a478be0bd4a958ffae11f11f0eb48f | 32106821c8fa1d2de6ad38391909ae3986d2a2c1 | /python/paddle/distributed/auto_parallel/operators/dist_softmax.py | fad11aadf8020f290487874a506c6f2d3384fd99 | [
"Apache-2.0"
] | permissive | wzzju/Paddle | 7a13735b4c7d2c942e8d2b5cbc84229f99f8237a | 1353a5d0b40e7e34b812965ccda08796a1f1e398 | refs/heads/paddle_compiler | 2022-10-26T22:51:52.528161 | 2021-09-17T02:08:38 | 2021-09-17T02:08:38 | 140,524,963 | 0 | 1 | Apache-2.0 | 2021-09-17T06:50:08 | 2018-07-11T05:17:15 | Python | UTF-8 | Python | false | false | 3,199 | 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 appli... | [
"[email protected]"
] | |
2043efaa3d05b534d4e7ff4a022e8189801833e3 | 52107dcbcb4bf45ae45eb6907c652ca96a05de17 | /MxOnline/extra_apps/xadmin/widgets.py | 801e4c5e2715fe8c6873420030ebc7d6cc9bfc4a | [] | no_license | MH-Blog/Python | 2f4fe4c55adc8766be3e0ffead6debe58d0643d2 | 7662f893120d5ffe417f37801b0135ac9fba3742 | refs/heads/master | 2022-12-08T12:14:35.559723 | 2020-01-19T07:34:14 | 2020-01-19T07:34:14 | 164,229,745 | 17 | 5 | null | 2022-12-08T06:52:38 | 2019-01-05T16:01:18 | Python | UTF-8 | Python | false | false | 8,853 | py | """
Form Widget classes specific to the Django admin site.
"""
from __future__ import absolute_import
from itertools import chain
from django import forms
try:
from django.forms.widgets import ChoiceWidget as RadioChoiceInput
except:
from django.forms.widgets import RadioFieldRenderer, RadioChoiceInput
from dja... | [
"[email protected]"
] | |
ff57f7b9e615dea41c06efec99b6c19479bce080 | 14a04c0f312f2e8bc25a528f11afc350a878dfe9 | /MembraneDiffusion/2P_DiffusionModel-units-micron-min.py | 19661251a68a9379179396c4c6f4f64cb0b56492 | [] | no_license | anujchaudhri/python-examples | f4862016feafdbddf952777184f88b78813cfc9e | fa026bb777487e084e632ed8f6800123cfce7447 | refs/heads/master | 2020-09-25T06:58:34.789573 | 2019-12-04T19:48:49 | 2019-12-04T19:48:49 | 225,943,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,683 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Apr 3 11:14:04 2019
@author: anujchaudhri
"""
import numpy as np
from scipy.integrate import solve_ivp
import matplotlib.pyplot as plt
Vo = 5.24e5 # microm^3, initial cell volume Vc
Vso = 0.0 # microm^3, initial solute volume in cell Vs
vbf = 0.25
Vb... | [
"[email protected]"
] | |
6b96866b678951b2a15ac2f00edfecee8e197416 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_populists.py | 20dbebab5468cb5697405f5e98e33b4c882d36c8 | [
"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 | 262 | py |
from xai.brain.wordbase.adjectives._populist import _POPULIST
#calss header
class _POPULISTS(_POPULIST, ):
def __init__(self,):
_POPULIST.__init__(self)
self.name = "POPULISTS"
self.specie = 'adjectives'
self.basic = "populist"
self.jsondata = {}
| [
"[email protected]"
] | |
d7af4c9fc83f3a065982703e42e47fd3721b0412 | eb9b8ed6d24b21a9fd6d768d6c0baab2ce88c2fd | /DQUANT/dquant/urls.py | 44738500ada52a9b2789019e8e8019a1c3509175 | [] | no_license | SoonMinKwun/QUANT | 40df4b354abd3bb6d97fa770c1bd1e1ede188881 | 5fe7e67840455d59c86447a29a792080b78f98fa | refs/heads/master | 2022-12-05T16:11:07.822076 | 2020-08-28T07:41:39 | 2020-08-28T07:41:39 | 289,828,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 852 | py | """DQUANT URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.