blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
601a58e65541310880e10f036c051e58ddf089e2 | efe3c9ad40200e6a4cc54ade2867e455687eb11b | /home/migrations/0004_message.py | bb97cd54ee190824e8f4994f6e57f1580cb8bcbe | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain"
] | permissive | andrewhstead/stream-three-project | bec3b70b354b812d1a875ee4e305377038fe179b | 60e5f946455f12019a266b8231737435702ff95e | refs/heads/master | 2023-06-23T17:53:09.379297 | 2023-06-13T16:09:22 | 2023-06-13T16:09:22 | 126,410,294 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-04-23 23:14
from __future__ import unicode_literals
from django.db import migrations, models
import tinymce.models
class Migration(migrations.Migration):
initial = True
dependencies = [
('home', '0003_delete_team'),
]
operations... | [
"andrew@andrewstead.co.uk"
] | andrew@andrewstead.co.uk |
de5bdd8d7521907a0d02b916dded40acdace4814 | bf99b1b14e9ca1ad40645a7423f23ef32f4a62e6 | /AtCoder/other/日立製作所_社会システム事業部_プログラミングコンテスト2020/c.py | f0dbb2903e9188f925ea9ea87e867040ab1f0e43 | [] | no_license | y-oksaku/Competitive-Programming | 3f9c1953956d1d1dfbf46d5a87b56550ff3ab3db | a3ff52f538329bed034d3008e051f30442aaadae | refs/heads/master | 2021-06-11T16:14:12.635947 | 2021-05-04T08:18:35 | 2021-05-04T08:18:35 | 188,639,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,161 | py | from collections import deque
import sys
input = sys.stdin.buffer.readline
N = int(input())
edges = [[] for _ in range(N)]
for _ in range(N - 1):
fr, to = map(lambda a: int(a) - 1, input().split())
edges[fr].append(to)
edges[to].append(fr)
dist = [10**10] * N
que = deque([(0, 0)])
while que:
now, d ... | [
"y.oksaku@stu.kanazawa-u.ac.jp"
] | y.oksaku@stu.kanazawa-u.ac.jp |
c3b42d25f9116f1bf61fa704be8f0a121762c825 | 4e097df1d8ee1c864699ce917195aa79e6a78c24 | /backend/purple_fire_27872/urls.py | 6f28f3da85dcdbeecef932b43d280b8980e4bc0d | [] | no_license | crowdbotics-apps/purple-fire-27872 | 2ddbac1b9e0a640e80171d6dea3301de204e2a13 | d630e111e9144b698d3581fc45c0067a1d52c45c | refs/heads/master | 2023-05-15T07:36:11.511788 | 2021-06-09T13:01:26 | 2021-06-09T13:01:26 | 375,356,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,229 | py | """purple_fire_27872 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
C... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
786bbf41efc469014729778a19aca2a7ce6dc054 | c991da8bae5a74dec3e6400ca780206758b9840a | /old/Session002/DynamicProgramming/Triangle.py | 8e8fef6ae6c114c304f3abc1c5d8ea2d824c1bdf | [] | no_license | MaxIakovliev/algorithms | 0503baca3d35c8ad89eca8821c5b2928d805064b | 54d3d9530b25272d4a2e5dc33e7035c44f506dc5 | refs/heads/master | 2021-07-23T02:21:18.443979 | 2021-07-18T08:05:37 | 2021-07-18T08:05:37 | 45,613,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | class Solution:
"""
https://leetcode.com/problems/triangle/
solution:
https://leetcode.com/problems/triangle/discuss/38724/7-lines-neat-Java-Solution
"""
def minimumTotal(self, triangle: 'List[List[int]]') -> int:
dp=[0 for i in range(len(triangle)+1)]
for i in range(len(triangle... | [
"max.iakovliev@gmail.com"
] | max.iakovliev@gmail.com |
f6180d6e48614c2a0d648ee7c5c04d9b51cdd379 | bb311256e15179e929b9fba277e16f67b1e674e5 | /backend/athlete_auction_28818/urls.py | 122f438761b809957bed0a2e6d02e7d31a115685 | [] | no_license | crowdbotics-apps/athlete-auction-28818 | bd14650fcf008eca4132ea44a8064e6d8ef93310 | 457aa0b49b2ac9c2d94e09b7cd6b07ba9a1644d5 | refs/heads/master | 2023-06-16T17:13:45.772189 | 2021-07-13T23:46:46 | 2021-07-13T23:46:46 | 385,762,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,253 | py | """athlete_auction_28818 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
696ec13eb480eb65068ec5403f76bb30b5f0a8de | 71f00ed87cd980bb2f92c08b085c5abe40a317fb | /Data/GoogleCloud/google-cloud-sdk/lib/surface/ai_platform/models/list.py | 632e720d7f254e7d84e144a1789781bfd9835dff | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | factoryofthesun/Rao-NLP | 2bd8269a8eed1cb352c14c8fde88e3111ccca088 | 87f9723f5ee51bd21310d58c3425a2a7271ec3c5 | refs/heads/master | 2023-04-18T08:54:08.370155 | 2020-06-09T23:24:07 | 2020-06-09T23:24:07 | 248,070,291 | 0 | 1 | null | 2021-04-30T21:13:04 | 2020-03-17T20:49:03 | Python | UTF-8 | Python | false | false | 1,782 | py | # -*- coding: utf-8 -*- #
# Copyright 2019 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"guanzhi97@gmail.com"
] | guanzhi97@gmail.com |
0ff085f57b4a9657055b933dc0bfe0597fef0fa4 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /QFXMcwaQZ8FTAuEtg_12.py | c3acc86a9fb4cf4cf4d78a239f5630f30554b163 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | """
Create a function that takes a single character as an argument and returns the
char code of its lowercased / uppercased counterpart.
### Examples
Given that:
- "A" char code is: 65
- "a" char code is: 97
counterpartCharCode("A") ➞ 97
counterpartCharCode("a") ➞ 65
### Notes
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
413532b7ca0867d03a3b8a5fab67927dad30a7fc | 494c191e87ae52470b9eb5d38d4851db168ed7cc | /leetcode/0179_largest_number.py | 82d09525cd00c4f7825de9c78d6378b767fd839d | [] | no_license | Jeetendranani/yaamnotes | db67e5df1e2818cf6761ab56cf2778cf1860f75e | 1f859fb1d26ffeccdb847abebb0f77e9842d2ca9 | refs/heads/master | 2020-03-19T01:12:45.826232 | 2018-05-30T20:14:11 | 2018-05-30T20:14:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,063 | py | """
179. Largest Number
Given a list of non negative integers, arrange them such that they form the largest number.
For example, given [3, 30, 34, 5, 9], the largest formed number is 9534330.
Note the result may be every large, so you need to return a string instead of an integer.
Approach 1: Sorting via custom com... | [
"yunpeng-li@hotmail.com"
] | yunpeng-li@hotmail.com |
29c57beb7192eb32d1352e5ca01ba1687eed5ad9 | c8a04384030c3af88a8e16de4cedc4ef8aebfae5 | /stubs/pandas/tests/indexes/timedeltas/test_timedelta_range.pyi | 2d3cd837b31cc6f1546a327e09061dedc2bb2bb9 | [
"MIT"
] | permissive | Accern/accern-xyme | f61fce4b426262b4f67c722e563bb4297cfc4235 | 6ed6c52671d02745efabe7e6b8bdf0ad21f8762c | refs/heads/master | 2023-08-17T04:29:00.904122 | 2023-05-23T09:18:09 | 2023-05-23T09:18:09 | 226,960,272 | 3 | 2 | MIT | 2023-07-19T02:13:18 | 2019-12-09T20:21:59 | Python | UTF-8 | Python | false | false | 545 | pyi | # Stubs for pandas.tests.indexes.timedeltas.test_timedelta_range (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
# pylint: disable=unused-argument,redefined-outer-name,no-self-use,invalid-name
# pylint: disable=relative-beyond-top-level,line-too-long,arguments-differ
from typin... | [
"josua.krause@gmail.com"
] | josua.krause@gmail.com |
49c6ca0beb4a387dfc9bada06b432530f567f400 | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/googlecloudsdk/command_lib/dataproc/jobs/trino.py | 303c27738c721cac3724dfc2ee0bd9e9ac9e78be | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 3,677 | py | # -*- coding: utf-8 -*- #
# Copyright 2022 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
1aa77b0cf7ef09c20fc0e64eec1906052fe467e9 | cb14afc9864e370a17f21f4486a17c824fb10294 | /simple questions on loops and list comprehensions/Use a List Comprehension to create a list of all numbers between 1 and 50 that are divisible by 3.py | ec1abc951f14dacd5746142d8179b8e0ee50030d | [] | no_license | sandeepshiven/python-practice | 92130a1d34fe830433c0526b386ee4550a713d55 | 1bfa6145c5662231128a39fdfadf8db06f4b0958 | refs/heads/master | 2020-06-16T12:04:52.983978 | 2020-02-04T18:19:55 | 2020-02-04T18:19:55 | 195,565,480 | 0 | 1 | null | 2019-09-15T18:25:54 | 2019-07-06T17:21:17 | Python | UTF-8 | Python | false | false | 163 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Jul 18 17:43:26 2019
@author: sandeep
"""
lst = [x for x in range(1,50) if x%3 == 0]
print(lst) | [
"sandeepshiven0@gmail.com"
] | sandeepshiven0@gmail.com |
826b03c57e962e20dbce7975d779ddf393b8a6c0 | 6f8267e19ad9bf828432d34780e7dde92fed054b | /src/exp/expChooseView.py | 2da4f79ad80ba95a9f34f71807af50e884eeaf23 | [] | no_license | ravika/expresso | 3129b5227cfc664d2adbec8c768bea9751898e0b | 319380d25e2ca4fc6111651d8e1c7cd98ad44a25 | refs/heads/master | 2016-08-03T19:32:15.823161 | 2015-05-02T10:16:37 | 2015-05-02T10:16:37 | 35,533,945 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,198 | py | # -*- coding: utf-8 -*-
##############
# Written by : Jaley Dholakiya
# Video Analytics Lab,IISc
#############
# Form implementation generated from reading ui file 'expChooseView.ui'
#
# Created: Sat Mar 14 01:53:22 2015
# by: PyQt4 UI code generator 4.10.4
#
# WARNING! All changes made in this file will be lost... | [
"ravika@gmail.com"
] | ravika@gmail.com |
a18d2854e9b097c3be8c7134d21f2cde9d04db3a | 7aa33a8a8d5360523bf2f6a2ce73f93fd5e63d23 | /robotics/Controll.py | e51768b510a2c08a7bac2113c5a90f9ab486318c | [] | no_license | iamMHZ/image-processing-with-opencv | 33b6fac0d50649c99fe35f078af8a38d53358447 | 7412f182ad564905bf24c8fa30f0492b7eb01bd1 | refs/heads/master | 2021-03-17T16:31:23.640213 | 2020-05-09T10:22:04 | 2020-05-09T10:22:04 | 247,002,943 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | import inputs
print(inputs.devices.gamepads)
while True:
events = inputs.get_gamepad()
for event in events:
print(event.ev_type, event.code, event.state)
| [
"iammhz77@gmail.com"
] | iammhz77@gmail.com |
40647bde765a91a69ab9bf788cf3b28a4ec6715a | e811662c890217c77b60aa2e1295dd0f5b2d4591 | /src/problem_763.py | 33eb4a1f687002f6082644d2dd08682d2f076cda | [] | no_license | rewonderful/MLC | 95357f892f8cf76453178875bac99316c7583f84 | 7012572eb192c29327ede821c271ca082316ff2b | refs/heads/master | 2022-05-08T05:24:06.929245 | 2019-09-24T10:35:22 | 2019-09-24T10:35:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 968 | py | #!/usr/bin/env python
# _*_ coding:utf-8 _*_
def partitionLabels(S):
"""
算法:贪心,双指针
思路:
记录每个字母的最后出现的位置,再遍历整个字符串,用一个指针start和end记录当前区间的起止位置,
目标区间应该是能使得区间内的所有字母都只出现在区间内的最短的区间,
所以再遍历一次S,设置end = max(end, last[char]),当前位置 == end时,就说明一段区间已经
添加完了,ans append进去,更新start为end + 1 为下一区段的开始处... | [
"457261336@qq.com"
] | 457261336@qq.com |
6aecf7de4273913f02af82ef752225319d622d37 | ddf002d1084d5c63842a6f42471f890a449966ee | /basics/Python/PYTHON --------/Loops/for_perfect_number.py | 12c1710e98af7953b5053badaf4ec9ed6496e5f7 | [] | no_license | RaghavJindal2000/Python | 0ab3f198cbc5559bdf46ac259c7136356f7f09aa | 8e5c646585cff28ba3ad9bd6c384bcb5537d671a | refs/heads/master | 2023-01-01T23:56:02.073029 | 2020-10-18T19:30:01 | 2020-10-18T19:30:01 | 263,262,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | num=int(input("Enter the Number : "))
sum=0
for i in range(1,int(num/2)+1):
if(num%i==0):
sum=sum+i
if(sum==num):
print("Perfect Number")
else:
print("Not Perfect Number")
input() | [
"40332753+RaghavJindal2000@users.noreply.github.com"
] | 40332753+RaghavJindal2000@users.noreply.github.com |
a77a33ec7d947da341e4206109d82d8d7f44e697 | 11aaeaeb55d587a950456fd1480063e1aed1d9e5 | /.history/test_20190626133340.py | 12865a307e437ef3704eed2ac3124c68bd758365 | [] | no_license | Gr4cchus/Learn-Python-3-The-Hard-Way | 8ce9e68f6a91ea33ea45fe64bfff82d65422c4a8 | f5fa34db16cdd6377faa7fcf45c70f94bb4aec0d | refs/heads/master | 2020-05-17T23:18:29.483160 | 2019-06-26T18:42:52 | 2019-06-26T18:42:52 | 184,023,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,413 | py | import random
# # class Foo:
# # answer = 42
# # f1 = Foo()
# # f2 = Foo()
# # print(f1.answer)
# # print(f2.answer)
# # # both will print 42
# # f1.answer = 84
# # Foo.answer = 21
# # print(f1.answer) # 84
# # print(f2.answer) # 21
# class Foo:
# def __init__(self):
# self.answer = 42
# f1 = F... | [
"ahivent@gmail.com"
] | ahivent@gmail.com |
1f79efdb1f12760d507a1294acfc682189e2cc4f | 200abee8ebb5fa255e594c8d901c8c68eb9c1a9c | /venv/01_Stepik/Python_Osnovi_i_primenenie/2.3_2.py | 50544368335316c290b184d30ded2008229713e4 | [] | no_license | Vestenar/PythonProjects | f083cbc07df57ea7a560c6b18efed2bb0dc42efb | f8fdf9faff013165f8d835b0ccb807f8bef6dac4 | refs/heads/master | 2021-07-20T14:14:15.739074 | 2019-03-12T18:05:38 | 2019-03-12T18:05:38 | 163,770,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | import itertools
def primes():
num = 2
while True:
if is_prime(num):
yield num
num += 1
def is_prime(num):
if num == 2: return True
if num % 2 == 0: return False
for _ in range(3, num // 2, 2):
if num % _ == 0:
return False
return True
print(list... | [
"vestenar@gmail.com"
] | vestenar@gmail.com |
e3740376355a7ad6d32d7fb3097ea9e1f04a6db2 | 4df3712caff818c0554e7fbe4b97dee5fcfd8675 | /common/sendMail.py | e8175fd9a7b1c03e70da7d866819a40cdff5ba85 | [] | no_license | Qingyaya/interface | 456057a740bd77ba6c38eda27dd1aef658e0add9 | 3ae37816f52ad8c45e192596a854848d8e546b14 | refs/heads/master | 2020-03-22T07:16:04.171904 | 2018-12-05T05:20:25 | 2018-12-05T05:20:25 | 139,690,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,523 | py |
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
import smtplib
from common.ReadConfig import ReadConfig
from common.Log import Log
log=Log()
rc=ReadConfig()
def send_mail(report_file):
sender=rc.get_email('sender')
psw=rc.get_email('psw')
receiver=rc.get_email('receiver... | [
"dongchunyi@idscloud.cn"
] | dongchunyi@idscloud.cn |
3035e52b9cc917ae6870cd17760f97e41ca9995c | b5a9d42f7ea5e26cd82b3be2b26c324d5da79ba1 | /tensorflow/python/keras/applications/mobilenet.py | 97c6b85882e6ea224b0201820317c92823c32ddd | [
"Apache-2.0"
] | permissive | uve/tensorflow | e48cb29f39ed24ee27e81afd1687960682e1fbef | e08079463bf43e5963acc41da1f57e95603f8080 | refs/heads/master | 2020-11-29T11:30:40.391232 | 2020-01-11T13:43:10 | 2020-01-11T13:43:10 | 230,088,347 | 0 | 0 | Apache-2.0 | 2019-12-25T10:49:15 | 2019-12-25T10:49:14 | null | UTF-8 | Python | false | false | 1,662 | py | # Copyright 2015 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... | [
"v-grniki@microsoft.com"
] | v-grniki@microsoft.com |
b516fc14e72cd98ba60397e18718e0b2b396a2e6 | b43cee0973a455a58b74233d4e02d522587f93ae | /skillbox/basic/module22/war_peace.py | 1871dfaea75c70bd1b4c14d260a3e1c153729316 | [] | no_license | ivadimn/py-input | 5861cc92758378f44433bd6b1af7ba78da04d1c0 | bbfdd74c4dffe66440490d79082de2c0318e5027 | refs/heads/master | 2023-08-15T03:34:01.916026 | 2023-07-24T14:48:08 | 2023-07-24T14:48:08 | 202,401,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | import zipfile
import string
def frequency(text: str) -> dict:
len_text = len(text)
symbols = set(text)
freq = {ch: text.count(ch) / len_text for ch in sorted(symbols)}
return {key : freq[key] for key in sorted(freq, key=freq.get)}
exclude = string.punctuation + " 0123456789" + \
"\u3002\u2... | [
"ivadimn@mail.ru"
] | ivadimn@mail.ru |
d674d9782d314530754af4814fa59a5ad03c66f8 | 630681b5a80acdad9b5597449559ecf89e917aa0 | /env/bin/cftp | e46f526ce10262450281bfedc3754cf60aefe6d6 | [] | no_license | stuartses/trivia | ed5cd090fe7143159c8ed669edd5540de5f9f0f4 | 203b9ff4b3834d4f4a58c23f573187d0f960a64c | refs/heads/master | 2022-12-17T15:57:09.735439 | 2020-09-20T16:32:24 | 2020-09-20T16:32:24 | 296,960,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | #!/home/stuartes/repositories/chat/env/bin/python3
# EASY-INSTALL-ENTRY-SCRIPT: 'Twisted==20.3.0','console_scripts','cftp'
__requires__ = 'Twisted==20.3.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"stuart.ses@hotmail.com"
] | stuart.ses@hotmail.com | |
b6357591f310a910f5139ea6c1aafba52ff7d277 | d9d0d3a82d5ba4016097491c276409b9b1ea778a | /Kattis/relocation.py | 99a38f2674f48771aab4f6fdf4bd413803ff3370 | [
"MIT"
] | permissive | ruidazeng/online-judge | 311b9f2c3120b47da91da2d404e2ea1d9a2a24dd | 6bdf8bbf1af885637dab474d0ccb58aff22a0933 | refs/heads/master | 2022-02-16T00:35:11.852600 | 2022-01-26T02:28:53 | 2022-01-26T02:28:53 | 191,827,952 | 0 | 1 | MIT | 2019-07-31T10:25:36 | 2019-06-13T20:21:18 | Python | UTF-8 | Python | false | false | 273 | py | _, Q = map(int, input().split())
companies = [int(x) for x in input().split()]
for _ in range(Q):
indicator, x, y = map(int, input().split())
if indicator == 1:
companies[x-1] = y
elif indicator == 2:
print(abs(companies[x-1] - companies[y-1])) | [
"ruida.zeng@vanderbilt.edu"
] | ruida.zeng@vanderbilt.edu |
94a882b3ad4cf2c8ce3f7d515284b7b95e0bbeda | 06ba98f4e71e2e6e04e9e381987333a743511818 | /history/migrations/0002_auto_20180803_0007.py | 80603c86d738101b7f32f908e7b49fa21ff1e7da | [] | no_license | AnEvilHerbivore/Django-Music | e99c6f7936088a3baa42abeaea4b46361fb415cb | 8f0b45d22053ca674f4dc8f963cb0da949469213 | refs/heads/master | 2022-12-10T10:08:35.831550 | 2018-08-03T19:12:42 | 2018-08-03T19:12:42 | 141,728,372 | 0 | 0 | null | 2021-06-10T20:43:27 | 2018-07-20T15:24:59 | Python | UTF-8 | Python | false | false | 1,053 | py | # Generated by Django 2.0.1 on 2018-08-03 00:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('history', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='artist',
name='biggest_hit',
... | [
"joeshepmedia@gmail.com"
] | joeshepmedia@gmail.com |
098396a34b3be24ef43d0b1428dcb079fb5c911a | c31ee8136a57a96649196081e1cfde0676c2a481 | /larcv/app/tests/test_matrixmult.py | 63a26af9a4138e0c87251de2c5104d965db970cd | [
"MIT"
] | permissive | DeepLearnPhysics/larcv2 | b12b46168e5c6795c70461c9495e29b427cd88b5 | 31863c9b094a09db2a0286cfbb63ccd2f161e14d | refs/heads/develop | 2023-06-11T03:15:51.679864 | 2023-05-30T17:51:19 | 2023-05-30T17:51:19 | 107,551,725 | 16 | 19 | MIT | 2023-04-10T10:15:13 | 2017-10-19T13:42:39 | C++ | UTF-8 | Python | false | false | 1,073 | py | import os,sys
import ROOT
import numpy as np
from larcv import larcv
print larcv.Image2D
# TESTS MATRIX MULTIPLICATION FEATURE
a = np.random.rand(6,5)
b = np.random.rand(5,8)
aI = larcv.Image2D( a.shape[0], a.shape[1] )
bI = larcv.Image2D( b.shape[0], b.shape[1] )
arows = a.shape[0]
acols = a.shape[1]
brows = b.sha... | [
"kazuhiro@nevis.columbia.edu"
] | kazuhiro@nevis.columbia.edu |
078153fca42249d9d1fb37d3cd7526a82fef59bc | fa2ab3d980aeff387edc556121b124fd68078789 | /ConditionalPrograms/ShippingAccount.py | af9ed57cdbf6a844dd86373f191d63a1bd4db288 | [
"MIT"
] | permissive | MiguelCF06/PythonProjects | 6e0a3323d3a44a893ec0afafcba7ec3882e62aa3 | dfa49203c3ed1081728c7f4e565f847629662d75 | refs/heads/master | 2022-10-17T23:22:04.357296 | 2020-06-10T18:03:38 | 2020-06-10T18:03:38 | 265,905,262 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,571 | py | print("Welcome to the Shipping Accounts Program\n")
username = ["mikeL", "Omar293", "JJlk", "JoelW"]
user = input("Hello, what is your username: ")
if user not in username:
print("Sorry, you do not have an account with us. Goodbye.")
else:
print("Hello {}. Welcome back to your account.".format(user))
print("Curre... | [
"miguel.cipamocha@gmail.com"
] | miguel.cipamocha@gmail.com |
a3739687fd238c1cd2484eca5cf46e5c9c27e987 | de15d27440ceb922a8d12f8db5881ae1982592ec | /sampledb/models/migrations/publications_add_object_name.py | 3b07967f3ffd3718788e6af1f4c7eb96f5ccb804 | [
"MIT"
] | permissive | maltedeckers/sampledb | 24f39f1adbe9bcc341309a4b6620768a8dc3857c | 30ad29f8df01290d4ff84a9b347f15a10856ac22 | refs/heads/master | 2023-08-22T04:25:47.826698 | 2021-05-07T09:07:02 | 2021-05-07T09:07:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | # coding: utf-8
"""
Add object_name column to object_publications table.
"""
import os
MIGRATION_INDEX = 27
MIGRATION_NAME, _ = os.path.splitext(os.path.basename(__file__))
def run(db):
# Skip migration by condition
column_names = db.session.execute("""
SELECT column_name
FROM information_sc... | [
"f.rhiem@fz-juelich.de"
] | f.rhiem@fz-juelich.de |
b34775b5a3efbd0dda72ca1c924c1daa49d5995a | ac23f0e5bb60c3201ea16d92369f8defa50f574a | /0x0B-python-input_output/4-append_write.py | 6d1d834297f4e5478a9ff2f4ab4921ad9f4a8ea5 | [] | no_license | Nukemenonai/holbertonschool-higher_level_programming | 85ba3e61517ee48a2e73980c915e7033e8090f06 | 3c467bb8ab3fa38454709ed7eb9819e0eb445310 | refs/heads/master | 2020-09-29T00:21:47.583303 | 2020-08-30T22:40:59 | 2020-08-30T22:40:59 | 226,901,103 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | #!/usr/bin/python3
def append_write(filename="", text=""):
""" writes a string UTF8 to a text file
returns the number of characters written
filename: name of the file.
text: the text to insert
appends
"""
with open(filename, 'a') as f:
n = f.write(text)
f.close()
ret... | [
"david.giovanni.ovalle@gmail.com"
] | david.giovanni.ovalle@gmail.com |
24c072a5dea3b8bd6c343321376a8de0b7705640 | a6ffe7990cb5690a20566f64e343441e79d4d11a | /leetcode/10. 正则表达式匹配.py | 213fb81272bf7ae50cc592b1ef1bb296b8415fac | [] | no_license | ywcmaike/OJ_Implement_Python | 26b907da4aece49d3833382f80665a6263cbf0ec | 48e99509e675a6708a95a40912f0f0f022a08d73 | refs/heads/master | 2022-11-26T17:35:22.066443 | 2020-08-02T16:19:25 | 2020-08-02T16:19:25 | 72,869,628 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
# author:maike
# datetime:2020/7/22 下午6:44
import sys
if __name__ == "__main__":
# 读取第一行的n
n = int(sys.stdin.readline().strip())
ans = 0
for i in range(n):
# 读取每一行
line = sys.stdin.readline().strip()
# 把每一行的数字分隔后转化成int列表
value... | [
"2755289083@qq.com"
] | 2755289083@qq.com |
441d888c4903420479c5f874867acad5a6233fe8 | 5cf3f04bdee5a17d7e4b7e14294047ce3d1dc40a | /guess_dice/middleware/ipAddress.py | b57a807ddfe48e91f76edc72a7e66852d8f71596 | [] | no_license | gzgdouru/guess_dice_site | bc2e4b284d5c0399232247ecc7634341199b5ad7 | 03bfadef8412a8d1d7506c1bfb5e58aee68ba343 | refs/heads/master | 2020-04-06T12:45:09.757664 | 2018-12-29T14:15:41 | 2018-12-29T14:15:41 | 157,469,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | from django.utils.deprecation import MiddlewareMixin
from analysis.models import ClientIp
class MarkVisitIpMiddleware(MiddlewareMixin):
def process_request(self, request):
try:
realIp = request.META["HTTP_X_FORWARDED_FOR"]
realIp = realIp.split(",")[0]
except:
... | [
"18719091650@163.com"
] | 18719091650@163.com |
7fe0b97d863104f488ad653d559526403da60608 | f090c3e0faa70cf0ef7c4be99cb894630bce2842 | /scripts/dataAnalysis/EnergyTransport/2013Aug04/individual_fits/function of heating time/fitter_script_dsplaced_2212_50_ion2.py | 76cd7f8d1e7e158da7d9e4d47a24dc31d87797e8 | [] | no_license | HaeffnerLab/resonator | 157d1dc455209da9b7de077157bda53b4883c8b7 | 7c2e377fdc45f6c1ad205f8bbc2e6607eb3fdc71 | refs/heads/master | 2021-01-09T20:48:03.587634 | 2016-09-22T18:40:17 | 2016-09-22T18:40:17 | 6,715,345 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,175 | py | import lmfit
import labrad
from labrad import types as T
from lamb_dicke import lamb_dicke
from rabi_flop_fitter import rabi_flop_time_evolution
import numpy as np
from matplotlib import pyplot
'''
script parameters
'''
info = ('Carrier Flops', ('2013Sep04','2212_50'))
ion_selection = 2
trap_frequency = T.Value(3.0, '... | [
"soenkeamoeller@gmail.com"
] | soenkeamoeller@gmail.com |
0c5dad8fd3938d30a3086f85c582ec0892a2191f | 3f46af2da32d9f02d1ebbdef6784ece1d64aace3 | /Production/python/PrivateSamples/EMJ_2016_mMed-1600_mDark-20_ctau-225_unflavored-down_cff.py | 108dad647638d680e89dd21aef1f1b6a9bff01af | [] | no_license | cms-svj/TreeMaker | 53bf4b1e35d2e2a4fa99c13c2c8b60a207676b6d | 0ded877bcac801a2a394ad90ed987a20caa72a4c | refs/heads/Run2_2017 | 2023-07-19T07:14:39.175712 | 2020-10-06T21:10:26 | 2020-10-06T21:10:26 | 305,753,513 | 0 | 0 | null | 2021-01-26T18:58:54 | 2020-10-20T15:32:19 | null | UTF-8 | Python | false | false | 1,892 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'gsiftp://hepcms-gridftp.u... | [
"enochnotsocool@gmail.com"
] | enochnotsocool@gmail.com |
32d00cbdf934957158d5c286facfeab2e5d2170f | af632a0d727cd350a3c95360bb1bb8a411051da7 | /mysite/reading/migrations/0005_auto__add_field_text_synopsis.py | 92b689114d31eff115b9e7fc5a753e368632936b | [] | no_license | rybesh/mysite | f760fec83f1b552abd62010cff4ada4c6fda66b0 | c091284d802ef719d7535d9c8790f4c6e458f905 | refs/heads/master | 2016-09-05T18:01:31.200290 | 2014-07-23T15:36:09 | 2014-07-23T15:36:09 | 1,242,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,481 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Text.synopsis'
db.add_column('reading_text', 'synopsis', self.gf('django.db.models.fields.... | [
"ryanshaw@unc.edu"
] | ryanshaw@unc.edu |
fd5cb1e3cc6d7bf3bc992db71056e2364fb1b3ab | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_6845.py | 25671db34c9e0643e32318d55e46d052ec86f703 | [] | 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 | 297 | py | # Efficient way to format string
"select %(tableName)s.somefield, count(*) from %(tableName)s WHERE %(tableName)s.TimeStamp > %(fromDate)s and %(tableName)s.EndTimeStamp < %(to_data)s group by %(tableName)s.ProviderUsername;" %{'tableName':tableName, 'fromDate':fromDate, 'to_data':to_data}
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
76cb32021bcffbb90f7204eb7683d786698f1d8a | cbedb18df0aaac810aeea87a2273edb15c1cf899 | /from Stephen/google list/752. Open the Lock (pass, bfs).py | 03123b3ab45fbe0c24776bf3c08be55ad02d55cd | [] | no_license | kanglicheng/CodeBreakersCode | 71b833bb9f4c96d520c26f0044365dc62137a940 | 31f7f730227a0e10951e7468bad1b995cf2eafcb | refs/heads/master | 2023-08-07T20:32:05.267695 | 2020-09-14T14:36:25 | 2020-09-14T14:36:25 | 265,978,034 | 0 | 0 | null | 2020-05-22T00:05:29 | 2020-05-22T00:05:29 | null | UTF-8 | Python | false | false | 2,272 | py | class Solution:
def openLock(self, deadends: List[str], target: str) -> int:
'''
shortest path -> BFS
'''
def toString(cur):
_str = ""
for v in cur:
_str += str(v)
retur... | [
"56766457+Wei-LiHuang@users.noreply.github.com"
] | 56766457+Wei-LiHuang@users.noreply.github.com |
07aa0556223da2feccd58233234db58c8f18e439 | 35fff80627ad675bec1e429943cb2bbbaf141ca2 | /notebooks/Papers/paper2/packages/lc/base.py | 83a7f05be6d1e91398e9dfda3a61890825c177d8 | [] | no_license | ishrat2003/IS-Goldsmiths | bac3473b7ffde7cebfb952cd78aba510c8d72c6f | afae9525ceb62cd09eb14149ee2b88798c5ceb90 | refs/heads/master | 2020-04-27T09:24:10.399620 | 2019-10-16T21:23:13 | 2019-10-16T21:23:13 | 174,212,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,442 | py | import re, sys, numpy
from nltk import word_tokenize, pos_tag
from nltk.stem.porter import PorterStemmer
import utility
from sklearn.cluster import KMeans
import matplotlib as mpl
import matplotlib.pyplot as plt
from matplotlib.pylab import rcParams
class Base():
def __init__(self, text, filterRate = 0):
self.ra... | [
"ishrat@thebyte9.com"
] | ishrat@thebyte9.com |
39f48dfeed3f3313c308862c8550119fc3bc1641 | fc43470de13ff8f03105efc2a3660a1ed6a1a553 | /BAEKJOON/2504_괄호의값.py | 4cb3ea2ff67361cd93e8308808eef08938034270 | [] | no_license | youseop/Problem_solutions | 5a05597f188b4ef8f7d8483b46bf05fbf2158d01 | 1fba638d9520bca4354bca01f194f80b159e26aa | refs/heads/master | 2023-06-24T05:12:45.060086 | 2021-07-24T14:22:33 | 2021-07-24T14:22:33 | 298,317,735 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 964 | py | import sys
read=sys.stdin.readline
bracket = read().strip()
stack = []
for i in bracket:
if i =='(' or i =='[': stack.append(i)
elif i == ']':
sum = 0
while stack:
tmp = stack.pop()
if type(tmp) == type(1):
sum+=tmp
elif tmp == '[':
... | [
"66366941+youseop@users.noreply.github.com"
] | 66366941+youseop@users.noreply.github.com |
b11c66101b1e09ca12e76d8ce55d6ede96feff43 | 75f28905cc9d87d82be68a37a18beee8d6f21869 | /user_messages/urls.py | 732cdef2d4079ff7476434539d352d3c7f549367 | [] | no_license | Pavlenkovv/Cafe-heroku | f189bbd817a8736b43531bc5d73895fa436a8040 | e0e9b67247a3375e6f599b2dfcd77b1ccce9e5fb | refs/heads/main | 2023-02-27T14:48:24.549261 | 2021-01-29T12:55:19 | 2021-01-29T12:55:19 | 329,387,838 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | from django.urls import path
from .views import *
urlpatterns = [
path ('', home, name='messages_info'),
path('update/<int:pk>/', update_messages, name='update')
] | [
"pavlenko.vyacheslav@gmail.com"
] | pavlenko.vyacheslav@gmail.com |
6689f6b14bb0bd93a13ac8db5478c886fab76e6a | 2372281d6e08dfc517c60d5a0cce678f15f904db | /experiments/output_perturbation/scikit-learn/examples/preprocessing/plot_discretization_strategies.py | 9ef211a83ccf307e6861b3c49fdf16fd08a4849d | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | amzn/differential-privacy-bayesian-optimization | b647b8281be0c2ea335104c9c92e717ce07ce63f | 07fec631d00bf3381ca24f7d73757aef6dfda9d3 | refs/heads/master | 2023-03-13T04:10:22.753152 | 2022-10-03T19:26:44 | 2022-10-03T19:26:44 | 252,813,133 | 27 | 19 | Apache-2.0 | 2022-10-03T19:26:45 | 2020-04-03T18:45:17 | Python | UTF-8 | Python | false | false | 3,052 | py | # -*- coding: utf-8 -*-
"""
==========================================================
Demonstrating the different strategies of KBinsDiscretizer
==========================================================
This example presents the different strategies implemented in KBinsDiscretizer:
- 'uniform': The discretization i... | [
"tdiethe@amazon.com"
] | tdiethe@amazon.com |
980895b0e1bce4169f2bdcb8aa270a1ae9dd834c | 24b2f3f5f49ed19cf7fd3dcd433d6b72806e08cf | /python/array/0054_Spiral_Matrix.py | 72264e152eccf0198675fc6229fbbc7746b9e527 | [] | no_license | lizzzcai/leetcode | 97089e4ca8c3c53b5a4a50de899591be415bac37 | 551cd3b4616c16a6562eb7c577ce671b419f0616 | refs/heads/master | 2021-06-23T05:59:56.928042 | 2020-12-07T03:07:58 | 2020-12-07T03:07:58 | 162,840,861 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,282 | py | """
18/09/2019
54. Spiral Matrix - Medium
Tag: Array
Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.
Example 1:
Input:
[
[ 1, 2, 3 ],
[ 4, 5, 6 ],
[ 7, 8, 9 ]
]
Output: [1,2,3,6,9,8,7,4,5]
Example 2:
Input:
[
[1, 2, 3, 4],
[5, 6, 7, 8],
[9,10,11,12]
... | [
"lilcolinn@gmail.com"
] | lilcolinn@gmail.com |
e291db95fbe82bddb3fcaf8c6ce1776e9741bdfa | 6bbcf512837bdcdfec3091b3337d54a8c455c7b9 | /practice/Operators.py | af03cb45e6fa25e1e62edaac81ae702144e24ec8 | [] | no_license | sachinlokesh05/Python-Core-Programs | a342ebdc7be070b66254e505df044fdaf03f147f | 8eec5595b51203d559e1d6f0e40646e63ad3645a | refs/heads/master | 2022-04-28T02:32:07.101993 | 2020-04-09T12:03:01 | 2020-04-09T12:03:01 | 249,491,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | class Operators:
a=None
b=None
c=None
def __init__(self, a,b,c):
self.__aa=a
self.__bb=b
self.__cc=c
def operation(self):
choice=int(input("enter choice of your: "))
if choice == 1:
return (self.__aa + self.__bb * self.__cc)
elif choic... | [
"sachin.beee.15@acharya.ac.in"
] | sachin.beee.15@acharya.ac.in |
55096585b424ea3637fe9d43bddf009256acc018 | 8890925319a25dc3df29f53d0d8125d347680f68 | /looker_client_31/looker_sdk/oidc_user_attribute_write.py | 919915817144e74ca57abbc588f370b45226b734 | [
"MIT"
] | permissive | ContrastingSounds/looker_sdk_31 | f5d300ae54aee1cc5a2621b36b49541db24ed248 | f973434049fff1b605b10086ab8b84f2f62e3489 | refs/heads/master | 2020-03-19T20:31:24.785373 | 2018-06-11T09:41:36 | 2018-06-11T09:41:36 | 136,802,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,870 | py | # coding: utf-8
"""
Experimental Looker API 3.1 Preview
This API 3.1 is in active development. Breaking changes are likely to occur to some API functions in future Looker releases until API 3.1 is officially launched and upgraded to beta status. If you have time and interest to experiment with new or modifie... | [
"looker@MacBook-Pro.local"
] | looker@MacBook-Pro.local |
939acab1fd12f3f792ee8ed5327b4a92cbb34516 | 49c2e3ebf7f5d2f79af6e26c44b4d07ec14a20d5 | /Hello World/venv/Lib/site-packages/pip/_vendor/progress/__init__.py | ffcb82afcfdd11034008e84488dfde21c6399cc7 | [] | no_license | TaylorHoll/Python_Projects | a0d86642463bdc5b3ea67dae0146c115185c1db2 | a8285b058ed0b4e0a366753d61526056dab23cd3 | refs/heads/master | 2020-06-13T09:04:29.666639 | 2020-01-07T03:40:25 | 2020-01-07T03:40:25 | 194,608,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,859 | py | # Copyright (c) 2012 Giorgos Verigakis <verigak@gmail.com>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE A... | [
"taylorholloway1984@gmail.com"
] | taylorholloway1984@gmail.com |
af4646c0c8d791591845ff4194705e2db2ffaf58 | 08dfaf714830a6310742dcd50848790d595e838e | /中级班/chapter03/code_06_rotateMatrix.py | 77d7da7638bb7ab3952d12a1d9398029625a3035 | [] | no_license | Tokyo113/leetcode_python | d9e0fb96a76efaadcec7aad08f5ef542d898d434 | e86b3fb26aef1cf63727e3e5c9fd4ddc9bedb7f1 | refs/heads/master | 2020-08-10T15:36:10.364714 | 2020-04-13T08:28:53 | 2020-04-13T08:28:53 | 214,369,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,144 | py | #coding:utf-8
'''
@Time: 2020/2/13 16:58
@author: Tokyo
@file: code_06_rotateMatrix.py
@desc:
给定一个正方形矩阵,只用有限几个变量,实现矩阵中每个位置的数顺时针转动
90度,比如如下的矩阵
0 1 2 3
4 5 6 7
8 9 10 11
12 13 14 15
矩阵应该被调整为:
12 8 4 0
13 9 5 1
14 10 6 2
15 11 7 3
'''
def rotateMatrix(arr):
n = len(arr)
m = len(arr[0])
lr,lc = 0, 0
rr, ... | [
"21810179@zju.edu.cn"
] | 21810179@zju.edu.cn |
c0005faed0405a4c138d03792873eedbc657de80 | 062e43d41c6daa6943bfad8f4510d19e43840f96 | /src/yaml/xml.py | b2e06652a02cedabe4dfa5a2964201b3e9a8934b | [] | no_license | allefant/land | b61d60106d8224e01a34d7504e1310b5fb0bd373 | f78f0da9c57884be8819f022c6e6442f90d4434c | refs/heads/main | 2023-06-22T06:15:09.938629 | 2023-06-20T20:08:13 | 2023-06-20T20:08:13 | 47,664,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,850 | py | import land.land
import land.yaml
import global ctype
static enum XmlState:
Outside
ElementName
Attributes
AttributeName
AttributeStart
AttributeValue
static class XmlParser:
XmlState state
bool closing
LandBuffer *value
LandYaml *yaml
static def scalar(XmlParser *x):
land... | [
"elias@users.sourceforge.net"
] | elias@users.sourceforge.net |
f0d1317a953a4569a174b0fc00a48f7a62f38d1b | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-cbs/huaweicloudsdkcbs/v1/model/collect_key_words_request.py | f6637441f094ae9a0789038a9ec0137977bbd716 | [
"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 | 5,869 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class CollectKeyWordsRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attri... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
648b0989580d47d21becb42dd15835780632c9e9 | 7af9841dfdeb7192cee9f5bc5ae24ebabeeebdcc | /article/admin.py | a36223f706dc91c9321ddeaf13c4ce75ccbd793c | [] | no_license | dimansion/bepy | 513d1d6b8c6f679ce97f46741b50b73dabf20484 | dd92999b9fb0d65e9479372718409785a8d26d26 | refs/heads/master | 2020-06-28T11:27:02.204255 | 2016-11-14T11:26:32 | 2016-11-14T11:26:32 | 67,694,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | from django.contrib import admin
# Register your models here.
from .models import Article
class ArticleModelAdmin(admin.ModelAdmin):
list_display = ["title", "updated", "timestamp"]
list_display_links = ["updated"]
list_editable = ["title"]
list_filter = ["updated", "timestamp"]
search_fields = ["title", "conte... | [
"dimansional@gmail.com"
] | dimansional@gmail.com |
bc07ca5cbd963e7bdc3369aae466a3c181a9c7bb | 50de54517ef5e157b43598e412c477fd66890a3e | /Assignment 04/Problem 12.py | 324d03a9fc0e2eb71aefe5e681cb03cda366f9f8 | [] | no_license | Shihabsarker93/BRACU-CSE111 | f530be247bebaaee9cc5e85948dc070adae0c6ae | 17c95c76f84abffe9d9bdcb5861fbacbc510b5a6 | refs/heads/main | 2023-08-13T15:33:57.331850 | 2021-10-07T10:56:09 | 2021-10-07T10:56:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,226 | py | class ParcelKoro:
def __init__(self, name=None, product_weight=None) -> None:
self.name = name
self.product_weight = product_weight
if self.product_weight == None:
self.product_weight = 0
def calculateFee(self, location=None):
self.location = location
if loc... | [
"mirzamahrabhossain@gmail.com"
] | mirzamahrabhossain@gmail.com |
bdb495a4aaf1752cb932eda410fe95cca71f3510 | b0d5e423f09181a322a0166b06bf7fe45a3befc0 | /MetioTube/profiles/forms.py | b17499317bd2ae783e5fe56a9baa71d145f4935f | [
"MIT"
] | permissive | Sheko1/MetioTube | f5da4184bb1590565ba34cef2fff02b379ab3e56 | c1c36d00ea46fc37cc7f3c0c9c0cae6e89b2113c | refs/heads/main | 2023-07-04T12:54:57.500778 | 2021-08-14T19:41:56 | 2021-08-14T19:41:56 | 383,907,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | from django import forms
from MetioTube.profiles.models import Profile
class ProfileForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.fields['profile_picture'].widget.attrs['accept'] = 'image/jpg, image/png, image/jpeg'
class Meta:
mod... | [
"martinkypar@gmail.com"
] | martinkypar@gmail.com |
83ea1cd60b07b7661cf4d71ba9914ae9e4c12194 | deda76cdf57c2a178f7a6af0ef8abf0c239d0fbf | /post/migrations/0010_auto_20170225_1412.py | 3b015c6440e5213db5654f71dec65202d685fad1 | [] | no_license | mikekeda/Jess-blog | 55c03deaa3587f4280cb77f4c33a4728965f7503 | 0498450c671b7116e759ee608b60a56cf5c1722c | refs/heads/master | 2023-07-26T21:25:31.519523 | 2023-06-06T17:27:13 | 2023-06-06T17:27:13 | 69,493,913 | 2 | 0 | null | 2023-07-05T22:57:16 | 2016-09-28T18:53:57 | Python | UTF-8 | Python | false | false | 458 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-25 14:12
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('post', '0009_auto_20170225_1410'),
]
operations = [
migrations.AlterField(
... | [
"mriynuk@gmail.com"
] | mriynuk@gmail.com |
2eab272b612bf0026bdfa21c63ff576d34fd8dde | 8780bc7f252f14ff5406ce965733c099034920b7 | /pyCode/novel_Mongodb/novel/settings.py | e49a3b889bb618337c2e82ee26bcf3662da38c06 | [] | no_license | 13661892653/workspace | 5e4e458d31b9355c67d67ba7d9faccbcc1ac9f6b | 17960becabb3b4f0fc30009c71a11c4f7a5f8330 | refs/heads/master | 2020-12-24T20:00:15.541432 | 2018-08-14T13:56:15 | 2018-08-14T13:56:15 | 86,225,975 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,342 | py | # -*- coding: utf-8 -*-
# Scrapy settings for novel project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/latest/t... | [
"470563152@qq.com"
] | 470563152@qq.com |
a8eb9ab1b268fd5c994efa2afb0f3d85321e1cf9 | 06d86ca0465405a7d1a64fc6dbf4980f76565e54 | /torchnlp/nn/__init__.py | be635ea9026ee2911bec1756db558956b484099d | [
"BSD-3-Clause"
] | permissive | PetrochukM/PyTorch-NLP | 22b7f2628d6545270bc36964ce4551609f84ca9f | 53d7edcb8e0c099efce7c2ddf8cd7c44157fcac3 | refs/heads/master | 2023-08-05T20:15:06.954467 | 2023-07-04T21:11:26 | 2023-07-04T21:11:26 | 122,806,629 | 2,304 | 290 | BSD-3-Clause | 2022-07-16T23:44:23 | 2018-02-25T05:00:36 | Python | UTF-8 | Python | false | false | 499 | py | from torchnlp.nn.attention import Attention
from torchnlp.nn.lock_dropout import LockedDropout
from torchnlp.nn.weight_drop import WeightDropGRU
from torchnlp.nn.weight_drop import WeightDropLSTM
from torchnlp.nn.weight_drop import WeightDropLinear
from torchnlp.nn.weight_drop import WeightDrop
from torchnlp.nn.cnn_enc... | [
"petrochukm@gmail.com"
] | petrochukm@gmail.com |
412a3e50c46c08906300fcef62d66e697c2954e4 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_2_neat/16_0_2_Newyork167_RevengeOfThePancakes.py | b033b830db3257268cd1574abffce775324afeeb | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 503 | py | def start():
output_file = open('output.txt', 'w+')
t = int(raw_input().strip())
for x in range(t):
flip_count = 0
p = raw_input().strip()
for y in xrange(len(p) - 1, -1, -1):
if p[y] == "-":
flip_count += 1
p = flip(p[:y + 1]) + p[y + 1:]
... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
d653b9469d563ede22ef0db716328cbd291036b3 | 6466eef5477db250879a74935b3b776dc878ff3b | /iprofile/migrations/0002_auto_20210302_0739.py | d5634f9ccf7c6c6bfbe7220e774c7d58326a69ca | [] | no_license | BakdauletBolatE/django_ideas | 8edb61a569f436865283e82edba3377a150665a8 | ef0258f3aae0c090d38a5098d175bceaddcf67af | refs/heads/master | 2023-03-12T00:02:04.969353 | 2021-03-02T19:41:00 | 2021-03-02T19:41:00 | 324,287,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | # Generated by Django 3.1.4 on 2021-03-02 07:39
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('iprofile', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='profile',
... | [
"bakosh21345@gmail.com"
] | bakosh21345@gmail.com |
1e2c08e559a9397aff2ade4a07738486067ea297 | 77428d258556f1cae13c7435bcb5ee387d2f7ed9 | /src/program/python/snippet/ProcExit.py | 23d60713b22cf13747dd1e925f813b5c6bffea4a | [] | no_license | imxood/imxood.github.io | d598d3d991f7e7d39787ecb2415ffe48489d9fd6 | a6fe8fe069b8af9d65b6afaabecfcfe99ed1ed21 | refs/heads/main | 2022-10-23T12:52:11.966389 | 2022-10-04T06:04:59 | 2022-10-04T06:04:59 | 47,911,256 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | class ProcExit(Exception):
def __init__(self, message, status):
super().__init__(message, status)
self.message = message
self.status = status
| [
"imxood@gmail.com"
] | imxood@gmail.com |
b2821e252c94e69a8e4c84bc04d5b2f793b836f8 | c10f20abec372f81dbd6468ead208543f60940f1 | /learning/22.LDA/22.3.reuters.py | 9fcc780c9a33d39ab337bd60e3a9bc6a7ec0b357 | [] | no_license | alenzhd/meachineLearning | 64876e7a6c0b8b39a63a9eb586d306a3489b4447 | 1b66ce2f73b226548f07e45c8537b8286635a048 | refs/heads/master | 2021-08-24T10:55:52.056439 | 2017-12-09T10:26:37 | 2017-12-09T10:26:37 | 112,688,163 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,864 | py | # !/usr/bin/python
# -*- coding:utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mpl
import lda
import lda.datasets
from pprint import pprint
if __name__ == "__main__":
# document-term matrix
X = lda.datasets.load_reuters()
print("type(X): {}".format(type(X)))
print("... | [
"zhanghd@asiainfo-mixdata.com"
] | zhanghd@asiainfo-mixdata.com |
b248e867f89bea426fd4105ea1bc0119dbf2cc49 | 56bcae383daea12cc1818a19a6415e0d9b58bd0c | /month01/day10/exercise04.py | be84b5e64c084983ff26f235609fb67556cb5474 | [] | no_license | wpy-111/python | 97ede872cf6b17f8c229cee9ecfb7df25363a37a | afbd0e081763c53833617a4892d03043e644d641 | refs/heads/main | 2023-08-03T18:26:25.656984 | 2021-09-26T08:47:21 | 2021-09-26T08:47:21 | 323,897,439 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,119 | py | class Student:
def __init__(self, name, old, achement, gender):
self.name = name
self.old = old
self.achement = achement
self.gender = gender
def print_personal_info(self):
print("学生姓名:", self.name, "年龄:", self.old, "成绩:", self.achement, "性别:", self.gender)
list_studen... | [
"1324749417@qq.com"
] | 1324749417@qq.com |
bf732d79c691374c2a1fbe7b8c8e18e5e53ec00e | ac2bc51f88ca0d966968d3aa28331ac715d9a1e2 | /pymeshio/pmd/reader.py | d68a767ff889e6d5f4668235e16b345b35f6905f | [] | no_license | zhouhang95/pymeshio | 5b29a864253d75bbcc23e7514ea4f9c86338031c | 256dd9146103abc3e2e300de9ae09dcde057b534 | refs/heads/master | 2020-06-14T23:30:34.727047 | 2020-04-18T14:05:04 | 2020-04-18T14:05:04 | 195,154,815 | 0 | 0 | null | 2019-07-04T02:21:55 | 2019-07-04T02:21:55 | null | UTF-8 | Python | false | false | 7,910 | py | #coding: utf-8
"""
pmd reader
"""
import io
from .. import common
from .. import pmd
class Reader(common.BinaryReader):
"""pmx reader
"""
def __init__(self, ios, version):
super(Reader, self).__init__(ios)
self.version=version
def read_text(self, size):
"""read cp932 text
... | [
"ousttrue@gmail.com"
] | ousttrue@gmail.com |
1fa6918b789095c70ac0a9b29a5bf35351e768ff | 45de3aa97525713e3a452c18dcabe61ac9cf0877 | /src/bases/anaconf/fichier_configuration.py | 3c393fe67c215a743548a07ae83628cef8b5bacf | [
"BSD-3-Clause"
] | permissive | stormi/tsunami | 95a6da188eadea3620c70f7028f32806ee2ec0d1 | bdc853229834b52b2ee8ed54a3161a1a3133d926 | refs/heads/master | 2020-12-26T04:27:13.578652 | 2015-11-17T21:32:38 | 2015-11-17T21:32:38 | 25,606,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,208 | py | # -*-coding:Utf-8 -*
# Copyright (c) 2010 LE GOFF Vincent
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice, this
# l... | [
"kredh@free.fr"
] | kredh@free.fr |
7f5bf99bf96136efc47b1ad93ed0722deb7c4c24 | 663365d4c1c4068dab79a4b24cf6c96888b0862d | /Functions/migrations/0021_contribute_upload_file.py | 173945ddf3192fbd6275812a40ffb533ccbbbafa | [] | no_license | gitanjali1077/UnistashFinal | e7052b26db70d3ed728f7cddd90da31f6d4f0a50 | 31251e441c8759ca3d6c4b0cb274902293fd38a7 | refs/heads/master | 2021-07-02T07:01:10.919891 | 2017-09-23T11:55:03 | 2017-09-23T11:55:03 | 104,563,813 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-08-28 18:28
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Functions', '0020_contribute'),
]
operations = [
migrations.AddField(
... | [
"gitanjali1077@gmail.com"
] | gitanjali1077@gmail.com |
c705ad27d574a1c68f53e7ea69f8e302c6e3bd45 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03360/s908615245.py | 1bd71f84ec89bec0620034eb77b6014bd7f9078f | [] | 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 | 129 | py | lis = list(map(int,input().split()))
a = int(input())
lis.sort(reverse = True)
for i in range(a):
lis[0] *= 2
print(sum(lis)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
396afefec4925ee05474afb55fca1e1c01268612 | 627fda699b0dc401a19b0cbbc17ea6632f315c8c | /baltimore.py | 123f209bc531b868c7a5fed241650c20e9899e8a | [] | no_license | Romulus83/python | 31db444e766ceff39813162f3e64edbb53bfdfdf | f5dc170ccd2b98f84a17f8bd8d8f5d8bd9a51f60 | refs/heads/master | 2023-02-16T16:07:18.947227 | 2021-01-16T17:08:40 | 2021-01-16T17:08:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,175 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Mar 3 18:14:48 2020
@author: user
"""
"""
remove the dollar signs in the AnnualSalary field and assign it as a int
"""
import pandas as pd
df4 = pd.read_csv("Baltimore_City_Employee_Salaries_FY2014.csv")
df4["AnnualSalary"] = df4["AnnualSalary"].astype("int64")
"... | [
"sandeepjain20178@gmail.com"
] | sandeepjain20178@gmail.com |
ffaa5f02e39b29398daa68fa9fb34f9b4ddb956e | 9b11e49cbb9120f3f7e69a8884c0cee42896566d | /Hyperbola_search_part1.py | 7c39171ec6408d181e5a721ab55f1b089259ad66 | [] | no_license | albusdemens/Backscattering_3DND | e6966cd8c39342181183de20028b959227a5f570 | f911f1f9f9bf863daffe2bcc85bd7d7a94e5b3c7 | refs/heads/master | 2021-01-21T13:53:17.469879 | 2016-06-27T10:51:45 | 2016-06-27T10:51:45 | 44,485,363 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,527 | py | # Alberto Cereser, 4 Feb 2014
# alcer@fysik.dtu.dk, Technical University of Denmark
# For each point, this script looks for its successor
# For the location of the cutouts, the code follows the approach described in
# http://scikit-image.org/docs/dev/auto_examples/plot_template.html
import sys
#import pandas as pd
imp... | [
"mannaro85@gmail.com"
] | mannaro85@gmail.com |
1568ebac3d05d96cad143aed5faa28b55aed2fbf | 6b6e20004b46165595f35b5789e7426d5289ea48 | /data/archivedlogs.py | 0172c74c8c3e951453a1aadc5a5a85a31982dc97 | [
"Apache-2.0"
] | permissive | anwarchk/quay | 2a83d0ab65aff6a1120fbf3a45dd72f42211633b | 23c5120790c619174e7d36784ca5aab7f4eece5c | refs/heads/master | 2020-09-12T18:53:21.093606 | 2019-11-15T19:29:02 | 2019-11-15T19:29:02 | 222,517,145 | 0 | 0 | Apache-2.0 | 2019-11-18T18:32:35 | 2019-11-18T18:32:35 | null | UTF-8 | Python | false | false | 1,038 | py | import logging
from util.registry.gzipinputstream import GzipInputStream
from flask import send_file, abort
from data.userfiles import DelegateUserfiles, UserfilesHandlers
JSON_MIMETYPE = 'application/json'
logger = logging.getLogger(__name__)
class LogArchive(object):
def __init__(self, app=None, distributed... | [
"jimmy.zelinskie+git@gmail.com"
] | jimmy.zelinskie+git@gmail.com |
5b47ee2fdfef62a928d08f196124943124e29eaf | f0c402d3858f0643561886797578b1e64655b1b3 | /py/riscv/exception_handlers/EnvironmentCallHandler.py | f7d7320626d9fcd3c808a7a8d10bd79f12fbd112 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | Leo-Wang-JL/force-riscv | 39ad2a72abd814df4b63879ce9825b6b06a9391a | deee6acaaee092eb90ac2538de122303334e5be3 | refs/heads/master | 2023-01-28T00:06:58.135651 | 2020-11-18T02:54:10 | 2020-11-18T02:54:10 | 271,873,013 | 0 | 0 | NOASSERTION | 2020-06-28T00:51:26 | 2020-06-12T19:15:26 | C++ | UTF-8 | Python | false | false | 7,073 | py | #
# Copyright (C) [2020] Futurewei Technologies, Inc.
#
# FORCE-RISCV is 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
#
# THIS SOFTWARE IS PRO... | [
"jwang1@futurewei.com"
] | jwang1@futurewei.com |
e00fbc256f3ed06f3244641137c2c4a0e5b73e33 | 05d692469305dd1adb9ebc46080525bb4515b424 | /Exception handling/aritherror2.py | c75466829af775917e307f139c966ffebef05188 | [] | no_license | rajdharmkar/pythoncode | 979805bc0e672f123ca1460644a4bd71d7854fd5 | 15b758d373f27da5680a711bf12c07e86758c447 | refs/heads/master | 2020-08-07T18:30:55.575632 | 2019-10-14T12:46:09 | 2019-10-14T12:46:09 | 213,551,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | try:
a = 0 / 19
print a
except ArithmeticError:
print "This statement is raising an exception"
else:
print "Welcome"
#syntax
#
# try:
# #run code
# except exception/error name1:
# #run code
# except exception error name2:
# # run code
# else:
# # run code | [
"rajdharmkar@gmail.com"
] | rajdharmkar@gmail.com |
98cd0f98537d4de5abe64aee34a9cc391d8459f8 | 106ddccf8f19ca2dcdde9bc455a230f144222493 | /remoview/settings.py | 63e6d00fb8b857afbe3a1a4d5facf7637551f70d | [] | no_license | Simeon2001/dsc-backend-project | b7cea249bf0855af53fd1e189371474bfeeec590 | 96069df96c22973ce00ace9d043475ff326086ab | refs/heads/main | 2023-01-09T08:57:04.846997 | 2020-11-12T16:38:16 | 2020-11-12T16:38:16 | 312,234,502 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,352 | py | """
Django settings for remoview project.
Generated by 'django-admin startproject' using Django 3.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
... | [
"jesusanyasimeon@gmail.com"
] | jesusanyasimeon@gmail.com |
4bb6112541cc85b424d4faf0558bc75faaa26289 | 670f4ba8ded99b420c3454c6ae35789667880cc8 | /tobiko/openstack/openstackclient/_port.py | b08f02ffe1daafec91e5b874d0db5f8185c53ddc | [
"Apache-2.0"
] | permissive | FedericoRessi/tobiko | 892db522198ab48380892138459d801c4bd00efa | ce2a8734f8b4203ec38078207297062263c49f6f | refs/heads/master | 2022-07-26T22:52:10.273883 | 2022-07-20T20:04:43 | 2022-07-20T20:04:43 | 145,856,925 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,725 | py | # Copyright (c) 2020 Red Hat, Inc.
#
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | [
"fressi@redhat.com"
] | fressi@redhat.com |
d124e275a16bc01dc86309b27e0b3fe2746089f4 | 9aa5c69ec4ae4c1a54028f6add3327929d81b929 | /nodes/camnode | c8c7ba947819137cd6d9dda5703fa04f085ab012 | [] | no_license | strawlab/ros_flydra | 818fed6cdc9ed8afd17950ea5de7595e91a0483e | 0a922c24235d971b665461db6151f5867eee5870 | refs/heads/master | 2021-01-01T16:06:00.097118 | 2018-01-19T16:52:20 | 2018-01-19T16:52:20 | 4,662,078 | 0 | 2 | null | 2015-04-17T11:46:43 | 2012-06-14T10:40:47 | null | UTF-8 | Python | false | false | 635 | #!/usr/bin/env python
import threading
try:
import flydra.camnode
except ImportError:
import sys
import os.path
sys.path.insert(0, os.path.expanduser("~/flydra.git"))
import flydra.camnode
import roslib; roslib.load_manifest('rospy')
import rospy
def main():
rospy.init_node('flydra_camnode')... | [
"john.stowers@gmail.com"
] | john.stowers@gmail.com | |
15713a4aa17b0af607f4967edc241d1f1688c313 | b2403817f9221ee3550130572a808194ef4f3fda | /OOP/Polymorphism/SuperMethod.py | 660f0501f83896f9d29e77f3e7dd6ac1d1370e5a | [] | no_license | xaviergoby/Python-Data-Structure | e962444ef5b1313c3facbf1fcc315af182b73a26 | eaaf31ea98d63e812a75c1d6ecb8722b9c0cf142 | refs/heads/master | 2020-04-13T00:24:40.896592 | 2018-11-27T11:51:36 | 2018-11-27T11:51:36 | 162,844,732 | 1 | 0 | null | 2018-12-22T21:46:29 | 2018-12-22T21:46:29 | null | UTF-8 | Python | false | false | 873 | py | class SomeBaseClass(object):
def __init__(self):
print('SomeBaseClass.__init__(self) called')
class UnsuperChild(SomeBaseClass):
def __init__(self):
print('Child.__init__(self) called')
SomeBaseClass.__init__(self)
class SuperChild(SomeBaseClass):
def __init__(self):
print(... | [
"sanjay.siddha3@gmail.com"
] | sanjay.siddha3@gmail.com |
694bd1b545d6e74fa955877bac704efbbedcc3d4 | 141b42d9d72636c869ff2ce7a2a9f7b9b24f508b | /myvenv/Lib/site-packages/phonenumbers/shortdata/region_JO.py | 10652f5720029f060d27895417cf44fbe7fee355 | [
"BSD-3-Clause"
] | permissive | Fa67/saleor-shop | 105e1147e60396ddab6f006337436dcbf18e8fe1 | 76110349162c54c8bfcae61983bb59ba8fb0f778 | refs/heads/master | 2021-06-08T23:51:12.251457 | 2018-07-24T08:14:33 | 2018-07-24T08:14:33 | 168,561,915 | 1 | 0 | BSD-3-Clause | 2021-04-18T07:59:12 | 2019-01-31T17:00:39 | Python | UTF-8 | Python | false | false | 860 | py | """Auto-generated file, do not edit by hand. JO metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_JO = PhoneMetadata(id='JO', country_code=None, international_prefix=None,
general_desc=PhoneNumberDesc(national_number_pattern='[19]\\d{2,4}', possible_length=(3, 5)),... | [
"gruzdevasch@gmail.com"
] | gruzdevasch@gmail.com |
d7764b7bc2f3043d08cfc2717d91e64ea6735c41 | 321b4ed83b6874eeb512027eaa0b17b0daf3c289 | /142/142.linked-list-cycle-ii.234403149.Accepted.leetcode.py | f353efaede5f020953c36a7ea4c336d0ce14af66 | [] | no_license | huangyingw/submissions | 7a610613bdb03f1223cdec5f6ccc4391149ca618 | bfac1238ecef8b03e54842b852f6fec111abedfa | refs/heads/master | 2023-07-25T09:56:46.814504 | 2023-07-16T07:38:36 | 2023-07-16T07:38:36 | 143,352,065 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | class Solution(object):
def detectCycle(self, head):
if not head or not head.next:
return None
q1 = head
q2 = head.next
while q1 != q2:
if not q2 or not q2.next:
return None
q1 = q1.next
q2 = q2.next.next
res =... | [
"huangyingw@gmail.com"
] | huangyingw@gmail.com |
a542c28168e1d849dfb3e5a94a62c3bf549828d5 | 92b8b1b0914a1bb4f6571bf7c3597ac33dbc58aa | /MLG-Crypto_90/solution.py | ad3cf3c7935532127e6bd9a25f91be9243680449 | [] | no_license | leogemetric/cryptoctf-2016 | 0cb5e5179125d88f8ad14bc3c29ff5aeaeac7787 | 69b02f0bbfa941d04a2f9af101d1420a096f2437 | refs/heads/master | 2021-01-19T07:18:53.908002 | 2016-05-27T22:33:02 | 2016-05-27T22:33:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | lines = open("mlg_crypto.txt", "r").readlines()[1:-1]
subs = {}
for line in lines:
line = line.strip()
for word in line.split("_"):
if word in subs:
subs[word] += 1
else:
subs[word] = 1
print len(subs)
print subs
space = max(subs, key=lambda x: subs[x])
del subs[space]
... | [
"jameswang9909@hotmail.com"
] | jameswang9909@hotmail.com |
9d7f40b1e1cb4a8d9e542a673113d94d0418e724 | c43fbcb4442428e85616f664964d1e27ca396070 | /runs/malte/snr_study/simparamsec.py | 7a5a04938a59f165f1b98855287c2f20abe47592 | [] | no_license | megalut/megalut | ddac89a0dca70e13979d31b80d52233226233ade | 63bd4bec8000ad13f4963d464d7b7b4d470a36ab | refs/heads/master | 2020-04-15T00:33:42.815988 | 2018-09-11T08:45:48 | 2018-09-11T08:45:48 | 20,882,727 | 2 | 1 | null | 2018-09-11T08:45:49 | 2014-06-16T11:39:14 | Python | UTF-8 | Python | false | false | 3,043 | py | import megalut.sim
import numpy as np
import random # np.random.choice is only available for newer numpys...
import itertools
class Simple1(megalut.sim.params.Params):
"""
No PSF, just round Gaussians, but with Euclid zeropoint and sky level etc.
"""
def __init__(self):
megalut.sim.params.Params.__init_... | [
"malte.tewes@gmail.com"
] | malte.tewes@gmail.com |
2ff4be473a4847f049f4cc30b5101abf4ed13ff8 | cc64d03b132b773acae845c52f41fcdcdcaee273 | /test/functional/wallet_coinbase_category.py | 15e59fad3c5890d950270402edb2f1939d3bf62f | [
"MIT"
] | permissive | phlsolo316/vidcoin | aa9aae1e0f2215edadd2df89e1c9b6669abbce76 | d6eec232378c329ebc2a31e7d21acf58cf62368d | refs/heads/main | 2023-05-26T05:01:32.379060 | 2021-06-07T02:46:07 | 2021-06-07T02:46:07 | 373,622,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,299 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2018 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test coinbase transactions return the correct categories.
Tests listtransactions, listsinceblock, and ... | [
"36169687+blockinator@users.noreply.github.com"
] | 36169687+blockinator@users.noreply.github.com |
d114bd12241b8318364df59f4a6569dd709ee16c | 6131b2738a7c087dfa6907c624453576f6f0e393 | /flask_project/fish/app/spider/yushu_book.py | 027eea09c9285f9ff2cb4b25722aa5d35719a702 | [] | no_license | heheddff/myPythonProcess | 60ef240130cd02906dc500eedb397a9662c02e5a | 885a25dd2a9cd43801306d9e70b9ce89daec4406 | refs/heads/master | 2020-04-08T19:09:18.192738 | 2019-08-06T02:52:54 | 2019-08-06T02:52:54 | 159,642,468 | 4 | 5 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | from app.libs.download import DOWNLOAD
from flask import current_app
class YuShuBook:
# isbn_url = 'https://api.douban.com/v2/book/isbn/{}'
# keyword_url = 'https://api.douban.com/v2/book/search?q={}&count={}&start={}'
isbn_url = 'http://t.yushu.im/v2/book/isbn/{}'
keyword_url = 'http://t.yush... | [
"qq2003qq@126.com"
] | qq2003qq@126.com |
f00aab7f8fb74e06325b57eac9054ee1eee7131a | 6ed9e72d2676447dcb68683d8823712110bb3b5e | /setup.py | b8e64f5229ce5f874831ed45e3a972b29e0365eb | [] | no_license | brandon-rhodes/python-johnhancock | 79a416e037817ee41fa384797a001ee6fcfa31b5 | 43b1128a9c217fad5ba6c6143cdbea97d6e44e51 | refs/heads/master | 2023-07-21T17:30:09.358965 | 2020-07-01T00:34:43 | 2020-07-01T00:34:43 | 6,408,682 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | from distutils.core import setup
setup(
name='johnhancock',
version='0.1',
description='Sign a PDF using a PNG image',
author='Brandon Rhodes',
author_email='brandon@rhodesmill.org',
#url='',
packages=['johnhancock'],
install_requires=['Pillow', 'pyPdf', 'reportlab'],
)
| [
"brandon@rhodesmill.org"
] | brandon@rhodesmill.org |
26bc6917e32b1470a9c5e17be693dbd5ee407aea | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2560/60580/313785.py | 220666b21e9e0726571f13ffcbd14a6e29126aca | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | size = int(input())
a = 0
while a < size:
b = input()
list = input().split()
num = int(input())
i = 0
d = {}
while i < len(list):
if (list[i] in d):
d[list[i]] = d[list[i]] + 1
else:
d[list[i]] = 1
i = i + 1
dict = sorted(d.items(), key=lambda ... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
cc3722d0a6ada9953627c61b49f3cfed650d7810 | cb1d6bd2bf5edb6e38a9094b6a003f8c8d6c01e8 | /carrent/myapp/migrations/0001_initial.py | d3efa695ec10d0db57d17a7ac52e39711a0794cf | [] | no_license | wasit7/cs459_2018s | b3d8444f2c697c1211ba949634e132af1692f7bd | dee7edcefd0964e342bf958bf91314e3c27b4be6 | refs/heads/master | 2020-04-19T15:20:43.543867 | 2019-02-20T05:01:39 | 2019-02-20T05:01:39 | 168,271,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,074 | py | # Generated by Django 2.1.5 on 2019-02-20 04:39
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Car',
fields=[
('id', models.AutoField(auto... | [
"wasit7@gmail.com"
] | wasit7@gmail.com |
d7a4a0f9aeec15da14a66873cdfff142ccbe3ea8 | 70e79590cd66ba1cd37ff977890164baa3d5c53c | /blog/migrations/0002_blogpage.py | cb87b9ef8a74366436525193a302f6efca545ccb | [] | no_license | thibaudcolas/codersofcolour | 7206c18f9c0e31f206f7d1dccaef2df1e46f5ecf | b085d5ec14c08d04ab2439f0a79730996cb87785 | refs/heads/master | 2022-12-02T15:06:20.984555 | 2020-06-10T18:06:02 | 2020-06-10T18:06:02 | 270,047,484 | 0 | 0 | null | 2020-07-26T14:16:37 | 2020-06-06T17:06:10 | Python | UTF-8 | Python | false | false | 963 | py | # Generated by Django 3.0.7 on 2020-06-06 16:42
from django.db import migrations, models
import django.db.models.deletion
import wagtail.core.fields
class Migration(migrations.Migration):
dependencies = [
('wagtailcore', '0045_assign_unlock_grouppagepermission'),
('blog', '0001_initial'),
]
... | [
"thibaudcolas@gmail.com"
] | thibaudcolas@gmail.com |
cb6eb73063e7f44c86ad29a66545b4d90f775ce6 | ae3d0e3c2fb614d96f6c787583c6e2e4cb654ad4 | /leetcode/118_generate.py | b1346f72c2348527aadf663326c7f5841837c9c0 | [] | no_license | Cjz-Y/shuati | 877c3f162ff75f764aa514076caccad1b6b43638 | 9ab35dbffed7865e41b437b026f2268d133357be | refs/heads/master | 2023-02-02T10:34:05.705945 | 2020-12-14T01:41:39 | 2020-12-14T01:41:39 | 276,884,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | from typing import List
class Solution:
def generate(self, numRows: int) -> List[List[int]]:
result = []
if numRows == 0:
return result
result.append([1])
for i in range(1, numRows):
temp_array = []
for j in range(i + 1):
temp_int... | [
"cjz.y@hotmail.com"
] | cjz.y@hotmail.com |
6bb690802c91855dd0f6fa1add90a9b09c97c432 | 1e53216c58f3c7843031721305590b83dbaed3f2 | /week_four/form_practice/form_app/views.py | c648c4ca3b1982be30485cd36518e4f4e2084c59 | [] | no_license | MTaylorfullStack/python_july_20 | 991852ba12d6f06d6b93b8efc60b66ee311b5cb3 | bdfb0d9a74300f2d6743ac2d108571692ca43ad9 | refs/heads/master | 2022-12-12T18:03:00.886048 | 2020-08-27T23:53:31 | 2020-08-27T23:53:31 | 277,956,745 | 2 | 2 | null | 2023-06-30T20:06:11 | 2020-07-08T01:09:34 | Python | UTF-8 | Python | false | false | 1,469 | py | from django.shortcuts import render, redirect
import random
def index(request):
return render(request, 'form.html')
def success(request):
if "gold" not in request.session:
request.session['gold'] = 0
return render(request, "result.html")
def process(request):
print(request.POST['user_name'])
... | [
"mtaylor@codingdojo.com"
] | mtaylor@codingdojo.com |
b1c59fe04d1ba3b07bb1c5709673c2d7f7d2fd61 | 8eab8ab725c2132bb8d090cdb2d23a5f71945249 | /virt/Lib/site-packages/pygments/lexers/gsql.py | 6af99b27ce040871edb2972c020afb40d527b0bb | [
"MIT"
] | permissive | JoaoSevergnini/metalpy | 6c88a413a82bc25edd9308b8490a76fae8dd76ca | c2d0098a309b6ce8c756ff840bfb53fb291747b6 | refs/heads/main | 2023-04-18T17:25:26.474485 | 2022-09-18T20:44:45 | 2022-09-18T20:44:45 | 474,773,752 | 3 | 1 | MIT | 2022-11-03T20:07:50 | 2022-03-27T22:21:01 | Python | UTF-8 | Python | false | false | 3,772 | py | """
pygments.lexers.gsql
~~~~~~~~~~~~~~~~~~~~
Lexers for TigerGraph GSQL graph query language
:copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import re
from pygments.lexer import RegexLexer, include, bygroups, using, this, words
from... | [
"joao.a.severgnini@gmail.com"
] | joao.a.severgnini@gmail.com |
d87f498e4a7d959b5fc54f1785b26a4afec1578f | a8c95f5152c08b487c3f85246150f9f7cdd557e0 | /torabot/frontend/admin/auth.py | 1e1558234cd037fcc769c44fbecd2bb02d103592 | [
"MIT"
] | permissive | sorunis/torabot | b58113adab85e78551095e8f4551b0bbaf48e8f1 | 6d1a0a524f184cc33c5dfb3d7fc5e95af791a018 | refs/heads/master | 2020-12-11T07:19:54.269478 | 2014-05-04T18:15:54 | 2014-05-04T18:15:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | from functools import wraps
from ...core.local import is_admin
from ..auth import require_session
from .errors import AdminAuthError
def require_admin(f):
@require_session
@wraps(f)
def inner(user_id, *args, **kargs):
if not is_admin:
raise AdminAuthError()
return f(*args, **ka... | [
"answeror@gmail.com"
] | answeror@gmail.com |
fa66b83ea082481837e05a8ceeb01bb4f447c3b4 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02700/s830417832.py | 15b00c59d92d438ff9c194f96ea1df0e3dd49e2a | [] | 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 | 248 | py | a, b, c, d = map(int,input().split())
for i in range(100):
if c > b:
c -= b
elif c <= b:
print("Yes")
exit()
if a > d:
a -= d
elif a <= d:
print("No")
exit() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
4a86fdc37d06384976bba51986fb40e2f225bded | a62390c9497363a9afbaac79336b3e1cb04e096e | /Day 23/turtle_crossing_game.py | dee8b9aae7eb48119d8fb87fe7a405c05db3634d | [] | no_license | PravinSelva5/100-Days-of-Code | 2cf3ae9766bdfd053532823214276e291024d5a2 | 3a299af3de5f4f0cab05fc73563df29e3c292560 | refs/heads/master | 2023-07-13T06:29:15.360016 | 2021-08-22T16:50:49 | 2021-08-22T16:50:49 | 380,812,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | import time
from turtle import Screen
from player import Player
from car_manager import CarManager
from scoreboard import Scoreboard
screen = Screen()
screen.setup(width=600, height=600)
screen.tracer(0)
player = Player()
car_manager = CarManager()
scoreboard = Scoreboard()
screen.listen()
screen.onkey(player.go_up,... | [
"pravin.selvarajah.eng@gmail.com"
] | pravin.selvarajah.eng@gmail.com |
0d89b4421f4197551bd71933e7e38fc0a07c5a69 | 012837eafe45c8f7ee5fc77d4c4d7725d5314c5c | /workshops/9-section/5-clazz.py | 387fdf5912dcfa0b0f19553d2a5d7c3b235a1fe0 | [
"MIT"
] | permissive | ai-erorr404/opencv-practice | e9408cf006779a678cf3a30fc60e9dbeb3c8e493 | 60ef5e4aec61ee5f7e675fb919e8f612e59f664a | refs/heads/master | 2021-02-08T11:17:04.763522 | 2020-02-22T09:43:04 | 2020-02-22T09:43:04 | 244,146,060 | 1 | 1 | MIT | 2020-03-01T12:35:02 | 2020-03-01T12:35:01 | null | UTF-8 | Python | false | false | 2,927 | py | #!/usr/bin/env python3
# -*- coding=utf-8 -*-
import cv2 as cv
from goto import with_goto
import math
import numpy as np
"""
KLT光流跟踪法二:
静止点删除与跟踪轨迹绘制。处置流程为 输入第一帧图像 -> 特征点检测 -> 保持特征点 -> 输入第二帧图像(开始跟踪) -> 跟踪特征点 -> 删除
损失特征点 -> 保存跟踪特征点 -> 用第二帧图像替换第一帧图像 -> 用后续输入帧替换第二帧 -> 选择新的特征点替换损失的特征点 -> 保存特征点数据... | [
"afterloe@foxmail.com"
] | afterloe@foxmail.com |
a149db09fb1a3483f75201ee41bba85f77be8210 | 8999b8522b18a52d09e1c76d28ee77f0d022e8fd | /pyrarcrack/pyrarcrack.py | 1e8a4da42a11f4804de1c921b09bf62577372f1e | [
"Apache-2.0"
] | permissive | abhushansahu/py-rarcrack | 7bbba825e7e9794b538818e3f1958758f58ca767 | 4326da72d9a351f1e64c8657cacada08bdbada0b | refs/heads/master | 2021-01-14T16:04:03.282548 | 2019-10-27T18:09:40 | 2019-10-27T18:09:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,151 | py | #!/usr/bin/python
#
##################################################
######## Please Don't Remove Author Name #########
############### Thanks ###########################
##################################################
#
#
__author__='''
Suraj Singh
surajsinghbisht054@gmail.com
http://bitforestinfo.bl... | [
"surajsinghbisht054@gmail.com"
] | surajsinghbisht054@gmail.com |
250bd77824bcedf7034eb92f335b65c75371bac9 | c6abddbc632b2362db0817aeab89387ea6a92902 | /qiskit/extensions/standard/ry.py | 5ac582759d10f05f7b9c33e624e57ba90dae61a4 | [
"Apache-2.0"
] | permissive | azulehner/qiskit-sdk-py | 10c3c8d5e198e06e668d356bb78a98b279c8b3b8 | 138484e41eb8bd504f3b6977e267efdd0d9f208b | refs/heads/master | 2021-05-12T19:59:23.051113 | 2018-01-11T09:12:18 | 2018-01-11T09:12:18 | 117,109,018 | 2 | 0 | null | 2018-01-11T14:11:08 | 2018-01-11T14:11:07 | null | UTF-8 | Python | false | false | 2,131 | py | # -*- coding: utf-8 -*-
# pylint: disable=invalid-name
# Copyright 2017 IBM RESEARCH. 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/licen... | [
"diego.plan9@gmail.com"
] | diego.plan9@gmail.com |
0185585a72a6d43205d0b55e5098876e40118a49 | 1726f4c11106d09313324d12d274705540baa9f4 | /server/apps/rooms/urls.py | 56e2c3207ecacd33289f58af7f389a47a8768e7b | [] | no_license | AlAstroMoody/chat | 3c1f33a343c72836867587200abbe2adedf0bbc4 | 7a528d62ccf5e4ed1d478a6479e41d37d08b87f8 | refs/heads/main | 2023-03-25T04:29:55.547258 | 2021-03-15T02:30:19 | 2021-03-15T02:30:19 | 347,811,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | from django.urls import path
from .views import RoomView
from .views import ReportView
rooms_urlpatterns = [
path('room/', RoomView.as_view(), name='room'),
path('room/<uuid:uuid>-<str:token>/report/', ReportView.as_view(), name='report'),
]
| [
"aastrotenko@mail.ru"
] | aastrotenko@mail.ru |
232ae1fa95eccd3f919594407f942bf53ac1636b | 6c3dbc51b19ddd21c389de79c29fa3706fc44733 | /models/cnn_bilstm_attention.py | 823f648be7ed06d81bfbd1e5e92a28a9c426eb31 | [
"MIT"
] | permissive | Eurus-Holmes/Tumor2Graph | 7db12920a21b1b8609087fd9d7ceb245420cb536 | 6e52748d8cd2e8fe33092e2c67e92e6454a964b3 | refs/heads/main | 2023-07-07T22:15:17.869378 | 2021-09-02T03:31:46 | 2021-09-02T03:31:46 | 390,660,583 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,951 | py | from torch import nn
import torch
import torch.nn.functional as F
class TextCNN(nn.Module):
def __init__(self, feaSize, contextSizeList, filterNum, name='textCNN'):
super(TextCNN, self).__init__()
self.name = name
moduleList = []
for i in range(len(contextSizeList)):
modu... | [
"noreply@github.com"
] | Eurus-Holmes.noreply@github.com |
18f94647b65564f8455ffaaba1d6773b058d9354 | 6a2c101774903441bc43bcafaef788a7465d38bb | /music_controller/spotify/migrations/0001_initial.py | 6d380eb7954ae335440d0885ddd1edc8b8424db7 | [] | no_license | naistangz/house-party | 9faa66e12a528881cd7e613fede9da2a1ccf8c19 | 2bad502dececbdf7d273c14b9ea96dd9dc9a0c45 | refs/heads/main | 2023-02-17T04:35:31.012691 | 2021-01-17T12:07:36 | 2021-01-17T12:07:36 | 330,140,403 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | # Generated by Django 3.1.4 on 2021-01-03 14:17
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='SpotifyToken',
fields=[
('id', models.AutoF... | [
"a6anaistang@hotmail.co.uk"
] | a6anaistang@hotmail.co.uk |
2f58447eca540956aaaab1ccc21b07ff3717c1a8 | 4d2443d54c8a1104cad8ecc60e417e8a5af69450 | /entertainment_center.py | e0bef0107dacc1b001e5bdd21b53091f6f0b3a90 | [] | no_license | xueweiyema/movie_website | 4fa73dfbaf0a395e72eb6edcf91995dd5a2136e5 | 9770f994a291b51d4fd1a7032fc21a5ac3c537aa | refs/heads/master | 2021-01-19T07:09:44.646186 | 2017-04-24T06:41:19 | 2017-04-24T06:41:19 | 87,527,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,334 | py | import media
import fresh_tomatoes
titles = [
"Pirate Radio", "The Social Network", "Hidden Figures", "The Martian",
"Good Will Hunting", "The Lives of Others"
]
storylines = [
'''A band of rogue DJs that captivated Britain, playing the music that defined a generation and
standing up to a government t... | [
"123456"
] | 123456 |
34e2afbf4f41a4aff51f96b7411be3d80992143d | 95495baeb47fd40b9a7ecb372b79d3847aa7a139 | /swagger_client/models/i_ospfv3_log_adjacency_changes.py | 7ded1a2c2292e58b760cb914f7d1efd4e458559b | [] | no_license | pt1988/fmc-api | b1d8ff110e12c13aa94d737f3fae9174578b019c | 075f229585fcf9bd9486600200ff9efea5371912 | refs/heads/main | 2023-01-07T09:22:07.685524 | 2020-10-30T03:21:24 | 2020-10-30T03:21:24 | 308,226,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,614 | py | # coding: utf-8
"""
Cisco Firepower Management Center Open API Specification
**Specifies the REST URLs and methods supported in the Cisco Firepower Management Center API. Refer to the version specific [REST API Quick Start Guide](https://www.cisco.com/c/en/us/support/security/defense-center/products-programmi... | [
"pt1988@gmail.com"
] | pt1988@gmail.com |
0e2f843c6f77029a11b47217263877d7bcd0f437 | aeea7889a986e23ababbfc470e5fa97a4982bca0 | /devel/lib/python2.7/dist-packages/pal_interaction_msgs/msg/_WebGuiEvent.py | 068b236c1fdeb1d78c4037e05350bf894fd1ee86 | [] | no_license | robstolarz/sturdy-broccoli | 834798751985a0e77c8791859d9d5a8398da0416 | 2e4ae8f1966f01cab4938b8c5b42e3cfd1d9370a | refs/heads/master | 2021-01-20T07:09:07.867184 | 2017-05-15T14:10:56 | 2017-05-15T14:10:56 | 89,967,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,214 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from pal_interaction_msgs/WebGuiEvent.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class WebGuiEvent(genpy.Message):
_md5sum = "bd4a90be174b9e14b06cf397c1359fb1"
_... | [
"robert.stolarz@yandex.com"
] | robert.stolarz@yandex.com |
d86ce35082ffe54da97e3fc64900cb94273d31e3 | 01031a3d3a33f7591185049e0e44526d9b852821 | /SLAM/FastSLAM/fast_slam.py | 5fb58f0f6c79cffce9e14f0fb876674a3d575e77 | [
"MIT"
] | permissive | matthewgan/PythonRobotics | 8555e2afe95d09c12c5e18ab4658b8e9e3f6817c | ba926c6307e353dbef0d6ee67f5156ec923dc974 | refs/heads/master | 2021-04-06T03:39:43.702250 | 2018-03-10T18:38:06 | 2018-03-10T18:38:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,420 | py | """
Fast SLAM example
author: Atsushi Sakai (@Atsushi_twi)
"""
import numpy as np
import math
import matplotlib.pyplot as plt
# EKF state covariance
Cx = np.diag([0.5, 0.5, math.radians(30.0)])**2
# Simulation parameter
Qsim = np.diag([0.2, math.radians(1.0)])**2
Rsim = np.diag([1.0, math.radians(10.0)])**2
DT... | [
"asakai.amsl+github@gmail.com"
] | asakai.amsl+github@gmail.com |
1cc5122e5c66d396e0dc0b524d9525bc39c29fb8 | 9f7c106d50681b394d822fbdc5e3ad25f04d927c | /week6_nissi_miika/week6_ass10_nissi_miika.py | ffc57d3b785e28d30b956c0c90436868710caa64 | [] | no_license | miikanissi/python_course_summer_2020 | edf032b1d9815dfa6e0b5f7c902f7b469117c04f | 3969288b969b3db8f9d7f2fdb67905f13d4969fa | refs/heads/master | 2022-12-02T09:33:42.625374 | 2020-08-24T17:38:59 | 2020-08-24T17:38:59 | 273,909,320 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | def search(array, n):
for i in array:
if i == n:
return True
return False
arr = [23,4,89,19,0,700,30]
print("Number 19 found: ", search(arr, 19))
print("Number 20 found: ", search(arr, 20))
| [
"unconfigured@null.spigotmc.org"
] | unconfigured@null.spigotmc.org |
52fe8f06f0857f20301770af0233c347deb1dcc6 | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/reservation/azext_reservation/aaz/latest/reservations/reservation/_archive.py | 734b5fe8a45e886531655e01256e5a4e690f51e7 | [
"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 | 3,904 | 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
# --------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
e70678a04a2923ec5b42793b99a701886f815120 | 023763d9f86116381f5765c51fb8b403e8eef527 | /Other/M-SOLUTIONS プロコンオープン 2020/m_solutions2020_c.py | a2a8e2a8ef4bdc030af9099c1af7be71984e6691 | [] | no_license | Hilary02/atcoder | d45589682159c0f838561fc7d0bd25f0828e578b | 879c74f3acc7befce75abd10abf1ab43967fc3c7 | refs/heads/master | 2021-07-18T11:34:22.702502 | 2021-07-11T09:04:12 | 2021-07-11T09:04:12 | 144,648,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | n, k = [int(w) for w in input().split()]
la = [int(w) for w in input().split()]
for i in range(k, n):
cond = la[i] > la[i-k]
print("Yes" if cond else "No")
| [
"c011605154@edu.teu.ac.jp"
] | c011605154@edu.teu.ac.jp |
f8392b31b550f3e9534ab9a3e39f8baed6780ccb | bd5c1f86971a068e9a4ea57459653d649ea4c50e | /tests/unit/test_util.py | 18973c6f16a056c938ac6e25dcb06fc61da6117c | [
"MIT"
] | permissive | monoflo/bloop | 553372c7155de386afd098e3c91435186064a5d4 | c476298e5a40decf9fdf2ed50df74be8f91fdffd | refs/heads/master | 2020-04-06T12:54:19.184591 | 2018-11-14T22:06:01 | 2018-11-14T22:06:01 | 157,475,484 | 0 | 0 | MIT | 2018-11-14T02:04:44 | 2018-11-14T02:04:44 | null | UTF-8 | Python | false | false | 3,510 | py | import collections
import gc
import pytest
from bloop.models import BaseModel, Column
from bloop.types import Integer
from bloop.util import (
Sentinel,
WeakDefaultDictionary,
index,
ordered,
walk_subclasses,
)
def test_index():
"""Index by each object's value for an attribute"""
class P... | [
"joe.mcross@gmail.com"
] | joe.mcross@gmail.com |
321af11c680482b013a293d81093854eec9201fc | 4680b7f858232806ea15bf2464ec4b6401d93cf0 | /src/joins/models.py | e62ea42028a7e3943d20ac673c2baa3bcb0d8b56 | [] | no_license | Tushant/socialSharingCampaign | 69017e602648ea8ef6e02092668039d61844b61f | 96dc8176be1cf64e9ef4ec6a305c61666612be20 | refs/heads/master | 2020-04-02T06:45:17.103905 | 2016-07-18T02:09:51 | 2016-07-18T02:09:51 | 63,562,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,079 | py | from django.db import models
# Create your models here.
class Join(models.Model):
email = models.EmailField()
friend = models.ForeignKey("self", related_name='referral',\
null=True, blank=True)
ref_id = models.CharField(max_length=120, default='ABC', unique=True)
count_added = models.ForeignKey("self",n... | [
"programmertushant@gmail.com"
] | programmertushant@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.