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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
99ff3e7ade0da42ca32cdfde9f0790b134c6104c | 03f037d0f6371856ede958f0c9d02771d5402baf | /graphics/VTK-7.0.0/Filters/Hybrid/Testing/Python/TestGridWarpCubic.py | 3ac80691478548375cd3908f84171a5541810083 | [
"BSD-3-Clause"
] | permissive | hlzz/dotfiles | b22dc2dc5a9086353ed6dfeee884f7f0a9ddb1eb | 0591f71230c919c827ba569099eb3b75897e163e | refs/heads/master | 2021-01-10T10:06:31.018179 | 2016-09-27T08:13:18 | 2016-09-27T08:13:18 | 55,040,954 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,569 | py | #!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# first, create an image to warp
imageGrid = vtk.vtkImageGridSource()
imageGrid.SetGridSpacing(16,16,0)
imageGrid.SetGridOrigin(0,0,0)
imageGrid.SetDataExtent(0,255,0,255,0,... | [
"shentianweipku@gmail.com"
] | shentianweipku@gmail.com |
cbda0043684977a8b311c0736d3783051a09e047 | b70d64aabb196a5ca5614e88712722a983b5e383 | /Stacks & Queues/k Queues in a single array.py | 1acd9fa5392d8eaf195b2d85c20a7b9fab2842b7 | [
"MIT"
] | permissive | SupriyoDam/DS-450-python | 023ee87461f9d77fcaf949571d4e033eb2a49ca7 | 5dc21ce61b3279e9bd9d6ef3ad236667227ca283 | refs/heads/main | 2023-06-04T11:39:17.576813 | 2021-07-01T14:27:13 | 2021-07-01T14:27:13 | 381,083,361 | 1 | 0 | MIT | 2021-06-28T15:42:55 | 2021-06-28T15:42:55 | null | UTF-8 | Python | false | false | 1,485 | py | class KStacks():
def __init__(self, k, capacity):
self.nextAvailable = 0
self.data = [0] * capacity
self.front = [-1] * k
self.rear = [-1] * k
self.nextIndex = [i+1 for i in range(capacity)]
self.nextIndex[capacity-1] = -1
def isFull(self):
return self.ne... | [
"iamkaushik2014@desktop.com"
] | iamkaushik2014@desktop.com |
fe06a29d5fce747627955d08632d85d9219aa883 | ae4be4a17468f89e06975a402cddd7dabf692ec9 | /others/Sumitomo_Mitsui_Trust_Bank_Programming_Contest/2019/B/source.py | 0244240e1b0023e3dcb01ce996a1b92558ba0fe3 | [] | no_license | naru380/AtCoder | 95ae61230d3182dc2a317a77f8e9300c68443199 | 296d071d6a91ea7e061ee3923b5c26b0c7536119 | refs/heads/master | 2020-09-20T02:12:29.405393 | 2020-05-31T09:58:08 | 2020-05-31T09:58:08 | 224,354,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | import math
N = int(input())
for i in range(50001):
price = math.floor(i * 1.08)
if (N == price):
print(i)
exit(0)
print(':(')
| [
"naruhey1211guitar.m@gmail.com"
] | naruhey1211guitar.m@gmail.com |
b5c0191f3ed1fd698affd8de4ad8b4dd553f9777 | 82fce9aae9e855a73f4e92d750e6a8df2ef877a5 | /Lab/venv/lib/python3.8/site-packages/OpenGL/GLES1/OES/point_size_array.py | ab39c4de9af3cf5404686f7f92e3655072b7f2f0 | [] | no_license | BartoszRudnik/GK | 1294f7708902e867dacd7da591b9f2e741bfe9e5 | 6dc09184a3af07143b9729e42a6f62f13da50128 | refs/heads/main | 2023-02-20T19:02:12.408974 | 2021-01-22T10:51:14 | 2021-01-22T10:51:14 | 307,847,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,536 | py | '''OpenGL extension OES.point_size_array
This module customises the behaviour of the
OpenGL.raw.GLES1.OES.point_size_array to provide a more
Python-friendly API
Overview (from the spec)
This extension extends how points and point sprites are rendered
by allowing an array of point sizes instead of a fixed input ... | [
"rudnik49@gmail.com"
] | rudnik49@gmail.com |
65fc8c5e98fb072e7c87734222f0277b76a2e033 | 3cb8b661c19b3dec7e600be8dc88be89541dcf20 | /SystemGui/queryDialog.py | ef65a7e87e4de34fda10ebdb6efc4634db888926 | [] | no_license | FlyEgle/DataBaseInformationSystem | 830119090ae0a6ca7f74d1d3492935efeb4ad802 | ebec1e1686d8dd5b1aa3418e9095b944114264d1 | refs/heads/master | 2020-09-14T16:04:12.091487 | 2019-11-21T13:17:14 | 2019-11-21T13:17:14 | 223,177,537 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,110 | py | """
查询数据库中的信息,按两种方式进行查询,一个是按编号排序,一个是按名称排序
"""
import sys
from PyQt5.QtWidgets import QApplication, QPushButton, QLabel, QComboBox
from PyQt5.QtWidgets import QDialog, QLineEdit
from PyQt5.QtCore import Qt
# 社团信息
class SheTuanInfoQueryDataBase(QDialog):
def __init__(self):
super(SheTuanInfoQueryDataBase, s... | [
"13246876815@163.com"
] | 13246876815@163.com |
5c71abf622863a4450584aa799bcdedffe9a1957 | c8c95520fb1a17d627a0256df2c6702f4f53403a | /7.26.9_exercises.py | bc827be5b514f374dddae349f5c6b205d2703591 | [] | no_license | wsargeant/httlacs | 608f1b4b34c95f18f934f10883beb56a2895c269 | 3337b369c541e18d5ed9ecbca35494c3ebcfa591 | refs/heads/master | 2023-02-21T21:10:03.228762 | 2021-01-25T08:44:46 | 2021-01-25T08:44:46 | 284,936,152 | 0 | 0 | null | 2020-08-28T10:35:17 | 2020-08-04T09:32:38 | null | UTF-8 | Python | false | false | 265 | py | def print_triangular_numbers(n):
total = 0
for i in range(n+1):
total = total + i
print(n, "\t", total)
print_triangular_numbers(1)
print_triangular_numbers(2)
print_triangular_numbers(3)
print_triangular_numbers(4)
print_triangular_numbers(5)
| [
"69194027+wsargeant@users.noreply.github.com"
] | 69194027+wsargeant@users.noreply.github.com |
8a30f7ae53f591a2fdb15bd4c9f8391db71c2267 | 450b3bda6ecbecc4eba4309588873a7db22aeeb0 | /venv/Lib/site-packages/openni/nite2.py | 28c61921afcef08f0753a4aea2252417506a9891 | [
"MIT"
] | permissive | omar115/face-recognition-opencv | 2e74208b139e6c59b8d255acce0d3b78fb0717d5 | 37d3e29483e55b8ad1a440a40d82003f1052a457 | refs/heads/master | 2022-12-01T19:09:09.867534 | 2020-08-04T06:53:11 | 2020-08-04T06:53:11 | 284,900,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,090 | py | # pylint: disable=W0212,W0603
import sys
import os
import weakref
import atexit
import ctypes
import platform
from openni import _nite2 as c_api
from openni import openni2
from openni.utils import inherit_properties, ClosedHandle, HandleObject, InitializationError
from openni._nite2 import NiteJointType a... | [
"omarhasan115@gmail.com"
] | omarhasan115@gmail.com |
8f4904bc27a8950d5f48cc5c6446b934b84d107e | ff21dd1b906db472584aa92a32c22fb9351c9ffd | /NOTE/14_Django/day06/mywebsite5/demo/urls.py | a06ff9d4f25861e1403c01f40e69e55c8bf2dc51 | [] | no_license | Bertram-Liu/Note | 0e176b2c9625f02e463b8f6be3587f1f0b873e9b | 60a30b03ff5d41ab6233e6fd30074de396703b68 | refs/heads/master | 2020-07-18T18:14:24.920528 | 2019-09-04T11:55:59 | 2019-09-04T11:55:59 | 206,290,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$',views.demo_views),
url(r'^post_view/$',views.post_view,name='post_view'),
url(r'^get_view/$',views.get_view),
url(r'^remark/$',views.remark,name='remark')
] | [
"bertram_liu@163.com"
] | bertram_liu@163.com |
4070e91d58512ab4fd2d5f742f76df953a407eb8 | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /tests/components/wallbox/test_config_flow.py | bf0ab95e52263268676685a9cd0cd250b1a31247 | [
"Apache-2.0"
] | permissive | home-assistant/core | 3455eac2e9d925c92d30178643b1aaccf3a6484f | 80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743 | refs/heads/dev | 2023-08-31T15:41:06.299469 | 2023-08-31T14:50:53 | 2023-08-31T14:50:53 | 12,888,993 | 35,501 | 20,617 | Apache-2.0 | 2023-09-14T21:50:15 | 2013-09-17T07:29:48 | Python | UTF-8 | Python | false | false | 6,974 | py | """Test the Wallbox config flow."""
from http import HTTPStatus
import json
import requests_mock
from homeassistant import config_entries, data_entry_flow
from homeassistant.components.wallbox import config_flow
from homeassistant.components.wallbox.const import (
CHARGER_ADDED_ENERGY_KEY,
CHARGER_ADDED_RANGE... | [
"noreply@github.com"
] | home-assistant.noreply@github.com |
ebc0453780cb3b0689a32457299bf22822e83933 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/101/usersdata/205/49699/submittedfiles/av1_m3.py | f1e6816800cdca50252dbe5df4f7432ce7ecd28c | [] | 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 | 274 | py | # -*- coding: utf-8 -*-
import math
m=int(input('digite o valor de m:'))
c=3
cont=o
a=0
b=2
for i in range (1,m,1):
a=4/(b*(b+1)*(b+2)):
cont=cont+1
if (cont%2==0):
c=c-a
if ( cont%2==1):
c=c+a
print (m)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
abca194892b61a60ff5952f50a3da4c15a9604a9 | a4c5ee2b610408e8db323e25ec5d964baf8716fc | /peteslist/models.py | 93b408561185b98478f3c2493c2671dd51fa902a | [] | no_license | peteralfredoflynn/freds-list-evolved | 069992c1acec89d2506adb50a57c71fd55021d65 | fdf7500e7593595bca86a0ac255413f2c33a4738 | refs/heads/master | 2021-01-21T09:52:46.606396 | 2015-11-29T08:38:52 | 2015-11-29T08:38:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,580 | py | from django.contrib.auth.models import User
from django.db import models
class Location(models.Model):
state = models.CharField(max_length=25)
city = models.CharField(max_length=40)
def __str__(self):
return "{}, {}".format(self.city, self.state)
class Type(models.Model):
title = models.Cha... | [
"abc@abc.com"
] | abc@abc.com |
76c6cca45db53add0bc49df124288ebcad4a6974 | ff366d217d2d5d2bab0e0ad10297b3b0e68a3bfe | /Source/tests/data/test_data_management.py | 8eec0ad04ae531c883b477c22d59ad40a9649c52 | [
"BSD-3-Clause"
] | permissive | adamkerz/arcpyext | 1271da3566e413f31696c89c882161800711e8d4 | 6b2cc8e9833e1145a3fa16bc2ca3d038e16efb33 | refs/heads/master | 2020-04-03T20:37:11.226817 | 2015-02-18T01:49:46 | 2015-02-18T01:49:46 | 31,404,861 | 0 | 0 | null | 2015-02-27T05:25:42 | 2015-02-27T05:25:42 | null | UTF-8 | Python | false | false | 2,749 | py | import os.path
import arcpy
import pytest
import arcpyext
CLIP2_PATH = os.path.normpath("{0}/samples/statesp020_clip2.shp".format(os.path.dirname(__file__)))
@pytest.fixture(scope="module")
def workspace():
return os.path.normpath("{0}/samples/test_data_states.gdb".format(os.path.dirname(__file__)))
@pytest.fi... | [
"DavidWhittingham@users.noreply.github.com"
] | DavidWhittingham@users.noreply.github.com |
fc10a212b8d5870fc918dbdc7362509b4035289f | 25ba4b387bf6bb278af1335b18e99ea0389548be | /think_python_solutions/chapter-14/exercise-14.4.py | 81d30c9c3024b94804114f25c40a89db2b8e6567 | [] | no_license | adwanAK/adwan_python_core | 56ffc63b326ec3f6739bc4733c060dc49554f1ae | 745922331cf36f65376c55115ee9a3df4d5c0450 | refs/heads/master | 2022-12-12T21:35:42.387685 | 2018-09-26T08:53:43 | 2018-09-26T08:53:43 | 148,442,004 | 2 | 1 | null | 2022-12-08T02:23:54 | 2018-09-12T07:46:34 | Python | UTF-8 | Python | false | false | 2,473 | py | #!/usr/bin/env python
# encoding: utf-8
"""
exercise-14.3.py
Created by Terry Bates on 2014-02-04.
Copyright (c) 2014 http://the-awesome-python-blog.posterous.com. All rights reserved.
"""
import sys
import os
import collections
import argparse
import re
import collections
MP_PATTERN = ".mp(3|4)$"
MD5_CMD = '/sw/bi... | [
"breuss.martin@gmail.com"
] | breuss.martin@gmail.com |
d17ba4ab1076275c4cbde6728157b450bbd52353 | bd53463ce307f3a70dc514922d24239bcf08c905 | /ArtSenz/accounts/urls.py | 6259191f5d7cbd5f35baa477eaf87542dac3b25e | [] | no_license | harrysingh2k19/ArtSenz | bdb29ff425f12733d76b93ff174c3f5d29baeeef | fb405cd26e39ba707b26268d17f1d7b96337fe1a | refs/heads/main | 2023-01-30T09:53:18.154217 | 2020-12-13T19:02:06 | 2020-12-13T19:02:06 | 320,862,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | from django.contrib import admin
from django.urls import path
from . import views
urlpatterns = [
path('',views.index,name="index"),
path('user_article',views.user_article,name="user_article"),
path('add_article',views.add_article,name="add_article"),
path('registration/... | [
"you@example.com"
] | you@example.com |
119e3eb34106f9df6013d2a8bd9d6ff74126c4c0 | 656df056ad736fdaaa1ef428ef09786c5a3d1494 | /codigo/TFT/ST7735/Hosaka/tft.py | e7acf89e7bd00d1eaa95c2831bd6156519ad8192 | [] | no_license | javacasm/micropythonTutorial | a610024096b50512347bcb72937facd41cf6db8e | cc90e26763ef884e0311eecccc6c72c6c94a0a30 | refs/heads/master | 2022-02-03T20:06:10.315551 | 2022-01-25T11:02:09 | 2022-01-25T11:02:09 | 159,473,846 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,345 | py | # MicroPython ST7735 TFT display HAL
import time
from st7735 import ST7735
class TFT(ST7735):
def __init__(self, width, height, spi, dc, cs, rst, bl=None):
"""
SPI - SPI Bus (CLK/MOSI/MISO)
DC - RS/DC data/command flag
CS - Chip Select, enable communication
... | [
"javacasm@gmail.com"
] | javacasm@gmail.com |
4bdeff271df3003af3c18609f261e1658ba30385 | 59080f5116b9e8f625b5cc849eb14b7ff9d19f3d | /112 django_study/conf/app01/views.py | cc173fc0e6c1c67e35e0ad948ad2061fe0b99cf5 | [] | no_license | yyq1609/Python_road | eda2bcd946b480a05ec31cdcb65e35b3f3e739d1 | e9ba2f47c8dd2d00a6e5ddff03c546152efd8f49 | refs/heads/master | 2020-09-11T11:51:35.903284 | 2019-11-11T13:02:21 | 2019-11-11T13:02:21 | 222,054,462 | 1 | 0 | null | 2019-11-16T05:58:13 | 2019-11-16T05:58:12 | null | UTF-8 | Python | false | false | 444 | py | from django.core.signals import request_started
from django.shortcuts import HttpResponse
# Create your views here.
# 方式一
def callback(sender, **kwargs):
print("哈哈哈,请求来了。。。")
print(sender, kwargs)
request_started.connect(callback)
def index(request):
print('here')
return HttpResponse('Index')
i... | [
"958976577@qq.com"
] | 958976577@qq.com |
227d92899dde5d7338cdaf4b5be181437fa1256d | b88802ee7e6de27186b30203855ba7f6c45b7055 | /feedbackapp/migrations/0003_auto_20210321_1017.py | 63464912b5220affb288947ba98ff745c8af9fcc | [
"MIT"
] | permissive | KONAPAVANKUMAR/feedback-app-django | 4d05730d6afadfcd5055aa75180ef72c69b61b4a | 27d5c163636e58ce76579e1400de418a15a88704 | refs/heads/main | 2023-06-08T23:17:24.767182 | 2021-06-21T07:38:50 | 2021-06-21T07:38:50 | 360,025,760 | 0 | 0 | MIT | 2021-06-21T07:38:50 | 2021-04-21T03:54:09 | HTML | UTF-8 | Python | false | false | 348 | py | # Generated by Django 3.1.4 on 2021-03-21 10:17
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('feedbackapp', '0002_remove_question_options'),
]
operations = [
migrations.RenameModel(
old_name='question',
new_name='Quest... | [
"pavankumarkona@PAVANs-MacBook-Pro.local"
] | pavankumarkona@PAVANs-MacBook-Pro.local |
40843065ce9a2224850514592dd3eacb84b125df | bedae10cbaf676d8f309fa593028558d9a6e9c6b | /Algorithm/Easy/1-500/260SameDiagonalElements.py | 77516ad9070df9b5dd7b639e4717753c84358562 | [
"MIT"
] | permissive | MartinYan623/Lint-Code | 5800d61a54f87306c25ff2e3d535145312b42c66 | 57d2fa441d6496234615736e3f55d0b71aaa51dc | refs/heads/master | 2021-06-06T13:51:19.587424 | 2021-04-21T12:23:19 | 2021-04-21T12:23:19 | 139,412,536 | 0 | 0 | null | 2020-08-08T10:28:52 | 2018-07-02T08:18:11 | Python | UTF-8 | Python | false | false | 488 | py | class Solution:
"""
@param matrix: a matrix
@return: return true if same.
"""
def judgeSame(self, matrix):
# write your code here.
n = len(matrix)
flag = True
for i in range(n - 1):
row = 1
col = i + 1
while col < n:
... | [
"Maitong_y@163.com"
] | Maitong_y@163.com |
225545742bdd9d94f935139b333693f6df7677e6 | a8422c373624d6c438a13397a33dbde9455f3cf9 | /art/margins.py | 17e6b3fbeb4102611ad04fb8c867c1c35a57e775 | [] | no_license | kalekundert/wedding_website | 54efa5e6c2f1a0d2e3c9bfaf46467dd87b416f5b | 8d10f94014669ffee7da30f1f0e30cd515f79130 | refs/heads/master | 2021-05-08T02:29:23.684344 | 2018-07-05T05:18:54 | 2018-07-05T05:18:54 | 108,084,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | #!/usr/bin/env python3
"""\
Calculate how much space should go between the ends of the navbar banner and
the right- and left-most links, such that this space is about half that between
each link.
"""
link_widths = [
36.747, # "Events"
34.439, # "Travel"
44.222, # "Lodging"
45.190, # ... | [
"kale@thekunderts.net"
] | kale@thekunderts.net |
783836c2a79cd24f291b7f9fb41d2f4daddce866 | e6a90d21e9a983476adda3cccc832a828875cea9 | /Lib/site-packages/ufl/finiteelement/feec.py | 20d07b0eb69b8262a8ebef447339119dbc7a4f9d | [] | no_license | maciekswat/dolfin_python_deps | e28c27780d535c961e4b3129bb17628a4ff7167a | 7af15cd0ab522436ca285f8422faa42675345f55 | refs/heads/master | 2021-01-25T12:14:55.779591 | 2014-04-23T22:51:19 | 2014-04-23T22:51:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,138 | py | # Copyright (C) 2010-2013 Marie E. Rognes
#
# This file is part of UFL.
#
# UFL is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
... | [
"maciekswat@gmail.com"
] | maciekswat@gmail.com |
1b45cee610aa51f0048495ed4f88d84bd88f73d2 | 0533d0ceb5966f7327f40d54bbd17e08e13d36bf | /python/Heap/Minimum Time to Build Blocks/Minimum Time to Build Blocks.py | 06b6afb5a2751ec436c564094a267a82c289ea68 | [] | no_license | danwaterfield/LeetCode-Solution | 0c6178952ca8ca879763a87db958ef98eb9c2c75 | d89ebad5305e4d1a185b0c6f101a88691602b523 | refs/heads/master | 2023-03-19T01:51:49.417877 | 2020-01-11T14:17:42 | 2020-01-11T14:17:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | import heapq
class Solution(object):
def minBuildTime(self, blocks, split):
"""
:type blocks: List[int]
:type split: int
:rtype: int
"""
heapq.heapify(blocks)
while len(blocks) > 1:
node1 = heapq.heappop(blocks)
node2 = heapq.heappo... | [
"zjuzjj@gmail.com"
] | zjuzjj@gmail.com |
38009e41a5ee4302dbbcd4bd03a2ee4ed3536b6b | f5d1e8b54ddbc51a9ef1b868eee93096d9b0fbeb | /weapp/core/wxpay/wxpay_feedback.py | ad87e2d6082980c8f7c6054d3993013362297d56 | [] | no_license | chengdg/weizoom | 97740c121724fae582b10cdbe0ce227a1f065ece | 8b2f7befe92841bcc35e0e60cac5958ef3f3af54 | refs/heads/master | 2021-01-22T20:29:30.297059 | 2017-03-30T08:39:25 | 2017-03-30T08:39:25 | 85,268,003 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | # -*- coding: utf-8 -*-
__author__ = 'chuter'
from BeautifulSoup import BeautifulSoup
#
#微信支付维权
#
class WxpayFeedback(object):
def __init__(self, request):
if request is None:
raise ValueError('request can not be None')
self.feedback_request = request
def get_feedback_data_soup(self):
... | [
"jiangzhe@weizoom.com"
] | jiangzhe@weizoom.com |
d02625dbf8cc4fd37c8bc12bdafce35c5b3eaa8c | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnarchi.py | efc1a045037f48bf8598164886b0aaafd8b7fe1a | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 298 | py | ii = [('RogePAV2.py', 1), ('FerrSDO3.py', 4), ('RennJIT.py', 1), ('WilkJMC3.py', 1), ('WilkJMC2.py', 1), ('DaltJMA.py', 2), ('WestJIT2.py', 1), ('LeakWTI.py', 1), ('BachARE.py', 1), ('HowiWRL2.py', 2), ('WilkJMC.py', 3), ('RoscTTI.py', 1), ('MackCNH2.py', 3), ('DibdTRL.py', 1), ('LyelCPG3.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
6151574b99f9bd5556020bc1e2303980fcff2a4a | d66818f4b951943553826a5f64413e90120e1fae | /hackerearth/Algorithms/Easylife/solution.py | 74c5e1396f4ce18298a4be0515a06a172483d6b0 | [
"MIT"
] | permissive | HBinhCT/Q-project | 0f80cd15c9945c43e2e17072416ddb6e4745e7fa | 19923cbaa3c83c670527899ece5c3ad31bcebe65 | refs/heads/master | 2023-08-30T08:59:16.006567 | 2023-08-29T15:30:21 | 2023-08-29T15:30:21 | 247,630,603 | 8 | 1 | MIT | 2020-07-22T01:20:23 | 2020-03-16T06:48:02 | Python | UTF-8 | Python | false | false | 1,318 | py | """
# Sample code to perform I/O:
name = input() # Reading input from STDIN
print('Hi, %s.' % name) # Writing output to STDOUT
# Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail
"""
# Write your code here
from collections import defaultdict
def c... | [
"hbinhct@gmail.com"
] | hbinhct@gmail.com |
2cca9dc61a31ebca27f834beb073c8c974a538ee | 7b383cab8f9708dd9bc00c939cbab9600c0ca894 | /UP2/NCS1/USBCam/Classes/CamRead.py | 1c0097ad19843a3de3a9120cbed79bb8593bbb60 | [
"MIT"
] | permissive | amirunpri2018/TassAI | 3f05b1b848d6d93fe491761589352bc0521496c3 | 3451f34d8973b67a823784e7db8fde03b274a60d | refs/heads/master | 2022-12-22T06:48:46.024068 | 2020-10-01T15:43:25 | 2020-10-01T15:43:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,112 | py | ######################################################################################################
#
# Organization: Asociacion De Investigacion En Inteligencia Artificial Para La Leucemia Peter Moss
# Project: UP2 NCS1 Facial Recognition USB Security System
#
# Author: Adam Milton-Barker (AdamMiltonB... | [
"adammiltonbarker@eu.techbubbletechnologies.com"
] | adammiltonbarker@eu.techbubbletechnologies.com |
da442664d61b6a35fca44fd57c86e0f61640e65c | 477da03516ecfa55df8947a6fb6519ca457ffd74 | /snippets/migrations/0003_auto_20201216_0150.py | 65924da9c128e76d827cb7f875b60ba56b2a4eb7 | [] | no_license | hossamelneily/GraphQLDjango | 3054e8d8b7092fccf2f012c01b45bbed8b097a1f | e683b5d9f427a6e160f129ea6a4af9169a18a19a | refs/heads/master | 2023-01-30T12:12:40.721719 | 2020-12-16T03:17:50 | 2020-12-16T03:17:50 | 321,853,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | # Generated by Django 3.1.2 on 2020-12-16 01:50
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('snippets', '0002_auto_20201216_0014'),
]
operations = [
migrations.AlterField(
model_name='snip... | [
"hossamelneily@gmail.com"
] | hossamelneily@gmail.com |
e9259eeabcd0b929ee36ac908009fb887ce03891 | 0d46c2162cef75e7de5686ed976a95758fea1777 | /python/Oct22/76. Minimum Window Substring.py | 1b165df41744594c760fb79e376c5ec1fef1cad1 | [
"MIT"
] | permissive | souradeepta/leetcode-practice | 7011d8a6a86d355d0855e1a111a0877ead95a46a | f6697489389406ec00e0583ffa9eb738bdbd650c | refs/heads/master | 2022-11-19T00:48:10.452720 | 2022-11-17T05:48:19 | 2022-11-17T05:48:19 | 221,578,342 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,299 | py | from collections import Counter
class Solution:
def minWindow(self, s: str, t: str, type=0) -> str:
"""Given two strings s and t of lengths m and n
respectively, return the minimum window substring
of s such that every character in t (including
duplicates) is included in the window... | [
"sdb.svnit@gmail.com"
] | sdb.svnit@gmail.com |
2ccd8c8cb3c4c4745dd85ee76026f4d6d2f06847 | 5154364983b0e44c4af2d41a59cfa8edc923283a | /python_Source/untitled2/chapter11/thread_sec04.py | 1d9802a4213f6706f2fb9a11bf32bec2abccb497 | [] | no_license | vasana12/python_python_git | 082f84df30e4b307d223e8970f87a7432a1d80fd | db87e112731fca1fe80fef29d8f180f19b9e7afc | refs/heads/master | 2020-03-30T23:22:30.197307 | 2018-11-24T05:05:51 | 2018-11-24T05:05:51 | 151,698,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | #-*-coding: utf-8 -*-
import threading
import time
def Mythread():
for i in range(10000):
print(i)
if __name__ =='__main__':
t = threading.Thread(target=Mythread)
t.setDaemon(True) #mainThread 종료되는 시점에 같이 종료됨
t.start() #메인 스레드 종료되면 Daemon으로 설정한 스레드 자동 종료됨(true 일때)
if t.isAlive(... | [
"wodud6349@gmail.com"
] | wodud6349@gmail.com |
4cec62e5e4f73a5573be02dc6dbd520aa3551748 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02691/s213437366.py | 5d6bc6c226b1c1b8ad1fbeb99e65e160f5c2e22b | [] | 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 | 471 | py | def main():
n = int(input())
a = list(map(int,input().split()))
f,s = {},{}
for i in range(n):
if i+1-a[i] not in f.keys():
f[i+1-a[i]] = 1
else:
f[i+1-a[i]]+=1
if i+1+a[i] not in s.keys():
s[i+1+a[i]] = 1
else:
s[i+1+a[i]] ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
62b1e2d1028f4bac1de92c1b259f029fa1a1a87b | c83dbff8e7124a55def992f0eebe01980dda1b6f | /shanghaiyouyou/WebUiStudy/day7/po模式实战/__init__.py | 65cf9b0cc9954e7d22181c691477e95f5a00e014 | [] | no_license | kakashi-01/python-0504 | 49074ef0627c08247133f91323fb1e03723f3089 | 8065956de0cfb675e083ac692b243988d9e8d4b7 | refs/heads/master | 2022-12-11T21:08:12.844763 | 2020-09-08T09:06:18 | 2020-09-08T09:06:18 | 293,757,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | #coding=utf-8
#author:Kingving time:2020/6/11 0:51
| [
"894948041@qq.com"
] | 894948041@qq.com |
eb5fa4739a665381489ff2b588c7d50ef7a098c5 | 05f31938fb0dc64219407f5857989787a9840d03 | /users/migrations/0001_initial.py | ec77c0ec1aa11b91e929e155fd8e3d12f4e4c9e0 | [] | no_license | KevinSantizo/PROYECTOK | 5f07d3143707e9182b58f3f03d897eef1cb81e21 | e86bd845fb4209cc6b7391e86c2845448106af50 | refs/heads/master | 2020-06-28T16:07:38.633533 | 2019-08-06T00:31:26 | 2019-08-06T00:31:26 | 200,276,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,172 | py | # Generated by Django 2.2.3 on 2019-07-30 22:10
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('tows', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='User... | [
"kevinsantizo660@gmail.com"
] | kevinsantizo660@gmail.com |
99dfb3d1aefa4e6e61b2cca44630b2ea129d65a8 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/tree-big-6940.py | 3af0536ca572c689c19e29d68693461d383b8018 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,263 | py | # Binary-search trees
class TreeNode(object):
value:int = 0
left:"TreeNode" = None
right:"TreeNode" = None
def insert(self:"TreeNode", x:int) -> bool:
if x < self.value:
if self.left is None:
self.left = makeNode(x)
return True
else:
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
473da9e645e0ea1b3f7720ccb48b591c2080489a | a689a72d3699883d7b58bd4ee3103373270bd0d5 | /2019/1908/190814/prac2.py | 79564e0ca9a260762346b1d98109eb2c66a88d07 | [] | no_license | Oizys18/Algo | 4670748c850dc9472b6cfb9f828a3ccad9c18981 | 45caafe22a8a8c9134e4ff3b227f5f0be94eefe7 | refs/heads/master | 2022-05-11T08:35:06.812539 | 2022-05-07T01:30:41 | 2022-05-07T01:30:41 | 202,690,024 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | # str() 쓰지 않고 itoa() 구현
# 양의 정수 입력받아 문자열로 변환
# input = 정수값, 변환할 문자열을 저장할 문자배열
"""
char(48) = 0
char(57) = 9
"""
a= 1148
def itoa(n):
str_num = ''
while True:
tmp = n % 10
n -= tmp
n = int(n / 10)
str_num = chr(48+tmp) + str_num
if n/10 < 1 :
str_num ... | [
"oizys18@gmail.com"
] | oizys18@gmail.com |
97d7c6f0398d9f95cdc0246b8f416ff1addc9fc2 | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/django-1.4/tests/regressiontests/staticfiles_tests/apps/test/__init__.py | adc9fe538db970b7e52bdfdcc55f27da9a49ce58 | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.4/tests/regressiontests/staticfiles_tests/apps/test/__init__.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
c68291d54961913eb698cae33be412b40bbcb0af | 3aacc31a2f8e399c7e6b8dc37ef9c61496371be2 | /report/admin.py | 67afe686a38f58606ba329c46cafef4d97631997 | [] | no_license | skynimrod/mysite2 | d983eb3a01a99c571a82a84fe945cc56da586713 | ee9ff97fce3c031fcb381b9d727ea03e2801a984 | refs/heads/master | 2021-01-21T09:14:08.021885 | 2017-08-31T06:29:39 | 2017-08-31T06:29:39 | 101,967,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | from django.contrib import admin
# Register your models here.
from guardian.admin import GuardedModelAdmin
from report.reportlist.models import ReportDownLoadsInfoTbl
#class ReportDownLoadsInfoTblAdmin(GuardedModelAdmin):
admin.site.register(ReportDownLoadsInfoTbl)
| [
"adamswang_2000@aliyun.com"
] | adamswang_2000@aliyun.com |
e8fcae7c550849aee1bac80240db4376a1981fa2 | 1a716e193056699b79a4329b864da7bc9aaa1349 | /Proyecto 1/server.py | e246070e6ee5f5b75a6f86d3e7df794fdc1c0041 | [] | no_license | SeekingAura/distribuidosUTP | 92beaa9e4616854385a9c052fff2121966edebd5 | 7fbfde3940b45ea67d9e925324a9c9e43e59d9d1 | refs/heads/master | 2020-04-10T22:18:10.800555 | 2018-06-05T14:58:07 | 2018-06-05T14:58:07 | 124,299,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,262 | py | import threading
import time
import tkinter as tkinter
import xmlrpc.client
import sys
import os
import random
from xmlrpc.server import SimpleXMLRPCRequestHandler, SimpleXMLRPCServer
# Restrict to a particular path.
class RequestHandler(SimpleXMLRPCRequestHandler):
rpc_paths = ('/RPC2',)
class serverRPC:
def __in... | [
"carlox216@utp.edu.co"
] | carlox216@utp.edu.co |
685a9f1a009636e182c9b4747a607176537cda67 | 9a73c54526082c27e5c5d88bd54950a589233658 | /NAO/MyCode/Motion/sound_and_focus_on_face.py | b7d69c89e1b0799ec79a4f8512b3786b383a517b | [
"Apache-2.0"
] | permissive | archu2020/python-2 | af78b65ed7f3ad17f71d4f8a97c002df86908298 | 19c626ca9fd37168db8a7ac075fd80c8e2971313 | refs/heads/master | 2022-12-27T12:08:44.316760 | 2020-10-02T15:46:27 | 2020-10-02T15:46:27 | 300,660,839 | 0 | 0 | Apache-2.0 | 2020-10-02T15:46:28 | 2020-10-02T15:37:58 | Python | UTF-8 | Python | false | false | 3,928 | py | # -*- encoding: UTF-8 -*-
"""
update by Ian in 2017-8-31 21:55:54
控制机器人识别人脸,并正面对准人脸
"""
from naoqi import ALModule
from naoqi import ALProxy
from naoqi import ALBroker
import sys
import time
import argparse
class SoundAndFocus(object):
"""docstring for SoundAndFocus
"""
def __init__(... | [
"767786685@qq.com"
] | 767786685@qq.com |
74885d41f2271e36678ca8b2ec97d68be6253516 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/detection/Cascade_RCNN/detectron2/data/build.py | 784c7d0296526ff4325a73ca4d083e9a8e078138 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | 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 | 15,998 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
# Copyright 2020 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.... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
c1e15ecda6a3167db872643b25a0956def3e110c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03425/s778441072.py | bd32e92791644383cafa9df3c70aecaf732a601d | [] | 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 | 341 | py | #60 C - March
import collections
import itertools
N = int(input())
S = [input() for _ in range(N)]
S = [s[0] for s in S if s[0] == 'M' or s[0] == 'A' or s[0] == 'R' or s[0] == 'C' or s[0] == 'H']
cnt = collections.Counter(S)
comb = itertools.combinations(cnt.keys(),3)
ans = 0
for a,b,c in comb:
ans += cnt[a]*cnt... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
aa31289769207b19f01e6c9a160f1717058e19ba | bca9c2fa3c4c3d06dd612280ce39090a9dfab9bd | /neekanee/job_scrapers/plugins/org/icims/accion.py | f7c285aa17e84dabcc257b3c6db62557581f22cc | [] | no_license | thayton/neekanee | 0890dd5e5cf5bf855d4867ae02de6554291dc349 | f2b2a13e584469d982f7cc20b49a9b19fed8942d | refs/heads/master | 2021-03-27T11:10:07.633264 | 2018-07-13T14:19:30 | 2018-07-13T14:19:30 | 11,584,212 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | from neekanee.jobscrapers.icims.icims2 import IcimsJobScraper
COMPANY = {
'name': 'Accion',
'hq': 'Boston, MA',
'ats': 'icims',
'home_page_url': 'http://www.accion.org',
'jobs_page_url': 'https://jobs-accion.icims.com/jobs/intro?in_iframe=1',
'empcnt': [51,200]
}
class AccionJobScraper(Icim... | [
"thayton@neekanee.com"
] | thayton@neekanee.com |
85e8168ed04a4095c33b35cd1dcba0ebf8275333 | 1d892928c70ee9ddf66f2a37a8e083d2632c6e38 | /contrib/boto_v6/ec2/instance.py | 9208c05ad58ea318b85c58f66587606a5bea6388 | [
"Apache-2.0"
] | permissive | usc-isi/essex-baremetal-support | 74196c3f1332ee3cdeba9c263faff0ac0567d3cf | a77daf8ef56cf41e38de36621eda25ed3f180156 | refs/heads/master | 2021-05-19T03:12:11.929550 | 2020-07-24T14:15:26 | 2020-07-24T14:15:26 | 4,702,421 | 0 | 1 | Apache-2.0 | 2020-07-24T14:15:27 | 2012-06-18T15:19:41 | null | UTF-8 | Python | false | false | 1,064 | py | '''
Created on 2010/12/20
@author: Nachi Ueno <ueno.nachi@lab.ntt.co.jp>
'''
from boto.resultset import ResultSet
from boto.ec2.instance import Reservation
from boto.ec2.instance import Group
from boto.ec2.instance import Instance
class ReservationV6(Reservation):
def startElement(self, name, attrs, connection):... | [
"dkang@isi.edu"
] | dkang@isi.edu |
55720428ce00a093a00523467bf84262755d5b82 | 3952500d7b3159112361bb44a69a1872e0f32748 | /usersApi/views.py | 6a38b703f5effe5361f1df97f645b9fb8d353a4c | [] | no_license | muddy700/Cive-Forum-Apis | d03c25f2a807bee0c4334d35ba0c435fe470eca0 | 9f5d20afd2be0bc303665ded284cf52032d3e69c | refs/heads/main | 2023-03-06T19:07:09.949640 | 2021-02-14T13:09:08 | 2021-02-14T13:09:08 | 338,807,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def home(request):
return HttpResponse('<h1>Welcome, Add "/api/v1/docs" To the Path To See The Apis.') | [
"mohamedmfaume700@gmail.com"
] | mohamedmfaume700@gmail.com |
5d2412e7fdbdbd84a4c22db3146f1cb5e9e2c571 | c9cd7bcf8a44ac15b7cc56a31930492d0708cd44 | /WEB/django/drfc/drfc/celery.py | 4b62e1331c2ef3fbb6cf491ee17872404605908e | [] | no_license | AnubisOrHades/pythonNote | 7ce74035cbbe25ff3eb4aa2aa739b640156f1510 | eb6dc25db26d244f619dbe6f691257f5a4ba515e | refs/heads/master | 2021-06-06T20:00:24.822869 | 2021-05-24T01:46:27 | 2021-05-24T01:46:27 | 173,388,685 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | # #!/usr/bin/env python3
# # -*- coding:utf-8 -*-
# # Author:wd
# from __future__ import absolute_import, unicode_literals
# import os
# from celery import Celery
#
# os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'drfc.settings') # 设置django环境
#
# app = Celery('drfc')
#
# app.config_from_object('django.conf:settings'... | [
"1732306770@qq.com"
] | 1732306770@qq.com |
4579fb153e30b096ba912208202c47e04ca922ae | 747febe786dd6b7fd6c63cfe73dbe3023354daa8 | /src/the_tale/the_tale/common/amqp_queues/conf.py | 1f7f0bb79f706820b59a637eae1781ff077500e4 | [
"BSD-3-Clause"
] | permissive | the-tale/the-tale | 4e4b8d91dc873a5fb935fe58e9721a877baa6d3f | e8450bd2332344da805b1851e728da5a3e5bf0ef | refs/heads/develop | 2023-08-01T13:53:46.835667 | 2022-12-25T18:04:56 | 2022-12-25T18:04:56 | 1,949,167 | 98 | 52 | BSD-3-Clause | 2023-02-15T18:57:33 | 2011-06-24T18:49:48 | Python | UTF-8 | Python | false | false | 310 | py |
import smart_imports
smart_imports.all()
settings = utils_app_settings.app_settings('AMQP',
ENVIRONMENT_MODULE='%s.amqp_environment' % django_settings.PROJECT_MODULE,
WORKERS_MANAGER_PID='the_tale_ampq_workers_manager')
| [
"a.eletsky@gmail.com"
] | a.eletsky@gmail.com |
6c4861661f2c192e19d85ad7a3d41344fd919254 | 060ce17de7b5cdbd5f7064d1fceb4ded17a23649 | /fn_service_now/tests/mock_data/task.py | a90e04113830c616d03a67a38931cbe7e06851ce | [
"MIT"
] | permissive | ibmresilient/resilient-community-apps | 74bbd770062a22801cef585d4415c29cbb4d34e2 | 6878c78b94eeca407998a41ce8db2cc00f2b6758 | refs/heads/main | 2023-06-26T20:47:15.059297 | 2023-06-23T16:33:58 | 2023-06-23T16:33:58 | 101,410,006 | 81 | 107 | MIT | 2023-03-29T20:40:31 | 2017-08-25T14:07:33 | Python | UTF-8 | Python | false | false | 1,870 | py | def get_mocked_task():
return {
"owner_fname": "Angela",
"auto_deactivate": True,
"creator": {
"status": "A",
"password_changed": False,
"display_name": "Angela Valdes",
"is_external": False,
"email": "angela@res.com",
"lname": "Valdes",
"create_date": 1536915832985,
"last_login"... | [
"shane.curtin@ie.ibm.com"
] | shane.curtin@ie.ibm.com |
bba1c2df4674c17b9185c56cb34a4a0be425d003 | ea378480ba678eb123ef826e3ca0c3eb8f4e538f | /py ref/pyglet/CS100-master/Tests/RMTest.py | 1e55431304ce1dd7c988dd3db481772262b571ae | [] | no_license | msarch/py | 67235643666b1ed762d418263f7eed3966d3f522 | dcd25e633a87cdb3710e90224e5387d3516c1cd3 | refs/heads/master | 2021-01-01T05:21:58.175043 | 2017-05-25T08:15:26 | 2017-05-25T08:15:26 | 87,453,820 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,610 | py |
'''
Project: CS100
Title: ScenePrimitives
Author: John Mooney
Date: 1/23/2013
Description:
Entry point for running a debug CS100 version
'''
# Imports
import pyglet
import sys
import os
from pyglet.graphics import GL_LINES
''' Set Search Directory '''
for root, direcs, files in os.walk(os.getcwd()):
... | [
"msarch@free.fr"
] | msarch@free.fr |
9b4ee1f17aeaeb6c8bc0fecf46c47d4e3266e4fe | 5a281cb78335e06c631181720546f6876005d4e5 | /blazar-3.0.0/blazar/config.py | e6be13a71e8f0bb93539e156732e2cf675b0d86e | [
"Apache-2.0"
] | permissive | scottwedge/OpenStack-Stein | d25b2a5bb54a714fc23f0ff0c11fb1fdacad85e8 | 7077d1f602031dace92916f14e36b124f474de15 | refs/heads/master | 2021-03-22T16:07:19.561504 | 2020-03-15T01:31:10 | 2020-03-15T01:31:10 | 247,380,811 | 0 | 0 | Apache-2.0 | 2020-03-15T01:24:15 | 2020-03-15T01:24:15 | null | UTF-8 | Python | false | false | 3,529 | py | # Copyright (c) 2013 Mirantis Inc.
#
# 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 agreed to in writ... | [
"Wayne Gong@minbgong-winvm.cisco.com"
] | Wayne Gong@minbgong-winvm.cisco.com |
ad246245a7bae875d3fc079a4ffe7ee38325f3cd | 30d2035626907509328494bdce8394d268b6e8b5 | /oldjaratest/nick/probes/probelayout.py | 82c3d5904f1e07b8692ef91e7606821db9505d02 | [] | no_license | sjara/jaratoolbox | 5f32b81b04002ce2ee736970701ced4a370e4ccc | 0a4a0d2700427acf00de0b9ed66f0b64c02fdc43 | refs/heads/master | 2023-08-19T14:54:39.612875 | 2023-08-13T00:05:28 | 2023-08-13T00:05:28 | 21,258,341 | 3 | 4 | null | 2018-11-01T04:16:13 | 2014-06-26T23:43:44 | Python | UTF-8 | Python | false | false | 7,748 | py | import numpy as np
#Channel numbers for the tetrodes
#Shanks from left to right, looking from the top
#Tetrodes from top to bottom, each shank
#Sites clockwise starting with the uppermost site
A4X2TET=np.array([[4, 7, 5, 2], [3, 8, 6, 1], [12, 15, 13, 10], [11, 16, 14, 9], [20, 23, 21, 18], [19, 24, 22, 17], [28, 31... | [
"nickponvert@gmail.com"
] | nickponvert@gmail.com |
94e9b0671ec62326f2e606f572f5e19e5aa046e9 | ac8295552436608b4930b8bda8a7efa6a36d86d2 | /Unet_scrach/meter.py | fddfcc7096b68800f2cbca1098a6c1da6730206a | [] | no_license | jeehyun100/mura_fixRes | 6054f87f5770aa328f440afb9642fe7a46b71d68 | 2ad1b62db464355eac25694ecb08811d0d78eb6a | refs/heads/master | 2022-12-31T00:53:22.377853 | 2020-10-24T08:33:58 | 2020-10-24T08:33:58 | 282,530,451 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,657 | py | import torch
from common import *
import numpy as np
import matplotlib.pyplot as plt
class AUCMeter:
def __init__(self, label, color, linestyle):
self.label = label
self.color = color
self.linestyle = linestyle
self.reset()
def reset(self):
self.scores = torch.DoubleT... | [
"intwis100@naver.com"
] | intwis100@naver.com |
710da19153a9bf47d85a2e1873fc76876037c5e5 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5631989306621952_0/Python/jfguo/main.py | c2ebf3a44f7d9eb1821279c16d7f45592bffc9a2 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 545 | py |
import os
import sys
import glob
import subprocess
import random
import fileinput
next_line = 0
lines = [line.strip() for line in fileinput.input()]
def get_line():
global next_line
i = next_line
next_line += 1
return lines[i]
def calc():
line = get_line()
ans = line[0]
for i in range(1... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
b07a728f201535c2444742afacbf6a0681585677 | 3df995fa02a43932ab2ea5fea26c06403f139f1f | /others/others_code_fes_2015b.py | b3d49f63675816a3b64a3f0e10f800cd05ccf5fe | [] | no_license | jojonki/atcoder | 75fb7016dd90b3b7495f1ff558eedcdc755eac11 | ec487b4e11835f25c6770f0115b98b7e93b16466 | refs/heads/master | 2021-06-23T09:56:05.636055 | 2021-03-13T03:38:50 | 2021-03-13T03:38:50 | 201,834,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | import sys
sys.setrecursionlimit(1 << 20)
INF = float('inf')
def read_int_list():
return list(map(int, input().split()))
def read_ints():
return map(int, input().split())
from collections import Counter
def main():
N, M = read_ints()
A = read_int_list()
A = Counter(A)
v, ct = A.most_comm... | [
"junki.ohmura@gmail.com"
] | junki.ohmura@gmail.com |
e6b9bffc8c13f3484fb4555d5898edbe668b70b3 | 787f67e3fbbe4118c22e3c42d2c25871593b8e89 | /gongmoju/settings/prod.py | 3e3b9350d99a4c5dc96935c2fb834bc1b69b18b5 | [] | no_license | qhqnf/gongmoju | 1f58b90829e5347de14a1326db493c7a35d4cc25 | 4d3d3dbab2e36ea5b8469d047bc42783195fa53f | refs/heads/master | 2023-04-17T06:31:59.696763 | 2021-05-07T14:21:47 | 2021-05-07T14:21:47 | 364,290,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | from .common import *
DEBUG = os.environ.get("DEBUG") in ["True", "t", "TRUE", "1"]
DATABASES = {
"default": {
"ENGINE": "django.db.backends.postgresql",
"HOST": os.environ["DB_HOST"],
"USER": os.environ["DB_USER"],
"PASSWORD": os.environ["DB_PASSWORD"],
"NAME": os.environ.... | [
"didguscjf95@naver.com"
] | didguscjf95@naver.com |
b2fd6cc6b818b4465c62e2dc3058e9f1d6f90a85 | 70bdda35bad668051d0f148581f67c907dc1c155 | /ditto/lastfm/factories.py | 06b2ffc1f511520e5e21036e069d5972831a8aaf | [
"MIT"
] | permissive | jinjin123/django-ditto | d9e83fae05eab2576423a273c6c51818055a257c | edfad44087601149383d380b9e9b6dfa9d3ff4ac | refs/heads/master | 2020-03-07T16:48:52.717625 | 2018-03-27T17:24:01 | 2018-03-27T17:24:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,551 | py | import factory
from . import models
from ..core.utils import datetime_now
class AccountFactory(factory.DjangoModelFactory):
class Meta:
model = models.Account
username = factory.Sequence(lambda n: 'user%04d' % n)
realname = factory.Sequence(lambda n: 'Real Name %04d' % n)
api_key = factory.S... | [
"phil@gyford.com"
] | phil@gyford.com |
ba378fc84ad875a6daff1de194748cee66a53c67 | 55647a80c8b412af9df0ba3f50595cc2f29c25e6 | /res/scripts/common/Lib/encodings/utf_16_be.py | f6ffa443118935447a5ddcfafcd673b14433a782 | [] | no_license | cnsuhao/WOT-0.9.17-CT | 0035eb6070fb4fab8d8ee9f8bbc676c10d511cfb | d1f932d8cabaf8aa21708622e87f83c8d24d6451 | refs/heads/master | 2021-06-08T18:11:07.039293 | 2016-11-19T19:12:37 | 2016-11-19T19:12:37 | null | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,277 | py | # 2016.11.19 19:59:03 Střední Evropa (běžný čas)
# Embedded file name: scripts/common/Lib/encodings/utf_16_be.py
""" Python 'utf-16-be' Codec
Written by Marc-Andre Lemburg (mal@lemburg.com).
(c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
"""
import codecs
encode = codecs.utf_16_be_encode
def decode(input, e... | [
"info@webium.sk"
] | info@webium.sk |
dd4f6e4a24d652eed1583c7089848928f03ef573 | aa8aa116048106fb9d2879b01b205fb13cbe170b | /src/v7/misc/gather_gtex_variants.py | 0eac8b1f17e06743ed9e48c1de9e5306b5bdb0f1 | [] | no_license | hakyimlab/gtex-miscellaneous-processing | 3ee9b4a44c3a6d7af7e350de3c0954a7d19a76fe | d9b0df29f0d97e91d29e8c23c41ddefa9e1bb950 | refs/heads/master | 2021-08-06T23:11:59.714938 | 2020-07-21T18:32:55 | 2020-07-21T18:32:55 | 202,794,867 | 2 | 0 | null | 2020-07-21T18:38:19 | 2019-08-16T20:25:30 | Shell | UTF-8 | Python | false | false | 956 | py | #!/usr/bin/env python
__author__ = "alvaro barbeira"
import re
import os
import gzip
r = re.compile(r"(chr([\d]+)_([\d]+)_([GCTA]+)_([GCTA]+)_b38)")
def _gather_file(file_path):
s=set()
with open(file_path) as file:
for line in file:
keys = {x[0] for x in r.findall(line)}
s.up... | [
"alvarobarbeira@gmail.com"
] | alvarobarbeira@gmail.com |
b27b076a93a959495bcad7ce4617775194f9ad48 | d83fde3c891f44014f5339572dc72ebf62c38663 | /_bin/google-cloud-sdk/.install/.backup/lib/surface/compute/forwarding_rules/__init__.py | 3b8f201f5da0e4ecbefe20c196da1e534b9b980b | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | gyaresu/dotfiles | 047cc3ca70f4b405ba272856c69ee491a79d2ebe | e5e533b3a081b42e9492b228f308f6833b670cfe | refs/heads/master | 2022-11-24T01:12:49.435037 | 2022-11-01T16:58:13 | 2022-11-01T16:58:13 | 17,139,657 | 1 | 1 | null | 2020-07-25T14:11:43 | 2014-02-24T14:59:59 | Python | UTF-8 | Python | false | false | 895 | py | # Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"me@gareth.codes"
] | me@gareth.codes |
706e6e24f909c245bf67a3cf271bb6656ec75e28 | d3a9c3abf1821cb7e5326eeb272773f6649ba6a5 | /dashboard/modules/state/state_head.py | e132a4f3da8a9b0899a5af170ce056601758799a | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | vishalbelsare/ray | 692739f5865f5c50254ad9367b9c236526fedf8c | a0e318ba784d4cd5a53ed0e94bb21f299e2bdd5a | refs/heads/master | 2023-08-31T06:14:39.421512 | 2023-05-15T17:21:20 | 2023-05-15T17:21:20 | 120,221,098 | 0 | 1 | Apache-2.0 | 2023-07-01T07:27:57 | 2018-02-04T20:37:56 | Python | UTF-8 | Python | false | false | 20,576 | py | import asyncio
import logging
from dataclasses import asdict
from datetime import datetime
from typing import Callable, List, Tuple, Optional
import aiohttp.web
from aiohttp.web import Response
from abc import ABC, abstractmethod
from ray._private.usage.usage_lib import TagKey, record_extra_usage_tag
import ray.dashbo... | [
"noreply@github.com"
] | vishalbelsare.noreply@github.com |
b97e35e65f94e16de2dec94069f742de27a4db9a | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_24599.py | 1e614d7ab56dfadc016a5ab4099ac169495b3102 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | # 404 error when viewing details of a poll in Django
<a href="{% url 'polls:detail' poll.id %}">
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
6ef42db4ba867fec5dfcca605b4e5da4f68f16c2 | 254493179ebc70ce80232cf8753315d00d42c2d9 | /2015-10_Lecture/Lecture2/code/1_Intro_Theano.py | 553e1936381768677d7320fa3a72f3c8881eaada | [
"Apache-2.0"
] | permissive | yanshao9798/deeplearning4nlp-tutorial | 07b2359a13dfe49d10a4e5ae9cc6cbd5bb0b192b | 6375f5aa8ca4737fcedc26d0f6ccd91a4ee249ff | refs/heads/master | 2020-04-06T05:29:40.693550 | 2015-10-07T14:42:18 | 2015-10-07T14:42:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,516 | py |
# coding: utf-8
# # Introduction to Theano
# For a Theano tutorial please see: http://deeplearning.net/software/theano/tutorial/index.html
# ## Basic Operations
# For more details see: http://deeplearning.net/software/theano/tutorial/adding.html
#
# **Task**: Use Theano to compute a simple polynomial function $$... | [
"rnils@web.de"
] | rnils@web.de |
70146fe7c15799edb20fb3f456517e80da79f831 | 691892e8755a15a092d7996e67f86d39f4e968d6 | /twkit/curation/purgeid.py | 4a8fbc9af1b8d28f9d147def29fa44829133a13a | [
"Apache-2.0"
] | permissive | alirezabayatmk/twAwler | 208a9fe47d15498a3fb8217fe777467ffa994f2a | 15c9d26433979810aa58eff0ea662daef6fa9e23 | refs/heads/master | 2022-02-15T05:50:47.806934 | 2019-01-28T17:47:35 | 2019-01-28T17:47:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,319 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
###########################################
# (c) 2016-2018 Polyvios Pratikakis
# polyvios@ics.forth.gr
###########################################
"""
This tool can completely purge a user from the database.
Warning: This may reduce information on other users, as the given u... | [
"polyvios@ics.forth.gr"
] | polyvios@ics.forth.gr |
dc4563e76704076593af678efb04df5f13703dc1 | 4f4e4826533f3ebb4e17dd11125f714aefabc008 | /splash_screen/migrations/0001_initial.py | 25ec3803e4bf47745678b04a72eeba7ec360716f | [] | no_license | CodeNicely/brokerappserver | 3206130166b3b80490e138f7e6cb881ff7dc740a | 9f545dea6032c3610b80d576ca1a852008f1c72a | refs/heads/master | 2021-01-11T02:07:11.489731 | 2016-10-13T15:02:04 | 2016-10-13T15:02:04 | 70,804,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-10-13 14:19
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='version_... | [
"arpitj938@gmail.com"
] | arpitj938@gmail.com |
e04a707cc79974f4ec822617d226e430e0d90fdc | e29c9847fdeca86b52f7adcc6b16d95a4816454e | /tests/test_cuya_land_bank.py | 80878a44e80e7c060b25c0c84f0082791e729263 | [
"MIT"
] | permissive | opencleveland/city-scrapers-cle | 2d86ce3868047aa06662c34cbe52dbd01299ffa3 | 7e880053e6295a33c353b6810f1dae5bbd21c6cc | refs/heads/master | 2021-06-30T04:37:20.910641 | 2020-05-20T14:37:49 | 2020-05-20T14:37:49 | 220,122,265 | 0 | 2 | MIT | 2021-03-31T22:02:39 | 2019-11-07T01:10:34 | Python | UTF-8 | Python | false | false | 2,481 | py | from datetime import datetime
from os.path import dirname, join
import pytest # noqa
from city_scrapers_core.constants import BOARD, PASSED
from city_scrapers_core.utils import file_response
from freezegun import freeze_time
from city_scrapers.spiders.cuya_land_bank import CuyaLandBankSpider
test_response = file_re... | [
"pjsier@gmail.com"
] | pjsier@gmail.com |
8cbdd082f8d4e5d858e7dde4ae65c8198394034e | d66993b0383ee7a97c9d5fe761269a3cb8e67e22 | /Ejercicios/ArchivosCopiar.py | 3c1fe39b6c327dcea62b0db63170d838ec679bbd | [] | no_license | rramosaveros/CursoPythonCisco | 09828e3d8190490c0dc30861ae241f5222e108d6 | 1508e67873adfcf31b8c78d3f5cb2a0572dfeb1c | refs/heads/master | 2023-06-27T12:07:52.652780 | 2021-08-01T14:19:19 | 2021-08-01T14:19:19 | 391,647,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,498 | py | from os import strerror
srcname = input("¿Nombre del archivo fuente?: ")
try:
src = open(srcname, 'rb')
except IOError as e:
print("No se puede abrir archivo fuente: ", strerror(e.errno))
exit(e.errno)
dstname = input("¿Nombre del archivo de destino?: ")
try:
dst = open(dstname, 'wb')
except Exceptio... | [
"ramoslenin32@gmail.com"
] | ramoslenin32@gmail.com |
8a7c033d133c6ee52a2cdeab2ced6f7216007edf | 1cee9ddedcede0e5102df4064b5357adcc34e3c1 | /bin/MadGraph5_aMCatNLO/addons/models/SMEFTsim_topU3l_MwScheme_UFO/CT_couplings.py | fbc3f6f1a763e38deecd15f45d9caa54a82a14e7 | [] | no_license | HephyAnalysisSW/genproductions | e90996f48ffaf60a7b054ed96f3ff9a4f5adbed9 | c2a4acda5bc77f8acbc68f5728b43a564cd7c37e | refs/heads/master | 2023-07-20T07:58:35.615057 | 2023-02-27T09:54:46 | 2023-02-27T09:54:46 | 178,406,077 | 0 | 2 | null | 2019-03-29T13:00:20 | 2019-03-29T13:00:20 | null | UTF-8 | Python | false | false | 299 | py | # This file was automatically created by FeynRules 2.3.35
# Mathematica version: 12.1.0 for Linux x86 (64-bit) (March 18, 2020)
# Date: Tue 18 Aug 2020 15:03:52
from object_library import all_couplings, Coupling
from function_library import complexconjugate, re, im, csc, sec, acsc, asec, cot
| [
"robert.schoefbeck@cern.ch"
] | robert.schoefbeck@cern.ch |
f9a502ba0ab3fd836055a8e3d5591cab2f9cfc40 | adea9fc9697f5201f4cb215571025b0493e96b25 | /napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/bgp/neighbors/neighbor/afi_safis/afi_safi/ipv4_labeled_unicast/prefix_limit/__init__.py | 01228ee7f26171da2c55007d04e7b72b7a7e65be | [
"Apache-2.0"
] | permissive | andyjsharp/napalm-yang | d8a8b51896ef7c6490f011fe265db46f63f54248 | ef80ebbfb50e188f09486380c88b058db673c896 | refs/heads/develop | 2021-09-09T02:09:36.151629 | 2018-03-08T22:44:04 | 2018-03-08T22:44:04 | 114,273,455 | 0 | 0 | null | 2018-03-08T22:44:05 | 2017-12-14T16:33:35 | Python | UTF-8 | Python | false | false | 15,604 | py |
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListType
from pyangbind.lib.y... | [
"dbarrosop@dravetech.com"
] | dbarrosop@dravetech.com |
f15af5754c2fe22fcdf87eeb386247d8fef3b35e | 7bc54bae28eec4b735c05ac7bc40b1a8711bb381 | /src/old_projects/dispute/adreaction.py | 5af769fcdc3e8acf09959d45a0e542e7038e577c | [] | no_license | clover3/Chair | 755efd4abbd5f3f2fb59e9b1bc6e7bc070b8d05e | a2102ebf826a58efbc479181f1ebb5de21d1e49f | refs/heads/master | 2023-07-20T17:29:42.414170 | 2023-07-18T21:12:46 | 2023-07-18T21:12:46 | 157,024,916 | 0 | 0 | null | 2023-02-16T05:20:37 | 2018-11-10T21:55:29 | Python | UTF-8 | Python | false | false | 3,462 | py | import tensorflow as tf
from models.cnn import CNN
import tensorflow as tf
from models.cnn import CNN
class flags:
def __init__(self):
self.batch_size_sm = 16
self.batch_size_lg = 15
self.log_device_placement = False
self.comment_count = 100
self.comment_length = 100
... | [
"lesterny@gmail.com"
] | lesterny@gmail.com |
4eef78d3fbf93720104ea00011c8751e294e65fa | ab37cdd76b8d4da54ff1ce30b0fa2e3dfadd207f | /1001-1099/1057/1057.py | e759831db08d4507ceb87ea3ea363edfccc759db | [] | no_license | hay86/timus | b163d94052d3dedd51c82f5c10874402f805c6e1 | 0d06073228c23538ca785938c862d2b5e08bda63 | refs/heads/master | 2023-03-08T06:34:28.707612 | 2021-02-20T14:38:48 | 2021-02-20T14:38:48 | 100,444,783 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | import sys
x, y = [int(x) for x in sys.stdin.readline().split()]
k = int(sys.stdin.readline())
b = int(sys.stdin.readline())
xx = []
yy = []
while x > 0:
xx.insert(0, x%b)
x = int(x/b)
while y > 0:
yy.insert(0, y%b)
y = int(y/b)
for i in range(len(yy)-len(xx)):
xx.insert(0, 0)
def C(a, b):
x1, x2 = (a, b-a) i... | [
"xukaifeng1986@gmail.com"
] | xukaifeng1986@gmail.com |
a3808ca62680661d2d98b3309d3fa8dc933bafd2 | af4f53500502faf8e0b3a97cf8f517fec80bdc5c | /pennylane/ops/identity.py | 7b9b7d63500b0f8dd6d11b41815ccc9fd5f9193f | [
"Apache-2.0"
] | permissive | quantshah/pennylane | c5590406674384bc6a26bd5dccc6619f9255242d | b904c966d124e66dbf82cc0b42f580db2d9a7cc1 | refs/heads/master | 2022-11-22T19:41:10.892782 | 2022-08-15T12:41:48 | 2022-08-15T12:41:48 | 355,849,206 | 0 | 0 | Apache-2.0 | 2021-04-08T09:48:31 | 2021-04-08T09:48:31 | null | UTF-8 | Python | false | false | 4,661 | py | # Copyright 2018-2021 Xanadu Quantum Technologies Inc.
# 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... | [
"noreply@github.com"
] | quantshah.noreply@github.com |
de3048195d0f20c332ca47ef5f05cfd2182a1621 | a449e033227b7a7aa6c09eee04aa237a95c9fe2d | /tests/db_functions/math/test_round.py | a3770f1f52507dc941f4b024239e3d09a53b2e3f | [
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-other-permissive",
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | cesar57927/django | 60d83e4fde35ccb401d54db650ed54b00b5dc32a | d59143fd9ae5fef8a36f61ebf350e3796d1fd70f | refs/heads/master | 2023-01-28T07:44:55.197086 | 2023-01-20T02:59:55 | 2023-01-20T02:59:55 | 188,619,774 | 0 | 2 | BSD-3-Clause | 2023-01-20T03:00:01 | 2019-05-25T23:00:22 | Python | UTF-8 | Python | false | false | 2,262 | py | from decimal import Decimal
from django.db.models import DecimalField
from django.db.models.functions import Round
from django.test import TestCase
from django.test.utils import register_lookup
from ..models import DecimalModel, FloatModel, IntegerModel
class RoundTests(TestCase):
def test_null(self):
... | [
"timograham@gmail.com"
] | timograham@gmail.com |
fd2eb9caf5a5d0b352dc4b3eda9d22430710d960 | 8dcd3ee098b4f5b80879c37a62292f42f6b2ae17 | /venv/Lib/site-packages/win32com/test/testGatewayAddresses.py | 244eea202bc3ba97f27bd0a2cf947822cfe9a52f | [] | no_license | GregVargas1999/InfinityAreaInfo | 53fdfefc11c4af8f5d2b8f511f7461d11a3f7533 | 2e4a7c6a2424514ca0ec58c9153eb08dc8e09a4a | refs/heads/master | 2022-12-01T20:26:05.388878 | 2020-08-11T18:37:05 | 2020-08-11T18:37:05 | 286,821,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,166 | py | # The purpose of this test is to ensure that the gateways objects
# do the right thing WRT COM rules about object identity etc.
# Also includes a basic test that we support inheritance correctly in
# gateway interfaces.
# For our test, we create an object of type IID_IPersistStorage
# This interface derives from IPer... | [
"44142880+GregVargas1999@users.noreply.github.com"
] | 44142880+GregVargas1999@users.noreply.github.com |
22367dec753b77ecdfe9506b8e1aa6b52262ff38 | 05f6649e39e63c0428f6dcd61c1bcbbadef8e48a | /apps/company/translation.py | 85275ce9b4e4d5a91280e7c0f68d49be21ab3d1e | [] | no_license | mh-firouzjah/Iran-ATCA | a3c505179eba0cdb0dc23622addfed85c5b37614 | 62d19c07a1f821d943c58d6e78d1c39a8e97e20c | refs/heads/master | 2023-06-26T22:13:45.290425 | 2021-05-07T08:30:59 | 2021-05-07T08:30:59 | 326,047,558 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | from modeltranslation.translator import TranslationOptions, register
from .models import Company, CompanySocialLink, Timetable, UsefulLink
@register(Company)
class CompanyTranslationOptions(TranslationOptions):
fields = ('name', 'short_description', 'long_description',
'address', 'footer_descriptio... | [
"mh.firouzjah@gmail.com"
] | mh.firouzjah@gmail.com |
5a8d610325828d404daee9939bede6d2b640a86e | 47f7c79fbac1734f5ee203da61b07cbbe620fc2d | /src/jk_mediawiki/lsfile/MediaWikiLocalSettingsFile.py | 9d56a670533be23959c2953a27bd4775b90c77f8 | [
"Apache-2.0"
] | permissive | jkpubsrc/python-module-jk-mediawiki | 202da20e02229d2f1233f7c7a058524df4ae93ec | f33eea8e10e2a4154a514c51be36c5d261d9f544 | refs/heads/master | 2022-09-13T18:13:46.970374 | 2022-01-12T22:31:44 | 2022-01-12T22:31:44 | 240,976,670 | 0 | 1 | null | 2022-08-27T01:54:23 | 2020-02-16T22:32:27 | Python | UTF-8 | Python | false | false | 19,231 | py |
import os
import codecs
import re
import shutil
from jk_utils import *
from jk_utils.tokenizer import *
import jk_console
from ..impl.lang_support_php import *
from .MediaWikiLocalSettingsVariableAssignment import MediaWikiLocalSettingsVariableAssignment
from .MediaWikiLocalSettingsComplexVariableAssignment impor... | [
"pubsrc@binary-overflow.de"
] | pubsrc@binary-overflow.de |
8037913d297187ab2e7cca2995d2dcb1afb9deb5 | f6b4b33490cb76760cbf676dd7f0222aac19e10c | /main/libraries/serializers/mixins.py | 45dac01d5d6d19ea1bac36a6170b81093eefa483 | [] | no_license | truhlik/finapp | 5ca681bae9dc8c3d4fa0a329719479477ffa0061 | 7c8ea667b62e8771e62b131e620f095a8b3073a8 | refs/heads/main | 2023-08-03T22:33:24.576756 | 2021-10-06T19:03:24 | 2021-10-06T19:03:24 | 414,334,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,683 | py | import warnings
from django.conf import settings
class DynamicFieldsMixin(object):
"""
A serializer mixin that takes an additional `fields` argument that controls
which fields should be displayed.
"""
@property
def fields(self):
"""
Filters the fields according to the `fields... | [
"lubos@endevel.cz"
] | lubos@endevel.cz |
a21aec637fffe7cb0854614bcf7d5431d36525bf | 6b791247919f7de90c8402abcca64b32edd7a29b | /MimeWriter.py | 4a258a152e13390926f23b71f8c141ac46288bd8 | [
"Apache-2.0"
] | permissive | theclashingfritz/Cog-Invasion-Online-Dump | a9bce15c9f37b6776cecd80b309f3c9ec5b1ec36 | 2561abbacb3e2e288e06f3f04b935b5ed589c8f8 | refs/heads/master | 2021-01-04T06:44:04.295001 | 2020-02-14T05:23:01 | 2020-02-14T05:23:01 | 240,434,213 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,873 | py | # uncompyle6 version 3.2.4
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)]
# Embedded file name: MimeWriter
import mimetools
__all__ = [
'MimeWriter']
import warnings
warnings.warn('the MimeWriter module is deprecated; use the email... | [
"theclashingfritz@users.noreply.github.com"
] | theclashingfritz@users.noreply.github.com |
99b05b3a74a458709f6c57327f38449767e31abe | 228c9e98e0c35665218070e8e8d36422fd14db37 | /deepqmc/sampler/hamiltonian.py | 833538f8b65148e11af4dad30f4a1fcb380aed43 | [
"Apache-2.0"
] | permissive | NLESC-JCER/QMC | 100ee8688564942a3be2ba0e378862eafb655f70 | 1e1ed24bf8e0de43be68bcd966425c119359c8b8 | refs/heads/master | 2022-11-21T06:09:41.347823 | 2020-07-16T15:58:46 | 2020-07-16T15:58:46 | 202,360,439 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,944 | py | import torch
from tqdm import tqdm
from torch.autograd import Variable
from deepqmc.sampler.sampler_base import SamplerBase
class Hamiltonian(SamplerBase):
def __init__(self, nwalkers=100, nstep=100, nelec=1, ndim=3,
step_size=0.1, init={'min': -2, 'max': 2}, L=10):
''' HMC SAMPLER
... | [
"nicolas.gm.renaud@gmail.com"
] | nicolas.gm.renaud@gmail.com |
2f7333b072ec20d8b56b9f89bf0f15410bd188a9 | de64b143a346585f51590bd674e8d13bbc672386 | /algorithm/2023/0530_743_Network_Delay_Time/Jaeseok.py | 8bbbf2377c62b6db01a847c692ae6d8d952a1ee9 | [] | no_license | ai-kmu/etc | 304ec20f59e4026025abdcbcae21863c80630dcb | 9c29941e19b7dd2a2037b110dd6e16690e9a0cc2 | refs/heads/master | 2023-08-21T16:30:31.149956 | 2023-08-21T16:26:19 | 2023-08-21T16:26:19 | 199,843,899 | 3 | 24 | null | 2023-05-31T09:56:59 | 2019-07-31T11:36:16 | Jupyter Notebook | UTF-8 | Python | false | false | 1,613 | py | import heapq
class Solution:
def networkDelayTime(self, times: List[List[int]], n: int, k: int) -> int:
# 다익스트라 알고리즘으로 해결
graph = {i: [] for i in range(1, n + 1)}
# 각 그래프 연결과 거리를 딕셔너리에 저장
for u, v, w in times:
graph[u].append((v, w))
# 최대 거리(6000 * 100)로 distan... | [
"noreply@github.com"
] | ai-kmu.noreply@github.com |
6bcd7f8d3dc2c839d6b4f9c2733e6d14283043c7 | 1d80857841604ba326705de06cc87573de8391b8 | /color_color/contour_demo.py | fab9f5cc91b111d59309df23f4f4d9bbff929eab | [] | no_license | d80b2t/WISE_LCs | ad06a93bdae1fef5ae0bf72cc59ce6e65a5fe133 | bfc16080dbf86f138c3119d77d43ee705100f56a | refs/heads/master | 2021-01-11T12:41:41.836519 | 2018-08-14T11:14:07 | 2018-08-14T11:14:07 | 83,101,728 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,479 | py | """
Illustrate simple contour plotting, contours on an image with
a colorbar for the contours, and labelled contours.
See also contour_image.py.
"""
import matplotlib
import numpy as np
import matplotlib.cm as cm
import matplotlib.mlab as mlab
import matplotlib.pyplot as plt
matplotlib.rcParams['xtick.direction'] = '... | [
"npross@lbl.gov"
] | npross@lbl.gov |
3acef14031d5fbf73e18ad72da98246c3020bf5f | 06a7dc7cc93d019e4a9cbcf672b23a0bbacf8e8b | /2016_schizConnect/supervised_analysis/all_studies+VIP/all_subjects_less_than_50years/VBM/04_weight_map_vizu_all_50yo.py | f7d55024c7bb695b7316ae5a9cd4dd52c3bdb9c5 | [] | no_license | neurospin/scripts | 6c06cd218a5f32de9c3c2b7d1d8bda3f3d107458 | f14a2c9cf2cd7f5fbea767b017c3faf36d170bdb | refs/heads/master | 2021-07-11T22:55:46.567791 | 2021-07-02T13:08:02 | 2021-07-02T13:08:02 | 10,549,286 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,139 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Feb 27 10:47:10 2017
@author: ad247405
"""
import os
import numpy as np
import nibabel
import array_utils
import nilearn
from nilearn import plotting
from nilearn import image
BASE_PATH="/neurospin/brainomics/2016_schizConnect/analysis/all_studies+V... | [
"ad247405@is222241.intra.cea.fr"
] | ad247405@is222241.intra.cea.fr |
492ee9ff212e729efe0a9fff61d8bc8e2e3cac06 | 7bdc3d746cc9d6bff78b8a77d06253b7c489c00a | /env/lib/python3.6/site-packages/debug_toolbar/panels/sql/forms.py | 4131cb775a42f9c1f9529d744f5751abac76b0d5 | [
"MIT"
] | permissive | Ao99/e-commerce-django | fadc0de705f67b16e8dd82f6cc962fd9efd548d9 | 6fe69a03047619b199c236532f53f7c2cb22a079 | refs/heads/master | 2022-12-14T01:56:19.266754 | 2021-09-09T18:18:47 | 2021-09-09T18:18:47 | 229,646,356 | 2 | 2 | MIT | 2022-12-08T03:22:13 | 2019-12-22T23:52:46 | JavaScript | UTF-8 | Python | false | false | 2,671 | py | import hashlib
import hmac
import json
from django import forms
from django.conf import settings
from django.core.exceptions import ValidationError
from django.db import connections
from django.utils.crypto import constant_time_compare
from django.utils.encoding import force_bytes
from django.utils.functional import c... | [
"aodong99@gmail.com"
] | aodong99@gmail.com |
38ab07399ad360f46485487b3c2b3014d3e00823 | 0404114b49e90e1e558f23857b86afea6ff82433 | /gpsreader.py | c63fd1bc96dd9dbdccd012f72f67e068bbbb7935 | [] | no_license | bodik/naza_gps_decoder | 91f3291bb20d40ac302b2f0b72fdaaf28a15dbee | 049ccd44de577e717e175042a911ef045fd0eae2 | refs/heads/master | 2021-01-10T14:15:53.002758 | 2016-03-13T13:29:03 | 2016-03-13T13:29:03 | 48,928,510 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | #!/usr/bin/python
import logging, json, sys, time
import nazagpsdecoder
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(levelname)s %(message)s', stream=sys.stdout)
decoder = nazagpsdecoder.NazaGpsDecoder()
fmt = "%6s %20s %32s %4s %-10s %-10s %-13s %-16s"
columns = ("seq", "datetime", "bintime", "sat... | [
"bodik@cesnet.cz"
] | bodik@cesnet.cz |
9b495fb258b44def5d9672f58723bc96348688ea | 612f4855d84c65d68d22732cf0c19d2ae031cad8 | /etc/tf_tutorial/Tensorflow-101-master/char_rnn_sample_tutorial.py | c193c7275f8797379505cabf8c9a85588c3760ad | [
"MIT"
] | permissive | zhangbo2008/facenet | 92affd2ca9cd6a70bbd220daab930dc515fad92a | 4dfabcb5cf14f99622dbe5f9f12f0539821c169c | refs/heads/master | 2023-04-04T22:18:39.301552 | 2019-09-16T02:42:48 | 2019-09-16T02:42:48 | 208,694,525 | 0 | 0 | MIT | 2023-03-25T00:06:14 | 2019-09-16T02:39:23 | Python | UTF-8 | Python | false | false | 3,232 | py | #!/usr/bin/env python
# coding: utf-8
# In[3]:
# Import Packages
import numpy as np
import tensorflow as tf
import collections
import argparse
import time
import os
from six.moves import cPickle
print ("Packages Imported")
# In[5]:
# Load chars and vocab
load_dir = "data/linux_kernel"
with open(os.path.join(load... | [
"15122306087@163.com"
] | 15122306087@163.com |
bcc22848102b027849599d7e12a5885d73f863e4 | 1e1c85d0d74bc1b111e77f082cd24c94219d7eb0 | /VE-Tests/tests/KSTB/android/e2e_tests/test_zapping_robustness.py | 5fda246ae41b087ea5595434c169522ce3cdc47f | [] | no_license | anshsaikia/GSSDeliverables-YesProject | b6f5e4de8d853ce21dfe7401c4b9179c40f32a89 | ed786ccfd7b8c344802c7ff6d0cfd4afbffe015e | refs/heads/master | 2020-04-06T04:07:49.034461 | 2017-02-24T13:39:48 | 2017-02-24T13:39:48 | 83,044,504 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,181 | py | __author__ = 'tchevall'
import pytest
import types
from tests_framework.ve_tests.ve_test import VeTestApi
from tests_framework.ui_building_blocks.KSTB.playback import LIVE_PLAYBACK_TYPE
from tests_framework.milestones.milestones_kpi_request_parser import KpiRequestParserAPI
' Global constants '
ZAPPING_LOOP_NUMBER =... | [
"anshuman.saikia@lnttechservices.com"
] | anshuman.saikia@lnttechservices.com |
17e894a78f61fc5f47f18b6c1b2428ca96eba311 | 98736383886897141c035386b0e828b461ccfdd9 | /bilmAminoAcidEncoder/MuhaoChelsea/replace_prot_vec.py | 2acb7bc5fc04277ba11042340b9cb2bda55280a2 | [] | no_license | minghao2016/GOAnnotationTransformer | 53e72aa1160e32a0c419b5c2f2bac3405b519b74 | bc5d853c88a523566980f7b2f9acedaad5f93a13 | refs/heads/master | 2022-12-06T21:39:22.364811 | 2020-03-31T04:28:57 | 2020-03-31T04:28:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,340 | py |
import sys,re,os,pickle
import numpy as np
import pandas as pd
#### take prot already have vec and override
for mode in ['data', 'dataExpandGoSet']:
os.chdir("/local/datdb/deepgo/"+mode+"/train/fold_1/ProtAnnotTypeData")
for data_type in ['test','train','dev']:
for onto in ['cc','bp','mf']:
## read i... | [
"datd1988@gmail.com"
] | datd1988@gmail.com |
47081ec30bd6b9e92bb96152b5f3c136d9c2be23 | 6b9986466152e381209d7d646507e9df9973d421 | /business/models.py | 0b8b98b8b68e25e426f813797a8f5e0e0e5ba003 | [] | no_license | Stephen-Tipa-Augustine/JuliusProject | b0247fb0188aab18e3693d377a7dd9a724656c42 | d94c5b06619d41e415f0d5aabeb44f200bb131e0 | refs/heads/master | 2022-12-31T11:29:34.895964 | 2020-10-16T12:03:45 | 2020-10-16T12:03:45 | 304,430,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,805 | py | from django.db import models
import re
from django.db.models.signals import pre_save
# Create your models here.
def slug_generator(sender, instance, *args, **kwargs):
if not instance.slug:
name = instance.name
name = name.lower()
slug = re.sub(r' +', '-', name)
instance.slug = slug... | [
"tipastep5@gmail.com"
] | tipastep5@gmail.com |
26f3a46a4200512df44098546509f750889f940c | 572dd57fcc540cd5ac42d9f7e373d47d112e0908 | /interactions.py | 9633e4dcd34237b8688e652cda21abf85835be62 | [] | no_license | jackcn2004/PyADB | 33fe9c24d6674e1363d4d73af4631754ec3ca8e0 | 147e6f0a27d807ddd7fbc9f1f61c721d397db4af | refs/heads/master | 2021-07-23T04:19:45.617326 | 2017-11-02T16:08:31 | 2017-11-02T16:08:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,947 | py | import os
import time
import threading
from xml.dom import minidom
import random
ELEVATED = False
def Keycode(number, udid):
runCommand("sudo adb -s {} shell input keyevent {}".format(udid, number))
def InstallAPK(udid, apk):
runCommand('sudo adb -s {} install {}'.format(udid, apk))
def CurrentApp(udid):
app = ... | [
"christopherlambert106@gmail.com"
] | christopherlambert106@gmail.com |
c0503a6d1b22321ab3613df8f4a6bc614455703a | d8913c1512146bb42756f61ba0872d73179884eb | /contacts/views.py | f0acae524f1edd47bb0a81f7165186359b621527 | [
"MIT"
] | permissive | sahin88/Django_Rest_Framework_Redux_React_Estate_App_FullStack | 2ed305c399edfab05ce3653e8bcaf36f09ae9015 | 10e31c4071bcebc0e4401f42084211d170b2ea56 | refs/heads/main | 2023-03-22T17:00:37.102265 | 2021-03-16T17:26:53 | 2021-03-16T17:26:53 | 319,297,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | from django.shortcuts import render
from rest_framework.response import Response
from django.http import JsonResponse
from rest_framework.views import APIView
from django.core.mail import send_mail,send_mass_mail
from .models import contacts
from rest_framework import permissions
from .serializers import contactSeriali... | [
"sahinmuratogur@gmail.com"
] | sahinmuratogur@gmail.com |
ab1683de813b3dd06562a1cd97129ba86f5d8f7d | bfe5ab782ca4bb08433d70bdd142913d40a40a8d | /Codes/68) loop_list.py | d65cf43d0c2d6aa13bf1519ec3e3190f608c5a5c | [] | no_license | akshat12000/Python-Run-And-Learn-Series | 533099d110f774f3c322c2922e25fdb1441a6a55 | 34a28d6c29795041a5933bcaff9cce75a256df15 | refs/heads/main | 2023-02-12T19:20:21.007883 | 2021-01-10T05:08:09 | 2021-01-10T05:08:09 | 327,510,362 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | fruits=['apple','orange','banana','grapes','guava','kiwi']
print()
# 1) for loop
for i in fruits:
print(i)
# 2) while loop
i=0
while i<len(fruits):
print(fruits[i])
i+=1
| [
"noreply@github.com"
] | akshat12000.noreply@github.com |
191ff40862d4525a705014f2ed15c75ed71f6b5f | b07ea8c5a075e3c7e7a0f9aca6bec73a22cdb7df | /PART 2/ch07/1_stack.py | 7381f03a99bdedf19d3ee885a8a784391a37c39e | [] | no_license | jaeehooon/data_structure_and_algorithm_python | bb721bdbcff1804c04b944b4a01ed6be93124462 | 6d07438bfaaa1ec5283cb350ef4904eb94826c48 | refs/heads/master | 2023-02-21T10:08:20.765399 | 2021-01-22T13:37:11 | 2021-01-22T13:37:11 | 323,367,191 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | # 7.1 스택(stack)
class Stack(object):
def __init__(self):
self.items = []
def isEmpty(self):
return not bool(self.items)
def push(self, value):
self.items.append(value)
def pop(self):
value = self.items.pop()
if value is not None:
return value
... | [
"qlenfr0922@gmail.com"
] | qlenfr0922@gmail.com |
3df48c54da07731cf84031c41514684f1b036828 | e61b00d8e144e62bb7821db2aac5f25e9d730e99 | /ConcreteView/ConcreteView/asgi.py | 91eb11ef58c2594dba9e18b0b523e4aa291337bc | [] | no_license | asad2200/rest-api | 9fae1a99921041309f45cc1d307e1484e823058d | 9278168b382656f9d93c79fd96db82a666a4986a | refs/heads/master | 2023-04-24T06:50:18.029540 | 2021-05-18T03:44:20 | 2021-05-18T03:44:20 | 363,402,803 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
ASGI config for ConcreteView project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_... | [
"asadjakhavala92@gmail.com"
] | asadjakhavala92@gmail.com |
29dda8bb0d6e8291495f8961ccdceb1aa72b5730 | b115a6a6cd23c590eca05e2134c876d1adeec563 | /tweets/urls.py | 3b47b57845069915e96c9898bacb54800fca1056 | [] | no_license | MotazBellah/twitter-like | 0cb8a7ccbf27f50b23c3dc766b730d72c0ae04c9 | 429185eb9c3776a32344f457754374dfe1961115 | refs/heads/master | 2023-07-29T20:32:23.318142 | 2020-08-05T21:43:44 | 2020-08-05T21:43:44 | 284,739,990 | 0 | 0 | null | 2021-09-22T19:36:59 | 2020-08-03T15:43:10 | Python | UTF-8 | Python | false | false | 378 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.home_view),
path('tweets', views.tweet_list_view),
path('tweets/<int:tweet_id>', views.home_detail_view),
path('create-tweet', views.tweet_create_view),
path('api/tweets/<int:tweet_id>/delete', views.home_delete_view),... | [
"engineer.android@yahoo.com"
] | engineer.android@yahoo.com |
8262672738ea81ff96b397940a47f69a802433e1 | 1b845de8123c750e8735ccf4297bf1e5861cbb4b | /katas/5kyu/kata39.py | fa504118658f3b0c680e8075445969a6053c1d80 | [] | no_license | jorgemira/codewars | 3ef2b05fa90722cdd48bb8afb0f7536627bcfec9 | 701a756f3d466dbfe93f228b2e294cf49a7af2ae | refs/heads/master | 2020-12-19T19:07:51.485286 | 2020-01-23T15:54:52 | 2020-01-23T15:54:52 | 235,824,468 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | """
Codewars 5 kyu kata: Ookkk, Ok, O? Ook, Ok, Ooo!
URL: https://www.codewars.com/kata/55035eb47451fb61c0000288/python
"""
def okkOokOo(s):
ok, ook= '', ''
for o in s:
if o in "Oo":
ok += '0'
elif o == 'k':
ok += '1'
else:
if len(ok) == 8:
... | [
"jorge.mira.yague@gmail.com"
] | jorge.mira.yague@gmail.com |
f3f95ae9bebe69e75dd6f6ad22fe76855aa1652f | 95df12156e4dd24ed3646a93da972ab1a8e654f5 | /inst_api_ser/src/insights_rest/agentsrfm/config.py | feac80b0452096a905de911765fc4056ed6412ff | [] | no_license | sijuaugustin/ingts | 1cf05e9acaac85181f82b8442537755a7799e300 | 68df567caa7c581e89eea7130fa8a45cd83a40ae | refs/heads/master | 2020-06-01T15:49:23.620893 | 2017-06-13T06:56:27 | 2017-06-13T06:56:27 | 94,078,907 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,217 | py | host = 'https://dev-api.propmix.io/mlslite/icma/v1/GetListingsByRadius?'
Street_name = 'Street'
Radius_name = 'Radius'
MonthsBack_name = 'MonthsBack'
City_name = 'City'
State_name = 'State'
PropertyType_name = 'PropertyType'
PageSize_name = 'PageSize'
Longitude_name = 'Longitude'
Latitude_name = 'Latitude'
PageSize_Val... | [
"siju.augustine@cognub.com"
] | siju.augustine@cognub.com |
3c6fc9868ccd4bdd39fb6b67c27f46eae58c6dee | d9f4f8b246bf26848e0a7dee01b1938336df8fb0 | /qt-libs/kdsoap/kdsoap.py | 8e86b0349264b7dcd48a28662ca2a3e73a34bc18 | [
"BSD-2-Clause"
] | permissive | dschmidt/craft-blueprints-kde | f485e65aea46a17db24ca02e75b6fafb3a7d332c | 471b99399d5c2a432c46f391e0555b27debedbb1 | refs/heads/master | 2021-10-15T08:07:46.356100 | 2017-12-13T16:25:08 | 2017-12-13T16:25:08 | 114,296,141 | 0 | 0 | null | 2017-12-14T21:05:34 | 2017-12-14T21:05:34 | null | UTF-8 | Python | false | false | 2,129 | py | # -*- coding: utf-8 -*-
import info
from Package.Qt5CorePackageBase import *
class subinfo(info.infoclass):
def setTargets(self):
self.svnTargets["master"] = "https://github.com/KDAB/KDSoap.git"
for ver in ["1.6.0"]:
self.targets[ver] = f"https://github.com/KDAB/KDSoap/releases/downlo... | [
"vonreth@kde.org"
] | vonreth@kde.org |
2ee44498f2bf8ad3c34a2c4f2b1d0d7e7c09a8ae | 4e37adc003e3be064161cfa1521b477fa75649fd | /py/api/search/search/models/recipe_old_sub_heading_ingredient.py | e6ec9d777f80cb77527da4551692a9eca984623d | [] | no_license | stgpetrovic/junction2019 | ff97a1fb38262c0ea47905c4c61c9550271168c5 | 227da9ac06f1cd708d4649652a8d79bf776e41b2 | refs/heads/master | 2020-09-11T07:42:03.613409 | 2019-11-17T08:27:43 | 2019-11-17T08:28:05 | 221,989,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,546 | py | # coding: utf-8
"""
Search API
Search API is a REST-like API which wraps the underlying ElasticSearch service for most common use cases. While this API is called the \"search\" service, in practice it acts as the main data engine for various Kesko services, providing high performance endpoints for fetching re... | [
"stgpetrovic@gmail.com"
] | stgpetrovic@gmail.com |
05e49bca06be82494d672ae388d5bc90f99ff4f2 | 78c4ccb183a99ebaabcdc3a3a69f029e4aee0f5c | /AlgorithmStudy/백준/무지성 랜덤풀이/10월/10.14/17144 미세먼지 안녕!.py | 86c95a6884bd7804559b8fdab1bf20e636d8d7a0 | [] | no_license | cladren123/study | ef2c45bc489fa658dbc9360fb0b0de53250500e5 | 241326e618f1f3bb1568d588bf6f53b78920587a | refs/heads/master | 2023-09-02T02:21:24.560967 | 2021-11-05T12:20:06 | 2021-11-05T12:20:06 | 368,753,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,422 | py |
import sys
import copy
input = sys.stdin.readline
# r : 세로, c : 가로, t : 시간
r, c, t = map(int, input().split())
a = []
for _ in range(r) :
one = list(map(int, input().split()))
a.append(one)
# 공기 청정기 위치 탐색
aircleaner = []
for y in range(r) :
for x in range(c) :
if a[y][x] == -1 :
ai... | [
"48821942+cladren123@users.noreply.github.com"
] | 48821942+cladren123@users.noreply.github.com |
65d3a4badd807f294d521e3798977824dc8b2362 | 15bfc2b3ba52420d95ed769a332aaa52f402bbd2 | /wireless/v1/usage_record/read-example-1/read-example-1.6.x.py | b49f3879d45a35938bdd4928ccb755afb41c32d7 | [] | 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 | 513 | 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)
usage_records = client.wire... | [
"jose.oliveros.1983@gmail.com"
] | jose.oliveros.1983@gmail.com |
0df8a10defa2fb9fdfbb78d7eec0293acc32d8d8 | d48c61c1176488d207c60288d54e7388bfc72bda | /app/config/urls.py | b454bcd5bcec9a0a39ed43ce81916ef3f2a042a3 | [] | no_license | mash-up-kr/8th-DjangoStudy-Sample | ed1f9ff49633889b39b667e3a9cdefc5f070fec8 | 9fbd6d9d73be0d3eb4836e3e7fd486f14ac9b057 | refs/heads/master | 2023-04-30T02:26:08.979822 | 2019-11-30T05:31:38 | 2019-11-30T05:31:38 | 224,957,277 | 0 | 0 | null | 2023-04-21T20:42:01 | 2019-11-30T04:05:06 | Python | UTF-8 | Python | false | false | 996 | py | """config URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"dev@lhy.kr"
] | dev@lhy.kr |
574d8358f1b8a3f28641ce1e74a4114c9128aee7 | f5d4863b6a62ef19ffc98e4f94f6ade1bc8810d3 | /Array/78_Subsets.py | 3f46561e355b10ab021c71b276678867d0b18ba7 | [] | no_license | xiaomojie/LeetCode | 138808eb83938f9bd3c2e8a755d908509dff0fd3 | eedf73b5f167025a97f0905d3718b6eab2ee3e09 | refs/heads/master | 2021-06-12T09:26:01.257348 | 2019-10-23T10:41:06 | 2019-10-23T10:41:06 | 76,184,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | """
Given a set of distinct integers, nums, return all possible subsets (the power set).
Note: The solution set must not contain duplicate subsets.
Example:
Input: nums = [1,2,3]
Output:
[
[3],
[1],
[2],
[1,2,3],
[1,3],
[2,3],
[1,2],
[]
]
"""
class Solution(object):
def subsets(self, nums):
... | [
"519399762@qq.com"
] | 519399762@qq.com |
ae7f52eb67605159461f9fe11c566a9c9fbb7049 | 7405a7672c2873129f8bc185d8db0f56ea741348 | /examples/apc2016/datasets/mit_benchmark.py | 4bc35745e764b06ae73ecb1e69e69adda2d1668a | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | pazeshun/fcn | bf9210b8e6c4e4a188952588322cc22a05416695 | c40dfa5a77df5ecb23ecc555e80f37a99e8bdd4f | refs/heads/master | 2020-04-14T15:29:04.201755 | 2019-01-02T16:24:28 | 2019-01-02T16:24:28 | 163,928,322 | 0 | 0 | MIT | 2019-01-03T05:43:17 | 2019-01-03T05:43:16 | null | UTF-8 | Python | false | false | 3,797 | py | import itertools
import os
import os.path as osp
import chainer
import numpy as np
import scipy.misc
from sklearn.model_selection import train_test_split
from base import APC2016DatasetBase
def ids_from_scene_dir(scene_dir, empty_scene_dir):
for i_frame in itertools.count():
empty_file = osp.join(
... | [
"www.kentaro.wada@gmail.com"
] | www.kentaro.wada@gmail.com |
89b517ffb66950a059d17970c78fcc0b6fe652fd | eafbecf75d121630ca195c039aa3259e9f9dc1db | /tests/generic.py | a019022143b169e14b5987f7a40358565f6ca141 | [
"MIT"
] | permissive | Emrys-Lee/trimesh | 0cc6af76079d39ff8f2e62c18a5379254378e635 | e995a2139353712dcd47b5946f774a63e6440397 | refs/heads/master | 2021-07-07T21:58:09.782650 | 2017-09-30T19:13:32 | 2017-09-30T19:13:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,387 | py | '''
Module which contains all the imports and data available to unit tests
'''
import unittest
import itertools
import inspect
import logging
import os
import sys
import json
import time
import numpy as np
import trimesh
import collections
from collections import deque
from copy import deepcopy
from trimesh.constant... | [
"mik3dh@gmail.com"
] | mik3dh@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.