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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
eb4921718ea76bd76fd0d09bef6d3040445b07fe | bfd6ac084fcc08040b94d310e6a91d5d804141de | /PulseSequences2/multi2d_test2.py | 1609e844e7a2e84b959142d2d35d97635fe46e69 | [] | no_license | jqwang17/HaeffnerLabLattice | 3b1cba747b8b62cada4467a4ea041119a7a68bfa | 03d5bedf64cf63efac457f90b189daada47ff535 | refs/heads/master | 2020-12-07T20:23:32.251900 | 2019-11-11T19:26:41 | 2019-11-11T19:26:41 | 232,792,450 | 1 | 0 | null | 2020-01-09T11:23:28 | 2020-01-09T11:23:27 | null | UTF-8 | Python | false | false | 671 | py | import numpy as np
from common.devel.bum.sequences.pulse_sequence import pulse_sequence
from labrad.units import WithUnit as U
from treedict import TreeDict
from common.client_config import client_info as cl
from multi_test import multi_test
class multi2d_test2(pulse_sequence):
is_2dimensional = True
is_compo... | [
"haeffnerlab@gmail.com"
] | haeffnerlab@gmail.com |
5fda096a90541b4f8f01c8692ee9f34c6977c70a | b40a140a911279f3c61737367ab8f3b7c15fe98b | /avakas/get_parameters_file.py | 6f6976a02b4d1dc3baa10e6796e10d3f55ed8aa2 | [] | no_license | AurelienNioche/HotellingBathtub | 80fef9b4106454ec339a6c106c52738f1e95e77b | 5b370a20b1d2417022fd2a6de8a7a4baeeda321e | refs/heads/master | 2021-05-06T13:02:04.130850 | 2018-02-16T22:47:01 | 2018-02-16T22:47:01 | 113,213,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | import os
def get_parameters_file(i):
parameters_files = sorted(
[os.path.join("tasks", f)
for f in os.listdir("tasks") if os.path.isfile(os.path.join("tasks", f))])
return parameters_files[i]
| [
"nioche.aurelien@gmail.com"
] | nioche.aurelien@gmail.com |
7c238c319c6f6d8ba62cadcb28faf56b3f32ab3b | b3c47795e8b6d95ae5521dcbbb920ab71851a92f | /AtCoder/AtCoder Beginner Contest 247/B.py | 973864707113b363529868eab237a721c0f7de7b | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | Wizmann/ACM-ICPC | 6afecd0fd09918c53a2a84c4d22c244de0065710 | 7c30454c49485a794dcc4d1c09daf2f755f9ecc1 | refs/heads/master | 2023-07-15T02:46:21.372860 | 2023-07-09T15:30:27 | 2023-07-09T15:30:27 | 3,009,276 | 51 | 23 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | from collections import defaultdict
n = int(raw_input())
d1 = defaultdict(int)
d2 = defaultdict(int)
names = []
for i in xrange(n):
name1, name2 = raw_input().split()
d1[name1] += 1
d2[name2] += 1
names.append((name1, name2))
flag = True
for (name1, name2) in names:
if name1 == name2:
if ... | [
"noreply@github.com"
] | Wizmann.noreply@github.com |
8987a79b8238e079d6527786951d545fffd1ab1c | f1614f3531701a29a33d90c31ab9dd6211c60c6b | /test/menu_sun_integration/infrastructure/aws/sqs/mocks/customer_mock.py | a7b78f7010ca6a18c5de255b002fa7e7ea1d8312 | [] | no_license | pfpacheco/menu-sun-api | 8a1e11543b65db91d606b2f3098847e3cc5f2092 | 9bf2885f219b8f75d39e26fd61bebcaddcd2528b | refs/heads/master | 2022-12-29T13:59:11.644409 | 2020-10-16T03:41:54 | 2020-10-16T03:41:54 | 304,511,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,321 | py | def mock_queue_make_api_call(self, operation_name, kwarg):
if operation_name == 'SendMessage':
return {'MD5OfMessageBody': 'a836c42e687e8a08e66a794a5dacd8c1',
'MessageId': '85e8a505-2ba4-4fa3-a93c-cc30bf5e65e7',
'ResponseMetadata': {'RequestId': '7313c686-bca3-5d79-9295-90a51... | [
"pfpacheco@gmail.com"
] | pfpacheco@gmail.com |
84bd69b3aecc431f55e1f816dbfe988f0e2443fc | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_2/mlxnas004/question1.py | 615d9525446c91fd8b2b6c646c028b7d0a290c6e | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | #nasha meoli
#mlxnas004
#leap year
x = eval(input("Enter a year:\n"))
condition_1 = x%400
condition_2 = x%4
condition_3 = x%100
if (condition_1 == 0) or ((condition_2 == 0) and (condition_3 >= 1)):
print(x,"is a leap year.")
else:
print(x,"is not a leap year.") | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
e4275df4e69cf6565d2afddbef18539b2d4d99f3 | 4f875744ccae8fa9225318ce16fc483b7bf2735e | /google/findDuplicate.py | 44e01dd1b67af92eaf0af5a61e728e840331fdcb | [] | no_license | nguyenngochuy91/companyQuestions | 62c0821174bb3cb33c7af2c5a1e83a60e4a29977 | c937fe19be665ba7ac345e1729ff531f370f30e8 | refs/heads/master | 2020-07-27T05:58:36.794033 | 2020-04-10T20:57:15 | 2020-04-10T20:57:15 | 208,893,527 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Feb 2 20:34:41 2020
@author: huyn
"""
#609. Find Duplicate File in System
from typing import List
class Solution:
def findDuplicate(self, paths: List[str]) -> List[List[str]]:
d = {}
for path in paths:
item = path.split()
root = i... | [
"huyn@cvm6h4zv52.cvm.iastate.edu"
] | huyn@cvm6h4zv52.cvm.iastate.edu |
0fdb7a7c501f03fb7f776e4965cd4da3243f4ed9 | 741ee09b8b73187fab06ecc1f07f46a6ba77e85c | /AutonomousSourceCode/data/raw/squareroot/7ab7bec6-576b-4910-98d1-ec30c84244ab__calculate_square.py | 0bf1d0137076df117eaec3d77052d26dce255f54 | [] | no_license | erickmiller/AutomatousSourceCode | fbe8c8fbf215430a87a8e80d0479eb9c8807accb | 44ee2fb9ac970acf7389e5da35b930d076f2c530 | refs/heads/master | 2021-05-24T01:12:53.154621 | 2020-11-20T23:50:11 | 2020-11-20T23:50:11 | 60,889,742 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,150 | py | # calculate_square.py
from Tkinter import *
import ttk
def calculate_square(*args):
value_in = float(number_in.get())
number_out.set(value_in * value_in)
root = Tk()
root.title('Calculate square')
mainframe = ttk.Frame(root)
mainframe.grid(column=1, row=1, sticky=(N, E, S, W))
mainframe.columnconfigure(0, weight=... | [
"erickmiller@gmail.com"
] | erickmiller@gmail.com |
201ec0e778d39c619ca7d2db0f6caee17ddd1f95 | d7363da78e6f1e8ae2c6abca3f845853756165d4 | /src/adafruit_blinka/board/dragonboard_410c.py | a627309d6c32ff8ab6a13dc5b5cc9a989804b538 | [
"MIT"
] | permissive | adafruit/Adafruit_Blinka | 7a9ed88f39ff12082d1b46647fa8869b541fba49 | 009b352a3234339000c32d2e61e830455cf389fa | refs/heads/main | 2023-08-09T06:25:02.178935 | 2023-07-28T16:45:40 | 2023-07-28T16:45:40 | 120,540,744 | 398 | 331 | MIT | 2023-09-14T20:32:23 | 2018-02-07T00:25:03 | Python | UTF-8 | Python | false | false | 972 | py | # SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""Pin definitions for the Dragonboard 410c."""
from adafruit_blinka.microcontroller.snapdragon.apq8016 import pin
GPIO_A = pin.GPIO_36
GPIO_B = pin.GPIO_12
GPIO_C = pin.GPIO_13
GPIO_D = pin.GPIO_69
GPIO_E... | [
"melissa@adafruit.com"
] | melissa@adafruit.com |
3dcca22538909e4ca7c9e1f85a4a19c897d9ccc0 | bf4178e73f0f83781be6784d7587cb34a38d6edd | /platform/radio/efr32_multiphy_configurator/pro2_chip_configurator/src/si4010_cfg_calc/si4010cfgcalcsecurity.py | 3da55602e5855910430be093d1a8e3ae2b503b84 | [] | no_license | kolbertv/ZigbeeSiliconV3 | 80d70515e93be1413c24cdcb3485f50c65a1564b | ab0bd8d4bb6c1048adef81d0e66d96006c2fabd9 | refs/heads/master | 2023-01-02T07:18:01.393003 | 2020-10-25T15:33:08 | 2020-10-25T15:33:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,459 | py | '''
Created on August 25, 2013
@author: shyang
'''
__all__ = ["Si4010CfgCalcSecurity"]
class Si4010CfgCalcSecurity(object):
'''
classdocs
'''
OEM_Key16_Table = [
[0x63, 0xB4, 0x92, 0xCD, 0x42, 0x20, 0x03, 0xBC, 0x73, 0x29, 0x09, 0xBB, 0xFF, 0x6A, 0xDC, 0x6D],
[0x63, 0x4B, 0x92, 0xCD, ... | [
"1048267279@qq.com"
] | 1048267279@qq.com |
8f9c7c45bf173c6b1593881386614ed222c6c593 | 2bf43e862b432d44ba545beea4e67e3e086c1a1c | /tests/nemo_text_processing/zh/test_char.py | 1ca553eca3d027fe254df28f4d9b682ca08f9b57 | [
"Apache-2.0"
] | permissive | ericharper/NeMo | 719e933f6ffce1b27358bc21efe87cdf144db875 | f1825bc4b724b78c2d6ca392b616e8dc9a8cde04 | refs/heads/master | 2022-10-06T01:45:21.887856 | 2022-09-14T19:09:42 | 2022-09-14T19:09:42 | 259,380,135 | 1 | 0 | Apache-2.0 | 2022-09-20T18:01:57 | 2020-04-27T15:54:20 | Python | UTF-8 | Python | false | false | 1,257 | py | # Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. 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
#
# Unl... | [
"noreply@github.com"
] | ericharper.noreply@github.com |
2bb192e13d0b897544b36848f736cf1666918f37 | e8160ba62759fc390daf60d88146e95c0c0de1b4 | /TestDjangoORM/settings.py | 97366c9073674155c60edddae7971a54bbb699fe | [] | no_license | imranq2/TestDjangoORM | 2a3a72aff36f03b6e2bb1a0f394a3499d2607bba | 8d51d772f42635c0dbbd1d462057defaa9cdfbff | refs/heads/master | 2023-01-05T23:07:07.662717 | 2020-11-03T04:36:44 | 2020-11-03T04:36:44 | 309,496,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,510 | py | """
Django settings for TestDjangoORM project.
Generated by 'django-admin startproject' using Django 3.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from p... | [
"imranq2@hotmail.com"
] | imranq2@hotmail.com |
afdfc45217af92feca35e8df5f3b06c51cf1a18f | 32cb84dd41e4be24c065bb205f226f9b121a6db2 | /feedback/urls.py | 523511566940bbd365ca5900079a62fd10f87512 | [] | no_license | InformatykaNaStart/staszic-sio2 | b38fda84bd8908472edb2097774838ceed08fcfa | 60a127e687ef8216d2ba53f9f03cfaa201c59e26 | refs/heads/master | 2022-06-29T11:09:28.765166 | 2022-06-13T21:56:19 | 2022-06-13T21:56:19 | 115,637,960 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | from django.conf.urls import patterns, include, url
import views
noncontest_patterns = [url(r'^staszic/judging/(?P<jid>\d+)/$', views.judging)]
| [
"hugo@staszic.waw.pl"
] | hugo@staszic.waw.pl |
4c84bb0dd04ef0a5558dab96f89e9a850724abde | 0386591b51fdbf5759faef6afb8729b64a3f1589 | /layerserver/widgets/modificationdate.py | 3b9aab935d42e5aa5a0047c815f565c8306afad5 | [
"BSD-3-Clause"
] | permissive | giscube/giscube-admin | 1e155402e094eb4db1f7ca260a8d1402e27a31df | 4ce285a6301f59a8e48ecf78d58ef83c3827b5e0 | refs/heads/main | 2023-07-11T17:23:56.531443 | 2023-02-06T15:12:31 | 2023-02-06T15:12:31 | 94,087,469 | 7 | 1 | BSD-3-Clause | 2023-07-07T13:22:09 | 2017-06-12T11:12:56 | Python | UTF-8 | Python | false | false | 556 | py | from datetime import datetime
from django.utils.timezone import get_current_timezone
from .date import DateWidget
class ModificationDateWidget(DateWidget):
base_type = 'date'
@staticmethod
def update(request, instance, validated_data, widget):
validated_data[widget['name']] = datetime.now(tz=ge... | [
"abusquets@gmail.com"
] | abusquets@gmail.com |
6f1547fab3b6b91f274d8e7a04e2ac3e28693ae2 | 3b593b412c663a34784b1f60ad07cd2ee6ef87d1 | /month01/python base/day12/code03.py | 19ca59f6f051da2f348473bcdba1941fb51fd14e | [] | no_license | ShijieLiu-PR/Python_Learning | 88694bd44aeed4f8b022202c1065342bd17c26d2 | ed01cc0956120ea287c51667604db97ff563c829 | refs/heads/master | 2023-05-22T16:35:24.252313 | 2021-06-16T10:56:21 | 2021-06-16T10:56:21 | 337,445,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | """
运算符重载
"""
print("a" + "b")
class Vector:
"""
向量类
"""
def __init__(self, x):
self.x = x
def __add__(self, other):
# self.x += other
# return self
return Vector(self.x + other)
def __str__(self):
return "Vector(%d)" % self.x
v01 = Vector(10)... | [
"shijie_liu@outlook.com"
] | shijie_liu@outlook.com |
b62b9d12528fab30ba13d52d4ab9d783c4f58689 | e7c84801d7755806e58795d5fe51f7a924815ffc | /python-image-watermark/python-watermark-image.py | 86d4a5401ae25cc33b68205ae57687d2b72853e3 | [] | no_license | c0c1/python-image | 3454b37b3e0339fd3e204a38d7aa14c885e10e38 | b785801589722571ac7ed8ad4428b4d04f518a2b | refs/heads/master | 2023-06-04T23:36:17.974408 | 2021-06-21T12:38:23 | 2021-06-21T12:38:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | import os, sys
from PIL import Image, ImageDraw, ImageFont
img_dir = "images/non-watermark/"
dirs = os.listdir( img_dir )
for img in dirs:
if os.path.isfile(img_dir + img):
#Create an Image Object from an Image
im = Image.open(img_dir + img)
#Image width and height
width, height = im.size
#Image name... | [
"email@email.com"
] | email@email.com |
2d24087778240384516917c28596440c2aed5e2b | 8520c991dc543f5f4e1efe59ab401824173bb985 | /332-reconstruct-itinerary/solution.py | 9deb98ca04053efa355f326607f4c90351f51542 | [] | no_license | katryo/leetcode | d44f70f2853c4f5ea9a462d022feb0f5436c2236 | 0da45559271d3dba687858b8945b3e361ecc813c | refs/heads/master | 2020-03-24T12:04:53.859047 | 2020-02-18T04:27:55 | 2020-02-18T04:27:55 | 142,703,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | from collections import defaultdict
import heapq
class Solution:
def findItinerary(self, tickets):
dests = defaultdict(list)
ans = []
for src, dest in tickets:
heapq.heappush(dests[src], dest)
def dfs(dep):
arrivals = dests[dep]
while arrivals:
... | [
"katoryo55@gmail.com"
] | katoryo55@gmail.com |
cc81969fe3c3463a9a336a1e77f56a7592cde567 | b91bd5b0954776fd186bf064a87fb8f7ffa4a58a | /python2/flask/flask_fun/flask_table/server.py | 5c146559aa55798c1023ee96a350f5061e5a2f4d | [] | no_license | ronaldaguerrero/practice | ddf1f41b693110cebe4d52e29910909f3ba21115 | 38627fddd8f79e6fb50c05a0e4e8d27a92146e1b | refs/heads/master | 2023-01-23T17:06:18.642983 | 2019-09-13T05:01:48 | 2019-09-13T05:01:48 | 186,157,588 | 0 | 0 | null | 2023-01-07T09:40:40 | 2019-05-11T16:40:12 | Python | UTF-8 | Python | false | false | 564 | py | # import things
from flask_table import Table, Col
# Declare your table
class ItemTable(Table):
name = Col('Name')
description = Col('Description')
# Get some objects
class Item(object):
def __init__(self, name, description):
self.name = name
self.description = description
items = [Item('N... | [
"ronald.a.guerrero@gmail.com"
] | ronald.a.guerrero@gmail.com |
51e6d0b64816e845f3804107099f83eb52511405 | 030cea4006a4ff559f23cb3b3c31cd038ed2e332 | /week11/hh_back/api/migrations/0001_initial.py | ff433e7b38b000547c461e4b1354c718d2bfa422 | [] | no_license | ayananygmetova/Web-Dev-2020 | f8834e0ee26f0f0f06d0e3a282c73b373954a430 | 957bca91554f015e9a3d13b4ec12e64de7ac633e | refs/heads/master | 2023-01-22T16:49:39.857983 | 2020-03-31T10:09:54 | 2020-03-31T10:09:54 | 236,937,810 | 1 | 0 | null | 2023-01-07T16:34:35 | 2020-01-29T08:41:10 | Python | UTF-8 | Python | false | false | 669 | py | # Generated by Django 3.0.4 on 2020-03-31 07:50
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Company',
fields=[
('id', models.AutoField(... | [
"ayananyfmetova@gmail.com"
] | ayananyfmetova@gmail.com |
f20231cfc5c8195e5135526087d532d334a0c5fa | 9907b3dd74d1aedbed5243105649f0acd8e965d8 | /demo/pytorch_laguerre.py | 0aded5c456579f8f7de77004c4e2c77956273df5 | [
"MIT"
] | permissive | shubhampachori12110095/OrthNet | 68c7442c448acdca2b0f2fbef0709efec280be4c | 74824c1858e14f023d3f0251910f223d6b8672ce | refs/heads/master | 2021-01-25T13:12:07.142646 | 2018-02-28T15:18:38 | 2018-02-28T15:18:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | import sys
sys.path.append('../')
from orthnet.pytorch import laguerre_tensor, multi_dim_laguerre_tensor
import torch
from torch.autograd import Variable
import numpy as np
from matplotlib import pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
order1 = 5
order2 = 3
x1_data = np.linspace(-1, 1, 100).reshape((-1,... | [
"orcuslc@hotmail.com"
] | orcuslc@hotmail.com |
d0eb44f47aea9e440d8ce9e2190b0d49f9f3822d | 94b101b38acb682422b8e26ff09527e1102e6524 | /project/users/views.py | 4ae6702c4b12933ac5fa836b8207dbb98b6bbb8b | [] | no_license | mjoze/Web-App | f0ff12118510cb5bfa6d4ff5541194b184848c41 | 8f5c237231d35d87a77cf9dffa7261c19f81dec7 | refs/heads/master | 2020-12-23T02:47:06.241269 | 2020-03-07T14:34:54 | 2020-03-07T14:34:54 | 237,010,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,493 | py | from django.shortcuts import render, redirect
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from .forms import UserRegisterForm, UserUpdateForm, ProfileUpdateForm
def register(request):
if request.method == 'POST':
form = UserRegisterForm(request.POST)
... | [
"mirek.jozefiak@gmail.com"
] | mirek.jozefiak@gmail.com |
f58dc5c06357b947dad8b998e8070480de396f5d | d47b841f7e64d83cebbe63a25bac47adc495a760 | /test/test_box_score_teams_overall.py | 74d000b20e37922744080d08c234957c32e396ab | [] | no_license | CiscoNeville/cfbd-python | 810029240de30a2b7a205cbc3bb009599481206c | 5775ff7ce7464e881f1940a7c0a534b0c26c1ce8 | refs/heads/master | 2023-09-04T18:27:23.773119 | 2021-11-19T01:49:07 | 2021-11-19T01:49:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,071 | py | # coding: utf-8
"""
College Football Data API
This is an API for accessing all sorts of college football data. It currently has a wide array of data ranging from play by play to player statistics to game scores and more. # noqa: E501
OpenAPI spec version: 2.4.1
Contact: admin@collegefootballdata.co... | [
"radjewwj@gmail.com"
] | radjewwj@gmail.com |
1d8762c60b7af569450421e970799689990cf863 | 69a8a88c99f5c401b188ce7637174c19a3ed48d8 | /0x0A-python-inheritance/10-square.py | 9f90ed3be2ee071cbcc079312aa9f6543eda60d0 | [] | no_license | JDorangetree/holbertonschool-higher_level_programming | 0546b25726052a8ce6468781f933eb28d1aee30d | f984f5047f690d352c7f203ef16aa7f0cc49afcd | refs/heads/master | 2020-09-29T01:22:22.387395 | 2020-05-16T23:35:12 | 2020-05-16T23:35:12 | 226,912,872 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | #!/usr/bin/python3
""" Class that inherits from Rectangle """
Rectangle = __import__('9-rectangle').Rectangle
class Square(Rectangle):
""" Class that defines a Square by inheritance of Rectangle class """
def __init__(self, size):
""" Constructor """
self.integer_validator("size", size)
... | [
"julian.naranjo2014@gmail.com"
] | julian.naranjo2014@gmail.com |
78b373ee16f0efc70102408817bb21f313d8525e | fdcbf5b203f07cceefbb38a746f4a43b322e263e | /Python/findNeighbors_of_Nulls.py | 52f8694848396c9527b570609bc2724e421599bd | [] | no_license | Masoumeh/0390.IbnAhmadMuqaddasi.AhsanTaqasim | e7a3eddc895edb79f8d93c1bd0f09f130a761858 | 592720e5a154fcfe9cdab84b16eaf5574f30b806 | refs/heads/master | 2021-01-18T00:36:09.962622 | 2017-11-07T13:13:46 | 2017-11-07T13:13:46 | 45,922,253 | 0 | 0 | null | 2015-11-10T15:49:02 | 2015-11-10T15:49:02 | null | UTF-8 | Python | false | false | 1,682 | py | """
To get some information from the route network graph, like how far are the first two neighbours (with coords) of a node (without coords)
"""
from networkx.readwrite import json_graph
import io, json, csv
import re
import networkx as nx
import sys
import operator
import compose_graphs as cg
def findNeighbors_of_... | [
"m.seydi@uni-leipzig.de"
] | m.seydi@uni-leipzig.de |
bbef2beee7c94d588e9831ccbb760157f2f2e422 | 6915d6a20d82ecf2a2a3d3cd84ca22dab2491004 | /advtempproject/advtempproject/wsgi.py | 507d246211545d55217dfb1767569eb090224823 | [] | no_license | iitian-gopu/django | bb4302d101f4434fb61ab374807e29699a432e42 | 31db982212bbb453cc4c56c7f5cfad9a00cd231d | refs/heads/master | 2023-05-14T07:22:35.176477 | 2021-06-04T04:43:26 | 2021-06-04T04:43:26 | 366,114,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | """
WSGI config for advtempproject project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJAN... | [
"gopalkrishujaiswal2030@gmail.com"
] | gopalkrishujaiswal2030@gmail.com |
102056145a28eec5b448b8975f4633f44a628b6a | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/synthetic/rttoaobj.py | f85a0bd999b0746da1b151ecd36cc2f7a907ac50 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,526 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
dda9f5d4466062d8ad277427e9721c6efad04a50 | e9d52dcf101aea0327c6b0d7e5244c91dfd62cf6 | /spexy/bases/regular.py | ee2e4fd35ec1af3c62bc446c89556cd8cd5295c7 | [] | no_license | drufat/spexy | 6eba9f44a5539245486cd4ef8fefd24bdb7ade6a | 53255009c1830501986afbf6688142ddefe17b9a | refs/heads/master | 2021-09-18T19:51:47.313946 | 2018-07-19T05:09:02 | 2018-07-19T05:09:02 | 100,453,374 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,976 | py | # Copyright (C) 2010-2016 Dzhelil S. Rufat. All Rights Reserved.
from spexy.bases import basesimp
class BasesImp(basesimp.BasesImp):
def module(self):
return 'spexy.bases.circular'
def numbers(self):
N = self.N
N0 = N + 1
N1 = N
N0d = N
N1d = N + 1
ret... | [
"drufat@caltech.edu"
] | drufat@caltech.edu |
e3be99e1c6547843b797fea330aa576499260d31 | 99a4e7a4db3a3e062c0b08a5462749a28f3f7a39 | /core/utils/make_joint_dataset.py | 592af25331103bb288cfcb090d2dcd893614f3bb | [] | no_license | B-Step62/pytorch-motiongan-open | f85c1481363230826e9094e1c323ad90f0922744 | 4aefe2c427b88f357e8894d309ff46602e109001 | refs/heads/master | 2021-03-20T23:22:49.591472 | 2020-03-15T10:34:54 | 2020-03-15T10:34:54 | 247,241,734 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,651 | py | import os
import sys
import math
import subprocess
import cv2
from collections import OrderedDict
import numpy as np
import core.utils.bvh_to_joint as btoj
BVH_ROOT = './data/bvh/Edi_Mocap_Data/Iwan_style_data'
OUT = './data/bvh/Edi_Mocap_Data/Iwan_style_data'
def main():
# Copy all original bvh file
ro... | [
"bsatbeyp@gmail.com"
] | bsatbeyp@gmail.com |
19e5e99b4598f9270e0cc992301e841753fd2870 | c2b386e1d28c58efbb9d847098a87032e2cbacca | /products_app/init.py | 930a8691b7c54fa99f1d8508a131fb4977bb6b31 | [] | no_license | jmlm74/P11-Ameliorez-un-projet-existant-en-Python | e6468342554f5c4aa03bc0bb954aa7995e98e293 | 28cd84698bf272e279bbf6e1d15211ef2a3c6403 | refs/heads/master | 2022-12-11T02:57:59.563283 | 2020-09-10T16:02:27 | 2020-09-10T16:02:27 | 290,844,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py |
# url an parameters for the open food fact API
url = 'https://fr-en.openfoodfacts.org/cgi/search.pl'
params_off = {'search_simple': 1,
'action': 'process',
'json': 1,
'page_size': 300,
'page': 1,
'tagtype_0': 'categories',
'tag_contain... | [
"jmlm74@gmail.com"
] | jmlm74@gmail.com |
cf3dc94deb898b3147c1d529a1fbf335561c2e0b | 639d6a00e3a8fab07ce07fec408eef6bc050d21d | /indice_pollution/db.py | 8c93d5b392a7f26b2474e3b88b9e22891432315d | [
"MIT"
] | permissive | betagouv/indice_pollution | e04634e0b9c6d4ce24ffdc4c19868599995c1bd5 | b85e53ca22d420e3d685fc84843d2011c6a696e4 | refs/heads/master | 2023-02-10T20:25:13.321999 | 2023-02-06T10:57:09 | 2023-02-06T10:57:09 | 250,297,957 | 4 | 1 | MIT | 2023-01-25T09:25:45 | 2020-03-26T15:33:02 | Python | UTF-8 | Python | false | false | 218 | py | from sqlalchemy import MetaData
from sqlalchemy.orm import declarative_base
global engine, Session
metadata = MetaData(schema="indice_schema")
Base = declarative_base(metadata=metadata)
engine = None
session = None | [
"lara.vincent@gmail.com"
] | lara.vincent@gmail.com |
72b698651d6f869623903874a9cb46cd307ac5e2 | 05218d01394294bb7ede726bf3dc6f0691e4299b | /machineLearning/mini_Project/mini_project_0401.py | 21e36071cf323a4a3e1726e08d32fe4925ed6a43 | [] | no_license | bitacademy-howl/anaconda_workspace | 156556c52342b461ffb8304dfb55a845fff5ae90 | d9dc5007b6e95fa0bf7b95a457cafe68a0167992 | refs/heads/master | 2020-03-23T12:10:14.872385 | 2018-08-10T10:04:55 | 2018-08-10T10:04:55 | 141,539,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,058 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.linear_model import LinearRegression
from sklearn.model_selection import train_test_split
from sklearn.datasets import load_boston
import os
# sklearn 에서 제공하는 학습용 데이터셋
data = load_boston()
print('======================================... | [
"howl1118@gmail.com"
] | howl1118@gmail.com |
dac61de3894ea89b441f9876d43b4e8b8e7aabcc | a7587f813492163433202e244df2237c9993a1a1 | /Store/migrations/0003_variation.py | 192756496452ac5feb5ca11e93277167f0ed89b4 | [] | no_license | kamran1231/E-COM-WEBSITE-2021 | 3a10bc0059f4d29fc52ee029e4919d4f965174c6 | 32214468cf716cc312a63f6346b8c844f720abda | refs/heads/master | 2023-06-01T03:18:03.137405 | 2021-07-04T14:20:16 | 2021-07-04T14:20:16 | 381,634,544 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | # Generated by Django 3.2.4 on 2021-07-02 18:42
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('Store', '0002_alter_product_price'),
]
operations = [
migrations.CreateModel(
name='Variation',... | [
"khanbrother805@gmail.com"
] | khanbrother805@gmail.com |
826ff29b8209c97f97229d3a9b5855b40d325524 | 1a166165ab8287d01cbb377a13efdb5eff5dfef0 | /sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_generated/_azure_data_lake_storage_restapi.py | efb21f39026ffdd1e919cf6d1b8d713df2b94c91 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | manoj0806/azure-sdk-for-python | 7a14b202ff80f528abd068bf50334e91001a9686 | aab999792db1132232b2f297c76800590a901142 | refs/heads/master | 2023-04-19T16:11:31.984930 | 2021-04-29T23:19:49 | 2021-04-29T23:19:49 | 363,025,016 | 1 | 0 | MIT | 2021-04-30T04:23:35 | 2021-04-30T04:23:35 | null | UTF-8 | Python | false | false | 2,804 | py | # coding=utf-8
# --------------------------------------------------------------------------
# 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 Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | manoj0806.noreply@github.com |
06eb118e8879ca755ff7c592ecfb8c07b1333b91 | 553b34a101c54090e68f540d96369ac7d5774d95 | /python/algo/src/minimum_cut.py | bf33b42a8714492e38de25c04a941877eafc0264 | [
"MIT"
] | permissive | topliceanu/learn | fd124e1885b5c0bfea8587510b5eab79da629099 | 1c5b1433c3d6bfd834df35dee08607fcbdd9f4e3 | refs/heads/master | 2022-07-16T19:50:40.939933 | 2022-06-12T15:40:20 | 2022-06-12T15:40:20 | 21,684,180 | 26 | 12 | MIT | 2020-03-26T20:51:35 | 2014-07-10T07:22:17 | JavaScript | UTF-8 | Python | false | false | 2,668 | py | # -*- coding: utf-8 -*-
import random
from src.maximum_flow import ford_fulkerson_maximum_flow
def pick_random_edge(graph):
""" Returns a random edge from the given graph. """
edges = graph.get_edges()
return random.choice(edges)
def contract(graph, edge):
""" Composes a new vertex from the ends of... | [
"alexandru.topliceanu@gmail.com"
] | alexandru.topliceanu@gmail.com |
3bc48ad57dbf84c0d65a2c59a2f654b60f5b1089 | a98bc512be9b9691200c6a0cc33a5fb7b4053c13 | /com.ppc.Bot/devices/thermostat/thermostat_honeywell_lyric.py | 4fc7ab8f7dd9ec9b7fd8517681898b5f9c38d9cf | [
"Apache-2.0"
] | permissive | 30s/botlab | c21682ed2c9aefc9cba688c6a8c136e9f969adc9 | f7617147b65521a66ad88cdbc175176021a7a486 | refs/heads/master | 2020-04-04T18:39:00.776636 | 2018-10-04T04:56:32 | 2018-10-04T04:56:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,179 | py | '''
Created on March 27, 2017
This file is subject to the terms and conditions defined in the
file 'LICENSE.txt', which is part of this source code package.
@author: David Moss
'''
# Device Model
# https://presence.atlassian.net/wiki/display/devices/Thermostat
from devices.thermostat.thermostat import ThermostatDev... | [
"dmoss@peoplepowerco.com"
] | dmoss@peoplepowerco.com |
1d0b6383c33973c35589ec4404e85d7a6c72e8e8 | 8130c34d546c323d6d5d2ca6b4a67330af08828f | /.history/menu_app/models_20210105152309.py | ede59bfeb80ad64987ea4b2b9d2f75c6e48ba8a7 | [] | no_license | lienusrob/final | ba2dad086fc97b21b537ef12df834dfadd222943 | f2726e31f1d51450e4aed8c74021c33679957b28 | refs/heads/master | 2023-02-15T01:36:54.463034 | 2021-01-07T12:47:05 | 2021-01-07T12:47:05 | 327,279,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,265 | py |
from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
from django.urls import reverse
import random
import string
from datetime import date, datetime
class ToppingsCategory(models.Model):
name = models.CharField(max_length=100)
type = models.CharField(max_... | [
"lienus.rob@hotmail.de"
] | lienus.rob@hotmail.de |
31291fea928eb8e023f65781c71fa4432037efea | ba1eff6535027c16b9e1d399b96e7853bc1514dc | /tests/test_16_userinfo_endpoint.py | 03ec0337b9ec1fd4207b1850726eb13b7fc2b0da | [
"Apache-2.0"
] | permissive | sklemer1/oidcendpoint | 09d06e4cf21113f74a78734cdd06c964aaed3c7d | bc2cd9222bd05aec7b7ba5c7c7f593c2143357f3 | refs/heads/master | 2020-03-30T12:24:20.500373 | 2018-10-04T13:42:31 | 2018-10-04T13:42:31 | 151,222,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,738 | py | import json
import os
import pytest
import time
from oidcmsg.key_jar import build_keyjar
from oidcmsg.oidc import AccessTokenRequest
from oidcmsg.oidc import AuthorizationRequest
from oidcendpoint.client_authn import verify_client
from oidcendpoint.oidc import userinfo
from oidcendpoint.oidc.authorization import Aut... | [
"roland@catalogix.se"
] | roland@catalogix.se |
48f6bf7eed3e7ed029e76a1561da9c2b9fd6b645 | 4488e3c26de4291da447d8251c491b43cb810f7c | /account_banking_payment_export/model/payment_mode.py | 798c8ed20daab08128d6d0b68c1d1b223e11f9d5 | [] | no_license | smart-solution/odoo-crm-80 | b19592ce6e374c9c7b0a3198498930ffb1283018 | 85dfd0cc37f81bcba24d2a0091094708a262fe2c | refs/heads/master | 2016-09-06T06:04:35.191924 | 2015-07-14T12:48:28 | 2015-07-14T12:48:28 | 33,174,511 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,285 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2009 EduSense BV (<http://www.edusense.nl>).
# (C) 2011 - 2013 Therp BV (<http://therp.nl>).
#
# All other contributions are (C) by their respective contributors
#
# ... | [
"fabian.semal@smartsolution.be"
] | fabian.semal@smartsolution.be |
7c7405d5b792cd6f20e89b0b56489b366c8baecf | ba730380c8406b234202a6a19a9e5f01f6b66d25 | /django/crud2/articles/views.py | 4a9f35242edeef84e1211c795529a801b810b62b | [] | no_license | ssabum/note | 3b0fd891ab7053997c7978298635e599b42a7659 | 47354aa55a87813dab66f2ff7a930f5313bffe7a | refs/heads/master | 2023-06-19T03:03:02.398976 | 2021-07-09T15:09:42 | 2021-07-09T15:09:42 | 331,743,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,151 | py | from django.shortcuts import render, redirect
from .models import Article
# Create your views here.
# READ
def index(request):
# 모든 게시글 조회
# articles = Article.objects.all()[::-1] # 파이썬 언어로 해결
articles = Article.objects.order_by('-updated_at') # DB 단에서 해결, 수정순으로 정렬
context = {
'articles': artic... | [
"qqq960909@likelion.org"
] | qqq960909@likelion.org |
1d626c9dbdb41c344f8870b691bab05f897edafa | 5864e86954a221d52d4fa83a607c71bacf201c5a | /dogma/items/fittableDogmaItem.py | 8e70cbc858bb571171c14d42eeafc1040058e7eb | [] | no_license | connoryang/1v1dec | e9a2303a01e5a26bf14159112b112be81a6560fd | 404f2cebf13b311e754d45206008918881496370 | refs/heads/master | 2021-05-04T02:34:59.627529 | 2016-10-19T08:56:26 | 2016-10-19T08:56:26 | 71,334,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,769 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\packages\dogma\items\fittableDogmaItem.py
from dogma.dogmaLogging import *
from baseDogmaItem import BaseDogmaItem
from ccpProfile import TimedFunction
import weakref
class FittableDogmaItem(BaseDogmaItem):
def __init__(self, *arg... | [
"le02005@163.com"
] | le02005@163.com |
8d8ddb865c6a12401cc24112051255881181248e | f4f5d98101db7baf9703be077615383b831c35d8 | /setup.py | f00a4b6116f81b93954694c531ecc2ff819e8e74 | [
"MIT"
] | permissive | TrendingTechnology/PyYouTube-1 | 23099fd1b825f226cabf2e0f50112e1b3f53346b | 774213412210ab03adf11eb8b38906b0f3de5ee6 | refs/heads/main | 2023-08-17T13:50:03.035784 | 2021-09-15T09:11:31 | 2021-09-15T09:11:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | import pathlib
import setuptools
def read(file: str) -> list:
with open(file, encoding="utf-8") as r:
return [i.strip() for i in r]
file = pathlib.Path(__file__).parent
README = (file / "README.md").read_text()
setuptools.setup(
name='PyYouTube',
version="1.0.7",
author="mrlokaman",
au... | [
"noreply@github.com"
] | TrendingTechnology.noreply@github.com |
faf4719b940c4e5811346205c59cd9ad7daa89ec | 2813f969fc9833023f543fa14c1c22a87325ca8f | /logging_tree/tests/test_format.py | 787b959fd92bbf2bdc6650b8ba7e639e870cd017 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | ralphbean/logging_tree | 5761afc380719f4069fd00b1f21f5765927ce593 | 1db0ad6f485b5333fee637813faf827990924421 | refs/heads/master | 2021-01-16T22:05:05.459626 | 2012-12-04T02:16:14 | 2012-12-04T02:16:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,425 | py | """Tests for the `logging_tree.format` module."""
import logging
import logging.handlers
import unittest
import sys
from logging_tree.format import build_description, printout
from logging_tree.tests.case import LoggingTestCase
if sys.version_info >= (3,):
from io import StringIO
else:
from StringIO import Str... | [
"brandon@rhodesmill.org"
] | brandon@rhodesmill.org |
83bee1c913ad98cd00f75327075dbef6727ae53a | 3784495ba55d26e22302a803861c4ba197fd82c7 | /venv/lib/python3.6/site-packages/torchx/legacy/nn/VolumetricReplicationPadding.py | 16cc7a1c097d7c351bcc12cb145425dff9ac1bf3 | [
"MIT"
] | permissive | databill86/HyperFoods | cf7c31f5a6eb5c0d0ddb250fd045ca68eb5e0789 | 9267937c8c70fd84017c0f153c241d2686a356dd | refs/heads/master | 2021-01-06T17:08:48.736498 | 2020-02-11T05:02:18 | 2020-02-11T05:02:18 | 241,407,659 | 3 | 0 | MIT | 2020-02-18T16:15:48 | 2020-02-18T16:15:47 | null | UTF-8 | Python | false | false | 1,969 | py | import torch
from .Module import Module
class VolumetricReplicationPadding(Module):
def __init__(self, pleft, pright=None, ptop=None, pbottom=None, pfront=None, pback=None):
super(VolumetricReplicationPadding, self).__init__()
self.pleft = pleft
self.pright = pright or pleft
self.... | [
"luis20dr@gmail.com"
] | luis20dr@gmail.com |
cb0b2c679a02d35a32e443a9412c0292555d4f6b | cff588a68be44913be884ba5c4ebf36a0a96cb75 | /python/007study_namespace.py | 3377539352b3e241261c717dfa8c5240c876539d | [] | no_license | KOOKDONGHUN/trading | e6a8d023f4bdbb0f1cf32e3e5b6b26b6265fc3a6 | 2d4337978a5849098ed890e9e2c3f059e4706536 | refs/heads/master | 2022-11-15T00:38:32.705125 | 2020-07-12T10:25:46 | 2020-07-12T10:25:46 | 275,761,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,215 | py | class Stock:
market = 'kospi'
print(dir())# // ['Stock', '__annotations__', '__builtins__', '__cached__', '__doc__',
# // '__file__', '__loader__', '__name__', '__package__', '__spec__']
# Stock이 추가됐다
print(Stock) # <class '__main__.Stock'>
# 클래스가 정의되면 하나의 독립적인 네임스페이스가 생기고 클래스내에 정의된 변수나 ... | [
"dh3978@naver.com"
] | dh3978@naver.com |
e7b07e9da69275211369027ccc4b4e3df2428c9a | 98d328e4e00ac7cf8930d2ff9bd68af1d9d9cc3b | /utils/lib_clustering.py | 3e1b9079f84417c6585bb40e6d8bcf926bf03a2b | [] | no_license | jtpils/Lane-Detection-from-Point-Cloud | 4d7e98cafada569097e16e7bcb5fdabc048e0644 | 238cb8cedc823a84c32b60ce13e7de8c81f19232 | refs/heads/master | 2020-06-05T08:42:46.397450 | 2019-06-17T15:41:58 | 2019-06-17T15:41:58 | 192,380,398 | 14 | 4 | null | 2019-06-17T16:16:58 | 2019-06-17T16:16:58 | null | UTF-8 | Python | false | false | 3,810 | py | '''
Clustering by DBSCAN using sklearn library
This code is copied and modified from:
https://scikit-learn.org/stable/modules/generated/sklearn.cluster.DBSCAN.html
'''
import numpy as np
from sklearn.cluster import DBSCAN
from sklearn import metrics
from sklearn.datasets.samples_generator import make_blobs
from skle... | [
"felixchenfy@gmail.com"
] | felixchenfy@gmail.com |
5e57e42cf81e3523dfaa874a315995fbc33cfcb9 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D11B/PAYDUCD11BUN.py | 3dccdf3361385387dedef9f876212a5ce94c56a8 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 1,580 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD11BUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGM', MIN: 1, MAX: 1},
{ID: 'PAI', MIN: 1, MAX: 1},
{ID: 'FII', MIN: 1, MAX: 2},
{ID: 'DTM'... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
33707edb80b081ec1ed745507088f9c26ebd20fd | b182ff74d1107c00d77d3bb241dfca589ccc9404 | /config.py | 2bba1aadff966f60605fa7fdf900d990f46442d1 | [] | no_license | aexleader/Tornado-OA-System | 7846a13a90c6da512a7f7620b003bd77b331a63d | 6ffc51d2f42fcbd5b0abe7082dae4505bf687894 | refs/heads/master | 2020-08-01T14:00:28.966198 | 2019-09-10T10:57:23 | 2019-09-10T10:57:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,153 | py | #coding=utf-8
from libs.flash.flash_lib import get_flashed_messages # 引入一个变量
from libs.permission.permission_auth.permission_interface_libs import menu_permission
settings = dict(
template_path = 'templates',
static_path = 'static',
debug = True,
cookie_secret = 'aaaa',
... | [
"htxz_jiang@163.com"
] | htxz_jiang@163.com |
5f96b2f9df61b2997848aed9767153a92a516338 | 762de1c66746267e05d53184d7854934616416ee | /tools/MolSurfGenService/MolSurfaceGen32/chimera/share/VolumeProcessing/apply.py | e3698c7a49fcc4c0b7f6619db155e7b141e47eb8 | [] | no_license | project-renard-survey/semanticscience | 6e74f5d475cf0ebcd9bb7be6bb9522cf15ed8677 | 024890dba56c3e82ea2cf8c773965117f8cda339 | refs/heads/master | 2021-07-07T21:47:17.767414 | 2017-10-04T12:13:50 | 2017-10-04T12:13:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,364 | py | #!/usr/bin/env python
# -----------------------------------------------------------------------------
# Apply a function to a grid pointwise.
# The resulting volume is written in netcdf format.
#
# Syntax: apply.py sqrt|square|abs|exp|log <infile> <outfile>
#
# The file type must be one of the types handled by VolumeDa... | [
"alex.gawronski@d60594c4-dda9-11dd-87d8-31aa04531ed5"
] | alex.gawronski@d60594c4-dda9-11dd-87d8-31aa04531ed5 |
aa8aabf65ecb49d7092f518affba7b4f4200745b | 609582ee37a01ac6a67fb9c957825dcd3c9a5b3a | /LeetCode_Math/67_Add_Binaray.py | 77bf2de64eddd1dca19c9a8f56aeabd0235107f3 | [] | no_license | captainjack331089/captainjack33.LeetCode | a9ad7b3591675c76814eda22e683745068e0abed | 4c03f28371e003e8e6a7c30b7b0c46beb5e2a8e7 | refs/heads/master | 2022-03-07T19:53:40.454945 | 2019-11-06T19:32:00 | 2019-11-06T19:32:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | """
67. Add Binary
Category: Math
Difficulty: Easy
"""
"""
Given two binary strings, return their sum (also a binary string).
The input strings are both non-empty and contains only characters 1 or 0.
Example 1:
Input: a = "11", b = "1"
Output: "100"
Example 2:
Input: a = "1010", b = "1011"
Output: "10101"
"""
cla... | [
"qfhjack@gmail.com"
] | qfhjack@gmail.com |
db5478f9a0cb0cf030d084d4aa9c480907c197a7 | 0dc3e9b70da8ccd056e0a0fab2b1d8f850c3d470 | /lantern/django/django_celery/src/apps/cars/serializers.py | 3b2841adafff0d4d82de945686eeba93f6718cd8 | [] | no_license | ArturYefriemov/green_lantern | 28e7150af7b9d2281a107ad80026828ad77af62a | 2841b647e1bfae4a7505e91e8a8695d03f35a3a2 | refs/heads/master | 2021-03-01T16:54:58.881835 | 2020-11-17T19:42:23 | 2020-11-17T19:42:23 | 245,799,969 | 0 | 0 | null | 2020-07-14T18:51:13 | 2020-03-08T11:13:32 | Python | UTF-8 | Python | false | false | 190 | py | from rest_framework import serializers
from apps.cars.models import Car
class CarSerializer(serializers.ModelSerializer):
class Meta:
model = Car
fields = '__all__'
| [
"odarchenko@ex.ua"
] | odarchenko@ex.ua |
76b5e2452098e49235282783ad7eb1263db83e08 | ae7ba9c83692cfcb39e95483d84610715930fe9e | /yubinbai/pcuva-problems/UVa 10539 - Almost Prime Numbers/main.py | 30bb7c3cab4b9a2a5ac9a024702a2f2bdb6ddbf0 | [] | no_license | xenron/sandbox-github-clone | 364721769ea0784fb82827b07196eaa32190126b | 5eccdd8631f8bad78eb88bb89144972dbabc109c | refs/heads/master | 2022-05-01T21:18:43.101664 | 2016-09-12T12:38:32 | 2016-09-12T12:38:32 | 65,951,766 | 5 | 7 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | from bisect import *
from bitstring import BitArray
import sys
MAXN = 1000005
def prime_sieve(top=MAXN):
b = BitArray(top) # bitstring of ’0’ bits
for i in range(2, top):
if not b[i]:
yield i
# i is prime, so set all its multiples to ’1’.
b.set(True, range(i * i, top, ... | [
"xenron@outlook.com"
] | xenron@outlook.com |
8a52bc396fcafcd7f2ed6b20d0b110a3e5a59648 | 1d60c5a7b8ce6277bff514e376f79848f706344c | /Data Scientist with Python - Career Track /22. Machine Learning with the Experts: School Budgets/02. Creating a simple first model/01. Setting up a train-test split in scikit-learn.py | 09e603e05172de82530517858d1031747721ca01 | [] | no_license | DidiMilikina/DataCamp | 338c6e6d3b4f5b6c541c1aba155a36e9ee24949d | 3bf2cf3c1430190a7f8e54efda7d50a5fd66f244 | refs/heads/master | 2020-12-15T13:16:54.178967 | 2020-05-06T17:30:54 | 2020-05-06T17:30:54 | 235,113,616 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,016 | py | '''
Setting up a train-test split in scikit-learn
Alright, you've been patient and awesome. It's finally time to start training models!
The first step is to split the data into a training set and a test set. Some labels don't occur very often, but we want to make sure that they appear in both the training and the test... | [
"didimilikina8@gmail.com"
] | didimilikina8@gmail.com |
9b930250c80b39f856585160a5b1f150a3d9355a | 6053cef7fc0b063a6105cd38659ba082ee706335 | /tweettools/blockmute.py | 945725ca153e6f977a12db922ae170e6fb90aabe | [
"MIT"
] | permissive | jdidion/blockmute | 18dd24535d75d6c8998a432a1a5b657a3e91b93f | 05984da637206d2bc5c69d2f68b10a1df4f9985f | refs/heads/main | 2021-01-19T19:52:16.657531 | 2018-04-29T01:20:39 | 2018-04-29T01:20:39 | 101,212,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,470 | py | #!/usr/bin/env python
# Block everyone you've muted, and vice-versa.
from argparse import ArgumentParser
import time
from tqdm import tqdm
from tweettools import get_client
def blockmute(api, sleep_secs=300):
mutes = set(api.GetMutesIDs())
blocks = set(api.GetBlocksIDs())
new_blocks = mutes - blocks
... | [
"github@didion.net"
] | github@didion.net |
b5722af8ed32f8e2da48f5c2d6fcd13c8de9701f | 52d324c6c0d0eb43ca4f3edc425a86cdc1e27d78 | /scripts/asos/archive_quantity.py | 9c22be17d7528b94acd44e3f1e30933859ee8315 | [
"MIT"
] | permissive | deenacse/iem | 992befd6d95accfdadc34fb7928d6b69d661d399 | 150512e857ca6dca1d47363a29cc67775b731760 | refs/heads/master | 2021-02-04T04:20:14.330527 | 2020-02-26T21:11:32 | 2020-02-26T21:11:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,342 | py | """ Create a simple prinout of observation quanity in the database """
from __future__ import print_function
import sys
import datetime
import numpy as np
from pyiem.util import get_dbconn
class bcolors:
"""Kind of hacky"""
HEADER = "\033[95m"
OKBLUE = "\033[94m"
OKGREEN = "\033[92m"
WARNING = "... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
2d83f6345f4629fb349ea3e2aa1ecd09b77cec8b | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/services/services/account_budget_proposal_service/transports/base.py | 86d3e463eb723e6cf5e1dcff665b4d0e784c1fce | [
"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 | 4,334 | 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 |
cc472b1754e73618c88e880b49f00b891157f7e0 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/dev/cv/image_classification/DPN-68_ID1889_for_PyTorch/timm/data/dataset.py | 4b32a3a0617ad45b963c62d5fc03f7d56de6b2f8 | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later",
"CC-BY-NC-4.0"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 6,548 | py | #
# BSD 3-Clause License
#
# Copyright (c) 2017 xxxx
# All rights reserved.
# Copyright 2021 Huawei Technologies Co., Ltd
#
# 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 ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
50c5dd1046b86e17916c7169ac1be8c2aa36dc0b | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/49/usersdata/107/19461/submittedfiles/pico.py | d085c047956c05bb79cd9376fc75eadbc27af13d | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | # -*- coding: utf-8 -*-
from __future__ import division
def pico(a):
posicao=0
for i in range (0,len(a)-1,1):
if a[i]> a[i+1]:
posicao=i
break
cont=0
for i in range (posicao,len(a)-1,1):
if a[i] <= a[i+1]:
cont=cont+1
if cont==0 and posicao !=0:
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
4101fd7aac1737d98b2dfafe6118696400bd4e4a | 844e0cd4ffbe1ead05b844508276f66cc20953d5 | /test/testconfigurationmanager.py | e9fae9d325da652711c99ddbfa3770ec19e87574 | [] | no_license | Archanciel/cryptopricer | a256fa793bb1f2d65b5c032dd81a266ee5be79cc | 00c0911fe1c25c1da635dbc9b26d45be608f0cc5 | refs/heads/master | 2022-06-29T13:13:22.435670 | 2022-05-11T20:37:43 | 2022-05-11T20:37:43 | 100,196,449 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,083 | py | import unittest
import os, sys, inspect
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parentdir = os.path.dirname(currentdir)
sys.path.insert(0, parentdir)
from configurationmanager import ConfigurationManager
class TestConfigurationManager(unittest.TestCase):
def setUp(... | [
"jp.schnyder@gmail.com"
] | jp.schnyder@gmail.com |
066554d6b1f8b0a91a6ca227d27ae0ea8cfbd211 | 9a1b033774e371bd6442048f43e862dfb71abed7 | /Comprehensions/Lab/Flattening_Matrix.py | 57887545e4a87d7ca53a75baebc41865c380cf13 | [] | no_license | mialskywalker/PythonAdvanced | ea4fde32ba201f6999cd0d59d1a95f00fb5f674b | c74ad063154c94b247aaf73b7104df9c6033b1a5 | refs/heads/master | 2023-03-09T00:13:28.471328 | 2021-02-24T15:21:11 | 2021-02-24T15:21:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | n = int(input())
matrix = [[int(j) for j in input().split(', ')] for i in range(n)]
flat = [x for row in matrix for x in row]
print(flat)
| [
"kalqga123@gmail.com"
] | kalqga123@gmail.com |
a25b6496f12166e06a56177364a4c1ecfbc4a31f | ffd5e689f88c49ab7af3554c22dc0c36301084fa | /thinking_and_testing_uniq_or_not_uniq.py | d7b067767d0bea11d3b61a30da4b020ac1ca2f17 | [] | no_license | ellismckenzielee/codewars-python | 1710e6f0499047139479de386927c7dbd5f1cdf6 | af3f4b4534798a58115d0565730aae28ce87437e | refs/heads/master | 2023-08-09T13:38:40.964141 | 2023-08-01T14:45:22 | 2023-08-01T14:45:22 | 168,981,376 | 45 | 18 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | #thinking and testing: uniq or not uniq kata
#https://www.codewars.com/kata/56d949281b5fdc7666000004
def testit(a, b):
a = list(set(a))
b = list(set(b))
a.extend(b)
return sorted(a) | [
"ellismckenzielee@gmail.com"
] | ellismckenzielee@gmail.com |
211c727e8d52656e27ff87503013df32b74cd429 | bc54edd6c2aec23ccfe36011bae16eacc1598467 | /simscale_sdk/models/flow_rate_mean_outlet_vbc.py | e896a0e17e908cfccdaca58f5a681e31f2fb9e87 | [
"MIT"
] | permissive | SimScaleGmbH/simscale-python-sdk | 4d9538d5efcadae718f12504fb2c7051bbe4b712 | 6fe410d676bf53df13c461cb0b3504278490a9bb | refs/heads/master | 2023-08-17T03:30:50.891887 | 2023-08-14T08:09:36 | 2023-08-14T08:09:36 | 331,949,105 | 17 | 5 | null | null | null | null | UTF-8 | Python | false | false | 4,305 | py | # coding: utf-8
"""
SimScale API
The version of the OpenAPI document: 0.0.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from simscale_sdk.configuration import Configuration
class FlowRateMeanOutletVBC(object):
"""NOTE: This class is auto gene... | [
"simscale"
] | simscale |
e5bc633da5a7a8bc72a5896a2acd1b80d49ca5f1 | 91fb65972d69ca25ddd892b9d5373919ee518ee7 | /python-training-courses/pfc-sample-programs/func_example_002_a_with_its_use.py | fa56a44bfd53a1e492b260df8427a8512dba5dd3 | [] | no_license | zeppertrek/my-python-sandpit | c36b78e7b3118133c215468e0a387a987d2e62a9 | c04177b276e6f784f94d4db0481fcd2ee0048265 | refs/heads/master | 2022-12-12T00:27:37.338001 | 2020-11-08T08:56:33 | 2020-11-08T08:56:33 | 141,911,099 | 0 | 0 | null | 2022-12-08T04:09:28 | 2018-07-22T16:12:55 | Python | UTF-8 | Python | false | false | 867 | py | # func_example_002_a_with_its_use.py
# refer to func_example_002_without_its_use.py
#
# Passing variable number of arguments to the function
def add_numbers (*myNumbers):
sum = 0
for i in myNumbers:
sum = sum + i
return sum
num01, num02, num03, num04, num05, num06, num07, num08,... | [
"zeppertrek@gmail.com"
] | zeppertrek@gmail.com |
bf4ab1b554798c38423c6b25ffc2e3404c7b9980 | eea1be5dbac7fa10167eae167eb6712e3937f53a | /siteuser/utils/models.py | 607ac2c9399c5f052d881715a70bed9367b4b671 | [] | no_license | chidimo/Voidcoin | 40962e46661b2a7106bd8e60d0830c3b9629b8fa | 227c160dfa671818522781aab013f2d1fcb098a9 | refs/heads/develop | 2022-12-09T17:40:26.294425 | 2019-07-04T08:32:20 | 2019-07-04T08:32:20 | 135,197,447 | 5 | 2 | null | 2022-12-08T02:08:45 | 2018-05-28T18:45:19 | Python | UTF-8 | Python | false | false | 441 | py | from django.db import models
from django.utils.translation import ugettext_lazy as _
from .fields import AutoCreatedField, AutoLastModifiedField
class TimeStampedModel(models.Model):
"""
An abstract base class model that provides self-updating
``created`` and ``modified`` fields.
"""
created = Aut... | [
"orjichidi95@gmail.com"
] | orjichidi95@gmail.com |
c96baa39b9776108de52e68614ff8a956ef413f8 | 444a9480bce2035565332d4d4654244c0b5cd47b | /research/recommend/JEPOO/model/mel.py | 3581eddba520c6e2403c416cad136096a7b09a35 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license"
] | permissive | mindspore-ai/models | 7ede9c6454e77e995e674628204e1c6e76bd7b27 | eab643f51336dbf7d711f02d27e6516e5affee59 | refs/heads/master | 2023-07-20T01:49:34.614616 | 2023-07-17T11:43:18 | 2023-07-17T11:43:18 | 417,393,380 | 301 | 92 | Apache-2.0 | 2023-05-17T11:22:28 | 2021-10-15T06:38:37 | Python | UTF-8 | Python | false | false | 3,514 | py | # Copyright 2023 Huawei Technologies Co., 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 applicable law or a... | [
"noreply@gitee.com"
] | noreply@gitee.com |
408eefcd98a92dd07cb9fa4f21371235a339bf84 | d032bc0c01a7cd598481644e22043de8df4c71c4 | /consultant_app/versatilimagefield.py | 90f5c5be364e762bcd094b0cd36c0169a6108c18 | [] | no_license | amrit-kumar/project-for-engineering | eb5f410cd2f0a271633fb6c24132a36e6215f0e0 | 7e975866e540ab4625e735009fdba971df74e393 | refs/heads/master | 2020-12-03T01:49:02.429186 | 2017-06-30T09:09:46 | 2017-06-30T09:09:46 | 95,863,800 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,467 | py | import io
from io import StringIO
from PIL import Image
# from StringIO import StringIO
from .views import *
from versatileimagefield.datastructures import SizedImage
from django.utils.datastructures import *
from versatileimagefield.fields import VersatileImageField
from versatileimagefield.registry import versatile... | [
"kumaramrit38@gmail.com"
] | kumaramrit38@gmail.com |
0c8153f27fb67a668ee75237e7cd43c5388cfa62 | 92773cbdd70812f45e1b9b97bbc024aee4b4b18d | /Chapter7. Iteration/loop.py | 8765dd5a07dd4c28348fbcf1c1cc68b803ce3fd9 | [] | no_license | Abu-Kaisar/Python3Programming--Coursera | e46edc86294ac76109a89b2cb02e8b6af178dcce | e1b93899c4f507b9b32091283951e761e182b97a | refs/heads/master | 2022-11-21T07:40:28.985698 | 2020-07-19T04:07:51 | 2020-07-19T04:07:51 | 280,787,750 | 0 | 0 | null | 2020-07-19T03:58:52 | 2020-07-19T03:58:52 | null | UTF-8 | Python | false | false | 476 | py | # mylist = ["yo","mujju","salman","thuss"]
# for i in mylist:
# print("Hi", i ,"Dawat hai kheenchny aao")
# mylist = "dgsadafdua"
# for char in mylist:
# print("Hi", char )
s = "python rocks"
for ch in s:
print("HELLO")
import turtle # set up alex
wn = turtle.Screen()
mujju = turtle.Turtle()
f... | [
"mdmujahid97@gmail.com"
] | mdmujahid97@gmail.com |
d533929137010a828e0c1fe70530eb874680c0e9 | ca5fc43049f94a794d90a561fd8126f02b603599 | /i3py/core/features/options.py | cdcfff349c6f5457d6e1affa7b82a7ef3f760806 | [
"BSD-3-Clause"
] | permissive | Exopy/i3py | 32d9ee343d21d275680a2d030b660a80960e99ac | 6f004d3e2ee2b788fb4693606cc4092147655ce1 | refs/heads/master | 2022-02-18T21:51:16.423188 | 2019-08-28T23:51:02 | 2019-08-28T23:51:02 | 63,874,745 | 1 | 0 | BSD-3-Clause | 2018-05-23T09:45:26 | 2016-07-21T14:07:58 | Python | UTF-8 | Python | false | false | 1,960 | py | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright 2016-2018 by I3py Authors, see AUTHORS for more details.
#
# Distributed under the terms of the BSD license.
#
# The full license is in the file LICENCE, distributed with this software.
# ----------------... | [
"marul@laposte.net"
] | marul@laposte.net |
220d417e2a532c64b69fe77a6dbb261b6f5561fc | a360a22af5e0b385db438b1324564ef317ff2f38 | /bancor_module/migrations/0007_bancor_tsymbol.py | 3b1d42b27ed85223c4faa9f0e0b7bf186e2d5cc0 | [] | no_license | ogglin/exchange_comparison | 3eb2d849e731f94e67509e4ce9130e33bb37bbaf | f3feae64aff26b574f7ecd24e6f7aff7bb95ec65 | refs/heads/master | 2023-04-26T07:45:06.229584 | 2021-05-31T18:52:29 | 2021-05-31T18:52:29 | 287,036,194 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | # Generated by Django 3.1 on 2021-02-20 09:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bancor_module', '0006_bancor_volume'),
]
operations = [
migrations.AddField(
model_name='bancor',
name='tsymbol',
... | [
"server.ares@gmail.com"
] | server.ares@gmail.com |
eb2e7d1b25fa6419ac1847667a5fe019af42f82f | 19bc1dfbf8a8b4b1bfc9d6ead51479c72602b12e | /tests/test_resource_analysis.py | fea2cef5999b8d3a27c8c10067bde6f075b62ce6 | [
"MIT"
] | permissive | procha2/caper | a5297d6cfe7cf649ac5ac3544558f513b427713d | e9ea0baa3517178ce7b850df8a59eba6479fbcb6 | refs/heads/master | 2023-08-10T17:37:40.840958 | 2021-07-01T22:57:45 | 2021-07-01T22:57:45 | 300,260,107 | 0 | 0 | MIT | 2020-10-01T11:48:13 | 2020-10-01T11:48:12 | null | UTF-8 | Python | false | false | 3,119 | py | """Test is based on a metadata JSON file generated from
running atac-seq-pipeline v1.8.0 with the following input JSON.
gs://encode-pipeline-test-samples/encode-atac-seq-pipeline/ENCSR356KRQ_subsampled_caper.json
"""
import pytest
from caper.resource_analysis import LinearResourceAnalysis, ResourceAnalysis
def test... | [
"leepc12@gmail.com"
] | leepc12@gmail.com |
b0e9d034f38256d73cecf9f4255f71cbf66f2f94 | f3bd271bf00325881fb5b2533b9ef7f7448a75ec | /classes/_eigensolver1.py | b6ce82292c594e6f6578a8c6eb7978f16397aebd | [] | no_license | obaica/xcp2k | 7f99fc9d494859e16b9b0ea8e217b0493f4b2f59 | 6e15c2c95658f545102595dc1783f5e03a9e6916 | refs/heads/master | 2020-07-15T17:27:43.378835 | 2019-02-11T16:32:24 | 2019-02-11T16:32:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | from xcp2k.inputsection import InputSection
class _eigensolver1(InputSection):
def __init__(self):
InputSection.__init__(self)
self.N = None
self.N_loop = None
self.Diag_method = None
self.Eigenvalues = None
self.Init_method = None
self._name = "EIGENSOLVER"... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
97ce640d8f9e55d51546c4a93f3597a7132318cf | 33a747246dab38960c25520d5232d5a37dfe2a01 | /starbucks/address_to_gecoords.py | d842315ca462c234888776d81feaa308e92f2f34 | [] | no_license | Yxiaokuan/spider | 6a79a950d170ea20dae13001697b9c214872f345 | e51a398c7fdee1b1814c50c5a3121ce9a193e302 | refs/heads/master | 2022-04-02T16:01:18.104056 | 2020-02-11T03:49:44 | 2020-02-11T03:49:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,951 | py | '''
@author:KongWeiKun
@file: address_to_gecoords.py
@time: 18-1-2 下午5:55
@contact: 836242657@qq.com
'''
import csv
import json
import random
import re
import requests
import time
'''
地址转经纬度
'''
from urllib.request import quote #URL编码
def getLngLat(url,timeOutRetry=5):
try:
response = requests.get(url)
... | [
"kongwiki@163.com"
] | kongwiki@163.com |
6e1b0e5aa34daaa437c9eee45fc76dbcb0dc1c5a | 2a5d93182aecc251462c9d3844e7c3e28013013e | /mysite/chat/tests.py | 114198533bdb4a28861f61e98807da39f4a8fde4 | [] | no_license | burbaljaka/websocket_chat | 20acc9908cd7b0e122a3b96252208defdc7460d9 | ca6883987befb6bfad5973156b01bfe876b1414f | refs/heads/master | 2021-05-26T22:58:31.151913 | 2020-04-08T19:37:16 | 2020-04-08T19:37:16 | 254,182,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,906 | py | from channels.testing import ChannelsLiveServerTestCase
from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.support.wait import WebDriverWait
import dill
class ChatTests(ChannelsLiveServerTestCase):
serve_static = True #emulate StaticLiveServerTes... | [
"kapitonov.timur@gmail.com"
] | kapitonov.timur@gmail.com |
56d6d53b07810d51b36c4842c6af1666223e5ee3 | d82ac08e029a340da546e6cfaf795519aca37177 | /chapter_05_dimensionality_reduction/05_kernel_principal_component.py | 609ded2a21b83c00d4f66aca64610875be219164 | [] | no_license | CSwithJC/PythonMachineLearning | 4409303c3f4d4177dc509c83e240d7a589b144a0 | 0c4508861e182a8eeacd4645fb93b51b698ece0f | refs/heads/master | 2021-09-04T04:28:14.608662 | 2018-01-15T20:25:36 | 2018-01-15T20:25:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,810 | py | import numpy as np
import matplotlib.pyplot as plt
from scipy.spatial.distance import pdist, squareform
from scipy import exp
from scipy.linalg import eigh
from sklearn.datasets import make_moons
from sklearn.datasets import make_circles
from sklearn.decomposition import PCA
from matplotlib.ticker import FormatStrFo... | [
"jean.mendez2@upr.edu"
] | jean.mendez2@upr.edu |
20b0ea9579d0886baeaed4bfa6287cb7360d5595 | d7bc476f610d8b7d4abbeaf1545af4d2d827a7ef | /projeto/estoque/admin.py | 62fe30997551edf3ee208581329a1eb027dab2eb | [] | no_license | CleitonSilvaT/ControleEstoque | 0bcaa7168f93de124b10117aefeb636c492ac776 | dd2c573fb53edb0904393c0897917b55f3afac13 | refs/heads/master | 2023-01-19T09:34:49.213727 | 2020-11-26T09:27:07 | 2020-11-26T09:27:07 | 260,329,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 836 | py | from django.contrib import admin
from .models import EstoqueEntrada
from .models import EstoqueSaida
from .models import EstoqueItens
# Register your models here.
# admin.site.register(Estoque)
# admin.site.register(EstoqueItens)
class EstoqueItensInLine(admin.TabularInline):
model = EstoqueItens
extra = 0
... | [
"cleitonsilvatavares@gmail.com"
] | cleitonsilvatavares@gmail.com |
b3391ed1ddf7e3ff1d1e526f45e1f80873ff81b5 | 8e24e8bba2dd476f9fe612226d24891ef81429b7 | /geeksforgeeks/python/python_all/39_11.py | 2ab73f925b4bb8f6b56c6ea625257db987241936 | [] | no_license | qmnguyenw/python_py4e | fb56c6dc91c49149031a11ca52c9037dc80d5dcf | 84f37412bd43a3b357a17df9ff8811eba16bba6e | refs/heads/master | 2023-06-01T07:58:13.996965 | 2021-06-15T08:39:26 | 2021-06-15T08:39:26 | 349,059,725 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,960 | py | Python – Replace words from Dictionary
Given String, replace it’s words from lookup dictionary.
> **Input** : test_str = ‘geekforgeeks best for geeks’, repl_dict = {“geeks”
> : “all CS aspirants”}
> **Output** : geekforgeeks best for all CS aspirants
> **Explanation** : “geeks” word is replaced by l... | [
"qmnguyenw@gmail.com"
] | qmnguyenw@gmail.com |
6c6e12fa925c57be0fddd4074aa52393dca4eb69 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02787/s069996134.py | 5242a0c98d9fb0fe819f9bb08a60a75b923ddb4e | [] | 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 | 634 | py | import sys
read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007
def main():
H, N, *AB = map(int, read().split())
magic = [0] * N
for i, (a, b) in enumerate(zip(*[iter(AB)] * 2)):
magic[i] = (a, b)
d... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
64bacc9506ee8073571d4e6a9868841577b71d60 | 1f528631683f9d96c09dd4a4af243dd7213a4bd7 | /thumbnail.py | 6dffb24265b8649c5dce6c5d5183c7387998cc12 | [] | no_license | wd5/artcontactmeru | 4f8ede2a3f072c11ac0c8c8a74e0960382824537 | 2057f1b00db8eb808e0b4fb91a95fbe0a3e4f223 | refs/heads/master | 2020-12-30T14:55:54.067776 | 2009-11-12T07:30:00 | 2009-11-12T07:30:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,255 | py | # -*- coding: utf-8 -*-
import os, Image
THUMBNAILS = 'thumbnails'
SCALE_WIDTH = 'w'
SCALE_HEIGHT = 'h'
SCALE_BOTH = 'x'
def scale(max_x, pair):
x, y = pair
new_y = (float(max_x) / x) * y
return (int(max_x), int(new_y))
# Thumbnail filter based on code from
# http://batiste.dosimple.ch/blog/2007-05-... | [
"ruslan.popov@gmail.com"
] | ruslan.popov@gmail.com |
7e57694591ccea12ade2aaeb5ac1524ce38461db | 03dea3c0db7c8fafda71d23c3c2595f563ffb335 | /SignalMC/python/AMSB_chargino900GeV_ctau1000cm_NoFilter_13TeV.py | d9b642184847712cc96ebbd952b587fe419eaacd | [] | no_license | Andersen98/DisappTrks | 3952e9bf8ba270e2d88aa2e8d9ef805cf25dfc46 | 140a5efdc4c51a30e5fced6d34b7813876c2f2ee | refs/heads/master | 2020-06-27T03:41:59.136790 | 2017-07-12T15:19:18 | 2017-07-12T15:19:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,706 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.PythiaUEZ2starSettings_cfi import *
generator = cms.EDFilter("Pythia6GeneratorFilter",
pythiaHepMCVerbosity = cms.untracked.bool(False),
maxEventsToPrint = cms.untracked.int32(1),
pythiaPylistVerbosity = cms.untracked.int32(3),
filte... | [
"ahart@cern.ch"
] | ahart@cern.ch |
b818191531994619e2f64e216edd315786e81044 | 24927eac464cdb1bec665f1cb4bfee85728ec5e1 | /entry_parser/balenciaga.py | ca5ea1f4cb43c5aaeece995f78a8da7d00683e75 | [] | no_license | yingl/fashion-spider | d72ea8dfd4a49270fd3e64e7a507d6fcbaaf492c | 0698768cd21d509ec335d7202a753be4f6ad378b | refs/heads/master | 2021-01-01T18:14:17.848732 | 2017-09-27T08:44:47 | 2017-09-27T08:44:47 | 98,282,505 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | """ Balenciaga """
# coding:utf-8
import sys
sys.path.append('../')
import util
PREFIXES = ['www.balenciaga.cn']
def parse(driver, url):
products = []
driver.get(url)
elements = util.find_elements_by_css_selector(driver, 'a.item-display-image-container')
for element in elements:
products.appe... | [
"linying_43151@163.com"
] | linying_43151@163.com |
60b22d53fbf1e5893ab6925972c16edebae8fa71 | c6ae5d4c9b2a3acef09ee8254e1c1b67bc255b56 | /okex/v5/billtype.py | 1432ed9ee5152a20f37741012015561760391395 | [
"MIT"
] | permissive | PattonChen/okex-py | ce36a4ded7cb051a7167e3ba9aeb88bc4e0417f3 | cced7f1419da0940a2200ce66d62b4f9539949f2 | refs/heads/main | 2023-05-04T06:00:38.540463 | 2021-05-16T08:30:42 | 2021-05-16T08:30:42 | 367,833,565 | 1 | 0 | MIT | 2021-05-16T09:14:59 | 2021-05-16T09:14:59 | null | UTF-8 | Python | false | false | 302 | py |
from enum import Enum
class BillType(Enum):
# 划转
TRANSFER = 1
# 交易
TRADE = 2
# 交割
DELIVERY = 3
# 强制换币
FORCE_SWAP = 4
# 强平
FORCED_LIQUIDATION = 5
# ...
class BillSubType(Enum):
LINEAR = "linear"
INVERSE = "inverse"
# ... | [
"1103870790@qq.com"
] | 1103870790@qq.com |
1d80fe96db1c270109eea36af33536d1f681f4e0 | 0fa96aa3b1ee5cf752e20bad98ef02785c369225 | /quaducom/quaducom/assess/assess_shell/mn_resistance/ecb_law_mn_diagram.py | 971d0cc7a521f908aee65bce5fdb5716551192e2 | [] | no_license | simvisage/simvisage | 7a56ce0d13211513a86e3631db1b55dc62e85986 | acb2a8eb8b6caa57c1e9e15f724a2b43843c7b10 | refs/heads/master | 2020-04-04T07:32:47.598636 | 2018-12-10T15:10:43 | 2018-12-10T15:10:43 | 3,583,342 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 7,966 | py | '''
Created on Sep 4, 2012
@author: rch
'''
from etsproxy.traits.api import \
HasTraits, Int, Instance, Property, cached_property, DelegatesTo, \
Event, Button
from util.traits.editors.mpl_figure_editor import \
MPLFigureEditor
from matplotlib.figure import \
Figure
from etsproxy.traits.ui.api impor... | [
"rostislav.chudoba@rwth-aachen.de"
] | rostislav.chudoba@rwth-aachen.de |
34d8513c172a58e7d635c1cc20add3c5cfc710df | ffb4db36bf3959ed4a994f693c62d68092a91e63 | /image_space/utils.py | 405488ce25781aa69623a15abb722ef060c3b29d | [] | no_license | quasiben/image_solr | 8bc25db1e47f19d83d5b51b89e250f8da2cd285b | cc2baafa170bdbfecc1a0450ffd041de485f19fa | refs/heads/master | 2021-01-10T02:10:19.064770 | 2015-03-05T23:37:24 | 2015-03-05T23:37:24 | 31,621,600 | 2 | 1 | null | 2015-03-05T23:25:21 | 2015-03-03T21:12:28 | JavaScript | UTF-8 | Python | false | false | 1,319 | py | from image_space import app
from image_space.models import Image, IMAGE_TABLE_NAME
from image_space import db
# Upload Handling
def allowed_file(filename):
return '.' in filename and \
filename.rsplit('.', 1)[1] in app.config['ALLOWED_EXTENSIONS']
# EXIF Processing
def process_exif(exif_data, img_path... | [
"quasiben@gmail.com"
] | quasiben@gmail.com |
0c3eb34ca123217876148bd6cbe34e978632e747 | 6657a43ee360177e578f67cf966e6aef5debda3c | /test/test_warning_api.py | 7b7edb07cebe3c9a13d48a3b983ac64425eaa37f | [
"MIT"
] | permissive | NVE/python-varsom-avalanche-client | 3cc8b9c366f566a99c6f309ccdfb477f73256659 | c7787bf070d8ea91efd3a2a9e7782eedd4961528 | refs/heads/master | 2022-04-20T09:32:24.499284 | 2020-04-16T20:12:01 | 2020-04-16T20:12:01 | 256,318,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,017 | py | # coding: utf-8
"""
Snøskredvarsel API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v5.0.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
im... | [
"jorgen.kvalberg@gmail.com"
] | jorgen.kvalberg@gmail.com |
65ee34428a001611cc81d153a87842166b3b521d | 9fbbfb3dd1990be27acfada1a91af980f474c8f1 | /Chapter 07/rangesumBST.py | 603891b6170f47a25ae103aebce7585ed63a2d86 | [
"MIT"
] | permissive | bpbpublications/Python-Quick-Interview-Guide | 61a48446f910144a050a5bb1515ad48567dc9481 | ab4ff3e670b116a4db6b9e1f0ccba8424640704d | refs/heads/main | 2023-04-08T12:18:14.605193 | 2021-04-13T09:18:30 | 2021-04-13T09:18:30 | 350,315,060 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,665 | py | from typing import List
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class BinTree:
def printTree(self,root:TreeNode)->None:
LevelList = [root]
self.printLevel(LevelList)
def printLevel(self,LevelList:... | [
"41231825+bpbpublications@users.noreply.github.com"
] | 41231825+bpbpublications@users.noreply.github.com |
795f936423965063c44b347705c53fd1c306692f | bf2aa4eab14a6a5347fe4af65cc4a37f512a465d | /people/migrations/0111_auto_20200530_0632.py | 7320c7e9f7c6db4746b6c85c51fb4fef42dfea53 | [] | no_license | drdavidknott/betterstart | 0cda889f5cd6bb779f6d1fa75cb4f2ef08eb626c | 59e2f8282b34b7c75e1e19e1cfa276b787118adf | refs/heads/master | 2023-05-04T07:32:24.796488 | 2023-04-16T15:26:30 | 2023-04-16T15:26:30 | 173,626,906 | 0 | 0 | null | 2023-02-18T07:27:55 | 2019-03-03T20:37:01 | Python | UTF-8 | Python | false | false | 623 | py | # Generated by Django 3.0.3 on 2020-05-30 05:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('people', '0110_auto_20200530_0631'),
]
operations = [
migrations.AlterField(
model_name='site',
name='password_reset... | [
"dkoysta@gmail.com"
] | dkoysta@gmail.com |
c07f5f20db0ddcca9d3b07ecdb404f2a7e817bcb | 1caf4418f3549567637f5e9893a445f52a38c6a0 | /CmsAdmin/user_content/app/dtos/change_account_password_dto.py | 29b05af87dbeee572f150ac6b43bf6236ec0b7b5 | [] | no_license | Final-Game/social_network_backend | c601563e08c0fd7de72a614944f354ef8d2d31d8 | 8111787d1d20eb87733ae360d8baa745a65e2743 | refs/heads/master | 2023-03-04T21:12:43.147084 | 2021-02-23T03:45:22 | 2021-02-23T03:45:22 | 290,542,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | from core.common import BaseApiException
class ChangeAccountPasswordDto(object):
old_password: str
new_password: str
def __init__(self, old_password: str, new_password: str) -> None:
self.old_password = old_password
self.new_password = new_password
self.validate()
def valida... | [
"kakavip.198.kaka@gmail.com"
] | kakavip.198.kaka@gmail.com |
ee71398911054d72c2440fe57f222ff41fe9d50c | ebf997ac5814bd20a44646b6690de6913669f2e1 | /plugins/btsync/resources/btsyncUI/freenas/urls.py | 2b3a85c40b8dfa13a5dc5e20d84814d6cc7c5f00 | [] | no_license | MadMarty/freenas-plugins-1 | 4add49728e07fb75191352902969a1ecea67b248 | 4940cd7cc39a26882ea7f4a61799bcea1cea6b34 | refs/heads/master | 2021-01-22T04:23:36.608602 | 2016-05-06T18:02:47 | 2016-05-06T18:02:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | from django.conf.urls import patterns, include, url
urlpatterns = patterns('btsyncUI.freenas.views',
url(r'^edit$', 'edit', name="btsync_edit"),
url(r'^treemenu-icon$', 'treemenu_icon', name="treemenu_icon"),
url(r'^_s/treemenu$', 'treemenu', name="treemenu"),
url(r'^_s/start$', 'start', name="star... | [
"joshruehlig@gmail.com"
] | joshruehlig@gmail.com |
94525c4e1278e1b638d45df4e32589b8ea6e5133 | 3a891a79be468621aae43defd9a5516f9763f36e | /desktop/core/ext-py/pyasn1-0.1.8/test/codec/der/test_decoder.py | 5f0bc0b8be193a1564d66e29a71c3e468855d6a1 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"Apache-2.0"
] | permissive | oyorooms/hue | b53eb87f805063a90f957fd2e1733f21406269aa | 4082346ef8d5e6a8365b05752be41186840dc868 | refs/heads/master | 2020-04-15T20:31:56.931218 | 2019-01-09T19:02:21 | 2019-01-09T19:05:36 | 164,998,117 | 4 | 2 | Apache-2.0 | 2019-01-10T05:47:36 | 2019-01-10T05:47:36 | null | UTF-8 | Python | false | false | 963 | py | from pyasn1.type import univ
from pyasn1.codec.der import decoder
from pyasn1.compat.octets import ints2octs
from pyasn1.error import PyAsn1Error
from sys import version_info
if version_info[0:2] < (2, 7) or \
version_info[0:2] in ( (3, 0), (3, 1) ):
try:
import unittest2 as unittest
except ImportErr... | [
"erickt@cloudera.com"
] | erickt@cloudera.com |
312b1e2bce53e43eed3cdd5faca54bc8a98d4c90 | ce9d90ac5dfd61cc1d3ec57378186a4895323abb | /tests/filters/helpers.py | 0bd99d08eb31da8ac72380689341d36b801acad4 | [
"Apache-2.0"
] | permissive | min-a-youn/plaso | 61ee7f280c471a2e9fcc3407445ddd4f3c5eb125 | 082ff564872f7dd1d0d5d68cca23b3f7b8cdedcb | refs/heads/master | 2020-09-20T22:07:34.631095 | 2019-08-28T06:06:48 | 2019-08-28T06:06:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,455 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Tests for the event filter helper functions and classes."""
from __future__ import unicode_literals
import unittest
from plaso.filters import helpers
from tests import test_lib as shared_test_lib
class CopyValueToDateTimeTest(shared_test_lib.BaseTestCase):
"""Te... | [
"joachim.metz@gmail.com"
] | joachim.metz@gmail.com |
7bb4179aa4bbbb1f06631d13ab17c3564a767a29 | 3e7b2ebb64e9e324ce47d19def21ae62cc1e56a6 | /My Thought/reverse a string.py | 296417613cb9272f294f6413f7eee55df1ccb0ce | [] | no_license | shuvo14051/python-data-algo | 9b6622d9260e95ca9ffabd39b02996f13bdf20d1 | 8f66ff6f2bd88a0ae48dac72e4ea6c5382a836ec | refs/heads/master | 2023-02-03T03:04:01.183093 | 2020-12-13T10:13:15 | 2020-12-13T10:13:15 | 274,106,480 | 0 | 0 | null | 2020-07-05T06:33:28 | 2020-06-22T10:24:05 | Python | UTF-8 | Python | false | false | 188 | py | # this is a complete pythonnic way
# print(a[::-1])
a = "Shuvo"
li = []
for i in a:
li.append(i)
reverse = ''
for i in range(len(li)-1,-1,-1):
reverse += li[i]
print(reverse)
| [
"shuvo1137017@gmail.com"
] | shuvo1137017@gmail.com |
4097dc4928226ce67c6d923fff671e5ca2b9b7d3 | e20ed90b9be7a0bcdc1603929d65b2375a224bf6 | /generated-libraries/python/netapp/job/job_private_delete_iter_key_td.py | 7dde8422f159e87e74cc57255dc0b70f0ea0cce6 | [
"MIT"
] | permissive | radekg/netapp-ontap-lib-gen | 530ec3248cff5ead37dc2aa47ced300b7585361b | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | refs/heads/master | 2016-09-06T17:41:23.263133 | 2015-01-14T17:40:46 | 2015-01-14T17:40:46 | 29,256,898 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,520 | py | from netapp.netapp_object import NetAppObject
class JobPrivateDeleteIterKeyTd(NetAppObject):
"""
Key typedef for table jm_local_jobs_table_remove
"""
_key_2 = None
@property
def key_2(self):
"""
Field vserver
"""
return self._key_2
@key_2.setter
def ... | [
"radek@gruchalski.com"
] | radek@gruchalski.com |
b374191a7cf732d53d219ab1e5838ac5a74b3ab2 | 8fcc27160f8700be46296568260fa0017a0b3004 | /client/cherrypy/test/test_virtualhost.py | e9b88bd297cb6047933124c32d619fd6c0d22cc0 | [] | no_license | connoryang/dec-eve-serenity | 5d867f4eedfa896a4ef60f92556356cafd632c96 | b670aec7c8b4514fc47cd52e186d7ccf3aabb69e | refs/heads/master | 2021-01-22T06:33:16.303760 | 2016-03-16T15:15:32 | 2016-03-16T15:15:32 | 56,389,750 | 1 | 0 | null | 2016-04-16T15:05:24 | 2016-04-16T15:05:24 | null | UTF-8 | Python | false | false | 3,718 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\carbon\common\lib\cherrypy\test\test_virtualhost.py
import os
curdir = os.path.join(os.getcwd(), os.path.dirname(__file__))
import cherrypy
from cherrypy.test import helper
class VirtualHostTest(helper.CPWebCase):
def setu... | [
"masaho.shiro@gmail.com"
] | masaho.shiro@gmail.com |
152c01b7254082a6295aa8c64ce3f0600ca33d97 | be134c181703b95aca1e48b6a31bcfdb7bcfcc76 | /site/mezzanine_old/galleries/migrations/0001_initial.py | 11f1937e16fbf9cff1135c9e2c992c658bbfd803 | [] | permissive | aldenjenkins/ThiccGaming | 0245955a797394bcfeedb2cfb385f633653ba55d | 4790d2568b019438d1569d0fe4e9f9aba008b737 | refs/heads/master | 2022-12-16T02:43:36.532981 | 2021-11-17T04:15:21 | 2021-11-17T04:15:21 | 154,858,818 | 0 | 0 | BSD-3-Clause | 2022-12-08T02:58:44 | 2018-10-26T15:52:39 | Python | UTF-8 | Python | false | false | 1,837 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import mezzanine.core.fields
class Migration(migrations.Migration):
dependencies = [
('pages', '__first__'),
]
operations = [
migrations.CreateModel(
name='Gallery',
... | [
"alden@aldenjenkins.com"
] | alden@aldenjenkins.com |
b08be16b6f55bbb29dd93651676a710322f99cdd | 2fcb5da42f0aff62c88189bd36fc5f61a40eb604 | /vardautomation/timeconv.py | 3b84b24deda8187b48a85d3ae7948559d45a7404 | [
"MIT"
] | permissive | tomato39/vardautomation | d45ec446a1cd06c2e7b7ec5378772953fa7b4caa | efa24d9420d6a6f732e8b0a846874a289a7cb095 | refs/heads/master | 2023-08-23T01:44:00.014196 | 2021-10-21T23:05:52 | 2021-10-21T23:09:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,647 | py | """Conversion time module"""
from fractions import Fraction
from .status import Status
class Convert:
"""Collection of methods to perform time conversion"""
@classmethod
def ts2f(cls, ts: str, fps: Fraction, /) -> int:
"""
Convert a timestamp hh:mm:ss.xxxx in number of frames
:... | [
"ichunjo.le.terrible@gmail.com"
] | ichunjo.le.terrible@gmail.com |
c4cc3eae8ce8dc40427cfc6263c0d8d9207e33ce | e2590e0a78046a22131b69c76ebde21bf042cdd1 | /ABC201_300/ABC275/A.py | 6bc5a95d16891d1502a3adf5fbd2ff8aa0b3a6a3 | [] | no_license | masato-sso/AtCoderProblems | b8e23941d11881860dcf2942a5002a2b19b1f0c8 | fbc02e6b7f8c6583e5a4e5187463e0001fc5f4d8 | refs/heads/main | 2023-01-22T23:57:58.509585 | 2023-01-21T14:07:47 | 2023-01-21T14:07:47 | 170,867,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py |
N = int(input())
H = list(map(int, input().split()))
maxValue = max(H)
ans = 0
for idx,h in enumerate(H):
if(h == maxValue):
ans = idx + 1
break
print(ans) | [
"masato@seijinnoMacBook-Pro-2.local"
] | masato@seijinnoMacBook-Pro-2.local |
a0d3caee1fbf6c2afadd6139c75f0fb247dbe328 | b24e45267a8d01b7d3584d062ac9441b01fd7b35 | /Usuario/.history/views_20191102195546.py | 879e6589a3c510e2404c8ff9b59bed87520c898f | [] | no_license | slalbertojesus/merixo-rest | 1707b198f31293ced38930a31ab524c0f9a6696c | 5c12790fd5bc7ec457baad07260ca26a8641785d | refs/heads/master | 2022-12-10T18:56:36.346159 | 2020-05-02T00:42:39 | 2020-05-02T00:42:39 | 212,175,889 | 0 | 0 | null | 2022-12-08T07:00:07 | 2019-10-01T18:56:45 | Python | UTF-8 | Python | false | false | 3,630 | py | from django.shortcuts import render
from rest_framework import status
from rest_framework.response import Response
from rest_framework.decorators import api_view, permission_classes
from rest_framework.permissions import AllowAny
from rest_framework_simplejwt.tokens import RefreshToken
from .models import Us... | [
"slalbertojesus@gmail.com"
] | slalbertojesus@gmail.com |
ae8caa3e5755b5b934074980647e9b8a044a2e9a | 2d930aadf19b2ad6ea49725099d2f37475cd57f8 | /test/functional/wallet-dump.py | c3f723a19bbd46584fb33bce6dba37487abcdcbe | [
"MIT"
] | permissive | stratton-oakcoin/oakcoin | ea83774c9f6ea64adb8832770e6219ffb31edef6 | fe53193a50bd3674211448f1dcc39c6f9f042bb2 | refs/heads/master | 2021-01-20T13:22:05.877005 | 2017-05-07T10:09:57 | 2017-05-07T10:09:57 | 90,477,972 | 1 | 2 | null | 2017-05-07T10:09:57 | 2017-05-06T16:58:05 | C++ | UTF-8 | Python | false | false | 4,770 | py | #!/usr/bin/env python3
# Copyright (c) 2016 The Oakcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the dumpwallet RPC."""
from test_framework.test_framework import OakcoinTestFramework
from test_framew... | [
"s.matthew.english@gmail.com"
] | s.matthew.english@gmail.com |
4cf799ae31dfe4802a0d9299a2f9c9087c10afe6 | 0add969034a82912bc6e19abc427abe883ee65bb | /theta_en_time_polar.py | a9683111bde6bafb250a54492723f599975e5624 | [] | no_license | Michael-Gong/New_LPI_python_script | eefd162fdbbc3c614c66e2b157ea5296e3bc8492 | 9de109c6f19aa60bdeaf102e9a1ec0baff5669ad | refs/heads/master | 2020-03-28T16:06:09.631550 | 2020-02-01T08:21:17 | 2020-02-01T08:21:17 | 148,659,608 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,511 | py | #%matplotlib inline
#import sdf
import matplotlib
import matplotlib as mpl
#mpl.style.use('https://raw.githubusercontent.com/Michael-Gong/DLA_project/master/style')
matplotlib.use('agg')
import matplotlib.pyplot as plt
import numpy as np
from numpy import ma
from matplotlib import colors, ticker, cm
from matplotlib.mla... | [
"noreply@github.com"
] | Michael-Gong.noreply@github.com |
373f9f9cd537df8df9fb85fee9220607f78f2be6 | de5adea6b67660bfc45150ee56b6cf4957c8c4e7 | /main_app/migrations/0001_initial.py | f522eb7c2263895a61cc3153af186e867e0d5fdf | [] | no_license | arthuroe/treasure_gram | 70049a25009318d947488dea28505f65816d9d84 | 5ce93ed21284fee17640b15546011848de3115ac | refs/heads/develop | 2020-03-18T02:16:19.413381 | 2018-05-23T17:18:58 | 2018-05-23T17:24:16 | 134,182,468 | 0 | 0 | null | 2018-05-28T18:52:48 | 2018-05-20T20:02:49 | Python | UTF-8 | Python | false | false | 824 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-05-20 21:27
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Treasure... | [
"arthur.orache@gmail.com"
] | arthur.orache@gmail.com |
3b1a469d9c82b2869b62462652c2a0c924e3bb31 | 470e0a9dc07edfe13ca68f2a1b6d60d0e395e095 | /3-2.py | b67172d7abbc097ec46a4caa894c73eba80c02c4 | [] | no_license | mj08021/ThisIsCodingTestforGetaJob | 77ce8edab2bd855db9b96597982f58251d0bd31e | ad98b368956937065c6c396b2806351a4eaf12a2 | refs/heads/main | 2023-04-28T10:51:02.012344 | 2021-05-16T05:51:58 | 2021-05-16T05:51:58 | 316,853,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | # N, M, K를 공백으로 구분하여 입력받기
n, m, k = map(int, input().split())
# N개의 수를 공백으로 구분하여 입력받기
data = list(map(int, input().split()))
data.sort() # 입력받은 수 정렬
first = data[n - 1] # 가장 큰 수
second = data[n - 2] # 두 번째로 큰 수
# 가장 큰 수가 더해지는 횟수 계산
count = int(m / (k + 1)) * k
count += m % (k + 1)
result = 0
result += (count)... | [
"replituser@example.com"
] | replituser@example.com |
f2a7ee60c707d01abd0cb97f85cf647ce9ebf4e3 | a6df74bc7c139734bd9ce9f48d51e08fdc7d7efb | /article/migrations/0006_auto_20210311_1721.py | 116d4f2900f9f0f393ad9eb58894d557a6c11b5c | [] | no_license | Erlan1998/python_group_7_homework_68_Erlan_Kurbanaliev | 5a7f210e51f1998e5d52cdeb42538f2786af3f9f | fdc92be2c5187c78fecdc713f58e0e3e9fc62cb1 | refs/heads/master | 2023-05-03T17:01:59.066596 | 2021-05-26T13:28:41 | 2021-05-26T13:28:41 | 368,165,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | # Generated by Django 3.1.6 on 2021-03-11 17:21
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('article', '0005_auto_20210311_1319'),
]
operations = [
migrations.RenameField(
model_name='article',
old_name='tags',
... | [
"kurbanalieverlan@gmail.com"
] | kurbanalieverlan@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.