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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1109161a39f73fe01e4a6f4099ad4dad4a0939bc | abdb582b9ab76eaf6df1fdb5843c24fa6fa1ede0 | /flendz_test/urls.py | 80bc3d35b33735c54f511c2ea63a1065e235799b | [] | no_license | jabykuniyil/flendz | 1375341ee97986842d962702e0f1ac7f6d48cae7 | ef952f9e14320b9c512b4047c6726ab9ff776120 | refs/heads/main | 2023-05-27T20:12:36.774259 | 2021-06-05T04:38:47 | 2021-06-05T04:38:47 | 372,798,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('api/', include('test_app.url')),
]
| [
"mohdjabiran112@gmail.com"
] | mohdjabiran112@gmail.com |
153bedd6b9dfdb762195c22a86d2e1d6dddd83c5 | ce083128fa87ca86c65059893aa8882d088461f5 | /python/flask-mail-labs/.venv/lib/python2.7/site-packages/babel/dates.py | a8fadc7801e088692658f8de8729ba4a76a892aa | [] | no_license | marcosptf/fedora | 581a446e7f81d8ae9a260eafb92814bc486ee077 | 359db63ff1fa79696b7bc803bcfa0042bff8ab44 | refs/heads/master | 2023-04-06T14:53:40.378260 | 2023-03-26T00:47:52 | 2023-03-26T00:47:52 | 26,059,824 | 6 | 5 | null | 2022-12-08T00:43:21 | 2014-11-01T18:48:56 | null | UTF-8 | Python | false | false | 67,706 | py | # -*- coding: utf-8 -*-
"""
babel.dates
~~~~~~~~~~~
Locale dependent formatting and parsing of dates and times.
The default locale for the functions in this module is determined by the
following environment variables, in that order:
* ``LC_TIME``,
* ``LC_ALL``, and
* ``... | [
"marcosptf@yahoo.com.br"
] | marcosptf@yahoo.com.br |
ca2951f89c8fcf239e756f26b15ef01148feb032 | 3b50605ffe45c412ee33de1ad0cadce2c5a25ca2 | /python/paddle/fluid/tests/custom_op/test_multi_out_jit.py | 7e252e048b64c9b158fabe21b818fbccaf71a26c | [
"Apache-2.0"
] | permissive | Superjomn/Paddle | f5f4072cf75ac9ecb0ff528876ee264b14bbf8d1 | 7a0b0dab8e58b6a3b28b3b82c43d55c9bd3d4188 | refs/heads/develop | 2023-02-04T20:27:54.244843 | 2023-01-26T15:31:14 | 2023-01-26T15:31:14 | 66,896,049 | 4 | 1 | Apache-2.0 | 2023-04-14T02:29:52 | 2016-08-30T01:45:54 | C++ | UTF-8 | Python | false | false | 3,680 | py | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | Superjomn.noreply@github.com |
665a296262fe97164ada5fc3e0db919390d90e00 | e45d2faad9389886a82ff5176853b1ff6e37caae | /simplecv/017_face_detect.py | e93e398dd543658092ca32de34f80eb4096d57e8 | [] | no_license | allenmo/python_study | 6320aa4cd80fe46ccf73076015c67bdcb6338d30 | 7aff5d810ca6e791d62235d57c072a8dc14457ca | refs/heads/master | 2021-03-24T12:00:33.079530 | 2016-11-22T23:35:58 | 2016-11-22T23:35:58 | 55,770,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | from SimpleCV import *
cam = Camera()
disp = Display()
size = cam.getImage().size()
segment = HaarCascade("face.xml")
while disp.isNotDone():
img = cam.getImage()
autoface = img.findHaarFeatures(segment)
lenFace = len(autoface)
if ( lenFace > 0 ):
for i in range(0,lenFace):
face =... | [
"allen02403@gmail.com"
] | allen02403@gmail.com |
f90334a1939d9b22c35a1f046ae87e4ce66693cb | ac305c6739541e84857e297f8eb1b19417978548 | /module_128.py | b9ba541614d3ccd041e0fe0728a597cc18a34050 | [] | no_license | imhardikj/git_test | d6608d6c02e0bc454f9dd31ffbbc5704a7046a61 | 43f0de2e9ac09ecd4fdfee27879fd8ae354a0685 | refs/heads/master | 2020-03-27T21:56:46.394739 | 2018-09-03T11:27:58 | 2018-09-03T11:27:58 | 147,189,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,214 | py | """A set of classes used to represent electric cars."""
from module_121 import Car
class Battery():
"""A simple attempt to model a battery for an electric car."""
def __init__(self, battery_size=70):
"""Initialize the batteery's attributes."""
self.battery_size = battery_size
... | [
"noreply@github.com"
] | imhardikj.noreply@github.com |
3c840954bad45d6884f9cadc51628038511b55ba | d6475dda9db9ea6e447db2b4d75d2ebdf454e9d8 | /polls/models.py | fefdac850f120944eee69c1278d883e9925f2e2d | [] | no_license | yoophi/django_polls | 3d92b01f239ed6933b7593408b788f7adf2e6c31 | f94c0ff6307cbdd2d3c65a6b5131a515b6fe67af | refs/heads/master | 2021-01-10T00:57:18.706884 | 2016-03-24T14:50:38 | 2016-03-24T14:50:38 | 54,241,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 971 | py | from __future__ import unicode_literals
import datetime
from django.db import models
from django.utils import timezone
from django.utils.encoding import python_2_unicode_compatible
@python_2_unicode_compatible
class Question(models.Model):
question_text = models.CharField(max_length=200)
pub_date = models.D... | [
"yoophi@gmail.com"
] | yoophi@gmail.com |
c9585d56b0fe94af3866093cae1b512d95ca70cb | fe3265b72e691c6df8ecd936c25b6d48ac33b59a | /tests/components/fritz/test_button.py | 36af1c27f5e0bcf2f1852749964ed9cdf872c95c | [
"Apache-2.0"
] | permissive | bdraco/home-assistant | dcaf76c0967783a08eec30ce704e5e9603a2f0ca | bfa315be51371a1b63e04342a0b275a57ae148bd | refs/heads/dev | 2023-08-16T10:39:15.479821 | 2023-02-21T22:38:50 | 2023-02-21T22:38:50 | 218,684,806 | 13 | 7 | Apache-2.0 | 2023-02-21T23:40:57 | 2019-10-31T04:33:09 | Python | UTF-8 | Python | false | false | 2,402 | py | """Tests for Fritz!Tools button platform."""
from unittest.mock import patch
import pytest
from homeassistant.components.button import DOMAIN as BUTTON_DOMAIN, SERVICE_PRESS
from homeassistant.components.fritz.const import DOMAIN
from homeassistant.config_entries import ConfigEntryState
from homeassistant.const impor... | [
"noreply@github.com"
] | bdraco.noreply@github.com |
827c7b9b76801ff6a9ebbc2f8342fe133931ca45 | f17de2f1a2804033a7b7fc74a0d09f964fe1d876 | /hungerExpress/food/migrations/0003_auto_20180331_1736.py | a285d1dd32068594eea223b405926bad96304f74 | [] | no_license | udwivedi394/djangoProjects | 60d6eb275ce75dab3884f1a9c68e01226625c4e2 | 22075b7f850d796afe5a0c06411eb5ff762357b7 | refs/heads/master | 2021-09-10T21:54:44.363710 | 2018-04-03T01:58:27 | 2018-04-03T01:58:27 | 126,106,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | # Generated by Django 2.0.3 on 2018-03-31 12:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('food', '0002_auto_20180331_1725'),
]
operations = [
migrations.AlterField(
model_name='restaurant',
name='contact_no... | [
"utkarshdwivedi394@gmail.com"
] | utkarshdwivedi394@gmail.com |
f6cc20c827f453c325a7d6abd1a137191b4f3eb1 | 76356eb3f3963051a15f7dfe6867586293bd7534 | /models/pruned/random_pruning/imagenet/resnet50_5.py | 49f3cdf8fcafef99f746b8dc1da08175cd959536 | [] | no_license | ICIdsl/performance_modelling | f59c74c0c6b2e60457694978f9a6d2251f3a70c2 | c48cf66db8e530797d0106a737c5c7da0852423c | refs/heads/master | 2023-07-07T22:32:30.718833 | 2021-08-13T12:48:37 | 2021-08-13T12:48:37 | 394,321,871 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,795 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
class ResNet50(nn.Module):
def __init__(self, num_classes=10):
super().__init__()
self.conv1 = nn.Conv2d(3, 62, kernel_size=(7, 7), stride=(2, 2), padding=(3, 3), bias=False)
self.bn1 = nn.BatchNorm2d(62, eps=1e-05, momentu... | [
"ar4414@ic.ac.uk"
] | ar4414@ic.ac.uk |
ff01db056009a80fa1000e2954fbb76c769b6e7e | a3d2620bbf25002c7b182600c2e40f8f06555e91 | /exc/exc/wsgi.py | 8d7d6db299d15b0077bd2774bf300955b5612354 | [] | no_license | alejo8591/backend-lab | 782736a82933f705f825a1194369bfe13e86c0ec | 4a02a9552083a7c877e91b0f8b81e37a8650cf54 | refs/heads/master | 2016-09-03T03:53:43.878240 | 2015-11-26T06:35:38 | 2015-11-26T06:35:38 | 3,911,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | """
WSGI config for exc 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.6/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "exc.settings")
from django.core.wsgi impo... | [
"alejo8591@gmail.com"
] | alejo8591@gmail.com |
968290c1917596dac408fca7d1a91f4c18315524 | 3024cafafbfc75193105af7f225d3b12eb2aea46 | /DjangoProjects/project24/iplapp/models.py | b6932bc062b857864ce7ec33dc7f0cac6088b6d7 | [] | no_license | jaishankarg24/Django-Rest-Framework | 33266f6825d51abb8a512426baedf59f2ee957c8 | 809ee9208ffbef4202a8f4058a84f5322793af52 | refs/heads/master | 2023-03-02T20:56:38.051060 | 2021-02-12T05:37:48 | 2021-02-12T05:37:48 | 338,233,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | from django.db import models
# Create your models here.
class IplTable(models.Model):
name = models.CharField( max_length=50)
age = models.IntegerField()
country = models.CharField( max_length=50) | [
"jaishankarg24@gmail.com"
] | jaishankarg24@gmail.com |
5c5ff093f8e4848fe2435494f5abccda014f4507 | 84a1f9d626828b6ecaee4ef037081f4d8750a990 | /编程/9月/9.12/习题答案.py | df9a5234a978fced165131300f75ac2e75628528 | [] | no_license | dujiaojingyu/Personal-programming-exercises | 5a8f001efa038a0cb3b6d0aa10e06ad2f933fe04 | 72a432c22b52cae3749e2c18cc4244bd5e831f64 | refs/heads/master | 2020-03-25T17:36:40.734446 | 2018-10-01T01:47:36 | 2018-10-01T01:47:36 | 143,986,099 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,921 | py | #coding=utf-8
import linecache
import time
now = time.time() #代码开始时间
# 前期准备,整理数据
data_keys = ('bid', 'uid', 'username', 'v_class', 'content', 'img', 'created_at', 'source', 'rt_num', 'cm_num', 'rt_uid', 'rt_username', 'rt_v_class', 'rt_content', 'rt_img', 'src_rt_num', 'src_cm_num', 'gender', 'rt_bid', 'location', '... | [
"34296128+dujiaojingyu@users.noreply.github.com"
] | 34296128+dujiaojingyu@users.noreply.github.com |
95aa037242063b122b3bd33f7bb1314f54c46850 | 11ad104b0309a2bffd7537d05e2ab3eaf4aed0ca | /tests/helpers/test_storage_remove.py | 9a447771ea630816f159fba84f8ff655f447eb56 | [
"Apache-2.0"
] | permissive | koying/home-assistant | 15e5d01a45fd4373b3d286e1b2ca5aba1311786d | 9fc92ab04e0d1933cc23e89b4095714aee725f8b | refs/heads/dev | 2023-06-24T01:15:12.150720 | 2020-11-01T12:27:33 | 2020-11-01T12:27:33 | 189,232,923 | 2 | 1 | Apache-2.0 | 2023-01-13T06:04:15 | 2019-05-29T13:39:02 | Python | UTF-8 | Python | false | false | 1,252 | py | """Tests for the storage helper with minimal mocking."""
import asyncio
from datetime import timedelta
import os
from homeassistant.helpers import storage
from homeassistant.util import dt
from tests.async_mock import patch
from tests.common import async_fire_time_changed, async_test_home_assistant
async def test_r... | [
"noreply@github.com"
] | koying.noreply@github.com |
34906a49299704ce8c70279a90752f8f06fab619 | 7c8bd2e26fdabf1555e0150272ecf035f6c21bbd | /ps프로젝트/BS/숫자카드2.py | 8734a278232da1fa846614d424d7f3945e467c48 | [] | no_license | hyeokjinson/algorithm | 44090c2895763a0c53d48ff4084a96bdfc77f953 | 46c04e0f583d4c6ec4f51a24f19a373b173b3d5c | refs/heads/master | 2021-07-21T10:18:43.918149 | 2021-03-27T12:27:56 | 2021-03-27T12:27:56 | 245,392,582 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | from collections import Counter
def check(v):
lt=0
rt=n-1
cnt=0
while lt<=rt:
mid=(lt+rt)//2
if arr[mid]==v:
return 1
elif arr[mid]>v:
rt=mid-1
else:
lt=mid+1
return 0
if __name__ == '__main__':
n=int(input())
arr=list(m... | [
"hjson817@gmail.com"
] | hjson817@gmail.com |
9d7d2d581d50ca04cf1b4329b5b87bf803707862 | c2e6b6119a1d03bc293572d568d21a6b76762a1f | /ex.py | 30c1077d8fe6fac7ee1c285147c7a62bef2ee59a | [] | no_license | kafura-kafiri/Fesss | 24a92e5185881066b0d2f61d1649ab0e43a0f479 | 7b660723237dfbdbd3ba9772a9d2a9c771807bb7 | refs/heads/master | 2021-05-03T17:17:54.799918 | 2018-02-06T16:06:40 | 2018-02-06T16:06:40 | 120,443,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,280 | py | # LSTM for international airline passengers problem with regression framing
import numpy
from pandas import read_csv
import datetime
import math
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import LSTM
from sklearn.preprocessing import MinMaxScaler
from sklearn.metrics import mea... | [
"kafura.kafiri@gmail.com"
] | kafura.kafiri@gmail.com |
8ef2d2abe68d0b5499e760395b40896a467518c4 | 2e9193625039cbd93a76a1ac1115e84599c6afcd | /HashTable/hashtableImp.py | 1f19d4d3fcdd4ca486866e38beb7dbb1a273fa65 | [] | no_license | hieudx149/DatastructAndAlgorithms | d54b79c3375dfb17989160a1d2dc74505061eae5 | a5f147b2f644f2a273c50756c9d297fa8b6bcd08 | refs/heads/master | 2023-06-16T13:38:32.039274 | 2021-07-13T10:35:54 | 2021-07-13T10:35:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,581 | py | class hash_table:
def __init__(self, size):
self.size = size
self.data = [None]*self.size
def __str__(self): # As in the array implementation, this method is used to print the attributes of the class object in a dictionary format
return str(self.__dict__)
def _hash(self, key):
... | [
"you@example.com"
] | you@example.com |
43b720aa6186d5142bf19c70b95377a6e09392e7 | 5b4312ddc24f29538dce0444b7be81e17191c005 | /autoware.ai/1.12.0_cuda/build/memsic_imu/catkin_generated/generate_cached_setup.py | a7913516ce6d717d1e4e1c8927d7d0035dfa6bef | [
"MIT"
] | permissive | muyangren907/autoware | b842f1aeb2bfe7913fb2be002ea4fc426b4e9be2 | 5ae70f0cdaf5fc70b91cd727cf5b5f90bc399d38 | refs/heads/master | 2020-09-22T13:08:14.237380 | 2019-12-03T07:12:49 | 2019-12-03T07:12:49 | 225,167,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,360 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/melodic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.... | [
"907097904@qq.com"
] | 907097904@qq.com |
3dd7a6c1cc0e7b493acc79ecedfa610981f4a0c2 | 6e8d58340f2be5f00d55e2629052c0bbc9dcf390 | /eggs/numpy-1.6.0-py2.7-linux-x86_64-ucs4.egg/numpy/f2py/auxfuncs.py | a12d92b7ea6a8df62af61ded3a2fcb333b26d37c | [
"CC-BY-2.5",
"MIT"
] | permissive | JCVI-Cloud/galaxy-tools-prok | e57389750d33ac766e1658838cdb0aaf9a59c106 | 3c44ecaf4b2e1f2d7269eabef19cbd2e88b3a99c | refs/heads/master | 2021-05-02T06:23:05.414371 | 2014-03-21T18:12:43 | 2014-03-21T18:12:43 | 6,092,693 | 0 | 2 | NOASSERTION | 2020-07-25T20:38:17 | 2012-10-05T15:57:38 | Python | UTF-8 | Python | false | false | 19,936 | py | #!/usr/bin/env python
"""
Auxiliary functions for f2py2e.
Copyright 1999,2000 Pearu Peterson all rights reserved,
Pearu Peterson <pearu@ioc.ee>
Permission to use, modify, and distribute this software is given under the
terms of the NumPy (BSD style) LICENSE.
NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RIS... | [
"root@ip-10-118-137-129.ec2.internal"
] | root@ip-10-118-137-129.ec2.internal |
5cbcaaa43ef258823c6c27044d41b401cda0c79d | 6b301b0b0d5fea69e6ab6d3fcfd0a9741143a9b7 | /config/jupyter/.ipython/profile_default/startup/00-setup-spark.py | 0219daccbe9e74cbcbd99ab8d59a1f0b6a772a72 | [
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-other-permissive",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | frankiegu/pipeline | c7a166e80ccc6a351c32fb1918a41268f2380140 | 3526f58cc9b4d824a23300cd60c647a753902774 | refs/heads/master | 2021-01-11T06:09:36.914324 | 2016-10-03T05:33:41 | 2016-10-03T05:33:41 | 69,836,618 | 1 | 0 | null | 2016-10-03T02:56:09 | 2016-10-03T02:56:09 | null | UTF-8 | Python | false | false | 489 | py | import glob
import os
import sys
# Setup SPARK_HOME
spark_home = os.getenv('SPARK_HOME', None)
if not spark_home:
raise ValueError('SPARK_HOME environment variable is not set')
# System sys.path
sys.path.insert(0, os.path.join(spark_home, 'python'))
for lib in glob.glob(os.path.join(spark_home, 'python/lib/py4j-*... | [
"chris@fregly.com"
] | chris@fregly.com |
bc4d8fdf44a8f6da59b0a8ead9eefac7907e6a29 | b3455474da0bc27c913ff88908be0d0bddba352d | /5.AI/1.Machine Learning/196_mushroom_train2.py | 0919272787d2e7922608902f2ded949c86259dab | [] | no_license | rntva/JumpToPython | 7286bc94e40b553fa7b9fbca7934f2e35f63b54e | 090f0ed5bf28ae7832e5edde11936b71b4fb324b | refs/heads/master | 2021-05-01T02:33:44.528975 | 2018-07-18T08:24:07 | 2018-07-18T08:24:07 | 121,182,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | import pandas as pd
from sklearn.ensemble import RandomForestClassifier
from sklearn import metrics
from sklearn.model_selection import train_test_split
#데이터 읽기
mr = pd.read_csv("mushroom.csv", header=None)
#데이터 내부의 분류 변수 전개
label = []
data = []
attr_list = []
for row_index, row in mr.iterrows() :
label.append(row.... | [
"ltrodl@gmail.com"
] | ltrodl@gmail.com |
fedb6ed76a5d7115dd820e753d6a9561b86a1f9e | 36e27ca74b734994fb2e5cd4e328e7b82202d8cd | /nodarb/migrations/0007_nodarb_tips_rada.py | 23417ec23dc96ae31da304e4df5cc8abde817eeb | [] | no_license | svabis/vf | 5e9513f3a767a9561e2fb8bd3e37bb3c03d113dd | d83a4afd177e4f7007a9ce824ae5ed36f18654fc | refs/heads/master | 2020-05-21T21:19:59.952463 | 2018-06-04T11:11:50 | 2018-06-04T11:11:50 | 84,647,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('nodarb', '0006_auto_20170311_1644'),
]
operations = [
migrations.AddField(
model_name='nodarb_tips',
... | [
"fizmats@inbox.lv"
] | fizmats@inbox.lv |
a891b7dbf6d6642a5556df699356d8e6d45ea81e | 9eef031728a6cdcd681cad9ba6b0709269383905 | /examples/test/test_analyzer.py | bd467f4878203aa3e45a31a9040cd5ead57b0c12 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | kbeckmann/liteeth | 906b6f30b5d3be28f2bfac91704c7d5ddf26e85e | 54acf9fd76c226d7760294ffde86418e52e0951b | refs/heads/master | 2022-12-24T17:02:42.834415 | 2020-08-24T20:14:35 | 2020-08-24T20:14:35 | 300,029,015 | 0 | 0 | NOASSERTION | 2020-09-30T19:03:51 | 2020-09-30T19:03:50 | null | UTF-8 | Python | false | false | 570 | py | #!/usr/bin/env python3
#
# This file is part of LiteEth.
#
# Copyright (c) 2015-2018 Florent Kermarrec <florent@enjoy-digital.fr>
# SPDX-License-Identifier: BSD-2-Clause
from litex import RemoteClient
wb = RemoteClient()
wb.open()
# # #
from litescope.software.driver.analyzer import LiteScopeAnalyzerDriver
analyze... | [
"florent@enjoy-digital.fr"
] | florent@enjoy-digital.fr |
ffb723bce5647ba3b185cf4e227e25b2ff78a4d7 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_2/frdyon001/question2.py | 26dadb99dfec05c266eb818b46161070e84fcf6d | [] | 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 | 2,854 | py | # Student Number: FRDYON001
# Name: Yonela Ford
# 30 Second Rule Expert
# Date: 08 March 2014
def rule():
print("Welcome to the 30 Second Rule Expert")
print("------------------------------------")
print("Answer the following questions by selecting from among the options.")
ans=input("Did anyo... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
8651ed35b2eb2e819fafde9dad2ea2b5c37309a2 | 9354603c34bd8e0e477f8777054dbd775c994ea4 | /webhr/urls.py | b8fc022d061ed07a32c02af440fd47c815a9bd56 | [] | no_license | Drjimoh/the-hr-project | 8c661ee2b5052b8e919dfcdb75827246bcf8d8ea | fc5d2085c7d4da0326cedc66342b0f9f058136d5 | refs/heads/master | 2020-05-20T16:20:02.217053 | 2019-05-08T18:58:44 | 2019-05-08T18:58:44 | 185,664,268 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,106 | py | """webhr 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 v... | [
"waliu.jimoh@yahoo.com"
] | waliu.jimoh@yahoo.com |
a53ec68b0e8ce40a7cda19097562ab614461ffc1 | b05761d771bb5a85d39d370c649567c1ff3eb089 | /venv/lib/python3.10/site-packages/pip/_internal/operations/install/wheel.py | 6a5fa1d94277dc9ee39c696ded14e23b17d938e6 | [] | no_license | JawshyJ/Coding_Practice | 88c49cab955eab04609ec1003b6b8c20f103fc06 | eb6b229d41aa49b1545af2120e6bee8e982adb41 | refs/heads/master | 2023-02-19T10:18:04.818542 | 2023-02-06T21:22:58 | 2023-02-06T21:22:58 | 247,788,631 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,185 | py | """Support for installing and building the "wheel" binary package format.
"""
import collections
import compileall
import contextlib
import csv
import importlib
import logging
import os.path
import re
import shutil
import sys
import warnings
from base64 import urlsafe_b64decode, urlsafe_b64encode
from email.message im... | [
"37465112+JawshyJ@users.noreply.github.com"
] | 37465112+JawshyJ@users.noreply.github.com |
371ee8cb4b4f7e37636a6fbfe01b1f1ba8180744 | f8b5aafac15f408a48fabf853a918015c927e6fe | /bk_tomo/venv/venv27/bin/openstack | ef4239b2369d1cd6ac9e4daa1bf696a84ace7ec5 | [] | no_license | to30/tmp | bda1ac0ca3fc61e96c2a1c491367b698d7e97937 | ec809683970af6787728c2c41f161f416155982a | refs/heads/master | 2021-01-01T04:25:52.040770 | 2016-05-13T16:34:59 | 2016-05-13T16:34:59 | 58,756,087 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 243 | #!/home/tomo/venv/venv27/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from openstackclient.shell import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"tomonaga@mx2.mesh.ne.jp"
] | tomonaga@mx2.mesh.ne.jp | |
c82fba8ab01d1d077471b17f9aead11553d75109 | f24edb38dd4f7de8a7683afbbc9ab2a4237a361e | /venv/lib/python3.6/site-packages/pip/_internal/network/auth.py | 64c6fd42fd13ad6212d709ee2ae711d0ca0f6507 | [] | no_license | ngecu/automate_django_data_filling | 882220f84a6b4af5484d4b136c740a803ccccfd2 | d6b7095904878f06e4aae6beb2156113a6145c21 | refs/heads/main | 2023-02-26T02:36:26.582387 | 2021-01-31T15:50:22 | 2021-01-31T15:50:22 | 317,846,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,537 | py | """Network Authentication Helpers
Contains interface (MultiDomainBasicAuth) and associated glue code for
providing credentials in the context of network requests.
"""
import logging
from pip._vendor.requests.auth import AuthBase, HTTPBasicAuth
from pip._vendor.requests.utils import get_netrc_auth
from pip._vendor.si... | [
"devngecu@gmail.com"
] | devngecu@gmail.com |
f59f062c20bb92420bb4ec172e9e3f763356ef80 | a140fe192fd643ce556fa34bf2f84ddbdb97f091 | /.history/quiz04_20200628163202.py | 43cf11c468754194ccbd6ea39f998db2cd2226d8 | [] | no_license | sangha0719/py-practice | 826f13cb422ef43992a69f822b9f04c2cb6d4815 | 6d71ce64bf91cc3bccee81378577d84ba9d9c121 | refs/heads/master | 2023-03-13T04:40:55.883279 | 2021-02-25T12:02:04 | 2021-02-25T12:02:04 | 342,230,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 826 | py | # 당신의 학교에서는 파이썬 코딩 대회를 주최합니다.
# 참석률을 높이기 위해 댓글 이벤트를 진행하기로 하였습니다.
# 댓글 작성자들 중에 추첨을 통해 1명은 치킨, 3명은 커피 쿠폰을 받게 됩니다.
# 추첨 프로그램을 작성하시오.
# 조건 1: 편의상 댓글은 20명이 작성하였고 아이디는 1~20 이라고 가정
# 조건 2: 댓글 내용과 상관 없이 무작위로 추첨하되 중복 불가
# 조건 3: random 모듈의 shuffle과 sample을 활용
# (출력 예제)
# -- 당첨자 발표 - -
# 치킨 당첨자: 1
# 커피 당첨자: [2, 3, 4]
# -- 축하합니다... | [
"sangha0719@gmail.com"
] | sangha0719@gmail.com |
4453fb58e33a80b6a1510a8e4e5c633e06b4cdc2 | e36985669a2b068dfb3e43b7f5870dc114bb158b | /python_code/dataExtraction.py | 7722d25b7d06ff6e71446c9ef08cf4b970e527d8 | [] | no_license | assassint2017/Data-extraction-UI | b3f0f43dc48e12c0da158bdb4a7c2c9dd5d92ab5 | d7e1b97100ad97b334f03b0fbf09c2a506339b1c | refs/heads/master | 2020-04-11T06:18:50.417214 | 2018-12-21T12:38:47 | 2018-12-21T12:38:47 | 161,577,841 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,732 | py | """
数据提取代码
"""
import datetime
import pandas as pd
from numpy import nan
#-------------------------需要设置的部分-------------------------------
# 设定csv文件路径 路径中不要出现中文
# csvDir = 'C:\\Users\\14595\\Desktop\\2018HB example .csv.gz'
# 设定提取csv文件路径 路径中不要出现中文
# extDir = 'C:\\Users\\14595\\Desktop\\ext.csv'
# 各哨点数量汇总文件路径 路径中不要出... | [
"noreply@github.com"
] | assassint2017.noreply@github.com |
99bb440e3d91a657af83b6b5699a5675b2c46f7c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03136/s297842517.py | a2a6230496234027046d6691748a5f445af9dd64 | [] | 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 | 163 | py | n = int(input())
a = list(map(int, input().split()))
b = [0]*n
b = sorted(a)
c = 0
for i in range(n-1):
c += b[i]
if c>b[n-1]:
print("Yes")
else:
print("No") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d5c4cac739d6c9ad1a641938dda9973c912c84c5 | e944d288093c9234c3a6a2a76ffe4e3c9b236cf1 | /annotation_utils/coco/structs/__init__.py | 66e257d06be64002c0bce0580e1d58fd6c768ce7 | [
"MIT"
] | permissive | darwinharianto/annotation_utils | 598b043345790580e99f34f159b9612b9b1bcd52 | 1cbdadaa28ff945e705dd7b806dda395e32ab23c | refs/heads/master | 2022-04-27T01:20:10.738778 | 2020-04-27T09:23:57 | 2020-04-27T09:23:57 | 255,525,300 | 0 | 0 | MIT | 2020-04-27T09:23:59 | 2020-04-14T06:10:57 | Python | UTF-8 | Python | false | false | 245 | py | from .objects import COCO_Info, COCO_License, COCO_Image, \
COCO_Annotation, COCO_Category
from .handlers import COCO_License_Handler, COCO_Image_Handler, \
COCO_Annotation_Handler, COCO_Category_Handler
from .dataset import COCO_Dataset | [
"mork.clayton3@gmail.com"
] | mork.clayton3@gmail.com |
a1f02577c0adfa04d1396283c0f946dca6808285 | 77ee1f677ab2ececb821a11be128b76bcf0e8d6f | /electrum_mona/gui/qt/lightning_dialog.py | 1d709aed9935b2c01bce4e473c6c8bdd4f25e9d9 | [
"MIT"
] | permissive | zcore-dev/electrum-mona | c74e6142a0f34721be70dba68d524ae9ce03179c | 2beb0c9c7794e8b03d1725bae41ee8b792c57275 | refs/heads/master | 2020-08-22T15:32:55.604727 | 2019-10-21T22:56:29 | 2019-10-21T22:56:29 | 216,427,159 | 0 | 0 | MIT | 2019-10-20T21:03:48 | 2019-10-20T21:03:48 | null | UTF-8 | Python | false | false | 3,658 | py | #!/usr/bin/env python
#
# Electrum - lightweight Bitcoin client
# Copyright (C) 2012 thomasv@gitorious
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation files
# (the "Software"), to deal in the Software without restriction,
# includi... | [
"root@DESKTOP-97LL1PI.localdomain"
] | root@DESKTOP-97LL1PI.localdomain |
79c9ac4f57d7c75785c6e238248c49297bcd93e6 | a40d5c5cd0fcc2410e3200f40f6a79f7201b0193 | /kubernetes/client/models/v1beta1_custom_resource_column_definition.py | f844f995b1a28c3f912663019e6dab34922ac0e7 | [
"Apache-2.0"
] | permissive | Unacademy/kubernetes-client | 662cdc2b9fe6df43301e32427e48b1b2715773ca | b7f9c740a82b4585478d052c8032495cdeb3b331 | refs/heads/master | 2023-06-24T05:57:27.226613 | 2022-12-14T16:29:58 | 2022-12-14T16:29:58 | 181,669,794 | 0 | 0 | Apache-2.0 | 2023-06-20T13:05:37 | 2019-04-16T10:43:37 | Python | UTF-8 | Python | false | false | 8,689 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.14.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re... | [
"haoweic@google.com"
] | haoweic@google.com |
fc9b0c269aecdb44c4736fe6b9da03555f7de8e3 | 31622dd16963b459ac6eec71fcf54e4d243ac773 | /edu_sharing_client/models/license.py | 073b8ab7d8a99b38a95e9902e2a8e4a23e2cd02e | [] | no_license | torsten-simon/oeh-search-etl | 95e6e92698a97c98ef9d5b02076edcf993736d6f | eacdadcd8af169cb54629db0d2d46a5616f854a6 | refs/heads/master | 2023-04-16T05:08:41.194239 | 2020-11-16T09:51:59 | 2020-11-16T09:51:59 | 318,169,232 | 0 | 0 | null | 2023-04-03T23:04:46 | 2020-12-03T11:20:44 | null | UTF-8 | Python | false | false | 3,484 | py | # coding: utf-8
"""
edu-sharing Repository REST API
The public restful API of the edu-sharing repository. # noqa: E501
OpenAPI spec version: 1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class License(object):
"... | [
"simon@edu-sharing.net"
] | simon@edu-sharing.net |
91b20ea47434b099c8ae47c90abfab4af64dad34 | 89cd8b77ad5171c336cc60b2133fe6468a6cb53f | /Module01_CZ/day1_basics/04-代码/day1/20_重要演示__________变量的定义.py | f4f737892f50ed4f9b166828e1067e18cd29954f | [
"MIT"
] | permissive | fenglihanxiao/Python | 75178f6b6b0c53345e1ed54226ea645216572d6c | 872baf3a3a5ee42740161152605ca2b1ddf4cd30 | refs/heads/master | 2021-05-23T18:49:20.656433 | 2020-04-29T01:06:21 | 2020-04-29T01:06:21 | 253,199,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | """
使用变量保存个人信息:
姓名:张传智
性别:男
年龄:21
电话:18800008888
"""
| [
"fenglihanxiao@qq.com"
] | fenglihanxiao@qq.com |
0289b4bcf761b49c33907f4f98a3ded9f257d4fa | 429a8441bb9730dcf0e33fedcb5f3672a731b3e7 | /xero_python/accounting/models/tax_rate.py | 3105e7e85477aa221bd8d79e66b609249374e58e | [
"MIT"
] | permissive | gregsteelxinja/xero-python | 1a26ec3b05ea156dd6848f2ec313c72e9f39b0e2 | d0473ba91099de3464b3dffa377df5a11ad95afc | refs/heads/master | 2022-12-16T10:54:11.424971 | 2020-09-01T01:00:23 | 2020-09-01T01:00:23 | 291,526,551 | 0 | 0 | null | 2020-08-30T18:16:48 | 2020-08-30T18:16:48 | null | UTF-8 | Python | false | false | 14,802 | py | # coding: utf-8
"""
Accounting API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
OpenAPI spec version: 2.2.14
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
from xero_pyth... | [
"sid.maestre@gmail.com"
] | sid.maestre@gmail.com |
d2edaeec8fdcd119849df0305b0cb817b3235ebe | 8d9318a33afc2c3b5ca8ac99fce0d8544478c94a | /Books/Casandra DB/opscenter-5.1.0/lib/py/orbited/proxy.py | 4c0e80c1f97cce4bb513bffb9be5583f06edd599 | [] | no_license | tushar239/git-large-repo | e30aa7b1894454bf00546312a3fb595f6dad0ed6 | 9ee51112596e5fc3a7ab2ea97a86ec6adc677162 | refs/heads/master | 2021-01-12T13:48:43.280111 | 2016-11-01T22:14:51 | 2016-11-01T22:14:51 | 69,609,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:ba1b92cda51cc0fbe137994a7b857befa45aa64d45009e4fb34ed1df78d0f3fc
size 5501
| [
"tushar239@gmail.com"
] | tushar239@gmail.com |
8f55ee77bb2e6f0f501c6aae41fe353d5946e7ed | 48f092fd8191b0218df8605dc7125e526764e59e | /NestedLoops/venv/Scripts/pip-script.py | 1f860a6a2d99a98a14ef6f35a31d2812b31131f3 | [] | no_license | LalityaSawant/Python-Projects | 2edb430c094fe3d6b4e706cc61f885aa07e24dff | b142708256e26867f09b3063f5f3fffa305ec496 | refs/heads/master | 2020-05-01T03:00:26.012301 | 2019-03-23T22:09:33 | 2019-03-23T22:09:33 | 177,235,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | #!C:\Users\lsawant\Documents\Learning\Python\PycharmProjects\NestedLoops\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script... | [
"lalitya.sawant@gmail.com"
] | lalitya.sawant@gmail.com |
10cefb112ffc8a72f2ddcd285ff5b6f871ecf497 | 41523dd4871e8ed1043d2b3ddf73417fcbdde209 | /day16/map函数.py | 7a19700236dcf557aafb01afb59951babcaa5d8d | [] | no_license | WayneChen1994/Python1805 | 2aa1c611f8902b8373b8c9a4e06354c25f8826d6 | a168cd3b7749afc326ec4326db413378fd3677d5 | refs/heads/master | 2020-03-30T23:19:00.773288 | 2018-11-02T10:47:40 | 2018-11-02T10:47:40 | 151,697,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 943 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# author:Wayne
'''
map函数的功能:
将传入的函数依次作用于序列中的每一个对象,
然后将其作用的结果作为一个迭代器返回
'''
'''
需求:将列表中的["1", "2", "3", "4", "5"]
转为[1, 2, 3, 4, 5],写成一个函数。
'''
def func(alist):
return [int(x) for x in alist]
list1 = ["1", "2", "3", "4", "5"]
print(list1)
print(func(list1))
res =... | [
"waynechen1994@163.com"
] | waynechen1994@163.com |
7b21a9e794befbf4b2268bb9e211d4e4aff762d6 | 53d03e48ca88e05fb134be8a2d3dda9b6079216e | /fabfile.py | ca82fcc42642e2e6fffd7cd3c79a84a7357a5b66 | [] | no_license | myungseokang/djangogirls | 3b9e18acb7b7747ca04c32dbebb070fc15b88966 | dd7f82131de66e0732553af2b1e3c170a6f44b5f | refs/heads/master | 2021-06-18T09:59:14.143057 | 2017-07-03T00:16:00 | 2017-07-03T00:16:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | true | false | 6,054 | py | from fabric.contrib.files import append, exists, sed, put
from fabric.api import env, local, run, sudo
import random
import os
import json
PROJECT_DIR = os.path.dirname(os.path.abspath(__file__))
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# deploy.json파일을 불러와 envs변수에 저장합니다.
with open(os.pa... | [
"l3opold7@gmail.com"
] | l3opold7@gmail.com |
38acb8c211006d953999bf2dfc3090c9f9313ea5 | ee27325f6a3e6a2d1f5e004aa60f5974ad864ae9 | /contrib/python/plotly/py3/plotly/validators/contourcarpet/__init__.py | 09c50961c6d1e808ad2e54b12da590314f6b6cc2 | [
"Apache-2.0",
"MIT"
] | permissive | alvinahmadov/catboost | f32d2b16be9db7439e429c88feb5676de842fc89 | a6e0caa4779b31199f535cf43b09879d7c653abe | refs/heads/master | 2023-06-12T19:29:52.028508 | 2023-05-11T18:33:03 | 2023-05-11T18:33:03 | 202,584,937 | 0 | 0 | Apache-2.0 | 2019-08-15T17:35:23 | 2019-08-15T17:35:23 | null | UTF-8 | Python | false | false | 4,621 | py | import sys
from typing import TYPE_CHECKING
if sys.version_info < (3, 7) or TYPE_CHECKING:
from ._zsrc import ZsrcValidator
from ._zmin import ZminValidator
from ._zmid import ZmidValidator
from ._zmax import ZmaxValidator
from ._zauto import ZautoValidator
from ._z import ZValidator
from .... | [
"akhropov@yandex-team.com"
] | akhropov@yandex-team.com |
c484b176ad74bbf3c3d2c6945058b3f6fa039104 | 1978a9455159b7c2f3286e0ad602652bc5277ffa | /exercises/05_basic_scripts/task_5_2b.py | 942e752a8c38f07e0e2a188e036ef30e8781ecff | [] | no_license | fortredux/py_net_eng | 338fd7a80debbeda55b5915dbfba4f5577279ef0 | 61cf0b2a355d519c58bc9f2b59d7e5d224922890 | refs/heads/master | 2020-12-03T17:32:53.598813 | 2020-04-08T20:55:45 | 2020-04-08T20:55:45 | 231,409,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | # -*- coding: utf-8 -*-
'''
Задание 5.2b
Преобразовать скрипт из задания 5.2a таким образом,
чтобы сеть/маска не запрашивались у пользователя,
а передавались как аргумент скрипту.
Ограничение: Все задания надо выполнять используя только пройденные темы.
'''
from sys import argv
ip = str(argv[1])
mask = int(argv[2])... | [
"fortunaredux@protonmail.com"
] | fortunaredux@protonmail.com |
fe91480c51ec9d9e11d8cbf4c07c3dbad667f8a4 | f2f21c643d1f5459253989e7cdba85c064cca8ce | /adding_bootstarp/adding_bootstarp/wsgi.py | b02fcd063eb36aa3dc1d03dc3104e13e690ebccf | [] | no_license | NiteshTyagi/django_tutorial | 342decea7532f1efb200b9f45e4123c581aad43f | 3353f0d2907a00f43e1faee2b97abd9af66ca08f | refs/heads/master | 2022-03-05T19:46:50.642154 | 2022-03-01T04:53:14 | 2022-03-01T04:53:14 | 205,629,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
WSGI config for adding_bootstarp project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJA... | [
"nitesh.tyagi.cs.2015@miet.ac.in"
] | nitesh.tyagi.cs.2015@miet.ac.in |
079662848033b228ee09c8bb812f1c80e52e4cb0 | 1f68b6f9f55afaa7cb32df262f4fe0864472da05 | /leetcode(多线程,DP,贪心,SQL)/二刷DP与贪心LeetCode/回溯/51. N皇后/solution.py | 761c902fdb433e6e6f0765ec8b75578496b26cb9 | [] | no_license | faker-hong/testOne | 7c4496362cb5495c25c640076102fe0704f8552f | 768edc4a5526c8972fec66c6a71a38c0b24a1451 | refs/heads/master | 2022-12-04T14:47:53.614685 | 2020-10-30T03:17:50 | 2020-10-30T03:17:50 | 196,514,862 | 1 | 0 | null | 2022-11-22T02:43:32 | 2019-07-12T05:35:09 | Python | UTF-8 | Python | false | false | 1,100 | py | class Solution(object):
def solveNQueens(self, n):
"""
:type n: int
:rtype: List[List[str]]
"""
# 判断放置的皇后位置与之前的是否冲突
def is_valid(row, col, track):
# 因为每一次的row不同,所以不用判断是否在同一行
if col in track: # 是否在同一列
return False
... | [
"42666723+hongcheng97@users.noreply.github.com"
] | 42666723+hongcheng97@users.noreply.github.com |
c280ee3b854a4f6043932dbcd3aa1b31846f9e2c | 47988c4d1e2c07cd2465da204890f481d59dbd4b | /src/tests/ftest/util/command_utils_base.py | e25429c501973d0d6e453644fdfcba2b0cf4b268 | [
"BSD-2-Clause",
"BSD-2-Clause-Patent"
] | permissive | dsikich/daos | 974000a2e9a37c2edc994007f864ab69afe347e3 | 13385f8eb3209dfe9f63772a68a3bb8cadaf2e23 | refs/heads/master | 2022-07-07T05:46:07.074084 | 2022-06-29T13:01:52 | 2022-06-29T13:01:52 | 242,208,796 | 0 | 0 | NOASSERTION | 2021-12-07T21:17:27 | 2020-02-21T18:50:31 | C | UTF-8 | Python | false | false | 26,663 | py | #!/usr/bin/python
"""
(C) Copyright 2020-2022 Intel Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent
"""
from logging import getLogger
import os
import yaml
from exception_utils import CommandFailure
class BasicParameter():
"""A class for parameters whose values are read from a yaml file."""
de... | [
"noreply@github.com"
] | dsikich.noreply@github.com |
952fd72ad5a8100025aa2e461084375532616b8e | 677562bf6835be104204f32a6c9998d9a901f9fc | /from_scratch/detect_metadata/times.py | fefebd85201b58cd0821fa91c8c528a5f775d688 | [] | no_license | santokalayil/neural_network | 3cb2f843430e9f35e017edcde83ba13212d0f5cf | f453856214d027f55afc5c861784dc693a9bf2c6 | refs/heads/main | 2023-06-12T01:53:43.588403 | 2021-07-02T08:30:20 | 2021-07-02T08:30:20 | 382,281,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | # import platform # to detect the operating system
import os
import time
def get_last_modified_time(path_to_file):
return os.path.getmtime(path_to_file) # time.ctime(os.path.getmtime(path_to_file))
def get_created_time(path_to_file):
return os.path.getctime(path_to_file) # time.ctime(os.path.ge... | [
"49450970+santokalayil@users.noreply.github.com"
] | 49450970+santokalayil@users.noreply.github.com |
3b937e27177d4b2213f47baa81c00973e7037be0 | bc4910ecec94749697dbce5e7cf5093275411125 | /src/generator/Cheetah/ErrorCatchers.py | 500f2490d613628fe69f683fafa883f5d586e55d | [
"MIT"
] | permissive | se210/tracy | 7e73a6f0d64f355842b9a11035c3720b4d40fde5 | 232a42ce1aefcffa1f8544c89d60a16ebd897033 | refs/heads/master | 2021-01-09T20:55:03.241111 | 2013-12-15T23:34:36 | 2013-12-15T23:34:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,838 | py | #!/usr/bin/env python
# $Id: ErrorCatchers.py,v 1.1 2006-09-06 09:50:08 skyostil Exp $
"""ErrorCatcher class for Cheetah Templates
Meta-Data
================================================================================
Author: Tavis Rudd <tavis@damnsimple.com>
Version: $Revision: 1.1 $
Start Date: 2001/08/0... | [
"sami.kyostila@unrealvoodoo.org"
] | sami.kyostila@unrealvoodoo.org |
5d85ec597bf50561c780343e1b57a17fe70cdec9 | 581c2beee0cf5656971987a19064524e3de7bc68 | /distributions/lomax.py | 6afe6b8af24109d2284426642b481f36d5ef196f | [
"MIT"
] | permissive | bballamudi/survival | ac6925b30ba3ca9ed574ba056d36830f9129114f | c86186b08e7896096b9d59a5013335f56283a7c4 | refs/heads/master | 2020-03-21T14:16:29.578172 | 2018-06-09T21:09:08 | 2018-06-09T21:09:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,123 | py | import numpy as np
from scipy.stats import lomax
from distributions.basemodel import *
class Lomax(Base):
'''
We can instantiate a Lomax distribution
(https://en.wikipedia.org/wiki/Lomax_distribution)
with this class.
'''
def __init__(self, k = None, lmb = None, ti = None, xi = None):
... | [
"rohitpandey576@gmail.com"
] | rohitpandey576@gmail.com |
5207bdfd9ec7ed6f7459b591d7345960cb085457 | 6a5ce7d885db1baa5a9d43b26f0ae623a5ef0f01 | /azure-mgmt-web/azure/mgmt/web/models/domain_registration_input.py | 864529f0239c7032c4baa763d7558207f03f1109 | [
"Apache-2.0"
] | permissive | JammyBrand82/azure-sdk-for-python | 333af194ff9143ec77f49203a5a71f15c399f278 | c65e189cd41bd3464556b17bfcdee1303867996c | refs/heads/master | 2021-01-17T18:31:10.661151 | 2016-03-17T21:03:08 | 2016-03-17T21:03:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,993 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft and contributors. 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
cf44ce6aefffd95765ff8071f01abc34af978a80 | 41a0220bf117124bf281a50396582c0df1e0675f | /Pyrado/tests/environment_wrappers/test_action_delay.py | c04f64bbf23a9b2a2f2bfdc9db1d3b524b130d61 | [
"BSD-3-Clause"
] | permissive | jacarvalho/SimuRLacra | c071dfc22d4f2c54a198405e8974d03333c9961d | a6c982862e2ab39a9f65d1c09aa59d9a8b7ac6c5 | refs/heads/master | 2022-11-24T20:08:52.376545 | 2020-08-03T09:01:35 | 2020-08-03T09:01:35 | 276,885,755 | 0 | 0 | BSD-3-Clause | 2020-07-03T11:39:21 | 2020-07-03T11:39:21 | null | UTF-8 | Python | false | false | 2,392 | py | import numpy as np
import pytest
from pyrado.spaces.box import BoxSpace
from pyrado.environment_wrappers.action_delay import ActDelayWrapper
from tests.environment_wrappers.mock_env import MockEnv
@pytest.mark.wrappers
def test_no_delay():
mockenv = MockEnv(act_space=BoxSpace(-1, 1, shape=(2,)))
wenv = ActDe... | [
"fabio.muratore@famura.net"
] | fabio.muratore@famura.net |
6673858896690ec1a546222c0f8b383b73cf8ac8 | 847273de4b1d814fab8b19dc651c651c2d342ede | /.history/Sudoku_II_007_20180621235112.py | 41f8ce78220a122f130868148e83683e6dcb7b73 | [] | no_license | Los4U/sudoku_in_python | 0ba55850afcffeac4170321651620f3c89448b45 | 7d470604962a43da3fc3e5edce6f718076197d32 | refs/heads/master | 2020-03-22T08:10:13.939424 | 2018-07-04T17:21:13 | 2018-07-04T17:21:13 | 139,749,483 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,084 | py | from random import randint
import copy
sudoku1 = [
[5, 9, 8, 6, 1, 2, 3, 4, 7],
[2, 1, 7, 9, 3, 4, 8, 6, 5],
[6, 4, 3, 5, 8, 7, 1, 2, 9],
[1, 6, 5, 4, 9, 8, 2, 7, 3],
[3, 2, 9, 7, 6, 5, 4, 1, 8],
[7, 8, 4, 3, 2, 1, 5, 9, 6],
[8, 3, 1, 2, 7, 6, 9, 5, 4],
[4, 7, 2, 8, 5, 9, 6, 3, 1],
... | [
"inz.kamil.wos@gmail.com"
] | inz.kamil.wos@gmail.com |
8f4065d632706b252e9aaa5aef0f380f65fed859 | 57c38487a6a689318c960fa7d6b0185f372241bc | /presalytics_ooxml_automation/models/theme_effect_map.py | d5e94240d7206cc938862efbf1be434f6ab396ab | [
"MIT"
] | permissive | presalytics/ooxml-automation-python-client | 2c88bae455b7e567ebdb6a4ea106bbdcd192ac47 | fa6100eef1743e43b4d25b3faac79d39fe32c9d7 | refs/heads/master | 2020-06-05T23:42:32.964361 | 2019-12-27T22:51:40 | 2019-12-27T22:51:40 | 192,575,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,626 | py | # coding: utf-8
"""
OOXML Automation
This API helps users convert Excel and Powerpoint documents into rich, live dashboards and stories. # noqa: E501
The version of the OpenAPI document: 0.1.0-no-tags
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import si... | [
"kevin@chart-a-lot.com"
] | kevin@chart-a-lot.com |
43d3b7fcd74fe33c44b8d93e53d04867f5334898 | 04803c70bb97012b7d500a177ac0240fb2ddbe38 | /1heptane/pdep/network4244_1.py | 5145107f893228a8e18edf49ec3b8ccbfc48d9cc | [] | no_license | shenghuiqin/chpd | 735e0415f6688d88579fc935459c1b0f53596d1d | 396ba54629036e3f2be0b3fabe09b78c90d56939 | refs/heads/master | 2023-03-01T23:29:02.118150 | 2019-10-05T04:02:23 | 2019-10-05T04:02:23 | 192,084,217 | 0 | 0 | null | 2019-06-18T18:33:13 | 2019-06-15T13:52:28 | HTML | UTF-8 | Python | false | false | 84,283 | py | species(
label = 'C=C([CH]C)C[CH]C(24171)',
structure = SMILES('[CH2]C(=CC)C[CH]C'),
E0 = (230.563,'kJ/mol'),
modes = [
HarmonicOscillator(frequencies=([3025,407.5,1350,352.5,3010,987.5,1337.5,450,1655,2750,2770,2790,2810,2830,2850,1350,1400,1450,1500,700,800,1000,1100,1350,1400,900,1100,350,440... | [
"qin.she@husky.neu.edu"
] | qin.she@husky.neu.edu |
f7de7c2ef755e5893d687912c0b74ed7148a8d02 | 6b453d913b1ae6697da738ddae9df013e8128d91 | /app/members/urls.py | 1a117fa9f25eacf78656a78f5d5d3ef9928e11ec | [] | no_license | moorekwon/instagram | 9703ecb1aed460ddec685c0bd06fe0fac3807548 | aaeca79f0d2765a24dd780bb12848c2c7b76a009 | refs/heads/master | 2022-12-12T18:13:37.536048 | 2020-02-03T08:33:16 | 2020-02-03T08:33:16 | 229,711,643 | 0 | 0 | null | 2022-12-08T03:32:50 | 2019-12-23T08:39:38 | Jupyter Notebook | UTF-8 | Python | false | false | 267 | py | from django.urls import path
from . import views
app_name = 'members'
urlpatterns = [
path('login/', views.login_view, name='login'),
path('logout/', views.logout_view, name='logout-view'),
path('naver-login/', views.naver_login, name='naver-login')
]
| [
"raccoonhj33@gmail.com"
] | raccoonhj33@gmail.com |
4b26d2288fe6cceaed839816ed06bdce9f6e52d8 | f0ae65bddedea44b1e66f3d235a901e62afae3f2 | /macgyyver_stuff/parse_input.py | 9de1a35ebd5d51857f29e74f682675a2370a7704 | [] | no_license | Brandon-Valley/my_movie_tools | d0a2ba91cda054c1b68709f1a9082028842e83a1 | 371742bfeaa0cfa2985ce06a6865f6ae09445029 | refs/heads/master | 2023-01-10T00:06:48.696103 | 2022-12-28T14:09:20 | 2022-12-28T14:09:20 | 221,057,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py |
import pyperclip
INPUT_PATH = 'input.txt'
def read_text_file(file_path):
with open(file_path, 'r', encoding='utf-8') as text_file: # can throw FileNotFoundError
result = tuple(l.rstrip() for l in text_file.readlines())
return result
raw_in = read_text_file(INPUT_PATH)
print(raw_in)... | [
"bavvh8@mst.edu"
] | bavvh8@mst.edu |
dfd28d04bd20cdbae0bd324f5eaf1c036da10434 | 480e33f95eec2e471c563d4c0661784c92396368 | /RecoMuon/MuonIdentification/python/me0MuonConverter_cfi.py | 83b6632c7cca09219c2dcc76760b07daa2dbaeab | [
"Apache-2.0"
] | permissive | cms-nanoAOD/cmssw | 4d836e5b76ae5075c232de5e062d286e2026e8bd | 4eccb8a758b605875003124dd55ea58552b86af1 | refs/heads/master-cmsswmaster | 2021-01-23T21:19:52.295420 | 2020-08-27T08:01:20 | 2020-08-27T08:01:20 | 102,867,729 | 7 | 14 | Apache-2.0 | 2022-05-23T07:58:09 | 2017-09-08T14:03:57 | C++ | UTF-8 | Python | false | false | 98 | py | import FWCore.ParameterSet.Config as cms
me0MuonConverting = cms.EDProducer("ME0MuonConverter")
| [
"dnash@cern.ch"
] | dnash@cern.ch |
724778ba9809a4764fe8fb9db59911050b386395 | 8329282a8fda056d705c1af6dbcd0de1ed7ca25e | /.history/textutiles/textutiles/views_20210522223732.py | 629f8ff15d006894a027b5cc2f0bacbc0ca08e6f | [] | no_license | ritikalohia/Django-beginners- | c069b16867407ef883bb00c6faf4f601921c118a | 829e28ab25201853de5c71a10ceff30496afea52 | refs/heads/main | 2023-05-04T03:34:29.082656 | 2021-05-22T17:38:21 | 2021-05-22T17:38:21 | 369,869,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,627 | py | #created
from django.http import HttpResponse
from django.shortcuts import render
def index(request):
#params = {'name' : 'Ritika', 'place' : 'Mars'}
return render(request, 'index.html')
#return HttpResponse("Home")
def contact(request):
return render(request, 'contact.html')
def about(request):
... | [
"rtklohia@gmail.com"
] | rtklohia@gmail.com |
20aa6256635712125cec7cde82d9edd48783816b | 58a686c0a752db0f9084659a7f93d5b4f35a065c | /web_idea/apps.py | 3ad06d0a73b08e922fed17edcaef47f32b83f3ed | [
"MIT"
] | permissive | Dimas4/Web-IDEA-Python-Django | 5322ae013eb9b6803c175886f152654ed9469402 | 9cf17150d422979470e3d865a381309a83d8e875 | refs/heads/master | 2020-04-10T04:45:33.843338 | 2018-12-07T11:58:34 | 2018-12-07T11:58:34 | 160,808,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | from django.apps import AppConfig
class WebIdeaConfig(AppConfig):
name = 'web_idea'
| [
"ivanshatukho@yandex.ru"
] | ivanshatukho@yandex.ru |
c6a0f515e4061baa17af3a79b41c463f25758ff0 | 92429015d9a1f1cea9b9bf2c9f1a8a7a07586af5 | /option.py | 6e7b7892e37aa810a008bdf082451b08034a0125 | [] | no_license | arthur-qiu/adv_vis | 46a953ce6c3d562137c8e566bc9b523e25bc5bbd | ba46c00cf38ca5186d7db84844892036ed714eaf | refs/heads/master | 2021-01-03T23:00:45.065108 | 2020-04-05T03:47:01 | 2020-04-05T03:47:01 | 240,272,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,099 | py | import argparse
import os
class BaseOptions():
def __init__(self):
self.parser = argparse.ArgumentParser(description='Trains a CIFAR Classifier',
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
self.initialized = False
def initialize(self):
... | [
"Arthur"
] | Arthur |
5e6eab96a36af8362b1089b13514cebebf213f95 | 11812a0cc7b818292e601ecdd4aa4c4e03d131c5 | /100days_of_python/day32/main.py | 2d1a1c5e6332bb4dae8a588642e9e2d964c7be13 | [] | no_license | SunshineFaxixi/Python_Learning | f1e55adcfa898489cc9146ccfb220f0b48a31a22 | ab3ca44d013311b6de02124091acc4c36a83c4d9 | refs/heads/master | 2021-08-16T05:47:29.963118 | 2021-01-04T13:48:30 | 2021-01-04T13:48:30 | 238,857,341 | 1 | 0 | null | 2020-03-03T13:53:08 | 2020-02-07T06:21:46 | HTML | UTF-8 | Python | false | false | 1,364 | py | ##################### Extra Hard Starting Project ######################
import pandas
from datetime import datetime
import os
import random
import smtplib
MY_EMAIL = "xxhan2018@163.com"
MY_PASSWORD = "TXHTVGKIOLEHXVCI"
today = datetime.now()
today_tuple = (today.month, today.day)
all_birth_info = pandas.read_csv("b... | [
"xxhan2018@163.com"
] | xxhan2018@163.com |
53e8ea169d0cfd5c2042f9ade08153f4669354fc | 65b4522c04c2be071c2d42095956fe950fe1cebe | /inversions/inversion10/iter2/run5/analysis/pred_disp/create_predicted_disp_database.py | 608cb3ba2bafea964917232a2b235b12007f7f0a | [] | no_license | geodesy/viscojapan | ac0cd93f7a2134cd2651623b94879dcc21c0c46a | 03e70265b56eb5994e73bcb6066f0be338e42f27 | refs/heads/master | 2021-03-03T18:19:07.779601 | 2015-07-16T03:50:49 | 2015-07-16T03:50:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | import sqlite3
import numpy as np
import viscojapan as vj
pred = vj.inv.DispPred(
file_G0 = '../../../green_function/G0_He50km_VisM6.3E18_Rake83.h5',
result_file = '../../outs/nrough_05_naslip_11.h5',
fault_file = '../../../fault_model/fault_bott80km.h5',
files_Gs = ['../../../green_function/G1_He50k... | [
"zy31415@gmail.com"
] | zy31415@gmail.com |
e254aa45d97a2f3ff329c8b06be41ad5a4e0aec5 | 3acb90a1e97a0e851c6e4b1b57dda78ec5e3e3b4 | /problems/deep_copy_graph.py | 0b0caab3f09a04fb8519c76e677dd80b5c5b183b | [] | no_license | jhyang12345/algorithm-problems | fea3c6498cff790fc4932404b5bbab08a6d4a627 | 704355013de9965ec596d2e0115fd2ca9828d0cb | refs/heads/master | 2023-05-15T10:26:52.685471 | 2021-06-01T14:57:38 | 2021-06-01T14:57:38 | 269,333,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,641 | py | # Given a node in a connected directional graph, create a copy of it.
#
# Here's an example and some starter code.
class Node:
def __init__(self, value, adj=None):
self.value = value
self.adj = adj
# Variable to help print graph
self._print_visited = set()
if self.adj is No... | [
"jhyang12345@naver.com"
] | jhyang12345@naver.com |
55bb3d82b80185533da7d4c85f2c8e6589933ab4 | cd4eb25911d3e3b092aa97aaa7b8fbba6c3a0704 | /lang/python/asyncio/chain.py | aa8d41fb55cb2b5319e1e90b9a6e8a96e55ad630 | [
"MIT"
] | permissive | liuyang1/test | 29bb142982d2ef0d79b71e8fe5f5e0d51ec5258e | 9a154e0161a1a33baad53f7223ee72e702532001 | refs/heads/master | 2023-08-05T08:56:50.526414 | 2023-07-21T05:49:53 | 2023-07-21T11:16:09 | 26,949,326 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | import asyncio
@asyncio.coroutine
def compute(x, y):
print("Compute %s + %s ..." % (x, y))
# yield from asyncio.sleep(1.0)
return x + y
@asyncio.coroutine
def print_sum(x, y):
result = yield from compute(x, y)
print("%s + %s = %s" % (x, y, result))
loop = asyncio.get_event_loop()
loop.run_until_c... | [
"liuyang1@mail.ustc.edu.cn"
] | liuyang1@mail.ustc.edu.cn |
6000dedcf91921ea9a5a6cba05ff8fe17f2ae918 | 221d1ad342677d2fac8aa3f8d5c60e059a6316c9 | /pm4py/objects/log/util/dataframe_utils.py | e8318a1daaeaa367f7ae496fe27ab3a705aca2da | [] | no_license | niklasadams/explainable_concept_drift_pm | 06ff651fbdebece4adf96f94bfb4d1026da14c48 | 6bf84d727ab0bae76716a04ad28c7de73250c89d | refs/heads/main | 2023-08-26T18:21:49.955080 | 2021-10-29T18:53:48 | 2021-10-29T18:53:48 | 314,514,571 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,643 | py | from pm4py.util import constants
from pm4py.objects.log.log import EventStream
from pm4py.objects.conversion.log import converter as log_converter
import pandas as pd
from pm4py.util.vers_checker import check_pandas_ge_024
from enum import Enum
from pm4py.util import exec_utils
from pm4py.util import points_subset
from... | [
"niklas.adams@pads.rwth-aachen.de"
] | niklas.adams@pads.rwth-aachen.de |
40c34bd9c99fb2039166995b23dec6a86c82f436 | b02c88bcad352811d22cadacd2aa573c426a2ca3 | /scrapers/settings.py | 06a6ae3c2620e357e3388b52d97f309471c0bf4b | [
"Apache-2.0"
] | permissive | frankier/ties445 | 9e24c3e415b4a07584c41e0e4a3f241b133463b8 | 4ceee5390d81aedc0fb3904803797584dd5084b8 | refs/heads/master | 2020-12-31T07:18:42.938988 | 2016-05-17T18:45:14 | 2016-05-17T18:45:14 | 56,767,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,085 | py | # -*- coding: utf-8 -*-
# Scrapy settings for scrapers project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/lates... | [
"frankie@robertson.name"
] | frankie@robertson.name |
8dc513728068e9e929518340bb44a7718efc33eb | 3122ac39f1ce0a882b48293a77195476299c2a3b | /clients/python/generated/swaggyjenkins/models/extension_class_container_impl1links.py | 71b82d350f0fa80dde4f8cb80c78f8b7b2e3c3c7 | [
"MIT"
] | permissive | miao1007/swaggy-jenkins | 4e6fe28470eda2428cbc584dcd365a21caa606ef | af79438c120dd47702b50d51c42548b4db7fd109 | refs/heads/master | 2020-08-30T16:50:27.474383 | 2019-04-10T13:47:17 | 2019-04-10T13:47:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,766 | py | # coding: utf-8
"""
Swaggy Jenkins
Jenkins API clients generated from Swagger / Open API specification # noqa: E501
OpenAPI spec version: 1.1.1
Contact: blah@cliffano.com
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
class ExtensionClassCo... | [
"cliffano@gmail.com"
] | cliffano@gmail.com |
e3e0ff71c09f66324bba160b6a4edccc40d93fff | ddc5aa77203bf76cd789c173dffbc382ed8ef004 | /test/app_test/master.py | f1fe1995de473cf239f7fc143c31029ce2d5bca1 | [] | no_license | phroiland/FinBiotic | 0b8183ce9f97c3fc4b1f7e20decc3472bffe8800 | a30ef2e979b230e5424fd25ef7dd1fb49bbd5245 | refs/heads/master | 2023-08-18T15:26:15.948262 | 2023-08-15T15:13:23 | 2023-08-15T15:13:23 | 93,895,989 | 2 | 2 | null | 2023-03-01T20:08:37 | 2017-06-09T20:52:02 | Python | UTF-8 | Python | false | false | 4,105 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Mon May 29 13:30:38 2017
@author: jonfroiland
"""
import sys
import argparse
import oandapyV20
import oandapyV20.endpoints.positions as openPos
# Data, Price, and Strategy Imports
import settings
import common.config
import common.args
from stream.stream... | [
"jon.froiland@gmail.com"
] | jon.froiland@gmail.com |
8d06548df5f6398354e80696bdcd4de55ab84d3a | f44e4485385296f4d1de2032c64c76de37ec5007 | /pyatv/mrp/protobuf/DeviceInfoMessage_pb2.py | f18237f3e98c6570af7c0facc2de477cda9de067 | [
"MIT"
] | permissive | kdschlosser/pyatv | 370d0a35e39623b8e8e6a087c675ec47aa50fb16 | fa32dab9ad3c4adffdc944ed78427f6c724074f5 | refs/heads/master | 2022-06-20T06:58:13.608441 | 2020-05-11T04:57:55 | 2020-05-11T06:22:23 | 264,143,600 | 1 | 0 | MIT | 2020-05-15T08:48:06 | 2020-05-15T08:48:05 | null | UTF-8 | Python | false | true | 17,207 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: pyatv/mrp/protobuf/DeviceInfoMessage.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import... | [
"pierre.staahl@gmail.com"
] | pierre.staahl@gmail.com |
4449a9ba1f7077329a5da7221fd2c951aa9a4573 | ebcea394905df8222c257c8c6c469627a6e48095 | /PyQt5/object_detection/inputs_test.py | cc79131e3a02e54893093a7c803e84b4cb10687c | [] | no_license | valiok98/Python-Qt5-Tensorflow | 2773cfc2a0e569ed53cf3d90066885f17abe8c6a | e03ccc2884b687a36fbe47f5ff320837be3e217a | refs/heads/master | 2021-09-17T20:41:01.908602 | 2018-03-31T12:42:25 | 2018-03-31T12:42:25 | 103,644,683 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,083 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"valentin1998v@gmail.com"
] | valentin1998v@gmail.com |
026745467476e61080f1b8483e76fc80ed91ca82 | 8f337d7a1477eb9878bd252f45fadd967ba5dbbe | /run_galfit_disk_only.py | 62c3df5903da86c2f2a4574520757cfb091c1fa8 | [] | no_license | bpRsh/b1_research_lib | bd4c293946329ea96d0fb37d8769aaa83d1ca15d | 1de77f683b3ba18a1ab142b0fe86114c7a67791a | refs/heads/master | 2021-01-15T19:04:32.177465 | 2020-11-23T19:55:34 | 2020-11-23T19:55:34 | 99,805,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,674 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-#
#
# Author : Bhishan Poudel; Physics Graduate Student, Ohio University
# Date : 26-Oct-2016 13:10
# Last update : Dec 15, 2016
# Est time : 3 min for one galaxy one filter.
# Main commands : rm -r imgblock.fits subcomps.fit ; galfit expdisk_devauc.sh
# ... | [
"bhishantryphysics@gmail.com"
] | bhishantryphysics@gmail.com |
44f6551cecf87e0cc64db8a41ab7784033adc958 | 586e60b4bbf80e3da9c1051182a42cb81bb2ea1b | /scripts/generate-demo-users.py | 787052a0fab94bece1059cc3565abb512a20e0bd | [
"Apache-2.0"
] | permissive | DD-DeCaF/caffeine-bootstrap | daa0cb844fd694b87430451baee664d816e366a7 | ec65cd5f135f86c7bf2faeb96930637e910c380f | refs/heads/master | 2021-07-09T15:18:56.476754 | 2020-08-18T11:16:37 | 2020-08-18T11:16:37 | 161,489,310 | 1 | 0 | Apache-2.0 | 2020-08-18T11:16:38 | 2018-12-12T13:03:41 | Shell | UTF-8 | Python | false | false | 409 | py | from iam.models import User, db
from iam.app import app, init_app
init_app(app, db)
app.app_context().push()
print("Adding user: demo@demo")
user = User(email="demo@demo")
user.set_password("demo")
db.session.add(user)
for i in range(40):
print(f"Adding user: demo{i}@demo (password demo)")
user = User(email=f"d... | [
"ali@kvikshaug.no"
] | ali@kvikshaug.no |
a562ea5925bb853287c30692e331db3ad17821e2 | 8c42964a29af1d5a2f4541ab634b54e25a90b9f4 | /Example2/configuration.py | 5a64a7d9aada01e4a7e1e383119cbc7d566d617f | [] | no_license | lenzip/CMSDataAnalysisSchoolPisa2019ScalarToWW | a21dc572ae2e152410a867ae5013703c886e4bbf | 8cff1dea08887b78a9efc26a142609ba1b7ba296 | refs/heads/master | 2020-04-14T21:13:03.028961 | 2019-01-23T16:22:23 | 2019-01-23T16:22:23 | 164,121,564 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | # example of configuration file
tag = 'Inclusive'
# used by mkShape to define output directory for root files
outputDir = 'rootFile'
# file with list of variables
variablesFile = 'variables.py'
# file with list of cuts
cutsFile = 'cuts.py'
# file with list of samples
samplesFile = 'samples.py'
# file with lis... | [
"piergiulio.lenzi@cern.ch"
] | piergiulio.lenzi@cern.ch |
4dcb1a63e7effceb8e87d2579849844a5dcaecbe | d9eb21a408a449918ed431f760b6a61292869de6 | /Workshops/custom_list/test_custom_list.py | ba4bb2591f76ff8946987ea4c1a7891db8355939 | [] | no_license | zhyordanova/Python-OOP | 5c73ab851848c969beb50b774b67bc9e4c102610 | aad42e108b676de119ac99bef632b76ac595d49a | refs/heads/main | 2023-05-27T06:09:23.524422 | 2021-05-06T22:00:18 | 2021-05-06T22:00:18 | 349,583,825 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,477 | py | from unittest import TestCase
from lists.custom_list import ArrayList
class TestArrayList(TestCase):
def setUp(self):
self.al = ArrayList()
def test_append__when_list_is_empty__expect_append_to_the_end(self):
self.al.append(1)
values = list(self.al)
self.assertEqual([1], val... | [
"zhivka.yordanova@mentormate.com"
] | zhivka.yordanova@mentormate.com |
30d076a33b413db6d98a89853257711172247372 | 60f067710243089ea5a09c676f8092232904ed40 | /ltp/task_segmention.py | bfd04d9af9f685de08e23778fb8c48e4e00e5b95 | [] | no_license | liyang-2401/ltp | cfc5386fe9cebc78f828431b1c04d8288d450678 | 5d26093f2e2bbec76a892dd25e206d9e7dacc13e | refs/heads/master | 2023-01-22T14:43:16.871839 | 2020-12-04T08:00:23 | 2020-12-04T08:00:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,058 | py | import types
import numpy
import torch
import torch.utils.data
import os
from tqdm import tqdm
from argparse import ArgumentParser
from ltp.data import dataset as datasets
from ltp import optimization
from ltp.data.utils import collate
from seqeval.metrics import f1_score
from ltp.transformer_linear import Transformer... | [
"ylfeng@ir.hit.edu.cn"
] | ylfeng@ir.hit.edu.cn |
3c7c5139a5cd6dd8e33834de89b98fdd8bba4a33 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/length_20200529113854.py | 76b776e2932e64a11975284ff9a772f9332ca676 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | def removeDuplicates(nums):
i = 0
while i <len(nums):
print(nums[i])
if nums[i] == nums[i+1]:
nums.remove(nums[i])
else:
nums.add(nums[i])
# for i in range(length):
# print('i--------->',i)
# for j in range(i+1,length):
... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
8097d71b8ebae32d7fdc01e7873b5ee6d6ad0fb4 | c01ab71f681efdeb9f4e7d52ed083745b6d42590 | /old/6th sem/cpp/TRIKA/test_modules/testCases.py | 96b35814c7b3c3e9a1a25b8848bf226225f18b05 | [] | no_license | anant-pushkar/competetive_programming_codes | 398a39c85a761c8d242f42f368933239a438ac06 | 127c67d7d4e2cef2d1f25189b6535606f4523af6 | refs/heads/master | 2021-01-20T11:57:07.528790 | 2014-11-14T08:29:21 | 2014-11-14T08:29:21 | 23,577,655 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | import testTemplate
'''number of test suites'''
nSuites=1
def getTests():
tests = []
suite=testTemplate.testSuite("Sample 1")
testcase = testTemplate.testInstance("4 4\n1 1\n100 55 10 2\n20 10 90 1\n60 20 22 4\n1 30 70 5" , "Y 23" , "")
suite.add(testcase)
tests.append(suite)
suite=testTemplate.testS... | [
"anantpushkar009@gmail.com"
] | anantpushkar009@gmail.com |
30980eca76f9208b779a5f3c5e0e65affab9eb1c | 5e4897b32cd19d145cefc4451ced910313cde0bb | /sphinxextra/phpdomain.py | 4380ed3ab6981611f85ff56abfe6880149f92879 | [] | no_license | Tinkerforge/doc | 7e87edcf8d8b67d1edce749c4a3106f431a77585 | 19e49bad70fbe644aa9b4af4d64f99aa0cf71d7f | refs/heads/master | 2023-08-20T22:10:37.363910 | 2023-08-17T13:33:28 | 2023-08-17T13:33:28 | 2,262,338 | 6 | 8 | null | 2023-07-24T13:46:27 | 2011-08-24T15:21:34 | Python | UTF-8 | Python | false | false | 34,922 | py | # -*- coding: utf-8 -*-
"""
sphinx.domains.php
~~~~~~~~~~~~~~~~~~
The PHP language domain.
:copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import re
from copy import deepcopy
from docutils import nodes
from sphinx import addnodes
from... | [
"matthias@tinkerforge.com"
] | matthias@tinkerforge.com |
15fc22e8fd23bf75543afca8ce167e6017251fa0 | fb1e852da0a026fb59c8cb24aeb40e62005501f1 | /decoding/GAD/fairseq/dataclass/constants.py | 93bc6d03cb81618c47a58009dc22f7953a106eb3 | [
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.1-or-later",
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"MIT"
] | permissive | microsoft/unilm | 134aa44867c5ed36222220d3f4fd9616d02db573 | b60c741f746877293bb85eed6806736fc8fa0ffd | refs/heads/master | 2023-08-31T04:09:05.779071 | 2023-08-29T14:07:57 | 2023-08-29T14:07:57 | 198,350,484 | 15,313 | 2,192 | MIT | 2023-08-19T11:33:20 | 2019-07-23T04:15:28 | Python | UTF-8 | Python | false | false | 1,626 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from enum import Enum, EnumMeta
from typing import List
class StrEnumMeta(EnumMeta):
# this is workaround for submitit pickling leading ... | [
"tage@microsoft.com"
] | tage@microsoft.com |
226980fdf20772f3a2d26e3b993584790ded886b | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/299/100769/submittedfiles/testes.py | b90b88a3a2fbbabb9a6af0cc8e965ec6c94201cb | [] | 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 | 4,871 | py | from minha_bib import verificar_vitoria
from minha_bib import sorteio
from minha_bib import sorteio2
from minha_bib import maquinainteligente
import time
c=0
tabuleiro=[[1,2,3],[1,2,3],[1,2,3]]
for i in range(0,3,1):
for j in range(0,3,1):
tabuleiro[i][j]=" "
print('---------------------------------------'... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
891cf68c8f2e5a2d7b2c3c9baf3fd45f36ba1c93 | 3e3a835ee885eb9a71fd35ea58acd04361f72f47 | /python基础/复习.py/石头剪刀布.py | df86dfa2ef1429a31cb3268c524f245a54ab4e82 | [] | no_license | hanfang302/py- | dbb259f24e06fbe1a900df53ae6867acb8cb54ea | dd3be494ccef5100c0f06ed936f9a540d8ca0995 | refs/heads/master | 2020-03-16T01:59:57.002135 | 2018-05-07T12:02:21 | 2018-05-07T12:02:21 | 132,454,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | player = int(input('请出拳 石头(1),剪刀(2),布(3):'))
computer = 2
if ((player == 1 and computer == 2) or
(player == 2 and computer == 3) or
(player == 3 and computer == 1)):
print('电脑输了')
elif player == computer:
print('心有灵犀,再来一局')
else:
print('不行,我要和你决战到底')
| [
"hanfang123@aliyun.com"
] | hanfang123@aliyun.com |
5b86d1ba8124f7ae022306cd7979e8aa97754314 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /HdrqkdT4r9DeKPjCM_15.py | b8f9cf3d649052ff9b6b798b8d9e233d02626467 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py |
def is_polygonal(n):
if n==1:
return "0th of all"
if n <= 3:
return False
list = []
for k in range(3, n):
i=1
current=k+1
while current < n:
i+=1
current += k*i
if current == n:
i = str(i)
i += "th" if i[-2:-1]=="1" else {"1":"st","2":"nd","3":"rd"}.get(i[-1],"th... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
1b8532d3421a9dd5536b1e0debfc39c16e37a6c3 | 1bccf7d57c7aa8d48b84fff187de4b6ff2599cb6 | /pandora_common/state_manager/scripts/state_manager/__init__.py | 6d30fa3d4c6b665f9f74250df0145ce48aae504d | [] | no_license | skohlbr/pandora_ros_pkgs | 733ed34edb5b6d46e59df4acb01288f28ef3b50f | eecaf082b47e52582c5f009eefbf46dd692aba4f | refs/heads/indigo-devel | 2021-01-21T18:06:14.967943 | 2015-11-04T15:08:03 | 2015-11-04T15:08:03 | 53,413,573 | 0 | 1 | null | 2016-03-08T13:19:40 | 2016-03-08T13:19:40 | null | UTF-8 | Python | false | false | 37 | py | from state_client import StateClient
| [
"pandora@ee.auth.gr"
] | pandora@ee.auth.gr |
c3abe5035eada595291caa229e664159b4743cb2 | e9ef3cd143478660d098668a10e67544a42b5878 | /Lib/corpuscrawler/crawl_thk.py | f49f58ce0e90e3a983f847f9a2de5a9de94840a2 | [
"Apache-2.0"
] | permissive | google/corpuscrawler | a5c790c19b26e6397b768ce26cf12bbcb641eb90 | 10adaecf4ed5a7d0557c8e692c186023746eb001 | refs/heads/master | 2023-08-26T04:15:59.036883 | 2022-04-20T08:18:11 | 2022-04-20T08:18:11 | 102,909,145 | 119 | 40 | NOASSERTION | 2022-04-20T08:18:12 | 2017-09-08T22:21:03 | Python | UTF-8 | Python | false | false | 809 | py | # Copyright 2018 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 agreed to in writing, ... | [
"sascha@brawer.ch"
] | sascha@brawer.ch |
dd8266083726914414d608f3cacd125395994324 | 7ef29543c9e8305f181084cede03d8cec50508f1 | /docker_vnc_immutable/immutableworkstation3.py | 61d3ee59bb7a0be59a34ef246f878368298cc05d | [
"MIT"
] | permissive | mikadosoftware/workstation | 6168ba7f8f8357d73e7792a3c65c0daec37222e7 | 9c8b19bc5d6c596843da30f58f1dad6a60c7e989 | refs/heads/master | 2023-02-21T03:45:54.209770 | 2023-02-08T08:41:36 | 2023-02-08T08:41:36 | 138,070,951 | 477 | 29 | MIT | 2023-02-07T21:53:32 | 2018-06-20T18:28:07 | Python | UTF-8 | Python | false | false | 13,917 | py | #!/usr/bin/python3
#! -*- coding:utf-8 -*-
"""
ImmutableWorkstation
====================
This is a single entry point for the `immutableworkstation` project.
The project is pretty simple - I want to have a consistent, immutable
workstation on any host machine I am developing on - so I am using a
docker instance on a... | [
"paul@mikadosoftware.com"
] | paul@mikadosoftware.com |
a2a3823e6435408a754b473b37f7233309d5ef3f | 4754d6b05b7eb255983f58474164d8690f4d8684 | /figurines/tests/test_views.py | 4ad1ab56cb491358a3a1c8c3bb9812ce62ef1085 | [] | no_license | pythonmentor/benjamin-p13 | 4f629be3cd9b2e8af6934fb69dfca63d6a294346 | ada744761d3a3c6ecde1aec5db20770960cb2146 | refs/heads/master | 2023-01-24T17:10:30.235330 | 2020-11-30T17:29:09 | 2020-11-30T17:29:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,155 | py | from django.test import TestCase
from django.urls import reverse
from figurines.models import Category, DidYouSee, Figurine
from users.models import User
class FigurineTestViews(TestCase):
def setUp(self):
self.user_test = User.objects.create_user(
username="UserTest", password="Paswo... | [
"benjamin.rejaud@gmail.com"
] | benjamin.rejaud@gmail.com |
6ad1ec33ed60cb67164cba8e6c216bf23b7eff14 | 09592939eaf88d46f7d2d760d9587cb9fc22707e | /entity/cards/LETLT_083/LETLT_083.py | c575c2ef97600aa10d16c30ba708043ebfac001e | [
"MIT"
] | permissive | fulln/lushi_script | 5deb2fb99956988ee4884836443f74277b361939 | f2c5250f6ce7e3ea2b8d3ba280d999ae8c7beb8b | refs/heads/main | 2023-09-04T16:50:24.696142 | 2021-11-24T03:44:41 | 2021-11-24T03:44:41 | 431,565,901 | 0 | 0 | MIT | 2021-11-24T17:04:06 | 2021-11-24T17:04:05 | null | UTF-8 | Python | false | false | 470 | py | # -*- coding: utf-8 -*-
from hearthstone.entities import Entity
from entity.spell_entity import SpellEntity
class LETLT_083(SpellEntity):
"""
剧烈爆发
对本回合中已经行动过的敌人造成10点伤害。在下一场战斗开始时,重复此伤害。
"""
def __init__(self, entity: Entity):
super().__init__(entity)
self.damage = 0
... | [
"gg48@qq.com"
] | gg48@qq.com |
92d3f6d6dc1e477f6b89f1665b180bf5ab4360da | 968913bda3879ef316100410cdb2b01333ac14a8 | /004_Algorithm_Implementations_In_Python/data_structures/queue/queue_on_list.py | 898ffac3a9c7c1fda92bb8b75af1826ee7ec17f0 | [
"MIT"
] | permissive | sm2774us/2021_Interview_Prep | 02b6a81ee52f3cb14d9e060839a01aadd84e231f | c6689411a4334d53c88581a296e57c314b50f46c | refs/heads/main | 2023-03-02T05:30:17.156821 | 2021-01-26T04:31:02 | 2021-01-26T04:31:02 | 332,603,676 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | """Queue represented by a python list"""
class Queue():
def __init__(self):
self.entries = []
self.length = 0
self.front=0
def __str__(self):
printed = '<' + str(self.entries)[1:-1] + '>'
return printed
"""Enqueues {@code item}
@param item
item to enqueu... | [
"sm2774us@gmail.com"
] | sm2774us@gmail.com |
09b392b45aef0ce2b082eaa210be15285a463e0c | 45015c94a4376a4af66e4134f0552288cd15a2d8 | /services/authentication_service.py | ee9f1e65813dcf31637b0a0974cb9c00e4c7b390 | [] | no_license | Anubhav722/trello | 971111af8cbc1f6c344ace200e2741e809e9a1fa | 600b5410cde7fd2a51720fa4ca7cc2ecfbff322e | refs/heads/master | 2023-07-13T18:24:51.937539 | 2021-08-21T13:22:17 | 2021-08-21T13:22:17 | 398,563,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py |
class AuthenticationService:
def __init__(self, ttl):
self.tokens = {} # Map<token_id, user_obj>
def renew_token(self, token_id):
pass
def authenticate_request(self, token_id, timestamp):
pass
def register_user(self, ):
pass
| [
"anubhavs286@gmail.com"
] | anubhavs286@gmail.com |
538b671955b4ac1fa9cf8fb82d290212541efada | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /djDJHv3nwWsRM9mtu_15.py | d8d00d9f36be6af88a931dc7bc4cd7cb6aa76d74 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py |
def validate_spelling(txt):
return "".join(txt.split(". ")[:-1]).lower() == txt.split(". ")[-1][:-1].lower()
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
b3afdc5ed5a2cd8de578e1fd31eb490f17a5db95 | 2455062787d67535da8be051ac5e361a097cf66f | /Producers/BSUB/TrigProd_amumu_a5_dR5/trigger_amumu_producer_cfg_TrigProd_amumu_a5_dR5_499.py | 14a070c95d6dc5d7822dce37415383786cbf8e82 | [] | no_license | kmtos/BBA-RecoLevel | 6e153c08d5ef579a42800f6c11995ee55eb54846 | 367adaa745fbdb43e875e5ce837c613d288738ab | refs/heads/master | 2021-01-10T08:33:45.509687 | 2015-12-04T09:20:14 | 2015-12-04T09:20:14 | 43,355,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,360 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("PAT")
#process.load("BBA/Analyzer/bbaanalyzer_cfi")
process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.load('Configuration.EventContent.EventContent_cff')
process.load("Configuration.Geometry.GeometryRecoDB_cff")
process.load("Configuration.St... | [
"kmtos@ucdavis.edu"
] | kmtos@ucdavis.edu |
52cf3aac7e139b3a4d760b80cc223a9bd88e323d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03496/s023860422.py | 3418e271fe6d39c5afd0834fa668eb6252fedf15 | [] | 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 | 553 | py | n = int(input())
a = list(map(int,input().split()))
mi = a[0]
mii = 1
ma = a[0]
mai = 1
for i in range(n):
if a[i] > ma:
ma = a[i]
mai = i+1
if a[i] < mi:
mi = a[i]
mii = i+1
if mi >= 0:
print(n-1)
for i in range(1,n):
print(i,i+1)
elif ma <= 0:
print(n-1)
for i in range(n,1,-1):
pri... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f86f1440c1dfce4772c26f8bd9d40aeb6c368956 | 27a066c48096e30e3cf4a795edf6e8387f63728b | /mysite/django_vises/runtimes/misc.py | dbb4cc342ce1012cbf1a9397f2dea0e09cf202d4 | [] | no_license | 26huitailang/django-tutorial | 2712317c3f7514743e90fb4135e5fe3fed5def90 | 28a0b04ee3b9ca7e2d6e84e522047c63b0d19c8f | refs/heads/master | 2023-01-07T11:55:37.003245 | 2019-09-04T09:19:50 | 2019-09-04T09:19:50 | 113,199,279 | 1 | 0 | null | 2023-01-03T15:24:01 | 2017-12-05T15:27:52 | Python | UTF-8 | Python | false | false | 2,885 | py | #!/usr/bin/env python
# coding=utf-8
# import glob
import os
import operator
from django.utils.six import text_type
# copy from rest_framework
# Header encoding (see RFC5987)
HTTP_HEADER_ENCODING = 'iso-8859-1'
def get_request_client_ip_address(request):
"""获取 request 请求来源 ip address, 支持 nginx 使用 X-Real-IP/X-FO... | [
"26huitailang@gmail.com"
] | 26huitailang@gmail.com |
a4b2331bc60e49067ff8516c4b13766c7a4c9c5e | e60a342f322273d3db5f4ab66f0e1ffffe39de29 | /parts/zodiac/pyramid/tests/test_config/pkgs/scannable/another.py | 2022b704558f0f407eb359cc3d36dfdfe3a9041b | [] | no_license | Xoting/GAExotZodiac | 6b1b1f5356a4a4732da4c122db0f60b3f08ff6c1 | f60b2b77b47f6181752a98399f6724b1cb47ddaf | refs/heads/master | 2021-01-15T21:45:20.494358 | 2014-01-13T15:29:22 | 2014-01-13T15:29:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | /home/alex/myenv/zodiac/eggs/pyramid-1.4-py2.7.egg/pyramid/tests/test_config/pkgs/scannable/another.py | [
"alex.palacioslopez@gmail.com"
] | alex.palacioslopez@gmail.com |
109682c64aad2d044c9cc951d3a773c4106965bc | 6d39e9031c9ab28c094edc042559dc649308528e | /backend/manage.py | d84a5dce9a344fbcab5dc3e5650245daac85af08 | [] | no_license | crowdbotics-apps/test-31900 | ead3f9341645ce981aa07dad2756548ffb84c5d7 | d5b54e57dfc2839f1a9f7237deb4df7c3899e30d | refs/heads/master | 2023-08-29T16:35:59.385571 | 2021-11-10T00:12:56 | 2021-11-10T00:12:56 | 426,427,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'test_31900.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Imp... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
9c7d677d074b5d250abc200c103cff8fb806b269 | df94f543424f47f87bd6d546cca23d1c5a7b024c | /easy/easy922.py | f8409367478a0930ddc49d9bb4bc49ab8b62ce17 | [] | no_license | wangpeibao/leetcode-python | c13cb63304e91dcd55ffacee541d9197cafd01ff | 392a272a799decdd77c2410a89787ea8e1aa76d3 | refs/heads/master | 2023-01-31T05:09:34.850459 | 2020-12-04T03:25:21 | 2020-12-04T03:25:21 | 257,457,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,263 | py | '''
922. 按奇偶排序数组 II
给定一个非负整数数组 A, A 中一半整数是奇数,一半整数是偶数。
对数组进行排序,以便当 A[i] 为奇数时,i 也是奇数;当 A[i] 为偶数时, i 也是偶数。
你可以返回任何满足上述条件的数组作为答案。
示例:
输入:[4,2,5,7]
输出:[4,5,2,7]
解释:[4,7,2,5],[2,5,4,7],[2,7,4,5] 也会被接受。
提示:
2 <= A.length <= 20000
A.length % 2 == 0
0 <= A[i] <= 1000
'''
from typing import List
class Solution:
def sortArr... | [
"wangpeibao@troila.com"
] | wangpeibao@troila.com |
cbc684ff9ae4dd85231ece8eaed2a8851b6264ba | deaf60a5ba012e68f8509c0df0d35a5228419b71 | /找商网/zhao_shang_wang_changxin/zhao_shang_wang/spiders/spider_data.py | a34737cdfa962283d95ea12c2c4ffaafadfb4f46 | [] | no_license | kokohui/con_spider | 7162d8e58725d9334db5f1da34649cd1d1ef29ea | da1181b53e5cbca546d1bb749f9efc2f48e698f8 | refs/heads/master | 2022-03-03T19:37:33.721533 | 2019-08-22T10:05:32 | 2019-08-22T10:05:32 | 193,631,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,365 | py | # -*- coding: utf-8 -*-
from ..items import ZhaoShangWangItem
import scrapy
from scrapy import Request
from bs4 import BeautifulSoup
import os
import random
import requests
import pymysql
import time
import re
import jieba.analyse
conn = pymysql.connect(host='192.168.1.210', user='root', passwd='zhangxing888', db='ktc... | [
"2686162923@qq.com"
] | 2686162923@qq.com |
61ee902f9aec9bdeff25f6e72569396187f62aff | 01afa0be1c3acbf562fd87bd8fec8b4101c1e461 | /Mining-Massive-Dataset/week5/advanced_quiz3.py | 8c96a6d7d682c7d9d8f2ec6fe73c3b09bf879b97 | [] | no_license | listiani13/coursera | e4f1116cc619b62336c5bb4d2e714e7051ae775c | 5c84cf7171a440261de639b53558e9767b1cd85e | refs/heads/master | 2021-01-22T03:54:31.657656 | 2016-04-04T11:07:25 | 2016-04-04T11:07:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | from math import sqrt
def euclidean(x, y):
return sqrt((x[0] - y[0])**2 + (x[1] - y[1])**2)
points = [(1, 6), (3, 7), (4, 3), (7, 7), (8, 2), (9, 5)]
chosen = [(0, 0), (10, 10)]
for _ in range(5):
pos, mx = -1, -1
for i, p in enumerate(points):
distance = min([euclidean(p, pc) for pc in chosen])
if distance > ... | [
"wangliangpeking@gmail.com"
] | wangliangpeking@gmail.com |
f32b08a5dadf9bf4dbc0b238e4cb160e93b689f5 | 3a01d6f6e9f7db7428ae5dc286d6bc267c4ca13e | /pylith/meshio/OutputMatElastic.py | 75bd619e57bb719fa4f7cc5e470df1ff774171da | [
"MIT"
] | permissive | youngsolar/pylith | 1ee9f03c2b01560706b44b4ccae99c3fb6b9fdf4 | 62c07b91fa7581641c7b2a0f658bde288fa003de | refs/heads/master | 2020-12-26T04:04:21.884785 | 2014-10-06T21:42:42 | 2014-10-06T21:42:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,792 | py | #!/usr/bin/env python
#
# ----------------------------------------------------------------------
#
# Brad T. Aagaard, U.S. Geological Survey
# Charles A. Williams, GNS Science
# Matthew G. Knepley, University of Chicago
#
# This code was developed as part of the Computational Infrastructure
# for Geodynamics (http://ge... | [
"baagaard@usgs.gov"
] | baagaard@usgs.gov |
5bd234d032a1cef724c7d19f94ecdca75497c3b5 | 803bab6f782099d995bcdb99d163486f4fff8c50 | /test/test_pointnav_resnet_policy.py | f58a4a45e857196c0ab6b215a39c3fce54de9832 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"CC-BY-NC-SA-3.0"
] | permissive | facebookresearch/habitat-lab | 7088506509f64da6d682f5dc69427589f71a58a9 | f5b29e62df0788d70ba3618fc738fa4e947428ba | refs/heads/main | 2023-08-24T14:00:02.707343 | 2023-08-23T04:53:48 | 2023-08-23T04:53:48 | 169,164,391 | 792 | 298 | MIT | 2023-09-14T15:20:03 | 2019-02-04T23:12:51 | Python | UTF-8 | Python | false | false | 4,432 | py | #!/usr/bin/env python3
# Copyright (c) Meta Platforms, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import os.path
import shlex
import subprocess
import numpy as np
import pytest
import torch
from gym import spaces... | [
"noreply@github.com"
] | facebookresearch.noreply@github.com |
9eebd51cd8523865c63b5ea9bc13a91b30809bd9 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/I_w_M_to_Wxyz_focus_Z_ok/wiColorJ/pyr_Tcrop255_pad20_jit15/Sob_k15_s001_EroM_Mae_s001/pyr_5s/L5/step10_a.py | e6c87465892d874e7e738fd489c714ca918ab17a | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140,087 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.