blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e5d323d8c1600cbe6084b699f4ad2b6e07e1d5b5 | fbc2678b5de0c14a6e417c01168e35a4bb8fe91a | /src/translator/setup.py | 0a3ffc75982ea00c0aa3b59065c56b3726b86356 | [] | no_license | Kotaimen/sam-lambda-edge-translator | 16dbfbe7a30eb6b3d1369ce7c297273c2f33cbbb | cb95d616d5891a22b43b86f8daf2da240c118e68 | refs/heads/master | 2022-12-10T18:17:41.057907 | 2020-02-14T15:13:43 | 2020-02-14T15:13:43 | 240,535,647 | 0 | 0 | null | 2022-12-08T03:36:50 | 2020-02-14T15:11:43 | Python | UTF-8 | Python | false | false | 270 | py | from setuptools import setup, find_packages
setup(
name="translator",
version="1.0",
packages=find_packages(exclude=["tests.*", "tests"]),
include_package_data=True,
package_data={
# 'package': ['filename']
},
install_requires=[],
)
| [
"kotaimen.c@gmail.com"
] | kotaimen.c@gmail.com |
5d45bfbc4766a6d6ed0e03e7ff26676d5597b454 | 506fcf32c755ef3eb79c0369cdb76c106c4b7a55 | /timeseries/utils.py | d556e29dc7dc5ad687beb938735b252739fe125e | [] | no_license | mindis/mynlp | 42a1d40df060406dc17ed35f3d0ee7855209e14b | d470e96935cd47b69c76b273b70aeb07d460b08d | refs/heads/master | 2020-08-07T11:37:13.576679 | 2019-10-07T07:18:45 | 2019-10-07T07:18:45 | 213,434,660 | 0 | 1 | null | 2019-10-07T16:37:12 | 2019-10-07T16:37:12 | null | UTF-8 | Python | false | false | 29,990 | py |
from dbmanager import SqlManager
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from collections import OrderedDict
def normalize(arr_x, eps=1e-6, M=None):
if M is None:
return (arr_x - np.mean(arr_x, axis=0)) / (np.std(arr_x, axis=0) + eps)
else:
# return (arr_x - np... | [
"ainklain@gmail.com"
] | ainklain@gmail.com |
ca630ab63a475c278ea9ac110b08e4dec53ff4b6 | 2b6b6a1729abd9023736ab1b38704ad38b2efe59 | /functions-basics-fundamentals/smallest_of_three_numbers.py | 652f41b443da9a5604796547469f5331614da6ef | [] | no_license | DavidStoilkovski/python-fundamentals | 27fc3381c9ec3f5a792beca8bc778dc32d6ada7a | 782a2376210e9564265b17db6f610e00ffd99c9c | refs/heads/main | 2023-04-03T10:39:30.762453 | 2021-04-13T06:51:51 | 2021-04-13T06:51:51 | 357,452,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | import sys
num_1 = int(input())
num_2 = int(input())
num_3 = int(input())
def small(num_1, num_2, num_3):
smallest_of_all = sys.maxsize
if num_1 <= smallest_of_all:
smallest_of_all = num_1
if num_2 <= smallest_of_all:
smallest_of_all = num_2
if num_3 <= smallest_of_all:
smalles... | [
"stoilkovskidavid@gmail.com"
] | stoilkovskidavid@gmail.com |
bfc9c5c6d1069c9925eefc45287d32e63063fce8 | f648c5b25d4df1db47474b6ec57e0aaa6790800a | /isso/utils/__init__.py | de3be2b13161aaf9d1ce35510ad4ef9dc78c1a08 | [
"MIT"
] | permissive | waytai/isso | e35959eb4fa8c23107ecdf493fd74e6869fcb5a7 | 6d9f43939a5a1407fe8343158493a9b30545a196 | refs/heads/master | 2020-04-15T09:48:46.320438 | 2013-11-05T13:15:16 | 2013-11-05T13:33:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,006 | py | # -*- encoding: utf-8 -*-
from __future__ import division
import pkg_resources
werkzeug = pkg_resources.get_distribution("werkzeug")
import json
import random
import hashlib
from string import ascii_letters, digits
from werkzeug.wrappers import Request
from werkzeug.exceptions import BadRequest
import ipaddress
... | [
"info@posativ.org"
] | info@posativ.org |
73b3aa3eb0eafa7c981e958cd9edfcce0db2f3af | 0049d7959ff872e2ddf6ea3ce83b6c26512425a6 | /templateProject1/testApp/views.py | 46d23b84d0f2fdb60a2e8dd2df093a803f548e12 | [] | no_license | srazor09/Django_projects | 9806ab25d966af780cdabe652a1792220c7806a8 | 8d664ba4c9478bd93c8e5bcbcaf594e8ffe6ce93 | refs/heads/master | 2023-04-18T02:13:15.993393 | 2021-05-04T20:34:05 | 2021-05-04T20:34:05 | 364,379,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | from django.shortcuts import render
import datetime
# Create your views here.
def tempView(request):
date= datetime.datetime.now()
MyDictionary={'date_msg' : date}
return render(request, 'testApp/wish.html',context=MyDictionary)
| [
"sourabhaws09@gmail.com"
] | sourabhaws09@gmail.com |
734ce064902baeb13c6ee7a20c31d6f617d3a987 | 85eff920f0f285abad84c2f6bcfd4f236f3976ab | /webservices/migrations/0196_auto_20191106_0835.py | d3022e801061abd061dec41ad3ec0334b32d3d5c | [] | no_license | obxlifco/Web-Picking-App-GoGrocery | 8cf5f7924005a19764e5c4722a47bfd963965f2e | 6b084547bed2af43a67bada313d68e56f4228f96 | refs/heads/main | 2023-05-26T08:32:30.297317 | 2021-06-12T10:05:01 | 2021-06-12T10:05:01 | 315,206,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 686 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.17 on 2019-11-06 08:35
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('webservices', '0195_auto_20191106_0658'),
]
operations = [
migrations.AddF... | [
"mjamal@lifcoshop.net"
] | mjamal@lifcoshop.net |
b33a52e10e6db1235a8a3804773fe7a1cd6c10f9 | 3873b03ac81354d4ed24e94df5fa8429e726bbd2 | /titles/9. 回文数.py | dce4385d060f8329f8bf8360f90039b94634f4b7 | [] | no_license | lichangg/myleet | 27032f115597481b6c0f3bbe3b83e80b34c76365 | 3d5a96d896ede3ea979783b8053487fe44e38969 | refs/heads/master | 2023-03-21T15:50:14.128422 | 2021-03-16T09:58:07 | 2021-03-16T09:58:07 | 286,616,721 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
class Solution:
def isPalindrome(self, x: int) -> bool:
s=str(x)
div, mod = divmod(len(s), 2)
if div == 0:
return True
if mod:
left = s[:div]
right = s[div+1:]
else:
left=s[:div]
... | [
"lcg@ichunt.com"
] | lcg@ichunt.com |
93dda13c0501663cb66488d10bd6e44c5d682c67 | 1fdd2c6bb53dd8ddeba28c89ba1b65c692875999 | /backend/apps/groups/models.py | c075f6c0d7e86200642688a5a1560c4cdd47cb09 | [] | no_license | Alymbekov/test_task_SynergyWay | 782d0109cd7b63bdf5d0c05603f568da641af3f2 | 4ad07c393af1dec8395dcb754060d130ecea9fa6 | refs/heads/master | 2023-08-01T17:09:19.417147 | 2021-01-27T11:09:36 | 2021-01-27T11:09:36 | 254,460,227 | 2 | 1 | null | 2021-09-22T18:52:01 | 2020-04-09T19:26:31 | JavaScript | UTF-8 | Python | false | false | 318 | py | from django.db import models
#model to group table
class Group(models.Model):
name = models.CharField("Name", max_length=150)
description = models.TextField()
def __str__(self):
return self.name
class Meta:
verbose_name = "Group"
verbose_name_plural = "Groups"
| [
"maxim.makarov.1997@mail.ru"
] | maxim.makarov.1997@mail.ru |
8793c6db98cfca73fc7b88ee015d243cd56599de | 47343c9191f7fcfefae38b2d8160d39ba9410271 | /O06triplets.py | 67b46722768b72fb8ede85e85843143df15a335e | [] | no_license | naveenameganathan/python3 | 01f7c06e48559693b1f132a8223ad9f9855e8a1f | 6bff6f16de0a03dd36bedec140935c3af56b983f | refs/heads/master | 2020-05-23T02:17:31.986878 | 2019-07-25T17:36:39 | 2019-07-25T17:36:39 | 186,600,896 | 1 | 4 | null | 2019-10-03T15:15:09 | 2019-05-14T10:35:52 | Python | UTF-8 | Python | false | false | 195 | py | p = int(input())
q = list(map(int,input().split()))
c = 0
for i in range(p):
for j in range(i,p):
for k in range(j,p):
if q[i]<q[j]<q[k]:
c+=1
print(c)
| [
"noreply@github.com"
] | naveenameganathan.noreply@github.com |
466f6d308bfa6a49b30cb74662ecf377c760868a | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /_MY_ORGS/Web-Dev-Collaborative/blog-research/database/pg-admin/web/pgadmin/browser/server_groups/servers/databases/schemas/catalog_objects/__init__.py | 20742bf633361e0adfaa1ea875e4a38e85ffa162 | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 10,270 | py | ##########################################################################
#
# pgAdmin 4 - PostgreSQL Tools
#
# Copyright (C) 2013 - 2020, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
##########################################################################
""" Implements Ca... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
8c65c2b3eb2119cfd46107cce6a001a83f375c82 | 633944f913050debf0764c2a29cf3e88f912670e | /v8/depot_tools/bootstrap-3.8.0b1.chromium.1_bin/python3/lib/python3.8/_collections_abc.py | 17eff4c6e6175623f81fa90d8d003f0dd18736f1 | [
"BSD-3-Clause",
"bzip2-1.0.6",
"SunPro",
"Apache-2.0"
] | permissive | bopopescu/V8-lgtm | 0474c2ff39baf754f556ef57619ceae93e7320fd | da307e2f7abfca5fa0e860a809de6cd07fd1b72b | refs/heads/master | 2022-02-16T19:10:54.008520 | 2019-09-25T07:51:13 | 2019-09-25T07:51:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | ../../../.cipd/pkgs/2/_current/lib/python3.8/_collections_abc.py | [
"jundong.xjd@antfin.com"
] | jundong.xjd@antfin.com |
0c33e9bbe8b36c3a0676bca201898fcecad7e191 | e36225e61d95adfabfd4ac3111ec7631d9efadb7 | /problems/CR/auto/problem220_CR.py | b03a0e4f5f53ef2573a1700d9c1d7cd085e3998f | [
"BSD-3-Clause"
] | permissive | sunandita/ICAPS_Summer_School_RAE_2020 | d2ab6be94ac508e227624040283e8cc6a37651f1 | a496b62185bcfdd2c76eb7986ae99cfa85708d28 | refs/heads/main | 2023-01-01T02:06:40.848068 | 2020-10-15T17:25:01 | 2020-10-15T17:25:01 | 301,263,711 | 5 | 2 | BSD-3-Clause | 2020-10-15T17:25:03 | 2020-10-05T01:24:08 | Python | UTF-8 | Python | false | false | 1,071 | py | __author__ = 'patras'
from domain_chargeableRobot import *
from timer import DURATION
from state import state
DURATION.TIME = {
'put': 2,
'take': 2,
'perceive': 2,
'charge': 2,
'move': 2,
'moveToEmergency': 2,
'moveCharger': 2,
'addressEmergency': 2,
'wait': 2,
}
DURATION.COUNTER =... | [
"sunandita.patra@gmail.com"
] | sunandita.patra@gmail.com |
94ad35991846e7a87d4132dc62e43fc41748359e | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D12A/DOCARED12AUN.py | 7112f56f43c44df6e1ef69c397d993862bf477cf | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 751 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD12AUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGM', MIN: 1, MAX: 1},
{ID: 'RFF', MIN: 1, MAX: 2},
{ID: 'DTM', MIN: 0, MAX: 1},
{ID: 'FII'... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
5a0514166417cfcf07b4e5bd79d4dc3fefe912d2 | 4bb31b4cb7b1872933d73dc15b5a2569a70bfad5 | /marktex/marktex.py | 58772ce680b2e33239a2c29d08cef2eb5eb16736 | [] | no_license | chthub/MarkTex | bf27aa402d5bd75d27d6a8b2cf5df19b9035a3d7 | e998a03a5e607524c14bf8ea1c1f79c34e2110f8 | refs/heads/master | 2020-07-04T03:27:25.095562 | 2019-08-02T02:24:30 | 2019-08-02T02:24:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,788 | py | import argparse,sys,os
APP_DESC="""
MarkTex is used to convert markdown document into tex format.
输出位置可以选择:
- 在各自的md文件下 default,最低优先级
- 统一输出到一个目录下 -o "path" ,第二优先级
- 在各自给定的目录下 -e "",优先级最高
输出到对应文件的 "文件名" 所在的目录下:
marktex a.md b.md ...
输出到一个同一的文件夹下:
marktex a.md b.md ... -o "path"
指定输出到各自文件夹,必须保证路径个数和文件个数相同:... | [
"sailist@outlook.com"
] | sailist@outlook.com |
83a957a1f924f564aa7c20dbadd7d44be83ce692 | 255021fadf9f739db042809ca95f5b9f75609ec5 | /test_3/프로그래밍1.py | f14fdf6f552ef6ddf444a58ca15a9d0876f43729 | [] | no_license | unsung107/Algorithm_study | 13bfff518fc1bd0e7a020bb006c88375c9ccacb2 | fb3b8563bae7640c52dbe9324d329ca9ee981493 | refs/heads/master | 2022-12-13T02:10:31.173333 | 2020-09-13T11:32:10 | 2020-09-13T11:32:10 | 295,137,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | M, C = map(int,input().split())
messages = []
for _ in range(M):
messages.append(int(input()))
consumers = [[False] * 1001 for _ in range(C)]
max_idx = 0
for idx in range(1, 1001):
for c in range(C):
if not consumers[c][idx]:
gap = messages.pop(0)
consumers[c][idx: idx + gap] = [... | [
"unsung102@naver.com"
] | unsung102@naver.com |
ee2d685b30f2cc02ae06dc9f61a71fb82adf6363 | 6066b2af4b4f6ab967cfb8af8ec3b8ee68545ab9 | /nyenyenye/main.py | fb4d33da1a846dda10914eb8bab04e0886a20720 | [] | no_license | zsbati/PycharmProjects | 7b29b210b4878af42baf288c585675d0203b9805 | c13b05901c5ff8ea6fc7bcb61c70aa40940daa56 | refs/heads/main | 2023-09-04T09:01:19.315655 | 2021-10-24T16:24:43 | 2021-10-24T16:24:43 | 401,172,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | # import string library function
import string
# Storing the value in variable result
result = string.digits
# Printing the value
print(help(string.digits))
'''print("I am = I'm")
print("I have = I've")
print("I have = I've")
print("I had / would = I'd")'''
| [
"zbati123@gmail.com"
] | zbati123@gmail.com |
c0894817b359f565a61787e0b5398c3034bd645b | c90b3ac3e5ad11cb93d4e6b76b9b9c4a19d0f512 | /.history/test_20200506092929.py | e9356e56f63da20a4420f3d3da4141f231c536e3 | [] | no_license | rbafna6507/passwordstorageproject | 6465585e36c81075856af8d565fe83e358b4a40a | 480c30e358f7902ac0ef5c4e8d9556cb1d6d33f4 | refs/heads/master | 2022-11-25T12:05:02.625968 | 2020-07-27T21:33:38 | 2020-07-27T21:33:38 | 283,021,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | import pickle
import cryptography
from cryptography.fernet import Fernet
infile = open('pass.pkl','rb')
j = pickle.load(infile)
print(j)
delpass = input("Password to delete")
if "Website: " + delpass in j:
del j["Website: " + delpass]
outfile = open("test.pkl", "wb")
pickle.dump(j, outfile)
outfile.clo... | [
"35872545+rbafna6507@users.noreply.github.com"
] | 35872545+rbafna6507@users.noreply.github.com |
89b2ed2a19339c16c57af10bafb39f0f2d9fe6c9 | 34a5f5b1624231fe953c913b012ac8a9d83dbaab | /tests/conftest.py | 3a76ad0a2777e2db4f551cd430d9c4f2389c1e1e | [
"MIT"
] | permissive | isprojects/djangorestframework-inclusions | af13cc17b07a674c91c43004f8f27278ac8c5e65 | c2ff654254e4ef7dbadd264004b70e0efce44327 | refs/heads/master | 2022-07-25T00:44:29.344113 | 2022-07-11T10:44:25 | 2022-07-11T10:44:25 | 205,416,015 | 1 | 1 | MIT | 2023-08-22T19:17:12 | 2019-08-30T16:10:25 | Python | UTF-8 | Python | false | false | 84 | py | # import pytest
# @pytest.fixture
# def some_fixture(request):
# return 'foo'
| [
"sergei@maykinmedia.nl"
] | sergei@maykinmedia.nl |
8b279338ed20386759c69d0309066bcbcc446e53 | 6aa581498844a9bd5fdcff7efb80cb97646eef28 | /app/manage.py | aadd00f3245ce9f842f46968c2a68e20a181fb80 | [] | no_license | jgj1018/HouseholdLedger | 5325b892610f438fd28957a3ac90a277dede5f49 | 6f756e03fe7ac3ef2b7f1cbea67951a0c3347826 | refs/heads/master | 2022-12-11T00:20:49.282474 | 2018-09-27T14:40:17 | 2018-09-27T14:40:17 | 124,239,980 | 0 | 0 | null | 2022-12-08T00:59:38 | 2018-03-07T13:28:38 | Python | UTF-8 | Python | false | false | 547 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "HouseholdLedger.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Djan... | [
"pjw6454@hotmail.com"
] | pjw6454@hotmail.com |
fe9d900ddf672433c7aab61886618fa4fbecd0ef | e3bb7c26a8bcdc9a241feaa8d1c7b4edf936ec21 | /mini服务器/装饰器/01.无参数无返回值的装饰器.py | af894c7d4b84efbf7dc5e4fa1c986c93ddbb9665 | [] | no_license | hezudao25/learnpython | a3b797caf72017c16455ed014824fe6cd0fdb36d | 1a9dbe02ac442ab8d2077a002e6a635c58bbce04 | refs/heads/master | 2020-04-24T07:44:34.664354 | 2019-07-26T05:50:05 | 2019-07-26T05:50:05 | 171,807,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | import time
def set_func(func):
def call_func():
start_time = time.time()
func()
stop_time = time.time()
print("alltimeis %f" % (stop_time - start_time))
return call_func
@set_func # 等价于 test1 = set_func(test1)
def test1():
print("----test1-----")
for i in range(10000)... | [
"hezudao@msn.cn"
] | hezudao@msn.cn |
f9ee0e4095188a538b77e1bf3334f8d98d7da304 | 552ba1ede64e20980227e70c2e7fe2ee9c5f6a33 | /tiny_tf/transformer.py | 47a90c0c5bb0a861c6b97626d45ea30ca68c8398 | [
"MIT"
] | permissive | felixvd/tiny_tf | b7f5f3a573bbcd1ac15082e9fb0c53277aaf3a1a | d8f2c75e0da935450c4f7be1c87f79b2a75d1278 | refs/heads/master | 2020-05-16T03:19:38.460245 | 2019-09-04T07:45:54 | 2019-09-04T07:45:54 | 182,678,256 | 0 | 0 | null | 2019-04-22T08:48:31 | 2019-04-22T08:48:31 | null | UTF-8 | Python | false | false | 2,956 | py | from .tf import *
import numpy as np
from . import transformations as tft
from collections import namedtuple
from . import geometry_msgs
class Transformer(TFTree):
"""
This class implements the same interfaces as the ROS tf.TransformListener().
"""
def __init__(self):
super(Transformer, self).... | [
"FvDrigalski@gmail.com"
] | FvDrigalski@gmail.com |
a2c508ad7151b2721bd977a375212ace036c9aee | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/matrix-org_synapse/synapse-master/synapse/util/distributor.py | e68f94ce77728d0cc5352cc5c70b8de90ef915b5 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 4,894 | py | # -*- coding: utf-8 -*-
# Copyright 2014-2016 OpenMarket Ltd
#
# 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 applicab... | [
"659338505@qq.com"
] | 659338505@qq.com |
d6b9b87dc0ed9d99ee881951dfc88458945e2338 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/fv/rsnodeatt.py | c5291275b6bf8c7b5bc74f6ce6e28e5a557006b0 | [] | 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 | 11,117 | 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... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
f60c32358ba29e0c6f5f181e16c9a9be15c3a970 | 7275f7454ce7c3ce519aba81b3c99994d81a56d3 | /sp1/python数据采集/数据采集基础/数据采集基本操作.py | a785c16fafcc2c6f8a703fe2c97dc5fc18c6eb6d | [] | no_license | chengqiangaoci/back | b4c964b17fb4b9e97ab7bf0e607bdc13e2724f06 | a26da4e4f088afb57c4122eedb0cd42bb3052b16 | refs/heads/master | 2020-03-22T08:36:48.360430 | 2018-08-10T03:53:55 | 2018-08-10T03:53:55 | 139,777,994 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,274 | py | import requests
from bs4 import BeautifulSoup
#基本操作
# url = "http://www.pythonscraping.com/pages/page1.html"
# response = requests.get(url)
# soup = BeautifulSoup(response.text,"html.parser")
# print(soup)
# url = "http://www.pythonscraping.com/pages/warandpeace.html"
# response = requests.get(url)
# soup = Beautifu... | [
"2395618655@qq.com"
] | 2395618655@qq.com |
1b2cbcdf8cbd74d19c9b1c21e3a7b338517052e2 | 863bc319e092b5127037db0ead15e627e4b0ac72 | /Uncertainty/data/case-ln/case_ln_134.py | 01644cbd293c6c88784a140d75aec16a9f2e23fd | [
"MIT"
] | permissive | thanever/SOC | ea349e61eebef7f31c610765cd5db1be14b60800 | 7dc33e9f4713d012f206385452987579f46b63eb | refs/heads/master | 2023-08-27T04:57:38.825111 | 2023-08-07T03:20:42 | 2023-08-07T03:20:42 | 212,486,054 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 321,690 | py | from numpy import array
def case_ln_134():
ppc = {"version": '2'}
ppc["baseMVA"] = 100.0
ppc["bus"] = array([
[1.0, 1.0, 71.1786, 18.981, 0.0, 0.0, 1.0, 1.0, 0.0, 220.0, 1.0, 1.1, 0.95, 0.6, 10 ],
[2.0, 1.0, 0.0, 0.0, 0.0, 0.0, ... | [
"hantong.eee@gmail.com"
] | hantong.eee@gmail.com |
f90e35118bc900eb7fd7bae46ae226fb1c0c5d5b | 18fd2d9e1d191fef2f5f91150e02e28968c2e648 | /acousticsim/analysis/praat/wrapper.py | 281cac24338bbe9c2b0d64f529a1ec4c09a2873d | [
"MIT"
] | permissive | JoFrhwld/python-acoustic-similarity | 8f69366f1d8d019d7a6e8ebc489f54817f9640a3 | 50f71835532010b2fedf14b0ca3a52d88a9ab380 | refs/heads/master | 2021-01-21T12:49:36.635149 | 2017-05-15T23:38:28 | 2017-05-15T23:38:28 | 91,800,742 | 5 | 2 | null | 2017-05-19T11:50:00 | 2017-05-19T11:50:00 | null | UTF-8 | Python | false | false | 1,721 | py |
import os
from subprocess import Popen, PIPE
import re
from acousticsim.exceptions import AcousticSimPraatError
def run_script(praat_path, script_path, *args):
com = [praat_path]
if praat_path.endswith('con.exe'):
com += ['-a']
com +=[script_path] + list(map(str,args))
err = ''
text = '... | [
"michael.e.mcauliffe@gmail.com"
] | michael.e.mcauliffe@gmail.com |
28f9e049ec91d5c2e0ec93c0191bb5cc0c0a637a | d52413173437ba73ecdf822ca895e659f00a8ce7 | /kiwibackend/doc/python/PBMailOperationMessage_PBRequest.py | f070f6913cf1cd1e944af7681f07a4ce67799865 | [] | no_license | whiteprism/mywork | 2329b3459c967c079d6185c5acabd6df80cab8ea | a8e568e89744ca7acbc59e4744aff2a0756d7252 | refs/heads/master | 2021-01-21T11:15:49.090408 | 2017-03-31T03:28:13 | 2017-03-31T03:28:13 | 83,540,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | class PBMailOperationMessage_PBRequest():
def __init__(self):
self.category = -1
self.ids = []
self._type = -1
| [
"snoster@163.com"
] | snoster@163.com |
254cfb11f499f91c88e065d67f9d232f7e5373f5 | e3372811e34edd1f8d79b2a858c5c92c3e6ef187 | /tools/infer_simple.py | b700782f5aa69a983dbdb8ddf3edb90dff12e94e | [] | no_license | zhangjunyi1225054736/--object-detection | 632481351246acaef6b0cc6aa71962c318d46a8a | d99f6f57cdb457ec3f2df489addfde43ab2910fc | refs/heads/master | 2020-05-29T21:22:28.211748 | 2019-06-06T13:08:52 | 2019-06-06T13:08:52 | 189,377,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,301 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import argparse
import distutils.util
import os
import sys
import pprint
import subprocess
from collections import defaultdict
from six.moves import xrange
# Use a non-interactive backend
import matplotlib
mat... | [
"1225054736@qq.com"
] | 1225054736@qq.com |
ff3b8c788d9f8fb092eb5e9315de1af5c03c17ca | c259bd9e4a570a1fa37949655530d778e5f5c46d | /mysite/.history/api/views_20211014221913.py | 04b9cb96204ba7896ab0e5bc6b0b85d122af5423 | [] | no_license | ritikalohia/django-rest-students | 0cc56f435b7b2af881adfd7cace54eef98213c57 | ca5f9f466fcd74fef8ce91f019bcb6e7d83c8e20 | refs/heads/main | 2023-08-15T21:51:18.988691 | 2021-10-14T18:19:04 | 2021-10-14T18:19:04 | 417,219,011 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,259 | py | from django.shortcuts import render
# Create your views here.
from rest_framework.decorators import api_view
from rest_framework.response import Response
from .serializers import NoteSerializer
from .models import Student
from api import serializers
@api_view(['GET'])
def getRoutes(request):
routes = [
{
... | [
"rtklohia@gmail.com"
] | rtklohia@gmail.com |
e03958b15c21ba4d88cb19941e55e1bc98cd51b9 | 3117c5e4a69b8486697c589ab3a033353be29f06 | /sRNAtoolboxweb/setup.py | fccede6fdb81e7f682d6f6ecc24eac6bafc6499d | [] | no_license | sert23/toolbox | 963f301e1af883a55dc11db9ac6372023d85de91 | a9af88a3164c5a6b5ace6a84a6b95d63265edf99 | refs/heads/master | 2023-09-01T01:46:05.808848 | 2021-11-19T16:41:25 | 2021-11-19T16:41:25 | 89,683,230 | 1 | 7 | null | 2022-12-26T19:46:46 | 2017-04-28T08:04:16 | Python | UTF-8 | Python | false | false | 1,113 | py | import os
from setuptools import find_packages, setup
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='srnatoolboxweb',
version='2.0.0',
packages=find_packages(),
python_modules=['manage'],
include_package_data=Tru... | [
"antonio.rueda-martin@genomicsengland.co.uk"
] | antonio.rueda-martin@genomicsengland.co.uk |
a5e14ad2c061f0da44911042f3f9e6acc294beed | 97dfe708031ce9d52c3309b41a8c458d7846096c | /setup.py | 0ca4d1e6521e23a70ad2dd4b4444b1d1c1098d50 | [] | no_license | trainapi/trainxtract | 2af79a9dbb7a35a374934d1968591c32fbb23f0b | f5c5078a20c702d0399906bbb3c07f61058a1c72 | refs/heads/master | 2021-08-19T07:42:26.091190 | 2017-11-25T08:02:44 | 2017-11-25T08:02:44 | 111,971,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | from setuptools import setup, find_packages
import itertools
options = dict(
name='trainxtract',
version='0.0.1',
packages=find_packages(),
license='MIT',
install_requires = ['pandas', 'click'],
entry_points = {
'console_scripts' : [
'trainxtract = trainxtract:run_app',
... | [
"jan.pipek@gmail.com"
] | jan.pipek@gmail.com |
e94bbb6a791401e2764951035b0805e4e59c5088 | e38f7b5d46fd8a65c15e49488fc075e5c62943c9 | /pychron/hardware/tasks/hardware_preferences.py | dc6f92027d74b684f471ec51b37f7c612eac702b | [] | no_license | INGPAN/pychron | 3e13f9d15667e62c347f5b40af366096ee41c051 | 8592f9fc722f037a61b0b783d587633e22f11f2f | refs/heads/master | 2021-08-15T00:50:21.392117 | 2015-01-19T20:07:41 | 2015-01-19T20:07:41 | 111,054,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,953 | py | #===============================================================================
# Copyright 2013 Jake Ross
#
# 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/license... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
ee6e0078648f5af14f5e6850f8790d9047604a60 | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/services/types/keyword_plan_ad_group_service.py | 00babde924868763787da18ec7df0fa0a2c36c13 | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,844 | py | # -*- coding: utf-8 -*-
# Copyright 2020 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
760d6d158cc7cb0dbb7d6a1b679e2e04aef1b9cf | 13faa0d553ed6c6a57791db3dfdb2a0580a1695b | /codeforces/509-B/509-B-9647351.py | cc802213c7c9331abad058b7e8f889c9c36ca6d2 | [] | no_license | kautsiitd/Competitive_Programming | ba968a4764ba7b5f2531d03fb9c53dc1621c2d44 | a0d8ae16646d73c346d9ce334e5b5b09bff67f67 | refs/heads/master | 2021-01-17T13:29:52.407558 | 2017-10-01T09:58:23 | 2017-10-01T09:58:23 | 59,496,650 | 0 | 0 | null | 2017-05-20T17:27:18 | 2016-05-23T15:56:55 | HTML | UTF-8 | Python | false | false | 287 | py | n,k=map(int,raw_input().split())
a=map(int,raw_input().split())
l=min(a)
if(max(a)-min(a)>k):
print "NO"
else:
print "YES"
for i in range(n):
for j in range(l):
print 1,
for j in range(l,a[i]):
print j-l+1,
print "" | [
"kautsiitd@gmail.com"
] | kautsiitd@gmail.com |
857bfc2483daf1a2e52e74bddecde55c78c698f1 | 334d0a4652c44d0c313e11b6dcf8fb89829c6dbe | /checkov/dockerfile/checks/RootUser.py | 8989d2c4ec635876e77148d43dddbbd0dbf81b70 | [
"Apache-2.0"
] | permissive | schosterbarak/checkov | 4131e03b88ae91d82b2fa211f17e370a6f881157 | ea6d697de4de2083c8f6a7aa9ceceffd6b621b58 | refs/heads/master | 2022-05-22T18:12:40.994315 | 2022-04-28T07:44:05 | 2022-04-28T07:59:17 | 233,451,426 | 0 | 0 | Apache-2.0 | 2020-03-23T12:12:23 | 2020-01-12T20:07:15 | Python | UTF-8 | Python | false | false | 723 | py | from checkov.common.models.enums import CheckCategories, CheckResult
from checkov.dockerfile.base_dockerfile_check import BaseDockerfileCheck
class RootUser(BaseDockerfileCheck):
def __init__(self):
name = "Ensure the last USER is not root"
id = "CKV_DOCKER_8"
supported_instructions = ["US... | [
"noreply@github.com"
] | schosterbarak.noreply@github.com |
3d71477099cbc4b93820335d2b9ffb4a7e41a779 | 9972675f285280948dd6becc466bc2f2d7efee8a | /swea/tree/practice/hip.py | 3c7f86ee2afdab51a626dd8238d055f109a873ee | [] | no_license | dowookims/ProblemSolving | 308793055e8c1c247b7e00cb89d954d9a5eacf25 | 2183965b222afc7b5b316b9f53b04119384f8b24 | refs/heads/master | 2020-04-23T13:02:47.548120 | 2019-04-04T09:02:52 | 2019-04-04T09:02:52 | 171,189,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | '''
선형 자료구조에서 priority queue 는 선형 자료에서 O(n^2)를 차지해서 이를 대체하기 위해 나온데 힙
힙은 두가지 조건이 맞춰줘야 하는데
1. 구조적인 모습이 완전 이진트리여야 함(앞에서부터 완전히 채워져야 함)
2. 내부 논리 모습은 부모의 노드가 자식보다 항상 크거나 작아야 함(일관성)
최대 힙 : 키 값이 가장 큰 노드를 찾기 위한 완전이진트리
루트가 가장 큰 값을 가지고 있음.
최소 힙 : 최대 힙의 반대
삽입, 삭제가 존재하고, 구조를 유지시켜주게 만들어야 하는게 개발자의 숙명
힙은 프라이어티를 ... | [
"kaei2574@gmail.com"
] | kaei2574@gmail.com |
988d982f36e8a57ee5970b6516e61e75ee50e644 | 7f5a302eb7d93dc528f5c3a39d74f98995babbe4 | /simplemoc/urls.py | eb8ee858fffb3a085d38a3d2fa2efe50e68cb49b | [] | no_license | dennyerikson/simplemoc | d03a11eb63959890648c5801df3bb8a93cb1b490 | e4199dab66e3cbe23d39765b30dcd79d5eae31bb | refs/heads/master | 2020-03-23T22:54:00.859623 | 2018-07-31T19:33:35 | 2018-07-31T19:33:35 | 142,205,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 905 | py | """simplemoc URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-b... | [
"dennyeriks00on@gmail.com"
] | dennyeriks00on@gmail.com |
94008038e6585d268e8b9b63aee85701c8d54241 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03035/s756178683.py | 4862307df990f7a47b56172da80c6d031f7cc917 | [] | 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 | 102 | py | A, B = map(int, input().split())
if A >= 13: print(B)
elif 6 <= A <= 12: print(B // 2)
else: print(0) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
200263997717b99b17f743c02a8f34453f4f5c84 | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-waf/huaweicloudsdkwaf/v1/model/create_value_list_request_body.py | 4bc66144328d7383b9ed3acc25cc45db5dd9dbba | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,143 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class CreateValueListRequestBody:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict):... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
7c15b9536eb43122f435abd77e7f22404733fd0b | 9861218f60ab23d6ac3bc6b400c220abf4e64fb5 | /atividade_d/atividade 'd' lucas neves/q6.py | bf7faf95dd6744f9c3889cd5c8eea96d37cd1c16 | [] | no_license | rogeriosilva-ifpi/adsi-algoritmos-2016.1 | a0b0709eb783110a9b335c8364aa41ce4f90fb24 | 1714e2480b80e46be4d96049e878bf17b692320b | refs/heads/master | 2021-06-06T18:25:00.836715 | 2016-09-07T02:02:30 | 2016-09-07T02:02:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | # Nao sao estas as questoes...
# -*- coding: utf-8 -8-
"""6. Leia uma velocidade em km/h, calcule e escreva esta velocidade em m/s. (Vm/s = Vkm/h / 3.6)"""
velokm = input("Insira um velocidade em k/h: ")
veloms = velokm / 3.6
print "%.1f km/h equivale a %.1f m/s" % (velokm, veloms) | [
"rogerio.silva@ifpi.edu.br"
] | rogerio.silva@ifpi.edu.br |
3171446e524b21ed7612930789ea3980882ec432 | 45b0a75342b3af99039f7848f9556bcc5701ed16 | /setup.py | d03825defd08bac677de6254ed364bf9fd539856 | [
"BSD-3-Clause"
] | permissive | simodalla/pympa-affarigenerali-OLD | acb18e18e68716bde99ecc9dafa67724cce81970 | ab3c885d34a8eebcca76ccd62c3f559baede8c6d | refs/heads/master | 2020-06-05T18:50:54.156687 | 2014-11-15T07:50:10 | 2014-11-15T07:50:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,526 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import organigrammi
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
version = organigrammi.__version__
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
print("You probabl... | [
"simodalla@gmail.com"
] | simodalla@gmail.com |
c49023ff5224e1af90c7b2a2674dea123f28e695 | 30227ff573bcec32644fca1cca42ef4cdd612c3e | /leetcode/array_and_string/array/plus_one.py | 44d2298d96b9ab1d4be89d99d9d0bc0f3e2f88eb | [] | no_license | saurabh-pandey/AlgoAndDS | bc55864422c93e6c93b8432e483394f286ce8ef2 | dad11dedea9ceb4904d6c2dea801ce0172abfc81 | refs/heads/master | 2023-07-01T09:12:57.951949 | 2023-06-15T12:16:36 | 2023-06-15T12:16:36 | 88,239,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,690 | py | #URL: https://leetcode.com/explore/learn/card/array-and-string/201/introduction-to-array/1148/
#Description
"""
Given a non-empty array of decimal digits representing a non-negative integer, increment one to the
integer.
The digits are stored such that the most significant digit is at the head of the list, and each
e... | [
"saurabhpandey85@gmail.com"
] | saurabhpandey85@gmail.com |
93be1cd42df6b6d7eb07e70bbcbcf046809e5ee2 | 8389edf9cef84ece5f94e92eee2e5efeab7fdd83 | /AmazonWishlistScraper/pipelines.py | 07d8b2d0af0c17bf494f389c4d078d97e66c9c98 | [
"MIT"
] | permissive | scotm/AmazonUKWishlistScraper | 7eb6d6f7d6e408852742a55e2eadb09a626e1e99 | 2bb95e31a3204d6a92fed35a71063a3ca9c3dd35 | refs/heads/master | 2020-12-25T15:28:57.233678 | 2016-09-05T11:29:31 | 2016-09-05T11:29:31 | 17,141,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | # Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/topics/item-pipeline.html
from scrapy.contrib.exporter import CsvItemExporter
def remove_goop(text):
return " ".join(text.split())
class AmazonCSVExport(CsvItemExporter):
fields_to_... | [
"scott.scotm@gmail.com"
] | scott.scotm@gmail.com |
a9d2fa168a0a5f2ddd174dc041e5ce763e9f696c | 603284928313c2245b426ab66fff1c237019b55a | /2.78/Sets/toolplus_scene/ops_layer.py | ae6f94b1a86c2f57b404ca80b3d4f1cbc9a301ec | [] | no_license | Pumpkin-Studios/ToolPlus | d663239e61aa1a2676c14c8494c19e4d09de9ffc | fc59449c33358d1087fe798bbdae71cc7bf20778 | refs/heads/master | 2020-04-03T17:55:54.804723 | 2017-12-10T19:30:28 | 2017-12-10T19:30:28 | 155,464,330 | 1 | 0 | null | 2018-10-30T22:57:13 | 2018-10-30T22:26:52 | Python | UTF-8 | Python | false | false | 291,405 | py | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distrib... | [
"cgdroste@gmail.com"
] | cgdroste@gmail.com |
473b9f9a9271ec67bdeb7ba8f50ec9d6a3b791e8 | 3b7474148c07df7f4755106a3d0ada9b2de5efdc | /django/projects/src/backup/www/views.py | ea9233e355201b26cb5f6e7b1d346d901de37605 | [] | no_license | juancsosap/pythontraining | 7f67466846138f32d55361d64de81e74a946b484 | 1441d6fc9544042bc404d5c7efffd119fce33aa7 | refs/heads/master | 2021-08-26T05:37:15.851025 | 2021-08-11T22:35:23 | 2021-08-11T22:35:23 | 129,974,006 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
return HttpResponse('<h1>This is the Root</h1>') | [
"juan.c.sosa.p@gmail.com"
] | juan.c.sosa.p@gmail.com |
036a2e26605dcb8adca9e12f913f0e989a923bfb | aaad70e69d37f92c160c07e4ca03de80becf2c51 | /filesystem/usr/lib/python3.6/_pyio.py | b805c49e9f62dd53e7b3ff719af305f55238b214 | [] | no_license | OSWatcher/ubuntu-server | 9b4dcad9ced1bff52ec9cdb4f96d4bdba0ad3bb9 | 17cb333124c8d48cf47bb9cec1b4e1305626b17a | refs/heads/master | 2023-02-10T18:39:43.682708 | 2020-12-26T01:02:54 | 2020-12-26T01:02:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | {
"MIME": "text/plain",
"inode_type": "REG",
"magic_type": "Python script, ASCII text executable",
"mode": "-rw-r--r--",
"sha1": "f88fc8316a266e9690fc63943b95eb39ae884d95"
} | [
"mathieu.tarral@protonmail.com"
] | mathieu.tarral@protonmail.com |
f6bd82993ae840507e4fbd7155d586ca64141a99 | 625bbdeb7e970fca57b75eafbfaf1d1850f894a6 | /lib/wrangler/assets/__init__.py | 8231dd31b0b8c3ad6be569e302dada2194fcb3c2 | [] | no_license | adorsk/wrangler | e7dd333867c68cf7d6fc092355ba51fc2a8903c9 | caa9bd3e56167066bbb87b374a80b818007a230f | refs/heads/master | 2021-01-02T09:26:04.981721 | 2013-01-14T14:35:11 | 2013-01-14T14:35:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | from .git import GitAsset
from .rsync import RsyncAsset
from .hg import HgAsset
from .url import UrlAsset
| [
"adorsk"
] | adorsk |
a4c5738a473170741a1f6b08a464fd02088bf873 | 7dae5c2536a2e3e2f8efa0480aa71a08a311849d | /migrations/versions/4ad6d590a93f_pass_secure.py | 2d72ec77439f25976b87a3777cdca21e95dfdab5 | [
"MIT"
] | permissive | Derrick-Nyongesa/QwertyBlog | 9a2997d116db39c551193b54f0aecbdb896646da | aa534c6fd475d4cf58f559ef7159b5cefe0ceed3 | refs/heads/main | 2023-04-24T05:18:13.975385 | 2021-05-01T11:15:11 | 2021-05-01T11:15:11 | 363,079,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | """pass_secure
Revision ID: 4ad6d590a93f
Revises: f59a0d1927f8
Create Date: 2021-04-29 14:06:19.867578
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '4ad6d590a93f'
down_revision = 'f59a0d1927f8'
branch_labels = None
depends_on = None
def upgrade():
# ##... | [
"nyongesaderrick@gmail.com"
] | nyongesaderrick@gmail.com |
7fe5a14eea56e4e00848afe7f1069cd9f0415125 | 330aebe4ce7110310cccf68cfe6a4488a78f315e | /samples/RiskManagement/DecisionManager/dm-with-decisionprofilereject-response.py | 6f40ef12e14e17569321bceeb2dbca2ca4ffcceb | [
"MIT"
] | permissive | shalltell/cybersource-rest-samples-python | c8afdae73af8aaa14606f989d7baea8abbf41638 | d92375fb1878ee810f4028a8850e97398533dbd0 | refs/heads/master | 2022-11-01T03:23:33.492038 | 2022-01-28T11:29:44 | 2022-01-28T11:29:44 | 222,025,982 | 0 | 0 | MIT | 2019-11-16T00:43:46 | 2019-11-16T00:43:45 | null | UTF-8 | Python | false | false | 3,994 | py | from CyberSource import *
import os
import json
from importlib.machinery import SourceFileLoader
config_file = os.path.join(os.getcwd(), "data", "Configuration.py")
configuration = SourceFileLoader("module.name", config_file).load_module()
# To delete None values in Input Request Json body
def del_none(d):
for ke... | [
"gnongsie@visa.com"
] | gnongsie@visa.com |
6107c9b99f080aadc2604b747d9111565a5bf906 | b16ebbadfd630b92068645ec671df8182fadf4fc | /registration_redux/signals.py | 1b40767539169cfd6ba31f89e35edb5c20c4ecc9 | [] | no_license | IOEWRC/stu_teach | 352bb7326645eacf340131c632eab5a28549d393 | 953931febab33d69a71c83e9ca44d376aa1d7320 | refs/heads/master | 2022-12-17T15:08:49.148449 | 2018-10-02T15:26:41 | 2018-10-02T15:26:41 | 141,098,799 | 0 | 3 | null | 2022-12-08T01:02:04 | 2018-07-16T06:57:08 | Python | UTF-8 | Python | false | false | 946 | py | from django.conf import settings
from django.contrib.auth import get_backends
from django.contrib.auth import login
from django.dispatch import Signal
# An admin has approved a user's account
user_approved = Signal(providing_args=["user", "request"])
# A new user has registered.
user_registered = Signal(prov... | [
"pawanpaudel93@gmail.com"
] | pawanpaudel93@gmail.com |
d548603c64903fac22071a503e75ae1a71dc916b | a857d1911a118b8aa62ffeaa8f154c8325cdc939 | /toontown/coghq/StageLayout.py | 23c0e7977545f6bd7cd2ff51688e1ff22f9c1976 | [
"MIT"
] | permissive | DioExtreme/TT-CL-Edition | 761d3463c829ec51f6bd2818a28b667c670c44b6 | 6b85ca8352a57e11f89337e1c381754d45af02ea | refs/heads/main | 2023-06-01T16:37:49.924935 | 2021-06-24T02:25:22 | 2021-06-24T02:25:22 | 379,310,849 | 0 | 0 | MIT | 2021-06-22T15:07:31 | 2021-06-22T15:07:30 | null | UTF-8 | Python | false | false | 9,093 | py | from direct.directnotify import DirectNotifyGlobal
from direct.showbase.PythonUtil import invertDictLossless
from toontown.coghq import StageRoomSpecs
from toontown.toonbase import ToontownGlobals
from direct.showbase.PythonUtil import normalDistrib, lerp
import random
def printAllCashbotInfo():
print 'roomId: roo... | [
"devinhall4@gmail.com"
] | devinhall4@gmail.com |
fe75c0da2e6b55da800b0f5dd8d9fa4cb4206590 | 28e8ab381a8c1b4321cd83acff6aa33468166d6b | /python3.4Smartforest/lib/python3.4/site-packages/django/forms/__init__.py | 134584aaf812602cd5d897f7a5b392d7e8a175df | [
"MIT"
] | permissive | letouriste001/SmartForest_2.0 | 343e13bc085d753be2af43aecfb74a5fffaa5e3b | 109b78bf1e8c8404800f377ab969395ccbb617be | refs/heads/master | 2020-12-21T16:54:22.865824 | 2016-08-11T14:17:45 | 2016-08-11T14:17:45 | 59,734,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | """
Django validation and HTML form handling.
"""
from django.core.exceptions import ValidationError # NOQA
from django.forms.boundfield import * # NOQA
from django.forms.fields import * # NOQA
from django.forms.forms import * # NOQA
from django.forms.formsets import * # NOQA
from django.forms.models import * # ... | [
"aubert.christophe.pro@gmail.com"
] | aubert.christophe.pro@gmail.com |
4c51d5551470c2a1accda560407256b08e83f5f4 | ad5b72656f0da99443003984c1e646cb6b3e67ea | /src/bindings/python/src/openvino/test_utils/__init__.py | 39abacb8fe3698459c5cead72b53daa782322b5c | [
"Apache-2.0"
] | permissive | novakale/openvino | 9dfc89f2bc7ee0c9b4d899b4086d262f9205c4ae | 544c1acd2be086c35e9f84a7b4359439515a0892 | refs/heads/master | 2022-12-31T08:04:48.124183 | 2022-12-16T09:05:34 | 2022-12-16T09:05:34 | 569,671,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | # -*- coding: utf-8 -*-
# Copyright (C) 2018-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
from .test_utils_api import compare_functions
| [
"noreply@github.com"
] | novakale.noreply@github.com |
92977a8e1a7fba7692d6e2a1e648ce2923636a61 | d6fe71e3e995c03b8f5151ab1d53411b77b325ba | /walklist_api_service/models/inline_response2014.py | dd612deaed7f317b142c07f218d808e84fcda9a9 | [] | no_license | mwilkins91/petpoint-scraper | 95468ae9951deaa8bd3bef7d88c0ff660146c1a3 | dd0c60c68fc6a7d11358aa63d28fdf07fff3c7cd | refs/heads/master | 2022-11-27T00:02:50.654404 | 2020-08-09T18:41:40 | 2020-08-09T18:41:40 | 286,180,666 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,125 | py | # coding: utf-8
"""
The Enrichment List
The THS enrichment list # noqa: E501
OpenAPI spec version: 1.0.0
Contact: contactme@markwilkins.co
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
def getResponse():
from walklist... | [
"contactme@markwilkins.co"
] | contactme@markwilkins.co |
bc265595870eb2d54708331a0825dc7192597e13 | 0af2dd9a7ba560d0b782e7834d862f89fe546bbb | /lui_testing/python_mic/py_dir_n_deps/server/__main__.py | ee73bbe70b18c5052053bae2b75223e5e18432cb | [] | no_license | luisodls/dui_prototyping | 8b017eb3589f6fa80792b6f54b702061d30deda9 | 184d7fed891fae67bd8b662e4a287942753caadd | refs/heads/master | 2023-09-04T01:51:14.455210 | 2023-08-29T20:56:21 | 2023-08-29T20:56:21 | 162,447,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | # this file is needed for importing dependencies
| [
"luis.fuentes-montero@diamond.ac.uk"
] | luis.fuentes-montero@diamond.ac.uk |
12d9b34285fa7b3e71476926e0a9884f2362dda6 | 169d35ae620fb4ad6ccdb9ead5084a6ed191d3c1 | /uadt/automation/scenario.py | ca85e37045e300eeacdc0fcbc7e7f8fde0ea2e3f | [] | no_license | tbabej/uadt | 4d7622fb0f8a5c84bebf96b0df87cb63ae22bec7 | 71ff8f610b7616fdc8cad61399f9c0149786e192 | refs/heads/master | 2022-02-17T11:39:45.305507 | 2019-09-04T15:15:46 | 2019-09-04T15:15:46 | 91,985,528 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,186 | py | import datetime
import contextlib
import os
import random
import re
import subprocess
import shlex
import time
import json
from selenium.common.exceptions import StaleElementReferenceException
from uadt import config, constants
from uadt.plugins import PluginBase, PluginMount
from uadt.automation.generator import Dat... | [
"tomasbabej@gmail.com"
] | tomasbabej@gmail.com |
82d4c92e0a76a51b782ab665521c5d0dbd3f5d41 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_200/552.py | 2a8dec0e8ed629d049222f52c7953ccea67f7d3e | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py |
def test(list):
for i in range(0, len(list)-1):
if(valueList[i] > valueList[i+1]):
return False
return True
def list2text(list):
result = "";
for i in list:
if(result != "" or i!=0):
result += str(i)
if(result == ""):
result = "0";
return result
t = int(input())
for line in range(... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
2a190607625a690d7574afa6ac51c511908c664d | 2ddc456deb713a182692f04a0f58b6219c683c3d | /manage.py | 83e6cb6b4ad6924c454de15cd1c2a04e74b6ca2b | [] | no_license | rabithakuri/blog | feabb6ffcac216abd6c081544f95dd46d773a76e | 59af4161fa751b7c5b49ac97100b3175f2e32d44 | refs/heads/master | 2023-01-03T17:11:53.568997 | 2020-10-28T03:44:41 | 2020-10-28T03:44:41 | 307,582,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'intern_project.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"you@example.com"
] | you@example.com |
c5ec3cebc6acd55c78f200d64e7195209a6a3380 | 8eeef634531bddfd99bad995517a6dc2750e5815 | /tests/TestServidorHTTPConfiguracion.py | 4d385d32ef1d5c2c8e778218724c9a2373bb1195 | [] | no_license | GabrielMartinMoran/balizaIntegracionContinua | 99c882b9376520d832ef72c3e98194835aaf1b37 | 7f82c917793716fef30d30d0cd0a2d98ffda6d47 | refs/heads/master | 2021-06-08T14:14:44.112718 | 2021-04-27T18:06:17 | 2021-04-27T18:06:17 | 153,819,687 | 0 | 0 | null | 2021-04-27T18:07:03 | 2018-10-19T17:37:59 | JavaScript | UTF-8 | Python | false | false | 1,808 | py | #----------------------------- IMPORTAMOS EL DIRECTORIO src ---------------------------
import os
import sys
#IMPORTAMOS DEL PADRE
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '../src')))
#--------------------------------------------------------------------------------------
import unitt... | [
"moran.gabriel.95@gmail.com"
] | moran.gabriel.95@gmail.com |
91b6a476fe7d9d21254cc4a6578ee34d79761a72 | e823bc36af457f229f6879d6e6a3ef6247c129aa | /virtualenv/Lib/site-packages/pyasn1/type/base.py | fa876834167f552414fead63c978417aa938685f | [
"MIT"
] | permissive | William-An/DFB_Final | e772fa979c41f2f83a4bf657cde499456215fb3b | 49a9244c98116574676992ebecd1d9435e1d5b1e | refs/heads/master | 2022-11-07T15:47:36.189057 | 2017-07-22T01:01:37 | 2017-07-22T01:01:43 | 97,426,562 | 1 | 1 | MIT | 2022-10-15T02:45:57 | 2017-07-17T02:21:42 | Python | UTF-8 | Python | false | false | 18,819 | py | #
# This file is part of pyasn1 software.
#
# Copyright (c) 2005-2017, Ilya Etingof <etingof@gmail.com>
# License: http://pyasn1.sf.net/license.html
#
import sys
from pyasn1.type import constraint, tagmap, tag
from pyasn1 import error
__all__ = ['Asn1Item', 'Asn1ItemBase', 'AbstractSimpleAsn1Item', 'AbstractConstructe... | [
"China_Aisa@live.com"
] | China_Aisa@live.com |
22b1198f010dde12d103a5f65f822ee6e9dd0675 | e9fade80d627161ace797e6e80c54e328da4cf46 | /issure_tracker/accounts/migrations/0001_initial.py | 468da38e15e4ee1e580be4f953070a92552736f3 | [] | no_license | nurbekov0001/tracer | 1d48558f4064fd8c8382c16c57b11dbef21554e9 | 3daff8790efd87f99459d9ab9824960a0b8159a8 | refs/heads/master | 2023-04-17T16:06:01.446028 | 2021-04-22T10:04:48 | 2021-04-22T10:04:48 | 346,675,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,367 | py | # Generated by Django 3.1.7 on 2021-04-16 13:03
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"nurbekovbekbolot090501@gmail.com"
] | nurbekovbekbolot090501@gmail.com |
433b32bb5daca94ed59dd9026ce5d90ddf8b386b | a230088db9185a549fc63db351cc3558fbf78fe8 | /tests/gallery/test_gallery.py | 147c5bae1edb6779c17447d57a4b498268546f16 | [
"MIT"
] | permissive | ciphertechsolutions/construct | 7cebb8ec1634fafcbd1d89af3772fdcbec9509c3 | e75adbee3cc2bc3fc0326166d623566bf4358424 | refs/heads/master | 2020-05-17T06:06:49.291119 | 2019-07-04T01:49:02 | 2019-07-04T01:49:02 | 183,551,585 | 0 | 0 | NOASSERTION | 2019-10-19T22:37:53 | 2019-04-26T03:38:32 | Python | UTF-8 | Python | false | false | 286 | py | from declarativeunittest import *
from construct import *
from construct.lib import *
from gallery import pe32file
def test_pe32():
commondump(pe32file, "python37-win32.exe")
commondump(pe32file, "python37-win64.exe")
commondump(pe32file, "SharpZipLib0860-dotnet20.dll")
| [
"arek.bulski@gmail.com"
] | arek.bulski@gmail.com |
513f6a85f513250674a0329b3e5b13a71f2ada85 | 77741ac3384cf80ba9f5684f896e4b6500064582 | /PycharmProjects/继承/09-super().py | a9a8a4081e86dbcffdb4377fb61750a70e521906 | [
"MIT"
] | permissive | jiankangliu/baseOfPython | 9c02763b6571596844ee3e690c4d505c8b95038d | a10e81c79bc6fc3807ca8715fb1be56df527742c | refs/heads/master | 2020-05-09T12:11:02.314281 | 2019-04-13T01:17:24 | 2019-04-13T01:17:24 | 181,104,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,658 | py | class Master(object):
def __init__(self):
self.kongfu = '[古法煎饼果子配方]'
def make_cake(self):
print(f'师傅运用{self.kongfu}制作煎饼果子')
# def xx(self):
# print('aaaaa')
# 黑马学校类
class School(Master):
def __init__(self):
self.kongfu = '[黑马煎饼果子配方]'
def make_cake... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
79435fffffd54d4dd35c5ea37db3e9fa998944b7 | 99ada05e0088a8e93400b245c02fb0b28ef91a2d | /api_v1/containers/shop/views.py | 90df9332a7860db17f2d5387f1c797548f3e16de | [
"MIT"
] | permissive | eric-scott-owens/loopla | 789fdf128393c29ced808b10e98eb55d5a0ed882 | 1fd5e6e7e9907198ff904111010b362a129d5e39 | refs/heads/master | 2022-12-12T17:30:44.373305 | 2019-08-01T06:17:05 | 2019-08-01T06:17:05 | 199,980,906 | 0 | 0 | MIT | 2022-12-11T00:23:28 | 2019-08-01T05:08:43 | JavaScript | UTF-8 | Python | false | false | 6,925 | py | import copy
from datetime import datetime
from django.contrib.auth.models import User
from django.conf import settings
from django.db import transaction
from rest_framework import status
from rest_framework.decorators import api_view
from rest_framework.response import Response
import stripe
from shop.models import Ord... | [
"eric.owens@loopla.com"
] | eric.owens@loopla.com |
67c01605dd097ec955b09e05c3ffb60a960ea937 | 69a415b34e14537b12f1fc4975360a45ea86af39 | /app/migrations/0059_auto_20210323_1537.py | c3494a4b0a778a68824d8194da53a3af538a1d30 | [] | no_license | imagilex/sosadelbosque | 36aa0a4fcec737717e58ce4ae6cc195c679c8b19 | ae52203213cea278690dc13cde60377775c2ef62 | refs/heads/master | 2023-05-15T09:26:20.842589 | 2023-03-07T21:33:27 | 2023-03-07T21:33:27 | 170,960,865 | 0 | 1 | null | 2023-04-30T11:23:33 | 2019-02-16T04:05:38 | Python | UTF-8 | Python | false | false | 2,802 | py | # Generated by Django 3.0.7 on 2021-03-23 15:37
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('initsys', '0003_auto_20190723_1358'),
('app', '0058_auto_20210315_1901'),
]
operations = [
migratio... | [
"maths.unam@gmail.com"
] | maths.unam@gmail.com |
3ded5cc16aa18ec2b0aadcdc17047b5871c455f3 | b8151327e53471c48679908bad4f80e26e4de056 | /Datasets/us_cropland.py | a107245f114533b4d17d70eb4ef833a848cd5143 | [
"MIT"
] | permissive | edencfc/earthengine-py-notebooks | 5d91b4e1e3773742890a7498b0e19354b8ed02b5 | f37adeffc40574f2de82efc9e8103a9c7f918585 | refs/heads/master | 2021-04-03T21:29:11.948772 | 2020-03-17T12:41:30 | 2020-03-17T12:41:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,133 | py | '''
<table class="ee-notebook-buttons" align="left">
<td><a target="_blank" href="https://github.com/giswqs/earthengine-py-notebooks/tree/master/Datasets/us_cropland.ipynb"><img width=32px src="https://www.tensorflow.org/images/GitHub-Mark-32px.png" /> View source on GitHub</a></td>
<td><a target="_blank" hre... | [
"giswqs@gmail.com"
] | giswqs@gmail.com |
39ceedaebdc2ac1eece9c5118a1b8e68f0d01460 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_352/ch19_2020_03_24_01_38_47_185100.py | ac0a448a458fe9fddfb5f3d65c33f54c47e13d4b | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | def classifica_triangulo(x, y, z):
if x==y and y==z:
return "equilátero"
elif x!=y or x!=z or z!=y:
return "isóseles"
else:
return "escaleno"
| [
"you@example.com"
] | you@example.com |
b75dbfb5879fc58f82f014ed3d954cd18d86fdf8 | 66e45a2760db8a1fc580689586806c2e3cce0517 | /pymontecarlo/options/beam/gaussian.py | f899c96d4c539645036e125a335c60688599a596 | [] | no_license | arooney/pymontecarlo | 4b5b65c88737de6fac867135bc05a175c8114e48 | d2abbb3e9d3bb903ffec6dd56472470e15928b46 | refs/heads/master | 2020-12-02T18:01:42.525323 | 2017-05-19T16:44:30 | 2017-05-19T16:44:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,600 | py | """
Gaussian beam.
"""
# Standard library modules.
# Third party modules.
# Local modules.
from pymontecarlo.options.beam.cylindrical import \
CylindricalBeam, CylindricalBeamBuilder
from pymontecarlo.options.particle import Particle
# Globals and constants variables.
class GaussianBeam(CylindricalBeam):
... | [
"philippe.pinard@gmail.com"
] | philippe.pinard@gmail.com |
00da945565f09b900f74aadad32813c82c145c2f | 6b5431368cb046167d71c1f865506b8175127400 | /challenges/filtra-positivos/tests.py | c5012357f4ede037d68c5541b1104ebaf7a60f7b | [] | no_license | Insper/design-de-software-exercicios | e142f4824a57c80f063d617ace0caa0be746521e | 3b77f0fb1bc3d76bb99ea318ac6a5a423df2d310 | refs/heads/master | 2023-07-03T12:21:36.088136 | 2021-08-04T16:18:03 | 2021-08-04T16:18:03 | 294,813,936 | 0 | 1 | null | 2021-08-04T16:18:04 | 2020-09-11T21:17:24 | Python | UTF-8 | Python | false | false | 401 | py | from strtest import str_test
class TestCase(str_test.TestCaseWrapper):
TIMEOUT = 2
def test_1(self):
entradas = [[-1, -2, -3],[-1, -2, -3, 0, 1, 2],[0, -1, 1, -2, 2]]
esperados = [[], [1, 2], [1, 2]]
for entrada, esperado in zip(entradas, esperados):
self.assertEqual(espera... | [
"andrew.kurauchi@gmail.com"
] | andrew.kurauchi@gmail.com |
3f3ea32395628def25fe0fafc5c4996611eb9cf0 | 085488720112922ff3aed15f99f3c93911425c4a | /vesper/command/station_name_aliases_preset.py | 0188c41410e63f2a621096eea37ab59056c0769b | [
"MIT"
] | permissive | HaroldMills/Vesper | 0b61d18bc241af22bfc251088fc87d72add6367b | ec92fe5231f54336499db189a3bbc6cb08a19e61 | refs/heads/master | 2023-07-05T22:45:27.316498 | 2023-07-04T11:58:14 | 2023-07-04T11:58:14 | 19,112,486 | 49 | 6 | MIT | 2023-02-14T16:09:19 | 2014-04-24T14:55:34 | Python | UTF-8 | Python | false | false | 377 | py | """Module containing class `StationNameAliasesPreset`."""
from vesper.util.yaml_preset import YamlPreset
class StationNameAliasesPreset(YamlPreset):
"""
Preset that specifies station name aliases.
The preset body is YAML that specifies a mapping from station names
to lists of aliases.
... | [
"harold.mills@gmail.com"
] | harold.mills@gmail.com |
5d11bcbbbb8cfe659783ba765ff02b2cd2ea8b0d | 6609c26b4ed72c156104ce282c3cf88c6aac59f6 | /chapter09/example15_formulas.py | a0b854c34b5de02f0e522bd4669039b9c7180405 | [
"MIT"
] | permissive | yordanivh/intro_to_cs_w_python | 4ab9dbbc2963b285b22cacb6648d1300fded18ce | eebbb8efd7ef0d07be9bc45b6b1e8f20737ce01a | refs/heads/master | 2020-09-06T12:25:23.362118 | 2020-02-14T14:07:07 | 2020-02-14T14:07:07 | 220,423,698 | 0 | 0 | MIT | 2020-02-14T14:07:08 | 2019-11-08T08:41:25 | Python | UTF-8 | Python | false | false | 385 | py | #Repetition based on user input
text = ""
while text != "quit":
text = input("Please enter a chemical formula (or 'quit' to exit): ")
if text == "quit":
print("...exiting program")
elif text == "H2O":
print("Water")
elif text == "NH3":
print("Ammonia")
elif text == "CH4":
... | [
"yordan@hashicorp.com"
] | yordan@hashicorp.com |
10ad81e1ec0dbb45e3b86748b126cb9c94ee3c97 | 043e511436798e9aed96052baddac7a353ac6562 | /printZigZagMatrix.py | 88bb65c74eabe5d24283634c30dbb4d1b1d12569 | [] | no_license | bch6179/Pyn | 01e19f262cda6f7ee1627d41a829609bde153a93 | e718fcb6b83664d3d6413cf9b2bb4a875e62de9c | refs/heads/master | 2021-01-22T21:28:13.982722 | 2017-05-05T07:21:19 | 2017-05-05T07:21:19 | 85,434,828 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,623 | py | Solution(object):
def printZigZagMatrix(self, A):
n,m = len(A), len(A[0])
x,y=0,0
x = []
for i in range(n+m):
if i % 2 == 0:
x = i
while x >= 0:
if x <= m and (i-x) <= n:
res.... | [
"bch6179@gmail.com"
] | bch6179@gmail.com |
6dc24e6e9dc2ac5b81fe106aafe9c9efcdd3c231 | 1f98ccf9ef52d3adab704676480c85fe22c9542d | /simpledb/tx/TxTest.py | 2243678f4f85a87127d5ea2fc6e3c2c891fab0d3 | [] | no_license | 61515/simpleDB_Python | 234c671cbbf57f3e8fc5489ec4c292365085b7a8 | b6846da4a78369838f5b3c7a704de704e18f7be7 | refs/heads/master | 2023-02-22T14:07:52.660633 | 2021-01-24T02:25:40 | 2021-01-24T02:25:40 | 332,343,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,773 | py | from simpledb.buffer.BufferMgr import BufferMgr
from simpledb.file.BlockId import BlockId
from simpledb.log.LogMgr import LogMgr
from simpledb.tx.Transaction import Transaction
from simpledb.util.File import File
from simpledb.file.FileMgr import FileMgr
class TxTest(object):
@classmethod
def main(cls, args):... | [
"1632039752@qq.com"
] | 1632039752@qq.com |
3b852eab16c802fad017d8dbc780791730df3e35 | 8eadd4c7db6872f28592333207b23a6e9309aba7 | /cities/migrations/0019_hotel_city.py | 5c67acf480e7b48ac8f8eb8188f58c5733437c25 | [] | no_license | tripupp/Sep19 | 142255904d186845f0f5cdc5b04064fa081c9e6d | 4e9ab2077be21c914f2f0207e64268fe6f98224d | refs/heads/master | 2022-11-23T23:46:01.512565 | 2019-09-19T19:46:20 | 2019-09-19T19:46:20 | 205,845,957 | 0 | 1 | null | 2022-11-22T04:13:26 | 2019-09-02T11:51:07 | CSS | UTF-8 | Python | false | false | 510 | py | # Generated by Django 2.2.4 on 2019-09-17 23:17
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('cities', '0018_hotel_hotelfacility'),
]
operations = [
migrations.AddField(
model_name='hotel',... | [
"ahuja.devansh2@gmail.com"
] | ahuja.devansh2@gmail.com |
bf41d3301840a07139a8656932fa600b19eeaa9d | b1ff576cdde5adf698b98446538e0b56d18f070f | /klasses/migrations/0003_auto_20210308_1410.py | 38ed54499f645f695f7d61108f3d1d74e57c9592 | [] | no_license | DUMBALINYOLO/gbc_oms | e3cfba17a12f3600b6503fc70cc9f3dcab5cc0e2 | cdea6fd81333088b2db9911140681fec9577132a | refs/heads/main | 2023-08-20T11:48:36.418990 | 2021-10-11T23:25:35 | 2021-10-11T23:25:35 | 322,593,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | # Generated by Django 3.1.5 on 2021-03-08 12:10
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('people', '0001_initial'),
('klasses', '0002_auto_20210201_1054'),
]
operations = [
migrations.Alter... | [
"baridzimaximillem@gmail.com"
] | baridzimaximillem@gmail.com |
e0606d6d38fc089b63725df350a5cdfd84866c17 | 85a32fc66050b5590f6a54774bbb4b88291894ab | /10-days-of-statistics/day-8-least-square-regression-line/python3.py | 8b9028d791e8278e76ef465b56d78615f88c5516 | [] | no_license | charlesartbr/hackerrank-python | 59a01330a3a6c2a3889e725d4a29a45d3483fb01 | bbe7c6e2bfed38132f511881487cda3d5977c89d | refs/heads/master | 2022-04-29T07:40:20.244416 | 2022-03-19T14:26:33 | 2022-03-19T14:26:33 | 188,117,284 | 46 | 37 | null | 2022-03-19T14:26:34 | 2019-05-22T21:38:18 | Python | UTF-8 | Python | false | false | 387 | py | x = [95, 85, 80, 70, 60]
y = [85, 95, 70, 65, 70]
n = len(x)
mean_x = sum(x) / n
mean_y = sum(y) / n
square_x = sum(x[i] ** 2 for i in range(n))
product_xy = sum(x[i] * y[i] for i in range(n))
b = ((n * product_xy) - (sum(x) * sum(y))) / ((n * square_x) - (sum(x) ** 2))
a = mean_y - (b * mean_x)
score_x = 80
# re... | [
"e-mail@charles.art.br"
] | e-mail@charles.art.br |
5c0b1ed0af605cfca6411fb25f4e72fc5d812943 | f9fe13fe62ba3fb1fb096da4268d5dc43e435ea4 | /52)convert_num_to_words.py | e2ec69789424a1254d41ee6f1e0853fc530c1494 | [] | no_license | MANNEMPRATAPVARUN/guvipy | 7e460da8b9d98c2fcd488757585d5bd207570666 | 4da4fe4f3d4855e14383015da19588ef0aea4f32 | refs/heads/master | 2020-06-10T01:22:26.063815 | 2019-06-12T13:44:44 | 2019-06-12T13:44:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | n1=int(input())
if(n1==1):
print("one")
elif(n1==2):
print("two")
elif(n1==3):
print("three")
elif(n1==4):
print("four")
elif(n1==5):
print("five")
elif(n1==6):
print("six")
elif(n1==7):
print("seven")
elif(n1==8):
print("eight")
elif(n1==9):
print("nine")
elif(n1==10):
print("te... | [
"noreply@github.com"
] | MANNEMPRATAPVARUN.noreply@github.com |
f226d0ef2e31d350f86f78906f0565ae5e9b2432 | eb40a068cef3cabd7a0df37a0ec2bde3c1e4e5ae | /imperative/python/megengine/data/tools/_queue.py | 9acd8396acb4078c93b51588585ba3c9a4325c34 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | tpoisonooo/MegEngine | ccb5c089a951e848344f136eaf10a5c66ae8eb6f | b8f7ad47419ef287a1ca17323fd6362c6c69445c | refs/heads/master | 2022-11-07T04:50:40.987573 | 2021-05-27T08:55:50 | 2021-05-27T08:55:50 | 249,964,363 | 1 | 0 | NOASSERTION | 2021-05-27T08:55:50 | 2020-03-25T11:48:35 | null | UTF-8 | Python | false | false | 5,241 | py | # -*- coding: utf-8 -*-
# MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
#
# Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT ARRANTI... | [
"megengine@megvii.com"
] | megengine@megvii.com |
976b4d718dda1ead16bd28d32cc7063864b631dd | e10a6d844a286db26ef56469e31dc8488a8c6f0e | /norml/train_maml.py | 1b115e00c874ca240844f93a803a8535781b8616 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | Jimmy-INL/google-research | 54ad5551f97977f01297abddbfc8a99a7900b791 | 5573d9c5822f4e866b6692769963ae819cb3f10d | refs/heads/master | 2023-04-07T19:43:54.483068 | 2023-03-24T16:27:28 | 2023-03-24T16:32:17 | 282,682,170 | 1 | 0 | Apache-2.0 | 2020-07-26T15:50:32 | 2020-07-26T15:50:31 | null | UTF-8 | Python | false | false | 1,731 | py | # coding=utf-8
# Copyright 2022 The Google Research Authors.
#
# 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
543fd4be6b22c96bcaa75db052979e4302c6b24d | 52f0984561895b48f3e6e40658a6e52c97705715 | /python-folder/serverless2.py | ddcd1ce97acb5419e4a251fe3bee710c7535e509 | [] | no_license | jsanon01/python | 8da2755e7724850875518455c1760bb9f04dd873 | edd52214e3578f18b71b0ad944c287411fb23dfb | refs/heads/master | 2022-05-20T00:29:10.550169 | 2022-05-10T01:08:48 | 2022-05-10T01:08:48 | 165,682,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,377 | py | """
I want to import website for Reference
I want a function named 'compute'
I want a function named 'storage'
I want a function named 'data_stores'
I want a function named 'api_proxy'
I want a function named 'api_integration'
I want a function named 'analytics'
I want a function named 'dev_tool'
I want a function name... | [
"jeansanon180@gmail.com"
] | jeansanon180@gmail.com |
5883b13a008f89976e099bb9238c124fc37ad18d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03273/s686375641.py | da4e84ee5bc242bc4a53671532a88a0e7dd849e7 | [] | 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 | 876 | py | H,W = map(int,input().split())
A = [list(input()) for _ in range(H)]
B = [[0 for _ in range(W)] for _ in range(H)]
for i in range(H):
for j in range(W):
if A[i][j]=="#":
B[i][j] = 1
C = []
for i in range(H-1,-1,-1):
if sum(B[i])==0:
C.append(i)
B1 = []
for i in range(H):
if i not... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a0187e3cf9f492ef6c1bc89361772c035ddcc37f | 2ed229651c21f552b61c2a2e520450d20795780f | /simple_issue_tracker/issue/migrations/0003_auto_20180331_0756.py | 2e079cb4b6193e0bd6c65a5a589f0d070d56a4b3 | [] | no_license | SurendraKumar19/LaunchYard | 360c2fbff58f453e5e1d21716ba033ce0203e279 | 8be7d967f986320cf212799e4a30b19724904cf2 | refs/heads/master | 2020-03-07T18:59:31.975463 | 2018-04-02T04:16:24 | 2018-04-02T04:16:24 | 127,658,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-03-31 07:56
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('issue', '0002_auto_20180330_... | [
"="
] | = |
79af61c92daf1293ef0ba0bfcb34804805052a22 | 36c00fe2afff4818c937e312ce0c6a79f35e2a77 | /7-kyu/array2binary-addition/python/solution.py | bcd80ff9c75f338e4958aaaaad30c2952f46cf09 | [] | no_license | p-lots/codewars | 0a67b6ee4c91180ff78c648421b9d2d64463ddc3 | 535faeee475c6b398124d6f5002b0e111406e8bb | refs/heads/master | 2023-08-23T22:14:33.635011 | 2023-08-23T13:30:37 | 2023-08-23T13:30:37 | 195,320,309 | 0 | 0 | null | 2023-05-09T19:25:50 | 2019-07-05T01:40:15 | Python | UTF-8 | Python | false | false | 102 | py | def arr2bin(arr):
return bin(sum(arr))[2:] if all(type(elem) == int for elem in arr) else False
| [
"paul.calotta@gmail.com"
] | paul.calotta@gmail.com |
c03da917bab449ab5a0857c6e6e2c45956ddfbcd | f0e9efbb0b90ff3f6c3796ab5cfcfecd3d937188 | /travel_buddy/apps/first_app/views.py | 6565dd2f866b03559a79d10cee1eef1fe5aac969 | [] | no_license | john-gore/belt_exam_travel | 9d6a05b6128ab4d8d3ac50c80784e383e0098a44 | 2d32a22aa66f58a0835e7d3daedeab83925a0a8c | refs/heads/master | 2021-07-21T11:54:26.658977 | 2017-10-27T21:42:54 | 2017-10-27T21:42:54 | 108,598,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,039 | py | from django.shortcuts import render, HttpResponse, redirect
from django.core.urlresolvers import reverse
from .models import User, Trip
from django.contrib import messages
def index(request):
return render(request, "login.html")
def register(request):
result = User.objects.validate_registration(request.POST)
... | [
"johngore@Johns-MBP.localdomain"
] | johngore@Johns-MBP.localdomain |
3565507f8d9a85c2327ed93fe28b09dfd4f644e6 | f4b5721c6b3f5623e306d0aa9a95ec53461c1f89 | /backend/src/gloader/xml/xpath/Context.py | f82a5fa07e901b4eb84d3947e8023d537613d205 | [
"MIT"
] | permissive | citelab/gini5 | b53e306eb5dabf98e9a7ded3802cf2c646f32914 | d095076113c1e84c33f52ef46a3df1f8bc8ffa43 | refs/heads/uml-rename | 2022-12-10T15:58:49.578271 | 2021-12-09T23:58:01 | 2021-12-09T23:58:01 | 134,980,773 | 12 | 11 | MIT | 2022-12-08T05:20:58 | 2018-05-26T17:16:50 | Python | UTF-8 | Python | false | false | 2,193 | py | ########################################################################
#
# File Name: Context.py
#
#
"""
The context of an XPath expression.
WWW: http://4suite.org/XPATH e-mail: support@4suite.org
Copyright (c) 2000-2001 Fourthought Inc, USA. All Rights Reserved.
See http://4suite.org/COPYRIGHT for lice... | [
"maheswar@MacBook-Pro.local"
] | maheswar@MacBook-Pro.local |
71e2016edbb152b6c30a8d3f50f6cea2e63b1cb2 | 8d56828fb72dcbb502a857c48394ee3684120745 | /parsers/pe_hdr.py | 691798f51cd9c757b0c1468369c4f99201b1566b | [
"MIT"
] | permissive | ArseniySky/mitra | 1a26166e39df76d4472ce2a3000fca46e5327034 | bb6038587300d34072cda1409e3bb72772b11dc9 | refs/heads/master | 2023-01-03T05:39:51.486063 | 2020-10-24T15:35:56 | 2020-10-24T15:35:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,695 | py | #!/usr/bin/env python
from parsers import FType
from helpers import *
class parser(FType):
DESC = "Portable Executable (hdr)"
TYPE = "PE(hdr)"
MAGIC = b"MZ"
def __init__(self, data=""):
FType.__init__(self, data)
self.data = data
self.bAppData = True # let's not have duplicates
self.bParasite = True
# ... | [
"ange.albertini@gmail.com"
] | ange.albertini@gmail.com |
c3bf55ecaebb7517aa85a0abef26fdf5363f20dd | e730c3367959c0d46a4d776442704fec24b84afd | /guoke_spider/pipelines.py | 0148d313b6cb0bf2b7a2554e0d257e74afdf9841 | [] | no_license | IanChen6/guoke_spider | 3baf4f110856b951ccf4b33c9a30d74287a12e0d | 90c0e99ad752d421c46117a26af448bede8d5e9c | refs/heads/master | 2021-01-23T18:44:36.839711 | 2017-09-08T01:57:43 | 2017-09-08T01:57:43 | 101,175,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,274 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
import codecs
import json
import MySQLdb
import pymysql as pymysql
from scrapy.pipelines.images import ImagesPipeline
from twist... | [
"626614767@qq.com"
] | 626614767@qq.com |
41bfa16dc61c56da11b0ac61055d62943d6efcf4 | 76b1e713a3057e6f08abc116814af00891dbc2ef | /store/models/product.py | c85acce04472c75ceaee1e079948a3a94d9b3407 | [] | no_license | Jay28497/Django-Ecommerce-Website | ed17f6536fe4be4d6db658c46999bb05ec22d3f8 | 2697d376c8ff2720720183c0e475b188ff7b0e33 | refs/heads/master | 2023-03-31T15:20:56.008251 | 2021-04-10T12:21:08 | 2021-04-10T12:21:08 | 355,427,413 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 878 | py | from django.db import models
from .category import Category
class Product(models.Model):
name = models.CharField(max_length=50)
price = models.IntegerField(default=0)
category = models.ForeignKey(Category, on_delete=models.CASCADE, default=1)
description = models.CharField(max_length=200, default='')
... | [
"jaykanjariya28@gmail.com"
] | jaykanjariya28@gmail.com |
870b89779a326a8ad7f5d0a8ae8f9736e854516a | 46646aaeecc313471ce5b9fbc3ffe98fa2779079 | /tests/test_pitch_shift.py | 0f638710fbd8cddecf6cff6c5bf78c9a7b9ef8f0 | [
"MIT",
"Python-2.0"
] | permissive | psgainz/audiomentations | c57840cc9516564cff00a9db64e8e92807024bfb | a5512965bb59995cbad6a3e5a5994dfaba7185d0 | refs/heads/master | 2020-08-23T01:30:44.289468 | 2019-09-22T13:48:07 | 2019-09-22T13:48:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | import unittest
import numpy as np
from audiomentations.augmentations.transforms import PitchShift
from audiomentations.core.composition import Compose
class TestPitchShift(unittest.TestCase):
def test_dynamic_length(self):
samples = np.zeros((512,), dtype=np.float32)
sample_rate = 16000
... | [
"iver56@hotmail.com"
] | iver56@hotmail.com |
7761e5f25a807647a04357adc679ee7e8ac02fa0 | 7c8bd2e26fdabf1555e0150272ecf035f6c21bbd | /dp/금광.py | 8190eebcd06649d3cf24238703d4170ac0996cbf | [] | no_license | hyeokjinson/algorithm | 44090c2895763a0c53d48ff4084a96bdfc77f953 | 46c04e0f583d4c6ec4f51a24f19a373b173b3d5c | refs/heads/master | 2021-07-21T10:18:43.918149 | 2021-03-27T12:27:56 | 2021-03-27T12:27:56 | 245,392,582 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | T=int(input())
for _ in range(T):
n,m=map(int,input().split())
arr=list(map(int,input().split()))
dp=[]
index=0
for i in range(n):
dp.append(arr[index:index+m])
index+=m
for j in range(1,m):
for i in range(n):
#왼쪽 위에서 오는 경우
if i==0:
... | [
"hjson817@gmail.com"
] | hjson817@gmail.com |
663b87517554847f85f756083b55562af5062418 | 24b1258616111c3b585e137ee64f1395e73f18db | /torch/testing/_deprecated.py | 3cf7338bff889e10f349fd6b7aab1548aed2db30 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | neginraoof/pytorch | 9ca47c2d32e5b71a24f13232329bea1e5744acda | ed79eff6d3faf126fec8895e83bf5ac28aa1041c | refs/heads/master | 2021-12-13T16:03:02.260731 | 2021-09-09T20:37:36 | 2021-09-09T20:37:36 | 193,156,038 | 1 | 0 | NOASSERTION | 2021-01-15T23:15:32 | 2019-06-21T20:23:32 | C++ | UTF-8 | Python | false | false | 2,590 | py | """This module exists since the `torch.testing` exposed a lot of stuff that shouldn't have been public. Although this
was never documented anywhere, some other internal FB projects as well as downstream OSS projects might use this. Thus,
we don't internalize without warning, but still go through a deprecation cycle.
""... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
1185038b5add6d6e2bb70633f7fb38a0bd4a4477 | f324cd2cbebd303fd34cd2e26fe1a51c44202d55 | /test/integration/vint/linting/policy/test_prohibit_encoding_opt_after_scriptencoding.py | 867a2e0269f74fa396c1c0c04952e24076736d24 | [
"MIT"
] | permissive | Vimjas/vint | d71579154d177daf458ec68423a66055f90fa308 | e12091830f0ae7311066b9d1417951182fb32eb5 | refs/heads/master | 2023-09-02T07:31:31.299270 | 2022-10-24T13:06:33 | 2022-10-24T13:06:33 | 20,857,415 | 191 | 11 | MIT | 2022-10-24T13:10:00 | 2014-06-15T14:38:32 | Python | UTF-8 | Python | false | false | 2,200 | py | import unittest
from test.asserting.policy import PolicyAssertion, get_fixture_path
from vint.linting.level import Level
from vint.linting.policy.prohibit_encoding_opt_after_scriptencoding import (
ProhibitEncodingOptionAfterScriptEncoding,
)
VALID_ORDER_VIM_SCRIPT = get_fixture_path(
'prohibit_encoding_opt_... | [
"yuki.kokubun@mixi.co.jp"
] | yuki.kokubun@mixi.co.jp |
e086eda2496c310a06840292336539270a37fa7c | 82e57ddf893ec8b1d3c19e4eeab758eb2cb4ace4 | /but/trades/views/send_email.py | ded5f2cabc1f01788ff32fda5c6f102a6c146d22 | [
"MIT"
] | permissive | yevgnenll/but | 1cf072afdb95492aae7efc9847040d1770a623c7 | 2cb3d7b8fd4b898440f9a74ee4b6b8fbdff32bb1 | refs/heads/master | 2021-01-21T04:55:31.408608 | 2016-06-09T02:53:42 | 2016-06-09T02:53:42 | 55,655,016 | 4 | 0 | null | 2016-06-09T03:14:06 | 2016-04-07T01:54:33 | Python | UTF-8 | Python | false | false | 535 | py | from django.shortcuts import render, redirect
from django.core.urlresolvers import reverse
from trades.models import Contact
from users.models import User
def send_email(request):
title = request.POST.get('title')
content = request.POST.get('content')
accept = request.POST.get('user_id')
contact = ... | [
"yevgnenll@gmail.com"
] | yevgnenll@gmail.com |
e5013a8634f961854d429a44905a148c553490fc | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/libraryManager.py | eb2bfd17f26d7d9e8e79fdfc1d61ba2439c6cd68 | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,028 | py | bl_info = {
"name": "texture library manager",
"author": "Antonio Mendoza",
"version": (0, 0, 1),
"blender": (2, 72, 0),
"location": "View3D > Panel Tools > Texture library manager panel (sculpt mode)",
"warning": "",
"description": "Load and unload image libraries",
"category": "Learnbg... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
25d875712d847ff5331efc882b0a32e303df0b65 | 15bfc2b3ba52420d95ed769a332aaa52f402bbd2 | /api/v2010/incoming_phone_number/create-test-post-example-3/create-test-post-example-3.6.x.py | d8100d65b045e9b542be53429173ac37acc793ac | [] | no_license | synackme/sample-code | 013b8f0a6a33bfd327133b09835ee88940d3b1f2 | 5b7981442f63df7cf2d17733b455270cd3fabf78 | refs/heads/master | 2020-03-17T04:53:07.337506 | 2018-05-07T16:47:48 | 2018-05-07T16:47:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | # Download the helper library from https://www.twilio.com/docs/python/install
from twilio.rest import Client
# Your Account Sid and Auth Token from twilio.com/console
account_sid = '"ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"'
auth_token = 'your_auth_token'
client = Client(account_sid, auth_token)
incoming_phone_number = c... | [
"jose.oliveros.1983@gmail.com"
] | jose.oliveros.1983@gmail.com |
076cf2edeb38036316e575bf5611e0df4742847d | 6cb67c5ae32faf6168d87858b43d3457282a022e | /esercizi/exchange2.py | 082747f748f13162d798425ecbe6a739df126a5b | [
"Apache-2.0"
] | permissive | formazione/formazione.github.io | 4d64320ab524db5a47eb1ee25bcfd8afc5c7a238 | 161e7fdf8b7b8aaeab6e44ad360b3a5dfd90503d | refs/heads/master | 2023-08-10T15:57:22.646132 | 2023-07-25T11:08:04 | 2023-07-25T11:08:04 | 125,328,356 | 0 | 0 | Apache-2.0 | 2020-02-15T09:02:12 | 2018-03-15T07:25:29 | Python | UTF-8 | Python | false | false | 4,043 | py | import random
class Exchange:
'''e1 = Exchange(dollars=1000, euro=1, cambio=1.18) will give you the euro for 1000 $\
d1 = Exchange(dollars=1, euro=500, cambio=1.18)
'''
def __init__(self, dollars, euro, cambio):
"If euro = 1 it changes dollars into euro and viceversa"
self.dollars = dol... | [
"gatto.gio@gmail.com"
] | gatto.gio@gmail.com |
6b511d19244e574fcd3136bdc4ce1388d22015d1 | dc42551b91ccb14541730975f4c377aedb0ad7c4 | /model/bert_ce.py | 764390df746ee82ab6f70c7c758eb374c71a677d | [] | no_license | liqinzhang/ChineseNER | df862eef8d19204c9f9f9e72ac7f716ed6237f7c | 7d1c6c107b5cc5c57391c0feb1a57357ee519b6a | refs/heads/main | 2023-08-29T18:05:04.404609 | 2021-11-18T01:15:33 | 2021-11-18T01:15:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,419 | py | # -*-coding:utf-8 -*-
from tools.train_utils import *
from tools.layer import *
from tools.loss import cross_entropy_loss
from tools.utils import add_layer_summary
from config import TRAIN_PARAMS
def build_graph(features, labels, params, is_training):
"""
pretrain Bert model output + cross-entropy loss
""... | [
"lixiang.2533@bytedance.com"
] | lixiang.2533@bytedance.com |
9f0a0bf605738ce0c564688ecefe4d4e4854cf20 | 276e60f69b51de7c50a333ce12212c823aeef71a | /char-lm-ud-wiki-classify-boundaries-report-errors-upToEndOnly-lexCountBaseline-tokenized.py | 7a4b304861e0b4842c3e46e0841d36d078d3ce3c | [] | no_license | m-hahn/probing-char-lms | e6ea3b00f82326140e28656290447d6c998278d6 | 5ab45883cefb1f69788e441b60d56d886833b3e4 | refs/heads/master | 2020-03-21T20:50:58.949446 | 2019-04-29T03:06:26 | 2019-04-29T03:06:26 | 139,032,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,540 | py | # python char-lm-ud-wiki-classify-boundaries-report-errors-upToEndOnly-lexCountBaseline-tokenized.py --language english
from paths import WIKIPEDIA_HOME
from paths import LOG_HOME
from paths import CHAR_VOCAB_HOME
from paths import MODELS_HOME
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("-... | [
"mhahn29@gmail.com"
] | mhahn29@gmail.com |
4298c3737468598270839efff3011bedf2e31660 | 8f4c59e69cce2f6e932f55b3c65aae376b206a2c | /笨办法学python/projects/setup(1).py | 332fa7f39039701ec9d8ae239e60aa76c3237f66 | [] | no_license | zmjm4/python | ef7206292f1c3a3a5763b25527024999de5e8e79 | 44cf74c0f16891c351ce214762218ccf2d7353a0 | refs/heads/master | 2020-05-27T17:23:48.776167 | 2018-05-24T07:14:16 | 2018-05-24T07:14:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | # -*- coding: utf-8 -*-
try:
from setuptools import setup
except:
from distutils.core import setup
config={
'description': 'My Project',
'author': 'My Name',
'url': 'URL to get it at.',
'download_url': 'Where to download it.',
'author_email': 'My email.',
'version': '0.1',
'install_requires':['nose'],
'pack... | [
"715073608@qq.com"
] | 715073608@qq.com |
27077317d775d648e9952eb6f38bdea573da39f1 | 3c8701e04900389adb40a46daedb5205d479016c | /oldboy-python18/day05-函数-模块与包的使用/00/day05/包/aaa/m1.py | 6e8d32de7ff947708601f6e898b0ae5ad0231af2 | [] | no_license | huboa/xuexi | 681300653b834eaf506f49987dcca83df48e8db7 | 91287721f188b5e24fbb4ccd63b60a80ed7b9426 | refs/heads/master | 2020-07-29T16:39:12.770272 | 2018-09-02T05:39:45 | 2018-09-02T05:39:45 | 73,660,825 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28 | py | def func1():
print('f1') | [
"wxcr11@gmail.com"
] | wxcr11@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.