blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bb29d3646af959dd01b308da7b489742cb1bc25e | 419eee7672547fc178aaaa98614ab00c4c5d2303 | /Code Library/63.Smallest_Power_of_2_Greater_than_or_Equal_to_n.py | c4556558dcd5b2c826cff43d0c9ecd1ffc90939d | [] | no_license | PratikshaDanti/APS | 35fdc382bda3548c88b73ae8a72fffc37c0a0d8e | cbb3ac41f08394d95978211e73621689d13d9e1f | refs/heads/master | 2022-04-19T00:34:52.929430 | 2020-04-06T13:55:09 | 2020-04-06T13:55:09 | 236,159,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Mar 23 08:52:01 2020
@author: Pratiksha
"""
def nextPowerOf2(n):
count = 0;
if (n and not(n & (n - 1))):
return n
while( n != 0):
n >>= 1
count += 1
return 1 << count;
n = int(input('Enter the value :'))
print(nex... | [
"noreply@github.com"
] | noreply@github.com |
5709ce876b59bfb900914b67ff8695dfd1e01ca0 | 7548d980a4407477d06824a01a35b62c38f1a3b8 | /weeks7-8/prac4_Pacman/test.py | 44214c722b66cb21b0054e1e846543a8b641c299 | [] | no_license | xtaiba/11510056- | 8156b801759f5d0c5f6b8b1815bad50002ee3baa | 3656016525127eb1724c7ac03379d05d2a1c326f | refs/heads/master | 2020-04-03T21:42:39.473037 | 2019-01-05T09:57:12 | 2019-01-05T09:57:12 | 155,579,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41 | py | list = list(range(0.1,1,0.1))
print(list) | [
"11510056@mail.sustc.edu.cn"
] | 11510056@mail.sustc.edu.cn |
e0911a368b2851513e0a25e2d9532c21656f1e73 | f3a2bcb503eff16f58bfbb173ad9df1ba93d76f2 | /construct/lib/container.py | ba6849fcab586342cfee67a03ae24fac6b802ca3 | [] | no_license | Selfnet/self-control-server | a0e3a26da28a995da262afdc82d887fc4901e443 | dd0e9a072c73a106c1db89b751f377ea29d7a5ba | refs/heads/master | 2021-01-10T15:35:53.919816 | 2013-07-22T22:07:55 | 2013-07-22T22:07:55 | 8,586,071 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,702 | py | """
Various containers.
"""
try:
from collections import MutableMapping
except ImportError:
from UserDict import UserDict
class MutableMapping(UserDict):
data = property(lambda self: self.__dict__)
def recursion_lock(retval, lock_name = "__recursion_lock__"):
def decorator(func):
def ... | [
"kai-uwe@tafelrunde4.workstation.whnetz"
] | kai-uwe@tafelrunde4.workstation.whnetz |
d665d9272fcadbba28e19bae1cd2e2ba4d440a4b | dd63ac24f975649208233685218246a425c073ce | /ansible/dynamic_inventory/get_inventory.py | d6a98c953c766f3a294ecf996033a3079ec48e3b | [
"MIT"
] | permissive | joelwking/code-samples | 4f6824b3aafdaeaff6f98f09e01d1d71adc619f3 | 73f277221fc088c371e3fa33cbad1e16795018af | refs/heads/master | 2020-12-24T07:17:55.272299 | 2019-08-09T18:31:47 | 2019-08-09T18:31:47 | 59,486,376 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,805 | py | #!/usr/bin/env python
#
# get_inventory.py Sample program to create a dynamic inventory from a CSV file
#
# Usage: See the companion playbook get_invy.yml
#
# Copyright (c) 2016 World Wide Technology, Inc.
# All rights reserved.
#
# author: Joel W. King, World Wide Technology
#
# Refer... | [
"joel.king@wwt.com"
] | joel.king@wwt.com |
4a1758e7ca32cd345aa0c5b376f92a5dc0a0b52f | 7996d7fefe2d3e5b4d53df4376d6fd8908407a1a | /authentication/urls.py | 139def747c67ed7664c5e93050e1419ada49d7e8 | [] | no_license | Imraj423/twitterclone | 2aa1446ef6e5dec6548f26c6254d478a696970ec | 0c3dfab5436de9095248305d3994dc77549e0b1e | refs/heads/master | 2021-01-15T02:07:06.684002 | 2020-04-04T23:47:39 | 2020-04-04T23:47:39 | 242,843,822 | 0 | 0 | null | 2020-03-07T04:02:21 | 2020-02-24T21:08:23 | Python | UTF-8 | Python | false | false | 229 | py | from django.urls import path
from . import views
urlpatterns = [
path('signup/', views.signup, name='signup'),
path('login/', views.login_view, name='login'),
path('logout/', views.logoutUser, name='logout'),
]
| [
"dahqniss@gmail.com"
] | dahqniss@gmail.com |
79db5f1c36777c88d7fa3bc39575c57b377af1e3 | 81d2815060bdf51e59f40366df72954ad28b2398 | /4th_hw/fourth_homework/settings.py | fd3cb961f456cae77e2fd2c6099a1d6763910875 | [] | no_license | ningpop/LikeLion_7th_HW | 6016604427e335250f2e3daeec27f17731612b47 | b2c65a0b7a9a928a45cf07b67cd9ed18fb86d799 | refs/heads/master | 2020-06-30T18:08:54.024617 | 2019-12-30T16:17:03 | 2019-12-30T16:17:03 | 200,902,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,613 | py | """
Django settings for fourth_homework project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import... | [
"craft1933@naver.com"
] | craft1933@naver.com |
b3a946c7a77d0937013abc5cb13bd52aa0f0c0c6 | 6e11824b4a32049ce7df94b9edb42b1cb3cba68b | /src/gamelog.py | 3748590046b4de0eda8b7bb8d650d5597c814974 | [] | no_license | TickTockTech/pynheart | ce2f3ed39a30b1761e083541c5182c1032505845 | ac12d6678a49505479d4ce2303f2ff774cb7dfc1 | refs/heads/master | 2020-04-04T13:59:24.485552 | 2018-11-03T21:02:30 | 2018-11-03T21:02:30 | 155,982,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | import os
import logging
import logging.config
log_config = os.path.abspath(os.path.join(os.path.dirname(__file__), "log.cfg"))
logging.config.fileConfig(log_config)
# create logger
Log = logging.getLogger('gameLog')
| [
"allan@yisup.net"
] | allan@yisup.net |
644c6fd5abc3bfb9a657f9548487452187e4659e | 0b96015603d709b37dbd522ebae0a3b367e8e82f | /Tags/legs/167.png.py | 965b2bb29fe6b45fd6bed060acce93a1a65d1820 | [] | no_license | AWilcke/ClariFight | ccbbfec08192b029ce13ed11fc6967550ede74ce | d1689025c5087c70f2c33ad80d8417b45b4ebd01 | refs/heads/master | 2021-01-11T11:17:27.446503 | 2016-03-10T19:32:00 | 2016-03-10T19:32:00 | 53,609,870 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | {"body": "0.779967069626", "recreation": "0.823184847832", "fashion": "0.938068032265", "barefoot": "0.810911774635", "adult": "0.984340786934", "people": "0.976011514664", "nude": "0.901487231255", "nobody": "0.945029020309", "underwear": "0.758705735207", "one": "0.970272898674", "feet": "0.936763525009", "erotic": "... | [
"arthur.wilcke@gmail.com"
] | arthur.wilcke@gmail.com |
54439c245d7fae5f35ec6680b74a2d298e21bec7 | 38422c3edeb269926502fed31a0761aff8dd3d3b | /Zeiss_spectrometer/Zeiss_spectrometer_Python3_v191002/Calib_Zeiss_spectrometer_GUI_v5.py | a35fdd8d0e04f888df7c292ff847d4857b865b8a | [] | no_license | vfurtula/Alle-projekter | 2dab3ccbf7ddb6be3ee09f9f5e87085f354dd84a | da3d7c9611088043e2aea5d844f1ae6056215e04 | refs/heads/master | 2022-06-07T05:17:35.327228 | 2020-04-30T10:28:48 | 2020-04-30T10:28:48 | 260,180,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47,654 | py | import os, sys, imp, serial, time, numpy
import scipy.interpolate
#from numpy.polynomial import polynomial as P
import pyqtgraph as pg
from pyqtgraph.Qt import QtCore, QtGui
import pyqtgraph.exporters
#from PyQt4 import QtGui, QtCore
from PyQt4.QtCore import QThread, QTimer, SIGNAL
import config_zeiss, ZaberXmcb_ascii
... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
5ed6ab127cba5918dd12490bf579baafac9dc250 | 1fa262359f91768f1b98c45944fd4a63645f4567 | /variable_examples.py | 03bd0c75fcb7f7afb46ffb09f440a337d5d26ae4 | [] | no_license | feleHaile/20190225KAPL | d1a95dd6632ba83b6cd3380d92e2a2a18a5a4942 | 3957c1d738cc3e42d5dac0fb4a6f6071a1bb391a | refs/heads/master | 2020-05-15T22:31:51.881632 | 2019-02-28T20:11:29 | 2019-02-28T20:11:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | #!/usr/bin/env python
x = 5
print(x)
y = x
things = [1, 2, 3]
t = things
print(t)
t.append(42)
print(things)
print(t is things)
print(id(t), id(things))
print(type(x), type(t), type(type), type('spam'))
t = 42
print(type(t))
t = "amazon"
print(type(t))
m = None
print(m)
| [
"jstrickler@gmail.com"
] | jstrickler@gmail.com |
3ae000d112d57efb42e387fa72728765b02c3bdd | 3bb79d8362510e56102fdac19db394c29f367ca2 | /pytensor/tutorial/part1/linear.py | 2194cc9a749cc2ef0369a34de6f6a5f5c888cd99 | [
"MIT"
] | permissive | shuida/pytensor | 94225d37fad02bda5d9724443c15a055f9b1cc13 | d00d188dcc2da12d43afa749b3b23dd27e42698d | refs/heads/master | 2020-04-15T20:53:23.951523 | 2018-04-19T01:37:17 | 2018-04-19T01:37:17 | 165,011,690 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,435 | py | from pytensor.ops.math_ops import *
from pytensor.ops.loss_ops import *
from pytensor.tutorial.part1.trainer import *
from sklearn.datasets import load_digits
from sklearn.model_selection import train_test_split
class LinearModel:
def __init__(self, input_size, output_size):
"""
a simple linear m... | [
"lixinjian1217@gmail.com"
] | lixinjian1217@gmail.com |
dfc536d6b9c2abe4658a89ae31ea382458fc2581 | ff1e70a47a5adfb34b9ba75a41298623844b7b85 | /bookingsapp/serializers.py | 56f42aef3f92044ef4d971bd8dbe42b197cc0b9e | [] | no_license | guptais/django-rest-api | 636307c97d2e2ff3fe44e5eeb16a0fd7e381ece7 | d271f7ff8005d47e1a1da2c1a809d22605c576e5 | refs/heads/master | 2023-03-07T22:37:47.838503 | 2021-02-20T09:28:53 | 2021-02-20T09:28:53 | 340,613,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | from rest_framework import serializers
from .models import BookingModel, RoomModel
class BookingSerializer(serializers.ModelSerializer):
class Meta:
model = BookingModel
fields = ['id', 'from_Date', 'to_date', 'number_of_rooms', 'price']
| [
"15913179+guptaisha5484@users.noreply.github.com"
] | 15913179+guptaisha5484@users.noreply.github.com |
a8cfde36a731a0cfeb460159e2cc73d43db7c46e | 101d866f8e2f84dc8f76181341180c13b38e0ecf | /case/Demo/test_global_init.py | 96c3320be20e782b490bbf14bbb0cf12cef8b2c5 | [] | no_license | cming091/autotest | 1d9a6f5f750c04b043a6bc45efa423f2e730b3aa | 0f6fe31a27de9bcf0697c28574b97555fe36d1e1 | refs/heads/master | 2023-06-02T18:22:24.971786 | 2021-06-21T08:52:47 | 2021-06-21T08:52:47 | 378,858,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | # coding=utf-8
import pytest
import allure
from case.base import TestBase
@allure.feature('测试初始化全局数据')
@allure.link(url="https://pages/viewpage.action?pageId=84191585", name="测试用例")
@pytest.mark.usefixtures("init_module_data")
@pytest.mark.usefixtures("init_global_data")
class TestGlobalDataInit(TestBase):
"""te... | [
"349152234@qq.com"
] | 349152234@qq.com |
4cc1d2f8e739cec0560cfb768c14d5dc62a9a459 | 87f59e1f3db5598c2caebe80a78c2c4ca29ab0f9 | /bg_simulation/card/__init__.py | 74372617fac58065bf31558f3928be44ff5af27c | [] | no_license | kdchoi-mkt/battleground-simulation | 71477fadc7efd684c212b21fc91a53628b20a131 | 79251a8a345c989b41380b39aa2623c75ec67d16 | refs/heads/master | 2023-08-04T17:08:47.399102 | 2021-09-05T09:41:16 | 2021-09-05T09:41:16 | 403,029,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23 | py | from .Card import Card
| [
"kdchoi_mkt@kaist.ac.kr"
] | kdchoi_mkt@kaist.ac.kr |
de0b0b059a80c07749a16ea129918524290a5f28 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_3/David.Liu/q3.py | a26e4881ffe0696d7c67a6a0d0631ed73764fc4d | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 866 | py | import math
n=32
x=500
outf=open("q3large.out","w")
def factor(num):
r=500
for i in range(2, r):
if num%i==0:
return i
return -1
def makelist(n):
lst=[]
l=len(n)
for i in range(2, 11):
num=0
for j in range(0, l):
num+=int(n[j]... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
633a614ee0db510056cd958a7c80c9535fcae420 | fbf77a57d68060c60fe8e39a85ed541768b041a2 | /rest/mydjangoenv/lib/python3.7/functools.py | aad2d84cc0aae30011bd764df4d6c354c9d6b546 | [] | no_license | shlokagarwal/kharche | c4e78dc47f96c796b9d8960b659ac548ee3c8305 | 12d24e4bdea5ed2adabdb082397a516017e6cb2d | refs/heads/master | 2020-09-14T13:16:47.284264 | 2019-11-22T11:13:09 | 2019-11-22T11:13:09 | 223,136,552 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 58 | py | /Users/shlokagarwalla/anaconda3/lib/python3.7/functools.py | [
"skagarwal.usa@gmail.com"
] | skagarwal.usa@gmail.com |
091f1500145668ea72376cd73fea7d27b8c05ab9 | 71c395d3bc7935198ff7063593b215fc07d68912 | /N_Tiles/Frontier.py | b49883ac09d4f21ee7bdd82683598edb1cd5466a | [] | no_license | tico2303/AI | eacc13917530864d604cb73f4635f994caa9bed5 | 19d8591e9ce4757f754c959ac9c5a1e7f5df25ef | refs/heads/master | 2020-05-23T08:01:01.960184 | 2017-03-02T20:02:20 | 2017-03-02T20:02:20 | 80,486,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | import bisect
class Frontier(object):
def __init__(self):
self.q = []
def is_empty(self):
pass
def pop(self):
pass
def push(self):
pass
class PriorityQue(Frontier):
def __iter__(self):
for el in self.q:
yield el
def find_element(self, el):
for i in self.q:
if i == el:
return i
else:
... | [
"tico82003@gmail.com"
] | tico82003@gmail.com |
c57d2a70d066ddda6610a3b4c293c98a939d45c0 | 217a2bf11f99ebab761037ca3362d7d637d15093 | /Sentiment-Analyzer/appV(0.1).py | e2d0ff756be7ea28731094b95fe6beb760ab279f | [] | no_license | SiddhantPamnani/Machine-Learning | 3e4af8c20ffbff6324ed4e0c9968b10298f4bf50 | 75222b542ec9e480336f7044520bc653227f1b09 | refs/heads/main | 2023-04-18T12:26:23.557902 | 2021-04-19T12:59:18 | 2021-04-19T12:59:18 | 359,431,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,911 | py | from flask import Flask,request, jsonify
import json
from flask_cors import CORS, cross_origin
from keras.models import load_model
from keras.preprocessing.text import Tokenizer
from keras.preprocessing.sequence import pad_sequences
from keras.preprocessing import sequence
import json
import warnings
import pickle
app... | [
"sidpspotter@gmail.com"
] | sidpspotter@gmail.com |
eb5b33dc0fc012d521bf71c982068b71534887b6 | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/sql/get_database_vulnerability_assessment.py | a6aa84ede40a8f73706d9941a81575ccf9b1a66e | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | MisinformedDNA/pulumi-azure-native | 9cbd75306e9c8f92abc25be3f73c113cb93865e9 | de974fd984f7e98649951dbe80b4fc0603d03356 | refs/heads/master | 2023-03-24T22:02:03.842935 | 2021-03-08T21:16:19 | 2021-03-08T21:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,722 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from .. import _utilities, _tables
from ... | [
"noreply@github.com"
] | noreply@github.com |
b6ecbef1faf3aab95571a56f1eaf1dece622f4c0 | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/python/generated/test/test_org_apache_sling_distribution_monitor_distribution_queue_health_check_properties.py | 78c34d346fd02e2be860bd78e70e6726077ba3fc | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | Python | false | false | 1,475 | py | # coding: utf-8
"""
Adobe Experience Manager OSGI config (AEM) API
Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API # noqa: E501
The version of the OpenAPI document: 1.0.0
Contact: opensource@shinesolutions.com
Generated by: https://openapi-... | [
"michael.bloch@shinesolutions.com"
] | michael.bloch@shinesolutions.com |
57145b59e685e5f01020f461aa0f8d6d30d4aaa9 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/coverage-big-2414.py | 3053991009fd4d98c0485cb6eb9c680b4184c3a6 | [] | 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 | 13,337 | py | count:int = 0
count2:int = 0
count3:int = 0
count4:int = 0
count5:int = 0
def foo(s: str) -> int:
return len(s)
def foo2(s: str, s2: str) -> int:
return len(s)
def foo3(s: str, s2: str, s3: str) -> int:
return len(s)
def foo4(s: str, s2: str, s3: str, s4: str) -> int:
return len(s)
def foo5(s: str,... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
fdbb36745f19746d6ff0a8f244352c704a20cad2 | 263ee801e27eeeee336e32a7e1382fa7909fe2ad | /app/pic_spider/video.py | fde6bcb2e4843984f106f466c9fbb278a72c2763 | [] | no_license | GitOfx/app_server | 29547006ab390c4eddb0d9c47f774d7f1bdffcf9 | 59266e6a12fca1b3a166e4323cc72ea6309dbf7d | refs/heads/master | 2021-09-05T16:17:53.060637 | 2018-01-29T14:58:16 | 2018-01-29T14:58:16 | 119,249,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,778 | py | from multiprocessing import Process, Queue
from multiprocessing import Pool
from bs4 import BeautifulSoup
from app.pic_spider import request_url,save_pic
import asyncio
import urllib3
import os,time
from selenium import webdriver
# https://seleniumhq.github.io/selenium/docs/api/py/index.html
host = 'http://91.91p10.sp... | [
"792017657@qq.com"
] | 792017657@qq.com |
8eea72b5dccb4559dd298a63072bd2e7518423b9 | 523e0d1edf4478245b8506e0cb594bfb8a1b1883 | /components/dimensionality_reduction/pca_entry.py | e4fc1774fc981ef8a62fa290de98a491ac7f8d75 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LicenseRef-scancode-proprietary-license",
"CC-BY-4.0"
] | permissive | luzhang06/AzureMachineLearningGallery | b971676503d897dc9bd895d4a95121e398c53b74 | f48916118ffee8cb44ae60b7a0a0fb18d9094034 | refs/heads/main | 2023-02-15T21:58:52.475671 | 2021-01-18T02:02:14 | 2021-01-18T02:02:14 | 305,295,403 | 0 | 0 | MIT | 2021-01-18T01:17:13 | 2020-10-19T07:16:06 | Python | UTF-8 | Python | false | false | 2,282 | py | # pylint: disable=E1136,W1202,R0801,R0913,W0613,R0914
""" Dimensionality reduction entry module"""
from pathlib import Path
import joblib
from azureml.studio.core.logger import module_logger as logger
from azureml.studio.core.utils.fileutils import ensure_folder
from azureml.studio.core.io.data_frame_directory\
... | [
"keli19@microsoft.com"
] | keli19@microsoft.com |
048c333f5f321f508763e1bc3d96c4ec5a465231 | 3bddb2814881bb5e4679de3d31ac0bde57b86148 | /trax/data/tokenizer.py | 64081f4da0735026efb1c20851a2a900e708ad02 | [
"Apache-2.0"
] | permissive | google/trax | 7a2b1a83eb8848136a5f5e07988efcef2f0b704f | 1bb3b89427f669f2f0ec84633952e21b68964a23 | refs/heads/master | 2023-08-30T22:36:09.651644 | 2023-03-29T01:14:20 | 2023-03-29T01:15:47 | 213,020,264 | 8,180 | 917 | Apache-2.0 | 2023-08-29T14:30:03 | 2019-10-05T15:09:14 | Python | UTF-8 | Python | false | false | 5,810 | py | # coding=utf-8
# Copyright 2022 The Trax Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
b51f2032a01f2a225afeaa4e57adc9645034c1a5 | a586b39403bbf5c0b1637b445af64aa6ef7ea99c | /pythonkurs/fonksiyonlar.py | 804ea19e36f4950deae03542b2c9c00dc7509795 | [] | no_license | bkucukala/PYTHON_WORKSHOP | f663b98a6cb6f7cf271f3bceb62900fb57fb4a39 | 83c618a833b35b712c5ab70bce07ef8b724a9524 | refs/heads/main | 2023-05-31T18:11:07.651748 | 2021-06-19T20:18:32 | 2021-06-19T20:18:32 | 345,985,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | # -*- coding: utf-8 -*-
def hosgeldin():
print("Mekana hoşgeldiniz....")
print(hosgeldin())
#%%
def hosgeldin2(isim):
print("Mekana hoşgeldin....",isim)
print(hosgeldin2("Ahmet"))
#%%
def topla(x,y):
print("Toplamları:",x+y)
print(topla(7, 11))
#%%
def faktoriyel(sayı):
a = 1
if (s... | [
"bkucukala@hotmail.com"
] | bkucukala@hotmail.com |
5450fe5117edb58e6caaa558a061d096623c0f50 | 3fa3d253c9ec93776bdc67f3ecbb7144d20e8b4f | /typegql/execution.py | 06e2a77e96e9ce12a63e596b4e775e1fe5af05c2 | [] | no_license | cipriantarta/typegql | 8607b2595b3b59a49a28acbe9e680dee72d3855f | cf1b1c25b421ceb8d0f8b5cc77dd04d31de8bc42 | refs/heads/master | 2021-07-24T17:24:35.451046 | 2020-04-06T11:46:22 | 2020-04-06T11:46:22 | 131,473,262 | 14 | 1 | null | 2020-01-13T15:34:21 | 2018-04-29T07:01:54 | Python | UTF-8 | Python | false | false | 1,193 | py | from typing import Any, Sequence, Union
from graphql import (
ExecutionContext,
FieldNode,
GraphQLError,
GraphQLField,
GraphQLFieldResolver,
GraphQLResolveInfo,
is_introspection_type,
)
from graphql.execution.values import get_argument_values
from typegql.builder.utils import to_snake
cl... | [
"ciprian@cipriantarta.ro"
] | ciprian@cipriantarta.ro |
b64ec8ccaf0a47dd9f85266b92faf3122e5e57ff | 6896fce8ee082f9730c056436e49ef0d16a6ea03 | /exception/exceptions.py | cbec08fae3c703e147a7daef31cd584579c057d3 | [] | no_license | Sugeei/python-practice | 5022ae7c34bc04972edebc15936248cb9869ec54 | 048df40500a059e4380f3ecc2581de96c9a1fc9b | refs/heads/master | 2022-12-07T06:34:40.740379 | 2022-11-13T11:48:29 | 2022-11-13T11:48:29 | 121,074,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | from bs4 import BeautifulSoup
ERROR_MAP = {
"200000": "invalid input parameter",
"500000": "load data error",
"600000": "dump data error",
"700000": "data verify error",
"800000": "algorithm error"
}
class UranusError(Exception):
def __init__(self, error_code=None, message=''):
Except... | [
"215626824@qq.com"
] | 215626824@qq.com |
7b4ea0f4ff1d23cb5acb9a1696155e58d41a06ed | deb3c16ef887b6c496b8c920809d79b9f73aa2fe | /libs/telewizjaonline.py | 3ff44fd184c1e68bbc06dccfa2babf9394c94358 | [] | no_license | Yaser7440/cmdline_iptvplayer | 1ea35f4fd36c708176a43d402a49342c4cf723a5 | 4e287021d86cab8d6525262b647d144c6141d6b1 | refs/heads/master | 2021-01-24T10:49:29.278730 | 2016-09-21T09:24:26 | 2016-09-21T09:24:26 | null | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 4,018 | py | # -*- coding: utf-8 -*-
###################################################
# LOCAL import
###################################################
from Plugins.Extensions.IPTVPlayer.dToolsSet.iptvplayerinit import TranslateTXT as _
from Plugins.Extensions.IPTVPlayer.dToolsSet.iptvtools import printDBG, printExc, GetCookieD... | [
"zdzislaw22@windowslive.com"
] | zdzislaw22@windowslive.com |
42c98f0b561f8d2986b82ba15ae715161e168de9 | bca8fa75d214db54ab436014bb4bfc55f5df360c | /main/admin.py | ed19c663a8825d68491ebe3f78791cd64ecea49d | [] | no_license | daniiarandashov/resto | aa0d031d9e6ab49fce37f785bca16c567d862f3f | b5fe1789e1bbeaa869e559f3cb821124797cd94e | refs/heads/master | 2023-02-17T16:24:36.335840 | 2021-01-16T12:00:06 | 2021-01-16T12:00:06 | 330,132,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | from django.contrib import admin
from .models import UserProfile,Feedback,Comment
admin.site.register(UserProfile)
admin.site.register(Feedback)
admin.site.register(Comment)
| [
"daniiarandashov@gmail.com"
] | daniiarandashov@gmail.com |
ceb28f20a61e6dbcb21f99d264dc43cef9224028 | 8fc944deb49190afb54116f67e7de430dc0d96ba | /read_data/library_size_normalization.py | 1b9bdad930ad4f24326880eb9d528fb655f6f708 | [
"MIT"
] | permissive | fuhrmanj/TRANSACT_manuscript | 9cafa6727d314d9ac92fc19a9235f4f97488e950 | 71ca2ec42bdd5d547d4b965aa7f84838bfd5b812 | refs/heads/main | 2023-01-09T22:57:59.223066 | 2020-10-12T08:24:45 | 2020-10-12T08:24:45 | 310,045,794 | 0 | 0 | MIT | 2020-11-04T15:40:58 | 2020-11-04T15:40:57 | null | UTF-8 | Python | false | false | 2,308 | py | import numpy as np
from sklearn.preprocessing import StandardScaler
import rpy2
import rpy2.robjects as robjects
import rpy2.robjects.numpy2ri
from rpy2.robjects.packages import importr
class NormalizationParameter():
def __init__(self, parameters=None, scaler=None):
self.parameters = parameters
... | [
"soufiane.mourragui@free.fr"
] | soufiane.mourragui@free.fr |
3bb772842726bdb60f03a1314d320bb52bd637ee | b721a2744096c5cc44d22eb303e0fc288c8c3679 | /contact/migrations/0001_initial.py | c814fc5c68537ffee6dfcae8d9e3d6727a3a64b5 | [] | no_license | Rasel120/Python-blog-project | 91cacdb12834bbcfea2b9b3a64153952d94d5d04 | 20e1561d06eb9ab6144bb50101b061acf9680914 | refs/heads/main | 2023-06-05T08:22:25.509881 | 2021-06-17T09:21:04 | 2021-06-17T09:21:04 | 375,974,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,210 | py | # Generated by Django 3.2.4 on 2021-06-16 11:35
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='contact',
fields=[
('id', models.BigAutoFie... | [
"raselhossain120@gmail.com"
] | raselhossain120@gmail.com |
a832096e542afe309fcca3c34230d78766301154 | 2ffbdaca744e6a842db4dd811688508855a20e32 | /venv/bin/easy_install-2.7 | a60f31fbc646ca78e84bbe39ff4040f9dfb33442 | [] | no_license | mparavak/Hackathon-79 | c3ba245a2497454b5706348e13c23036defd39ce | b92fab045b8fd5ab569ec6c829a6c3227fd7a8f8 | refs/heads/master | 2020-09-09T16:29:06.530563 | 2019-11-15T08:42:01 | 2019-11-15T08:42:01 | 221,496,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | 7 | #!/Users/mparavak/Play-ground/hackathone/venv/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"mparavak@cisco.com"
] | mparavak@cisco.com |
ea1e5c9e5b85c1fa79f1cb44ff6cdb596859bb30 | f9b85ca1565bad4da34a99edd0a3ddf555b3beb1 | /Python/Python_Exercise/Python_Exercise1/ex35.py | f3e8b5f0f8f7b336dcf696ff3ed5bc785b95fa5a | [] | no_license | akjadon/HH | baab2209fbeee80625c451e66606cad4c7a0a4f5 | f6664c62c62811e280e1460241936cb526974661 | refs/heads/master | 2023-05-15T00:01:34.580015 | 2023-05-07T15:44:25 | 2023-05-07T15:44:25 | 191,207,450 | 56 | 76 | null | 2022-06-22T05:07:51 | 2019-06-10T16:43:35 | Jupyter Notebook | UTF-8 | Python | false | false | 2,507 | py | """The International Civil Aviation Organization (ICAO) alphabet assigns
code words to the letters of the English alphabet acrophonically
(Alfa for A, Bravo for B, etc.) so that critical combinations of letters
(and numbers) can be pronounced and understood by those who transmit and
receive voice messages by radio ... | [
"aniljadon.jadon@gmail.com"
] | aniljadon.jadon@gmail.com |
a3ef5a797e9f1b6569ec306baa65e43624e201b4 | 2a57bbf56f1a132cd401f9f6280a14031b50d2f2 | /Ecommerce/users/migrations/0001_initial.py | 5196bd6b9f550386ace7ce7e59bb538412251fe5 | [] | no_license | harshpjoshi/Django-Projects | 1664738e89d92c90b49638d7670bd1c44fe79c7a | 561b7b0ab25275d8c2bcf1c0ab92e84ac40182ab | refs/heads/master | 2020-07-02T05:28:30.006458 | 2019-08-09T08:08:47 | 2019-08-09T08:08:47 | 201,426,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | # Generated by Django 2.2.4 on 2019-08-04 12:55
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"harshjoshi989@gmail.com"
] | harshjoshi989@gmail.com |
5b8d8fd74c0847bd79b0fb380de54ed2ea9f6bb2 | e027a6aacf256bee8abf2eafc82b7fd4b879f3d6 | /Crud/forms.py | 997fe7754a2d06f01f7d828f538de218bb068375 | [] | no_license | Yelzhan04/CrudApi | 5094e4c911adc05973df106ff474cca2109dc306 | 877e56625e566111b8add045e1be1d7c51f7b908 | refs/heads/master | 2022-09-09T20:01:24.300112 | 2020-05-23T21:52:05 | 2020-05-23T21:52:05 | 266,425,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | from django import forms
from .models import Post
class PostForm(forms.ModelForm):
class Meta:
model=Post
fields="__all__"
| [
"eljan00.kz@gmail.com"
] | eljan00.kz@gmail.com |
7782bfdeeddfc565dde400c5cb74f00a511883a0 | 28bb6f38b61f72cbebfed156a4edd7424ef204cf | /shipping/admin.py | 20cf06efb29fd87592037033a07f92a96cd17ad5 | [] | no_license | hodortaras/Test_red | 7ebe7bffc1866de7b77eaec4b07eae52e582eef8 | 806d485290a5be7c494797e15fcc64ff8ee2a49a | refs/heads/master | 2022-11-24T05:46:56.096128 | 2020-01-21T22:14:16 | 2020-01-21T22:14:16 | 235,436,866 | 0 | 0 | null | 2022-11-22T05:15:35 | 2020-01-21T20:38:17 | JavaScript | UTF-8 | Python | false | false | 482 | py | from django.contrib import admin
from .models import Order, OrderItem
class OrderItemInline(admin.TabularInline):
model = OrderItem
raw_id_fields = ['product']
class OrderAdmin(admin.ModelAdmin):
list_display = ['id', 'name', 'email',
'address', 'phone', 'paid',
'... | [
"dvalindvorf@gmail.com"
] | dvalindvorf@gmail.com |
651a8d2fb009e24b0791b25c910e348e012e7af6 | dca23c8d1f8014e7f992b9afdcbb130aababc1f9 | /test_functions.py | 3e5ef178a1a0e6bdec3a222dd059ce115b9238d8 | [] | no_license | anshulsinghh/hoursonleague | 8c422534d5c8a5a0c5567f4c09fbdb809383e3e0 | c732f69186c0b168bc9de2a37e762f64d3cd1d4b | refs/heads/master | 2021-04-23T12:31:49.549185 | 2020-07-25T22:47:06 | 2020-07-25T22:47:06 | 249,925,571 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,556 | py | from datetime import timedelta
from module import get_analysis, get_hours_and_minutes\
"""
This function tests the get_analysis function in the module file
"""
def test_get_analysis():
assert callable(get_analysis) # Check if the function is callable
# Check that for inputs from 0 to 14, that the output is a st... | [
"noreply@github.com"
] | noreply@github.com |
070089d8c74b1601136b1786b5a6ae80947ded2f | 5a22329b0cd51c49546e5f6084a8879c5a4a57c4 | /greedy/maximum_water_trapped.py | 1ecd9d1a19afb6600e40b74df5d9cc1306b807bd | [] | no_license | rmarren1/code_problem_snippets | b352a76cb130755745b9c30372b028aaf28ad901 | 6f6ef401fa8e90c6ae6e044b3cc30531427adc46 | refs/heads/master | 2020-04-09T03:21:38.670944 | 2019-01-27T18:45:08 | 2019-01-27T18:45:08 | 159,979,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | def max_water_trapped(walls):
l, r = 0, len(walls) - 1
most_water = 0
while l < r:
most_water = max(most_water, (r - l) * min(walls[l], walls[r]))
if walls[l] < walls[r]:
l += 1
else:
r -= 1
return most_water
def main():
test_cases = [
[1, 2, ... | [
"rymarr@tuta.io"
] | rymarr@tuta.io |
d0e9ac32ea79140d1cf38d1451aa72f8f0ee96a7 | 9db35a0ffb82a5a1c41a098fc14524cd9c98a8c2 | /main.py | b38f6f46f58f5508518562e52d0b64dcf030851c | [
"MIT"
] | permissive | Sirius-Bell/backup_your_files | fd08b9e914e028b0ff06c0517d621e95a525b659 | ef8ed89489d18562d097dfdb5c51daa0f5c1474c | refs/heads/master | 2023-07-07T02:03:54.045580 | 2019-11-24T19:55:11 | 2019-11-24T19:55:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,011 | py | #Python 3.8.0
#Make by Lonely Dark
import argparse
import os
parser=argparse.ArgumentParser()
parser.add_argument('-r', '--recursive', help='recursive add files', action='store_true')
parser.add_argument('-d', '--directory', help='directory where the files(or file) are. If file one, input file with full name', requi... | [
"vlad10game@gmail.com"
] | vlad10game@gmail.com |
edb713de802c8b7fb038ec61f997ca5c7f5cc79c | 5911e6935bd21da01246cc4fe4db362921f703bc | /image_stitch/utilities.py | c06d225691eaa0a98fbc6089ffaa43fe2a159dcf | [] | no_license | siadajpan/profile_stitching | 5be005aab43d857eaf38e2d97ae51de05b0d38c8 | c2d511543c1ef640a53c8366edb3d3b84c3e27bb | refs/heads/master | 2020-03-31T08:53:36.556256 | 2019-02-19T16:05:19 | 2019-02-19T16:05:19 | 152,075,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,331 | py | import numpy as np
import cv2
def get_dark_cols(img):
(rows, cols, ch) = img.shape
for start_col in range(cols):
if img[:, start_col, :].mean() > 5:
break
for end_col in range(cols):
if img[:, -end_col, :].mean() > 5:
break
print 'start: %s, end: %s' %(start_col, end_col)
if end_col == 0:
end... | [
"siadajpan@o2.pl"
] | siadajpan@o2.pl |
4db6157cc5bc0c7c11ea4235146bea8a5a87a274 | 435a524191c2611d7abb7390a8422e8f15a93065 | /PYTHON/Learn Python/Level_0/Challenges/Solutions/12) Lists 2.py | 556e862f46b381f20f15ba67c3f853f714716e77 | [] | no_license | huezune2000/Learn-Python-Offline | 565b52b092f043286ca886d6ae173ae4a61b3857 | d1c8be29cda2be34fd8e9bdc439c285c92f34a98 | refs/heads/master | 2021-05-27T01:59:18.405553 | 2014-03-08T03:52:57 | 2014-03-08T03:52:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | ###
#12) Lists 2 Solution
###
l = []
for x in range (10):
n = x**3 + 2*x
l.append(n)
print (l)
| [
"itcaughtonj@gmail.com"
] | itcaughtonj@gmail.com |
8f240bfbf9e8882f118cf1a7b284cca910bf6864 | 644fdc72cb9f13a8101f0efcc9ab6ec5f3f8f250 | /project/yeet.py | 080c431e527c3e84b0758e976eab0aa1e01c9efd | [] | no_license | TruthorPear/Island-Escape | 52f720dc09cc19bde4f8101ab19504a34c9836a2 | c252c863f717f8aff81af7780c982a529331052c | refs/heads/master | 2020-03-24T01:21:09.171161 | 2018-07-26T14:06:27 | 2018-07-26T14:06:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,506 | py | import pyglet
from pyglet.window import key
import cocos
from cocos import actions, layer, sprite, scene
from cocos.director import director
# Player class
class Me(actions.Move):
# step() is called every frame.
# dt is the number of seconds elapsed since the last call.
def step(self, dt):
... | [
"noreply@github.com"
] | noreply@github.com |
0b2bc07bfe47ebc246deec181f61d7fa55a65b8f | e8d5471bd4a47794d66162060343f740e0febca4 | /server/src/uds/auths/RegexLdap/__init__.py | 4065f8086cf40c30d7e64bfeaa397d4232fd9e6e | [] | no_license | git38438/openuds | ef939c2196d6877e00e92416609335d57dd1bd55 | 7d66d92f85f01ad1ffd549304672dd31008ecc12 | refs/heads/master | 2020-06-22T14:07:33.227703 | 2019-07-18T11:03:56 | 2019-07-18T11:03:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,687 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2012 Virtual Cable S.L.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
#... | [
"dkmaster@dkmon.com"
] | dkmaster@dkmon.com |
85276507b54d3f216c070a9c8873c8ff120d8120 | 72a8181e5502128fec62b132fbe19cd9d50dab4c | /rules/plot.smk | 28df3be0b7d220ab200f373be5f95348d4b02f2c | [] | no_license | EthanHolleman/DRIP-AGS-ENCODE | 1fd3b7065ec7f47e783674df14955a7b655edc08 | e3bb63b6d1cae82ddc6fe8857a1e66e2f41b2781 | refs/heads/main | 2023-04-03T21:07:34.651467 | 2021-04-23T02:42:18 | 2021-04-23T02:42:18 | 360,375,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | smk |
rule make_feature_intersection_plot:
conda:
'../envs/R.yml'
input:
'output/intersect/all_samples_concat.intersection.bed'
output:
'output/plots/feature_intersection_plot.png'
shell:'''
mkdir -p output/plots
Rscript scripts/plot_encode_intersections.R {input} {output}
... | [
"etholleman@ucdavis.edu"
] | etholleman@ucdavis.edu |
72934eff4f36840bbb0eaeaed8669ed059f2aca7 | 646212a664d3100af57ec1a6c0a4e450e51f991a | /particles/linktracks.py | e213831ba2ca6d9fedbc9b56ba54afd6a26507a6 | [
"MIT"
] | permissive | luispedro/particles | e06edf241471c3e075b0f3f0295bcf5b1506980c | 3bd05a85e7f78be933277b778ba124d396b19238 | refs/heads/master | 2021-01-20T21:26:07.742196 | 2009-05-30T20:51:45 | 2009-05-30T20:51:45 | 1,408,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,753 | py | This product includes software developed by Brian M. Clapper
(bmc@clapper.org, http://www.clapper.org/bmc/). That software is
copyright © 2008 Brian M. Clapper.
import numpy as np
import random
import math
from munkres import Munkres
'''
def generate_posits(tracks):
this function takes... | [
"ajs171@pitt.edu"
] | ajs171@pitt.edu |
1af643695b4192619ffcd424991f063d051f610c | 6cac02f4df495f1acec3fde64335aa4881230cba | /tutorials/foo-tutorial/foo/foo.py | c828d610c07b3232e3f034ebfbced761d19fd565 | [] | no_license | ivannz/pkg_deploy_repo_renamed | 96610728c097f0bb77a047b09681bb1d5fe6ffc3 | 9ce24ffcc5db6235dd3946f8a63123c3955ea957 | refs/heads/master | 2020-07-16T17:28:59.668633 | 2019-09-03T07:08:29 | 2019-09-03T07:08:29 | 205,832,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | def this():
from this import s
d = {}
for c in (65, 97):
for i in range(26):
d[chr(i + c)] = chr((i + 13) % 26 + c)
return "".join(d.get(c, c) for c in s)
| [
"ivannz@yandex.ru"
] | ivannz@yandex.ru |
2a21ac1ec7913bc31720e0eb686e858987acfe58 | 75117becf9f75122e60cd806599ae24c16065689 | /python_models8/neuron/builds/IF_curr_exp_i.py | 307db7fb5aee6fefae5f3e8176e659b1466f3901 | [] | no_license | chanokin/sPyNNaker8NewModelTemplate | d911443fa650a4016828341fd252ddb2d7bad313 | 2d64f34ed5a8f5312a3176792bee57339785c5ea | refs/heads/master | 2020-11-27T01:10:50.593741 | 2020-01-07T15:56:54 | 2020-01-07T15:56:54 | 229,252,692 | 0 | 0 | null | 2019-12-20T11:28:48 | 2019-12-20T11:28:48 | null | UTF-8 | Python | false | false | 2,945 | py | # A PyNN Model for standard neurons built from components
from spynnaker.pyNN.models.neuron import AbstractPyNNNeuronModelStandard
# Components from main tools
from spynnaker.pyNN.models.neuron.input_types import InputTypeCurrent
from spynnaker.pyNN.models.neuron.synapse_types import SynapseTypeExponential
from spynnak... | [
"chanokin@gmail.com"
] | chanokin@gmail.com |
16b2f102d13e260917ee44549fe5a1a09bc216a1 | c57414aa625d16e46f719cc1f89d347fc0500963 | /tools/test/sql_test.py | 900d3e5a8f7a125d86bfc47d29e03acde638a6ef | [] | no_license | W1nU/Coalert-Server | be3938c1ddedb83cdd0b4c5c173fee50a4b41b55 | 74834097f304d66963da21afc9377d55dfa9efe2 | refs/heads/master | 2020-03-30T05:08:21.326801 | 2018-10-13T17:35:50 | 2018-10-13T17:35:50 | 150,782,820 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from database import *
| [
"jsw9808@gmail.com"
] | jsw9808@gmail.com |
0f2ac223d96f5a6d71a7a54cad6006c3bc48733c | b6f8b2f023004fc0ea185b5e1ef2cbccce9ef513 | /misc/figures_thesis.py | 05bcf26cc2a72e5051b3bd7f7406d3d6a1d50359 | [
"BSD-3-Clause"
] | permissive | tenglongcong/petibm-examples | a73a6cdba864269fe9402d0a8b44582f2bcbcd9f | 3817d50b0b26df5901701c0cfe82a2d57c964e89 | refs/heads/master | 2020-11-27T17:12:28.335357 | 2019-12-04T23:51:54 | 2019-12-04T23:51:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | """Gather figures (to be included in thesis)."""
import os
import pathlib
import shutil
rootdir = pathlib.Path(__file__).absolute().parents[1]
n_parts = len(rootdir.parts)
# Create the output directory.
figdir = rootdir / 'figures_thesis'
figdir.mkdir(parents=True, exist_ok=True)
# Load paths of figures to gather.... | [
"mesnardo@gwu.edu"
] | mesnardo@gwu.edu |
7ca45edf23818b3c74ce0cf938d26cfb845f23aa | 4b46a3266967acfd8e1d2f753d9803aa8d666d9f | /api/client.py | 630a6c9561b6821c9c3a8791508b8f74c7028694 | [] | no_license | dlbewley/WebDevTemplates | 601e48d7cdb8f7405bbb36da5660fcf8e349f0a8 | e3a685d22abd5a4ef828d91797b1d6c44b2bbdc1 | refs/heads/master | 2021-01-17T23:11:13.976923 | 2015-03-13T01:29:46 | 2015-03-13T01:29:46 | 31,397,821 | 1 | 0 | null | 2015-02-27T01:30:54 | 2015-02-27T01:30:54 | null | UTF-8 | Python | false | false | 2,274 | py | #!/usr/bin/env python
import pycurl
import cStringIO
import json
import random
# make sure to:
#
# pip install pycurl
#
# we are not including pycurl in the requirements.txt file because
# this script is an example of a standalone client that another user
# would use to access your api (just like the curl commands
#... | [
"sms@pixar.com"
] | sms@pixar.com |
a0dd99b7f5cfeb2e2a69bd6b6f42ec9a16cf0864 | e2694203560eb49e1a32e4b380d75d36d7fe39e1 | /svm_binary_pca.py | b4308fb9fe6f8542ab497e538bdebb65ab41d4a1 | [] | no_license | TPLink32/ML-based-Network-Intrusion-Detection-using-Cyber-Dataset-CSE-CIC-IDS2018-to-classify-network-attacks | 66c85b2f525f0374a1942f5eb07ecb7c9a4d2021 | 3e9b43c876978f29570569199dfdcd86528616c0 | refs/heads/master | 2023-02-07T19:36:22.249235 | 2020-12-26T16:08:14 | 2020-12-26T16:08:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,989 | py | import numpy as np
import pandas as pd
#from sklearn.kernel_approximation import RBFSampler
#from sklearn.linear_model import SGDClassifier
#from sklearn.model_selection import train_test_split
from sklearn import svm
from sklearn.metrics import classification_report
from sklearn import metrics
#from sklearn.li... | [
"noreply@github.com"
] | noreply@github.com |
9a89eb24723752edbc2a66b1541fe2fc2ce40807 | 071dcda0b97447701bfcd24be84917cc956f3d14 | /queuing theory .py | 46869c315062d3b6069acd7dad1472f9a4288e2d | [] | no_license | yukiiwong/Queuing-Model-with-Preemptive-Priorities | d71897cb44fee85393e72a78904022634826db1f | a75d7bc4f86162c78ab8785eadd366f4de7ea1ac | refs/heads/master | 2020-04-12T07:43:45.576606 | 2018-12-19T06:36:43 | 2018-12-19T06:36:43 | 162,368,571 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,122 | py | import numpy as np
from PIL import Image,ImageDraw,ImageFont
import cv2
import numpy
#initial input
lambda1 = 2*0.2/60
lambda2 = 1.3*0.6/60
lambda3 = 1.2/60
u = 3*1.1
simu_num = 60*24*10
#input procedure
x1 = np.random.poisson(lam = lambda1,size = simu_num)
x2 = np.random.poisson(lam = lambda2,size = ... | [
"noreply@github.com"
] | noreply@github.com |
5f69045f7aa47cdf638b20fe0213be9eee7ea9cf | 37c38b97d0a4b8098ec3c35b7122afb1fbb9eac9 | /newke/py36/py36/class_biao.py | ffce719d491f697100ed5daab2206f4b953fd2aa | [] | no_license | lionheartStark/sword_towards_offer | 8c2f9015a427317375d53eee982d630ffd4fa9c0 | cb3587242195bb3f2626231af2da13b90945a4d5 | refs/heads/master | 2022-12-02T20:50:18.789828 | 2020-08-23T02:00:48 | 2020-08-23T02:00:48 | 266,257,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | from typing import List
from collections import defaultdict,deque
class Solution:
def canFinish(self, numCourses: int, prerequisites: List[List[int]]) -> bool:
need_map = defaultdict(set)
for i in prerequisites:
need, be_need = i
need_map[need].add(be_need)
a_soluti... | [
"1003146780@qq.com"
] | 1003146780@qq.com |
5a520bbe602829e4a1a651efc846844f07970208 | bcfa02c21a73798872bbb28303233d1f0039cf00 | /server/www/teleport/webroot/app/controller/dashboard.py | 65a5f2eea63c35642406ac5a3c52e530667224cb | [
"Apache-2.0"
] | permissive | zhoulhb/teleport | 6301cd50c951bcbac21cbe24017eb8421ff57adc | 54da194697898ef77537cfe7032d774555dc1335 | refs/heads/master | 2021-11-10T17:10:59.661130 | 2021-11-09T11:16:19 | 2021-11-09T11:16:19 | 192,643,069 | 0 | 0 | Apache-2.0 | 2019-06-19T02:20:53 | 2019-06-19T02:20:52 | null | UTF-8 | Python | false | false | 361 | py | # -*- coding: utf-8 -*-
from app.const import *
from app.base.controller import TPBaseHandler, TPBaseJsonHandler
from app.model import stats
class IndexHandler(TPBaseHandler):
def get(self):
ret = self.check_privilege(TP_PRIVILEGE_LOGIN_WEB)
if ret != TPE_OK:
return
... | [
"apex.liu@qq.com"
] | apex.liu@qq.com |
dac2133cf620ea789b31f150bedf585eb47f66bf | 831fd793641b88d15dfb437ea305928533f4b471 | /myapi/migrations/0002_auto_20190218_2333.py | 5f20c29ba2f76ef22cc13d8a6dc999a13eec2b98 | [] | no_license | dyohan9/django_rest_framework_project | 81774c031d8691c872bdaeea59e929c2f385dc44 | 7bfcd6a99b204677e011b3399c592e787fc929a3 | refs/heads/master | 2020-06-01T04:35:00.609800 | 2019-02-18T20:01:35 | 2019-02-18T20:01:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,198 | py | # Generated by Django 2.1.4 on 2019-02-18 18:33
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('myapi', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Paradigm',
... | [
"amirsavvy"
] | amirsavvy |
d471b1d17f445c042a7a07f4fe994e008c61231f | 466afe028fbe4940f88666a5dbd424535fd5aef6 | /ex32.py | b3f3168306d20676bcc728d8792516fe1af08258 | [] | no_license | wenyan666/wenyan-python | 1059b8872b8a5cbbf75b605ee82e3f33fe2e2c82 | 4c974fa897b906f17646b904a1d763ed1dafbab1 | refs/heads/master | 2021-01-12T05:44:44.425185 | 2017-01-17T07:57:42 | 2017-01-17T07:57:42 | 77,188,401 | 0 | 0 | null | 2017-01-14T00:41:58 | 2016-12-23T01:38:37 | Python | UTF-8 | Python | false | false | 959 | py | the_count = [1, 2, 3, 4, 5]
fruits = ['apples', 'oranges', 'pears', 'apricots']
change = [1, 'pennies', 2, 'dimes', 3, 'quarters']
# this first kind of for-loop goes therough a list
for number in the_count:
print ("This is count %d" % number)
# same as above
for fruit in fruits:
print ("A fruit of type: %s" %... | [
"wenyan.zhang@foxmail.com"
] | wenyan.zhang@foxmail.com |
3a5fa82b03d6e08eaa27964bb6992a07d039f621 | 976fc1c0572d964d83c90299a3fbdc7a8f0925a8 | /hello world.py | bda13a892071ef123ac78eab3579514d5daceae1 | [] | no_license | bingoa/learnpython | e19c1b254537a62d67204fcfc3f52d247027bbda | e5bfa47af204b82346bb51156b1997d9d01ea125 | refs/heads/master | 2021-01-17T18:07:45.474080 | 2016-08-01T04:45:26 | 2016-08-01T04:45:26 | 64,636,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
print "Hello world"
| [
"noreply@github.com"
] | noreply@github.com |
4d0f80be234b2a2431c8735b497e73bf26b97c13 | 3de01124b8cca1267126c807d6c07fa0fce681a4 | /baselineNet_Nopad_Reg_150Epoch_Leaky.py | 113303489847152eeaead001949d11df0b4282da | [] | no_license | ljehezkiel/regularization-pneumonia | 8f92e258a00087d415ec8ea7826608731fce1c1e | e15f216d5d576faefbb81309f027ed6a5ee489ae | refs/heads/main | 2023-02-19T10:10:33.920656 | 2021-01-25T19:24:37 | 2021-01-25T19:24:37 | 332,841,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,352 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from PIL import Image
import os
import cv2
import keras
from keras.models import Sequential
from keras.layers import Conv2D,MaxPooling2D,Dense,Flatten,Activation,Dropout,LeakyReLU
data=[]
labels=[]
Pneumonia=os.listdir("../content/drive/My Drive/... | [
"noreply@github.com"
] | noreply@github.com |
71d6e1fbcb51bf821ba0e4468063c840241fe175 | 4bb5e0749321aa0e080964b81dddd98bafd3916b | /main.py | cbaf58b15de1f46a8919e8917b649e7c3c673c6d | [] | no_license | Cyberdog90/ppm2png | c7151adf680776014c726b35e96cfb2dd8c67431 | d4a034d3cb85e739f85a42b74783061eabd887dd | refs/heads/master | 2020-04-24T22:36:43.362611 | 2019-06-05T15:34:25 | 2019-06-05T15:34:25 | 172,317,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | import os
import tkinter.filedialog
import cv2
def main():
root = tkinter.Tk()
root.withdraw()
file_type = [("file", ".ppm")]
idir = os.path.abspath(os.path.dirname(__file__))
file = tkinter.filedialog.askopenfilename(filetypes=file_type,
in... | [
"noreply@github.com"
] | noreply@github.com |
d2561f51cfd801bd95c1b923663a1a7c0d8c264f | 433ddd55ef30e489761b0dd996325e6d48e989fc | /fab_function.py | a44b638e2eff1d5eeb45fc88de313df9c5c3dabd | [] | no_license | vikramchdry/Python-coding-Practice | 91a9de056c4ea4a837e048a689f0393bf6156156 | 7b5381353261273bf4ac314581b828475e635cb2 | refs/heads/master | 2020-09-12T22:33:01.198320 | 2019-11-19T11:07:45 | 2019-11-19T11:07:45 | 222,581,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | '''def fib(n):
if n <= 1:
return n
return fib(n-1)+fib(n-2)
if __name__=='__main__':
n = 100
print (fib(n)) '''
'''def fib(n):
if n<0 :
return ("Incorrect number")
elif n == 0:
return 0
elif n== 1:
return 1
else:
return fib(n-1)+fib(n-2)
print(fib(9))'''
#--------------->>>>>>>>>... | [
"ec1029231058@gmail.com"
] | ec1029231058@gmail.com |
e788e26f2c6b9a873116b600ce696a4ae6840804 | 6ad15dc96aa9837cb620eeaf56fbb92fa3f98075 | /Cosmo_Maf/Load_X1_C.py | 0230b41c01bd8c06790958b8b9d858dbb0737aa8 | [] | no_license | pgris/SN_Simulation | 56e100d5e12149b48b5e42004b3e767a327b7303 | 279ed244e37a81c52408878fdb63783367baa8d6 | refs/heads/master | 2021-09-12T02:14:04.051412 | 2018-04-13T16:05:35 | 2018-04-13T16:05:35 | 108,561,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,115 | py | import numpy as np
class Load_X1_Color:
def __init__(self,stretch,color,percent=0.95,name_low_z='Dist_X1_Color_low_z.txt',name_high_z='Dist_X1_Color_high_z.txt'):
#print 'alors man',stretch,color
self.name_low_z=name_low_z
self.name_high_z=name_high_z
self.tab=self.Get_X1_Color_Di... | [
"gris@clermont.in2p3.fr"
] | gris@clermont.in2p3.fr |
fd96e32bf7db6694a0f243a5869a17fb1f98af82 | 2b1d533d2ee0d7130ca9f0f58c84864ebf1f4fad | /stonkapi/authentication/migrations/0001_initial.py | f36683a9b13c2a24e6c0d2e52594f842c76705eb | [] | no_license | ohack38/stonkio | 9fb654d0865ad423d334849f2102b38d89d3531a | a3819c1c7826849490625ba75e147b09bbeb407d | refs/heads/main | 2023-03-02T09:01:30.073437 | 2021-02-04T17:26:48 | 2021-02-04T17:26:48 | 315,384,280 | 0 | 0 | null | 2021-02-04T17:26:49 | 2020-11-23T17:04:15 | Python | UTF-8 | Python | false | false | 1,967 | py | # Generated by Django 3.1.3 on 2020-11-26 18:05
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),
]
operations = [
migrations.CreateModel(
name='User',
... | [
"ohackman1@gmail.com"
] | ohackman1@gmail.com |
693dea38ccdfbc2a6a8a08d0676207bd8adf309c | 2f66f3aad39cccce110ba4f2065cb1ccc6131216 | /3/dayThree.py | 06f4c2a77a7b95d47f9e36ec86a65e31e3d356a2 | [] | no_license | BeranekP/advent_of_code | 43e89fd7399396dc9626a701b28b8c981162fd10 | 3b99a2448b383531dc2234cc04c1e67a0e5538ea | refs/heads/master | 2020-09-26T03:57:56.235679 | 2019-12-13T13:23:38 | 2019-12-13T13:23:38 | 226,159,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,678 | py | import matplotlib.pyplot as plt
# open input file a strip newline signs and commas
wires = [line.rstrip('\n') for line in open('input.txt')]
wires = [wire.split(",") for wire in wires]
def calcXY(wire):
""" Calculates coords [X,Y] for each input direction and a number of steps """
wireXY = [[0, 0]]
step... | [
"pavel.beranek@centrum.cz"
] | pavel.beranek@centrum.cz |
60009b93ed10dee11d525edfdb7bbf603119d454 | 2c961f368bb5c4df37f43d8a40399c35ef50b7ea | /config.py | 858ffcbbcb35d3a05e5cc22e72d6688805ffbf6d | [
"MIT"
] | permissive | bestend/kakao_arena-recommendation | b3494db98196c78e6b8b9f81f8b0167c75aeafef | 70f09766fe9d0f7e8267dd5a577f12e26c471d14 | refs/heads/master | 2023-03-31T00:57:23.163823 | 2019-07-24T14:10:29 | 2019-07-24T14:10:29 | 198,434,540 | 2 | 0 | MIT | 2023-03-24T21:57:49 | 2019-07-23T13:18:21 | Python | UTF-8 | Python | false | false | 466 | py | import os
from datetime import datetime
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
RESOURCE_DIR = ROOT_DIR + '/../res/'
CACHE_DIR = ROOT_DIR + '/../cache/'
MAX_USER_SEQUENCE_LEN = 20
MAX_SEARCH_KEYWORD_LEN = 20
ARTICLE_EMBEDDING_SIZE = 200
BEGIN_ARTICLE_TIME = datetime(2015, 1, 1, 0, 0)
END_ARTICLE_TIME =... | [
"infend@gmail.com"
] | infend@gmail.com |
91e61e3f950f46f177a4001f65690a53add7f6f1 | 1765ebc1c393ab4720c5fc5f9397516f5d66cfce | /setup.py | de4fc91885a05f03e2c2bf89d2af47d2323230c1 | [
"MIT"
] | permissive | Lukasa/rproxy | d1db08aa99470c3649258254ead291c6dbd2d202 | c15f9f56608a53db19d4f3737f05dfd02d66bc60 | refs/heads/master | 2020-12-28T22:46:48.225095 | 2016-06-30T08:27:23 | 2016-06-30T08:27:23 | 67,593,070 | 0 | 0 | null | 2016-09-07T09:35:22 | 2016-09-07T09:35:22 | null | UTF-8 | Python | false | false | 502 | py | from setuptools import setup
setup(
name='rproxy',
description='A super simple reverse proxy.',
long_description=open("README.rst").read(),
author='Amber Brown',
author_email='hawkowl@atleastfornow.net',
packages=['rproxy', 'twisted.plugins'],
package_dir={"": "src"},
install_requires=[... | [
"hawkowl@atleastfornow.net"
] | hawkowl@atleastfornow.net |
bbb72ffa923b27d537784da348b18c9fcf06c497 | 44c88063c9768bee3d7c6a01fa571748aec59073 | /scrapy/miao/opendv/opendv/settings.py | 8d7d5207ed637af13cc287af5b619fe130d2419f | [] | no_license | K-G-1/sprider | 0e5b10d61edba1f76e7e6dd936f34caa0a65c8a7 | dd91306d61363421ab5c0ae59565065475fba237 | refs/heads/master | 2021-04-30T14:39:06.061003 | 2018-03-11T13:28:44 | 2018-03-11T13:28:44 | 121,222,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,988 | py | # -*- coding: utf-8 -*-
# Scrapy settings for opendv project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/latest/... | [
"2060713822@qq.com"
] | 2060713822@qq.com |
27e8148639ef3900c658043fd8f3134b0427f2e7 | 47e5ec3519cc913a48604f6974d1ff50512c35ed | /flask_db_view/adoption.py | d2d0b1f26819c55a7044831b98c5029adb76569a | [] | no_license | Tuxaura/flask_example | a3e25a8a6c3a94c3834b7fbaf56a19c7d5273607 | 92a1e374592430d78f72af82323f19550b3644c2 | refs/heads/main | 2023-01-03T23:30:15.785440 | 2020-10-20T03:01:35 | 2020-10-20T03:01:35 | 305,043,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,999 | py | import os
from forms import AddForm, DelForm
from flask import Flask, render_template, url_for, redirect
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
app = Flask(__name__)
app.config['SECRET_KEY'] = 'mysecretkey'
########################################
######## SQLITE DATABASE SECTION #... | [
"bebenx@gmail.com"
] | bebenx@gmail.com |
1899eab304d24281ff12e625cfc407a5a261e1e3 | 0b9503244be5a9ce6478405c20de33843240e51f | /calibrate.py | 7f9c5963edbd6f762a028d4ec4ec5584947b1080 | [] | no_license | ConnorBurnsCoder/3dObjectReconstruction | 216819a0fedc882938a22e8bab8de72d895c3e83 | 05899167262d74bbb3b87a8d05cd05686828f571 | refs/heads/main | 2023-02-17T07:20:19.711157 | 2021-01-17T02:34:15 | 2021-01-17T02:34:15 | 330,282,689 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,383 | py | #
# To run:
#
# Install opencv modules in Anaconda environment:
#
# conda install opencv
# pip install --upgrade pip
# pip install opencv-contrib-python
#
# Run calibrate.py from the commandline:
#
# python calibrate.py
import pickle
import numpy as np
import cv2
import glob
import matplotlib.pyplot as plt
# ... | [
"noreply@github.com"
] | noreply@github.com |
3040eece0cb8864c9e7d39ddab4a66343a0f3988 | 2112e4cfd9568128573098f8e209962002f66a23 | /app.py | 23284a6ccf1befdf6ba398a9fa834d9e7048b7e3 | [] | no_license | amazingguni/stock-trader | 0bd39cce6f6462c9648e3c8b2893b3e8379e37ca | 252c9230885200cfde845f2a03677140564cfc62 | refs/heads/main | 2023-05-05T18:26:04.124690 | 2021-05-30T13:12:58 | 2021-05-30T13:12:58 | 362,616,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,296 | py | from flask import Flask, Response
from flask_login import LoginManager
from flask_cors import CORS
from config import get_config_by_env
from container import Container
from web.admin import admin
from mongodb import db
login_manager = LoginManager()
def create_app():
app = Flask(__name__, template_folder='./w... | [
"amazingguni@gmail.com"
] | amazingguni@gmail.com |
862e1582b1eea05a10d17fec0afe45b0ba83391c | 17e08f795273d6f4233ab440c2706130f6520b58 | /fannypack/utils/_deprecation.py | 9174fd10a6bbb73f059b87105a1183e6c2716f63 | [
"MIT"
] | permissive | HaoWen470/fannypack | db5e6bb670004e470254e1e632899aeec38ee041 | 7e2c949de0e0cac69a95a5a777f8a4b1fa0fc17a | refs/heads/master | 2023-01-03T20:35:35.248848 | 2020-10-31T09:01:01 | 2020-10-31T09:01:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,373 | py | import warnings
from typing import Callable
def deprecation_wrapper(message: str, function_or_class: Callable) -> Callable:
"""Creates a wrapper for a deprecated function or class. Prints a warning
the first time a function or class is called.
Args:
message (str): Warning message.
functio... | [
"yibrenth@gmail.com"
] | yibrenth@gmail.com |
6f376d5a004ec5eee4d889f2bc0c73627de267aa | 5e05992e2b92c7aeb98183814ac75e994a8c1be5 | /Python OSC SENSOR RECIEVE/Phidgets/Phidget.py | 294727d138ef110694b5e802f7c587fd00b61b40 | [] | no_license | tijmenvangurp/Glow-festival-code | 2cf383b0d030ea78ad67c40042c0691e016b2dbf | b9e51a8ae74e0353e8a84088e8e01a8b3d6e267c | refs/heads/master | 2021-01-21T02:00:19.470907 | 2015-04-10T08:30:35 | 2015-04-10T08:30:35 | 33,717,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42,346 | py | """
Copyright 2010 Phidgets Inc.
This work is licensed under the Creative Commons Attribution 2.5 Canada License.
To view a copy of this license, visit http://creativecommons.org/licenses/by/2.5/ca/
"""
from Phidgets import PhidgetException
__author__ = 'Adam Stelmack'
__version__ = '2.1.8'
__date__ = 'May 17 2010'
... | [
"tijmenvangurp@gmail.com"
] | tijmenvangurp@gmail.com |
279cb2ad93e730ca5ab7226c3892dc7e540539d1 | 19a3342618f008f1607617a7c816ba0072010ee6 | /truth_teller/easy_first/linux_python/bin/idle | 68a47b934072fb7f8067d9e574ede1c160476011 | [
"MIT"
] | permissive | gabrielStanovsky/unified-factuality | 9c72d89eff80d933f384ae3254b9a20e14bddee4 | 869fd23ec8fe71ab2b9f30389018615932d27cde | refs/heads/master | 2021-03-22T05:15:41.191073 | 2017-12-11T12:59:49 | 2017-12-11T12:59:49 | 88,627,892 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 99 | #!/usr/local/bin/python2.7
from idlelib.PyShell import main
if __name__ == '__main__':
main()
| [
"gabriel.satanovsky@gmail.com"
] | gabriel.satanovsky@gmail.com | |
9297cbb7a505e0c7a50a1da2c83a5bfeeba64abb | d1e90cae0562e9e14876309912f59b6855d91e64 | /app/lib/python3.7/site-packages/quart/static.py | 2a62574ce60fa687ae6f03a964ac5eb4502f4dba | [] | no_license | FoolForCS/sample-server | 518fb55c6b87ecb3f8be5e9a4184a6e90fd4932d | 9499c8820ae4043959894f077101c174f57890e6 | refs/heads/master | 2020-05-18T11:16:51.651490 | 2019-05-05T18:39:22 | 2019-05-05T18:39:22 | 184,372,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,795 | py | import mimetypes
import os
import pkgutil
import sys
from datetime import datetime, timedelta
from pathlib import Path
from typing import AnyStr, IO, Optional
from zlib import adler32
from jinja2 import FileSystemLoader
from .exceptions import NotFound
from .globals import current_app, request
from .typing import Fil... | [
"siddhantsharan@MacBook-Pro-4.Dlink"
] | siddhantsharan@MacBook-Pro-4.Dlink |
6185c4ee4b791c20f5d13010e878886cc6615246 | 59063718a915ea1be886b927bc469efdf6b2786d | /samples/python/02.echo-bot/envs/chat_bot_02/Lib/site-packages/msal/oauth2cli/assertion.py | e84400df0bed3c62883ea5c08118322fa43c6fc8 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | luzeunice/BotBuilder-Samples | 665a397e79785b5fabfa0282ea2abb302182db48 | b62be4e8863125a567902b736b7b74313d9d4f28 | refs/heads/master | 2022-12-01T01:39:41.911152 | 2020-08-15T00:26:00 | 2020-08-15T00:26:00 | 287,571,525 | 0 | 0 | MIT | 2020-08-14T15:59:01 | 2020-08-14T15:59:00 | null | UTF-8 | Python | false | false | 4,660 | py | import time
import binascii
import base64
import uuid
import logging
import jwt
logger = logging.getLogger(__name__)
class AssertionCreator(object):
def create_normal_assertion(
self, audience, issuer, subject, expires_at=None, expires_in=600,
issued_at=None, assertion_id=None, **kwargs)... | [
"53527436+LuzEuniceTec@users.noreply.github.com"
] | 53527436+LuzEuniceTec@users.noreply.github.com |
78bd3bce57cbbfad6500ce8bde3647b2e9309e76 | b4112069bf02c51a70171470b783b54edb7adbc8 | /cli/app/indexes/faiss_index.py | 071cc799218237956811f846b94ac9664e8703de | [] | no_license | breezykermo/vframe_search | 41325850a56318ff26c646b426a4bae143491294 | 7dc2c9c97e1ef69ae42c6c1c60d957968dc2f491 | refs/heads/master | 2020-08-09T02:26:42.131057 | 2019-10-14T11:55:08 | 2019-10-14T11:55:08 | 213,977,612 | 1 | 0 | null | 2019-10-14T11:55:09 | 2019-10-09T17:11:11 | null | UTF-8 | Python | false | false | 1,878 | py | """FAISS index can use PCA to reduce file size but runs in-memory"""
import os
import numpy as np
import faiss
from app.settings import app_cfg
class FAISSIndex:
def __init__(self, feature):
self.feature = feature
self.model_cfg = app_cfg.MODELZOO_CFG.get(feature.modelzoo_name)
self.recipe = self.featu... | [
"julescarbon@gmail.com"
] | julescarbon@gmail.com |
142144690c9bc570f2e861f2640f4b323329a7cc | b8f5cd64c19a16718f54f7cc1af047f5a1573dba | /policy/policy/asgi.py | f3d60ef03da070af178a0d538d72ca1426676a8b | [] | no_license | nimesh03/stockguard_quote | 1df5e2fad866e3ea57f7b105c3e3522a47854791 | e9a13c240b33a2a82e4d0186ce667039f18d290d | refs/heads/main | 2023-01-07T14:58:44.511109 | 2020-11-02T16:02:18 | 2020-11-02T16:02:18 | 309,235,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
ASGI config for policy 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.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"nimesh19@hotmail.ca"
] | nimesh19@hotmail.ca |
0ea336d1bed70a132a1e8766836314253ea5c079 | 4433b1b3157275caa9ef667939ad7b24217df316 | /week1/thefirst_week/week4/unique_people.py | b574adbbef94b7f9cac0b19b4782aa811e460a86 | [] | no_license | Gabrielganchev/Programming0 | b8bf65014d01cc2d6e609332ff9beb527958b0bc | 249e14ba4194bab4be9938784d9c6f181985e1eb | refs/heads/master | 2016-08-07T15:34:19.874951 | 2015-05-14T17:26:05 | 2015-05-14T17:26:05 | 35,138,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | def get_people_count(activity):
counted_people = []
for person in activity:
if person not in counted_people:
counted_people += [person]
return len(counted_people)
print(get_people_count(["Rado", "Ivo", "Maria", "Anneta", "Rado", "Rado", "Anneta", "Ivo", "Maria", "Rado"]))
| [
"gabriel_ganchev@abv.bg"
] | gabriel_ganchev@abv.bg |
7493629d6e1853839179716db93c9a7fcec7dbf8 | 42c48f3178a48b4a2a0aded547770027bf976350 | /google/ads/google_ads/v5/proto/resources/customer_negative_criterion_pb2.py | a77e1ccec1e3bee71b3e49346e6e67070a3c1c2b | [
"Apache-2.0"
] | permissive | fiboknacky/google-ads-python | e989464a85f28baca1f28d133994c73759e8b4d6 | a5b6cede64f4d9912ae6ad26927a54e40448c9fe | refs/heads/master | 2021-08-07T20:18:48.618563 | 2020-12-11T09:21:29 | 2020-12-11T09:21:29 | 229,712,514 | 0 | 0 | Apache-2.0 | 2019-12-23T08:44:49 | 2019-12-23T08:44:49 | null | UTF-8 | Python | false | true | 14,503 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads_v5/proto/resources/customer_negative_criterion.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflect... | [
"noreply@github.com"
] | noreply@github.com |
98585d037823bca9246c3776455ace23f0a0afed | 0f52b2074afa3f1a99942ad5473da3786bf4f4cf | /distributed_systems/lab1/example/send.py | 9118cd99af10b6d6cc1b8640152c6da821282a30 | [] | no_license | pokachopotun/msu_m118_ivanov | 350a5f9000565a1b3739b6ffcd4ec7c68150cf78 | 2a58e006c174f59b94e2b4582943ebf3adc4a9bd | refs/heads/master | 2022-12-12T22:44:13.440398 | 2020-09-04T10:08:07 | 2020-09-04T10:08:07 | 149,507,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | import pika
if __name__ == "__main__":
connection = pika.BlockingConnection(pika.ConnectionParameters('localhost'))
channel = connection.channel()
channel.queue_declare(queue='hello')
channel.basic_publish(exchange='', routing_key='hello', body='hello_world')
print("message sent")
connection.cl... | [
"mr.salixnew@gmail.com"
] | mr.salixnew@gmail.com |
dfca92b9a02a0b34ddb02223c46fc05f0ac34303 | e35fd52fe4367320024a26f2ee357755b5d5f4bd | /leetcode/problems/434.number-of-segments-in-a-string.py | 229c119643f381afef999ff54714d595c048b7dc | [] | no_license | liseyko/CtCI | a451967b0a0ce108c491d30b81e88d20ad84d2cd | c27f19fac14b4acef8c631ad5569e1a5c29e9e1f | refs/heads/master | 2020-03-21T14:28:47.621481 | 2019-11-12T22:59:07 | 2019-11-12T22:59:07 | 138,658,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | #
# @lc app=leetcode id=434 lang=python3
#
# [434] Number of Segments in a String
#
# https://leetcode.com/problems/number-of-segments-in-a-string/description/
#
# algorithms
# Easy (37.34%)
# Total Accepted: 64.1K
# Total Submissions: 171.8K
# Testcase Example: '"Hello, my name is John"'
#
# Count the number of se... | [
"liseyko@gmail.com"
] | liseyko@gmail.com |
d6acdc7be6d3ca9573b4e644b7cbbb548f5f5d26 | 90aabfcae85240357345ef6def635fc0fa2e990f | /scripts/ComputeFRAC.py | e3f1f4157133266dd8e19bc8b0465dc7011dc5f1 | [] | no_license | kingsfordgroup/sailfish-paper | d612d7be62b25bcc4ec8d74da42fb6a4861869da | b53d2477d6b1312596b72cb3f6ed89d224891f80 | refs/heads/master | 2021-01-19T07:35:32.894403 | 2013-12-13T06:12:31 | 2013-12-13T06:12:31 | 15,155,029 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,188 | py | import sys
import argparse
def main(args):
# The input is assumed to be 3 columns and of the form:
# name length expression
# the last column should be convertable to a float.
exps = None
try:
exps = [ (l.split()[0], float(l.split()[1]), float(l.split()[2])) for l in args.infile]
... | [
"rob.patro@gmail.com"
] | rob.patro@gmail.com |
981d2629bcdcab88cf240a91cd7b473f19cf401f | 3d8ac3725161b351f98003faa50e6290ef821f0a | /bte_project/btre/settings.py | 27e44b451edf051a27514d84c9bdf551288262ed | [] | no_license | jiachengli1999/learn_django | 5f49506e240766bbe2a05e17edceb3c64990ddac | 893192f577964586eed0fa5ed0442372c5714d88 | refs/heads/master | 2020-06-07T09:07:48.453407 | 2019-01-10T18:22:14 | 2019-01-10T18:22:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,924 | py | from django.contrib.messages import constants as messages
"""
Django settings for btre project.
Generated by 'django-admin startproject' using Django 2.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.d... | [
"ozalkhan196@gmail.com"
] | ozalkhan196@gmail.com |
3220349f7f91d774a0ba432392d7d9c9850ff482 | 6cb1b63846e818255945cdf1e8faf4f3e353c735 | /venv/datafountain/guangfudianzhan/rnn_model.py | 87c3ca177a47ced431bdc18c4103bd73cbabe8f0 | [] | no_license | LuckyHandsomeCat/deep_learning | 3eb2bec1133f8e547436a8625b40e8bfa8bc7572 | 8c37912069a06a58f80034fe1be7ba5fbc0865d4 | refs/heads/master | 2020-08-08T02:50:10.278517 | 2018-11-30T11:11:34 | 2018-11-30T11:11:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,208 | py | #!/usr/bin/env python3
# -*-coding:utf8 -*-
# @TIME :2018/6/21 下午1:27
# @Author :hwwu
# @File :PricePredictor.py
import codecs
import matplotlib.pyplot as plt
import numpy as np
import tensorflow as tf
import pandas as pd
class PricePredictor:
# lstm param
timeStep = 19
hiddenUnitSize = 38 # 隐... | [
"wuhongwei@videopls.com"
] | wuhongwei@videopls.com |
d14d8e86f2e15d90eda2d0d0d8abdf5f9dbfa243 | 4c0c9fff693c9af77277347e680cd29881f712e2 | /person_group_delete.py | a144b2abb8cce9614393246c9c6a5a77d8bc7eb8 | [
"MIT"
] | permissive | akash0905/Microsoft_Cognative_service_Face_API | 59bd73e19647d7075ccf32f642bdfe83fd999aac | 24671ffeff1b175372020468ae60dc73908f8582 | refs/heads/master | 2022-12-26T20:52:48.070930 | 2020-10-01T05:55:21 | 2020-10-01T05:55:21 | 300,162,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 681 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Dec 30 21:21:10 2019
@author: AKASH DIXIT
"""
import http.client, urllib.request, urllib.parse, urllib.error
subscription_key = 'xxxxxxxxxxxxxxxxxxxxxxxxx'
headers = {
# Request headers
'Ocp-Apim-Subscription-Key':subscription_key
}
params = urllib.parse.urlencode... | [
"noreply@github.com"
] | noreply@github.com |
3dcb6a3fba7b2c2c8998314caf270f7dc4b3d69c | 824f19d20cdfa26c607db1ff3cdc91f69509e590 | /TopInterviewQuestions/LinkedList/01-Delete-Node.py | e8cc4b8ff1bfc6f65dfa58aa9f76058738818e2a | [] | no_license | almamuncsit/LeetCode | 01d7e32300eebf92ab54c983de6e183242b3c985 | 17aa340649574c37067ec170ceea8d9326be2d6a | refs/heads/master | 2021-07-07T09:48:18.069020 | 2021-03-28T11:26:47 | 2021-03-28T11:26:47 | 230,956,634 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def deleteNode(self, node):
while node.next.next:
node.val = node.next.val
node = node.next
node.val = node.next.val... | [
"msarkar.cse@gmail.com"
] | msarkar.cse@gmail.com |
9390ec85b5042809b379ae4dd1ec5c0551bc8d16 | 00f41859a0deb3e96a7f89c65f904f9c29ff787f | /custom_storages.py | 8f3721c358182b42d75ad40c0d2c27e376fae1fa | [] | no_license | DelroyBrown28/FryedProject | 5d226e7c5cc13a4f90f56c3a57f7ad6c3ae8eadc | 12cb438bcb560499eb43976ec8f4d44759af824a | refs/heads/main | 2023-01-13T10:58:26.396033 | 2020-10-30T20:07:52 | 2020-10-30T20:07:52 | 308,069,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | from django.conf import settings
from storages.backends.s3boto3 import S3Boto3Storage
class StaticStorage(S3Boto3Storage):
location = settings.STATICFILES_LOCATION
class MediaStorage(S3Boto3Storage):
location = settings.MEDIAFILES_LOCATION
| [
"Delroy_jb@hotmail.co.uk"
] | Delroy_jb@hotmail.co.uk |
60c586549370e3fbb1ebd8bbe3f0cd9caba71e15 | 3f29503e6d776ef0914217b1c922f4bc78af4fdd | /13.HASH MAP/1338_Reduce Array Size to The Half_MED/solution.py | 8a43eec458a5c93f42b5aa20c4251801a04035a9 | [] | no_license | kimmyoo/python_leetcode | cd4ff3c4f6d190840bbf5fb9acdca2b92554a6fa | 813235789ce422a3bab198317aafc46fbc61625e | refs/heads/master | 2023-08-16T07:36:38.688871 | 2023-08-15T22:38:00 | 2023-08-15T22:38:00 | 132,544,297 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | class Solution(object):
def minSetSize(self, arr):
"""
:type arr: List[int]
:rtype: int
"""
half = len(arr)/2
d = collections.Counter(arr)
c = d.values()
c.sort(reverse=True)
if max(c) >= half:
return 1
begin, end = 0, 1
... | [
"kimmyoo@gmail.com"
] | kimmyoo@gmail.com |
58164113ee9263b740a498ee50b571ca868e923c | 1d14e9d0aac0c9a439808c4f765fe1f39bb2c07a | /towhee/tests/mock_operators/cv2_decoder/cv2_decoder.py | 03599b052376c4a28851d8e1e898fa006d72da36 | [
"Apache-2.0"
] | permissive | NbnbZero/towhee | 35b17b0075ea830114224548e151c5c1c39b8e80 | 37e5c82bb139cb056a038ebc9f5723a8adcc954e | refs/heads/main | 2023-08-29T15:20:36.188522 | 2021-10-27T07:34:28 | 2021-10-27T07:34:28 | 385,546,940 | 1 | 0 | Apache-2.0 | 2021-07-13T09:21:15 | 2021-07-13T09:21:15 | null | UTF-8 | Python | false | false | 1,375 | py | # Copyright 2021 Zilliz. 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 agree... | [
"noreply@github.com"
] | noreply@github.com |
b737b31bed3d603c622f9944ac103af3aedce653 | d3d4af6651c7138f9ce32ddbe95f7a6e00621398 | /small_apps/shadowsocks/test.py | 35d3fafa5c2ad7d81506c7719f12a6ce65d67835 | [] | no_license | mitnk/stuff | 13fdb6a77443e923a9cf55d0a02f405c839b204a | 0ae1d2adbcd28897277ad67bcf02997f428c0b97 | refs/heads/master | 2020-06-26T17:02:10.341565 | 2013-10-22T01:10:48 | 2013-10-22T01:10:48 | 2,129,379 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,210 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import select
import struct
import hashlib
import string
from subprocess import Popen, PIPE
target1 = [
[60, 53, 84, 138, 217, 94, 88, 23, 39, 242, 219, 35, 12, 157, 165, 181, 255, 143, 83, 247, 162, 16, 31, 209, 190,
171, 115, 65, 38, 41, 21, ... | [
"whgking@gmail.com"
] | whgking@gmail.com |
bc17a9d243eee1fad950c7533e64a53420bef524 | 63c446e6ca949540d96bb8ebaecb48d68d6f933e | /evaluation.py | 67d5454dc5faa2019f32b91a850886f69ff4226e | [] | no_license | scott-mao/MMNet | 5dcb54aa26f483a474c4909fa27c6061c6540af5 | 29a39094d5ff8ee1ae24e09d22b77b6fa92d3fa2 | refs/heads/main | 2023-03-26T09:03:17.103023 | 2021-03-29T01:39:45 | 2021-03-29T01:39:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,828 | py | import torch
import torch.nn.functional as F
from torch.autograd import Variable
import numpy as np
from math import exp
from math import log10
def gaussian(window_size, sigma):
gauss = torch.Tensor([exp(-(x - window_size // 2) ** 2 / float(2 * sigma ** 2)) for x in range(window_size)])
return gauss / gauss.s... | [
"anchen@mail.ustc.edu.cn"
] | anchen@mail.ustc.edu.cn |
3b603298800ea6f63d1d96d118d1723a81b7ee5d | c938d327ae20123ae0947e8f0a14e295bf93ed4e | /virtual/bin/sqlformat | 1c8fd84119a939063491ebcf81c981ad76ca49de | [
"MIT"
] | permissive | Kennedy-karuri/Awards | 54a4c5ef975cfb7fb757f56eee449cd5b850aa8d | 833ecad6e9d491a10b61a733a4c2f0b31d0b8b00 | refs/heads/master | 2023-02-28T09:35:21.111483 | 2021-01-26T23:22:19 | 2021-01-26T23:22:19 | 332,387,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | #!/home/moringaaccess/Desktop/awards/virtual/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"kennkaruri99@gmail.com"
] | kennkaruri99@gmail.com | |
a2bd66f70a6a7d7e1b9e8f3c16a7f2d37623a9d3 | 7ed4a49fd0906ed156c1846c9c9fc1dd94c47303 | /torch/ao/quantization/_pt2e/quantizer/qnnpack_quantizer.py | 10880f20705bdbe4aa55d8602e9370acf9c72230 | [
"BSD-2-Clause",
"LicenseRef-scancode-secret-labs-2011",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | XinYao1994/pytorch | e052f2f44acf623da9d5ebc6b46f68311e73d66a | 351c2ea2fbb09add93980e2942435f31b114047c | refs/heads/master | 2023-05-27T17:20:51.876780 | 2023-05-21T06:31:53 | 2023-05-21T06:31:53 | 153,064,994 | 1 | 0 | null | 2018-10-15T06:42:28 | 2018-10-15T06:42:28 | null | UTF-8 | Python | false | false | 25,134 | py | from __future__ import annotations
import copy
import functools
import operator
from typing import Callable, Dict, List, Optional, Set
import torch
import torch._dynamo as torchdynamo
import torch.nn.functional as F
from torch.ao.quantization._pt2e.quantizer.utils import (
get_act_obs_or_fq_ctr,
get_bias_obs... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
c8aa00a8afba3954be9744854afed97a99745d3f | 75dcb56e318688499bdab789262839e7f58bd4f6 | /_algorithms_challenges/codewar/_Codewars-Solu-Python-master/src/kyu7_Linked_Lists-Move_Node.py | 4367bf1aeaa9de6050ecb664223c5ff2f974bf3a | [] | no_license | syurskyi/Algorithms_and_Data_Structure | 9a1f358577e51e89c862d0f93f373b7f20ddd261 | 929dde1723fb2f54870c8a9badc80fc23e8400d3 | refs/heads/master | 2023-02-22T17:55:55.453535 | 2022-12-23T03:15:00 | 2022-12-23T03:15:00 | 226,243,987 | 4 | 1 | null | 2023-02-07T21:01:45 | 2019-12-06T04:14:10 | Jupyter Notebook | UTF-8 | Python | false | false | 2,573 | py | class Node(object):
def __init__(self, data):
self.data = data
self.next = None
class Context(object):
def __init__(self, source, dest):
self.source = source
self.dest = dest
class Solution():
"""
https://www.codewars.com/kata/linked-lists-move-node
Linked Lists ... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
5ca7cdea99f9f57fb931b9a94a17fc8138cf99c6 | 422950c243e556871090afe43335c9a3f53e0fbb | /exploit/cms_discuzx_3_2_authority_bypass.py | 08d06e64e926858c9154de642734f0e7d021b3eb | [] | no_license | wooluo/pentestdb | f08bca698c3759e98b7fec2abb88a5244402cca7 | 8390df27c81c86af02ceee88605b758ca34b7878 | refs/heads/master | 2021-01-24T11:44:27.417739 | 2016-03-28T11:22:29 | 2016-03-28T11:22:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,290 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
'''
Pentestdb, a database for penetration test.
Copyright (c) 2014-2015 alpha1e0
'''
from script.exploit import Exploit, Result
class DiscuzAB(Exploit):
expName = u"DiscuzX 3.2绕过虚拟币支付查看内容"
version = "1.0"
author = "alpha1e0"
language = "php"
appName = ... | [
"yan.shifm@foxmail"
] | yan.shifm@foxmail |
07e5d9d0336c5ab60bb5a0c99ec81e75395d56d4 | b0dcee45a111e08f5cbbb9b1aacf2279b93a65dc | /ic3/ic3onz3/pdr_primary/test.py | f610d0514804495c3169c616d09c4d42bad02517 | [] | no_license | bacmive/paper_notes | 150a38779c13fe329cc6a309476ebac06348bc0e | 09687a23e6eff57c551e68bcb21ac5f198fae73a | refs/heads/master | 2023-02-20T20:06:19.755804 | 2021-01-03T04:25:17 | 2021-01-03T04:25:17 | 298,745,191 | 0 | 0 | null | 2021-01-03T04:25:19 | 2020-09-26T05:36:20 | Python | UTF-8 | Python | false | false | 4,551 | py | #!/usr/bin/python
from z3 import *
from pdr import PDR
def MutualExclusive():
len_inp = 7
len_var = 9
i2 = Bool('i2')
i4 = Bool('i4')
i6 = Bool('i6')
i8 = Bool('i8')
i10 = Bool('i10')
i12 = Bool('i12')
i14 = Bool('i14')
primary_inputs = [i2, i4, i6, i8, i10, i12, i14]
l16 = Bool('l16')
l18 = Bool('l18'... | [
"bacmive@sohu.com"
] | bacmive@sohu.com |
3665a02e2a26c184c4a4374e80fbd581e6dd5ba5 | 80e19038a65c64532fd986278a78cead0865d0b8 | /amelethdf-python/branches/nathanael/src/amelethdf/node/node_hdf.py | f43e34a6da904176a6365bb22921ea4cf62dac62 | [] | no_license | ThinkManhattan/amelet-hdf | 6470c6d5b5dcc47863d9bceb85df46882f8a1861 | de850be54b5f5782d73f6481279db9db1ab18360 | refs/heads/master | 2020-05-18T01:06:13.821829 | 2015-02-10T12:28:03 | 2015-02-10T12:28:03 | 35,437,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,988 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Created on 15 févr. 2010
@author: nathanael
'''
from tables import openFile
from amelethdf.path import join, isabs, splits, split
from amelethdf.tree_print import TreeLink, TTL_G
__all__ = ['openHDF', 'HDFNode', 'HDFNodeError']
class HDFNodeError(Exception): pass... | [
"nathanael.muot@24d24c72-a858-11de-8ba5-91705c1537ed"
] | nathanael.muot@24d24c72-a858-11de-8ba5-91705c1537ed |
8c7e85117d674c5159d064fd0a355713d7d0a090 | 883f57bab7a14102e31a710e226560dc1d251201 | /handlers/deviantart.py | a43da285f78853f9144ce29a0ce256e7cdaa3d54 | [] | no_license | Syfaro/Mirror-Bot | 1d66fa397b75272c89d6626073a3a117eae93ad8 | c97c696a8d38688a93f52051d32ffd1008c6de6a | refs/heads/master | 2016-09-05T17:24:29.046727 | 2014-04-11T03:07:04 | 2014-04-11T03:07:04 | 18,151,878 | 2 | 0 | null | 2014-04-11T03:07:04 | 2014-03-26T19:58:39 | Python | UTF-8 | Python | false | false | 383 | py | import requests
def deviantart(thing, config):
"""
handler for deviantart.com
"""
api_url = "http://backend.deviantart.com/oembed?url={}".format(thing.url)
post = requests.get(api_url).json()
image = post['url']
title = post['title']
author = post['author_name']
response = {'link': image, 'author': auth... | [
"kleptocis@gmail.com"
] | kleptocis@gmail.com |
01ecbd52726c167dca208300c5454339f0b8a5f8 | a922e0cb9185c24cd038919ff66fe8b1ca04cc45 | /python project/Source/tra_gen.py | e6cd7c85c313d6aca94c3bb46d933d0e4d542a4b | [] | no_license | teja2609/Python- | 2115a7e2060e28f6ee40791ec37495fcd353b319 | 891a0e4e5a3fb54ecdf8afc1f9d21ae3d2a51099 | refs/heads/master | 2021-01-08T19:03:08.046321 | 2019-02-09T00:59:02 | 2019-02-09T00:59:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,073 | py | import cv2
import glob
import numpy as np
import random
#initilaizing fisherface recognizer
fisherface = cv2.face.FisherFaceRecognizer_create()
def getfiles(gender, training_size):
#loading the dataset
file = glob.glob("E:\\cropped_faces\\{0}\\*" .format(gender))
random.shuffle(file)
train = file[:int... | [
"hjddh@mail.umkc.edu"
] | hjddh@mail.umkc.edu |
22ffd2e231fb963244be54d1406be85b8e6a2fad | 08bcc0fd0209a190444a516745d656438e15d096 | /app/profiles_api/views.py | 32572207f0aa3a58f14576e25464ffbe9952654a | [
"MIT"
] | permissive | ckilcioglu/profiles-rest-api | f0ce3ffeeac95f78b992c9ba2f0dfc97eba8f58d | c728959a4a03ff574c0898ae702f399e58705472 | refs/heads/main | 2021-12-04T07:31:35.455208 | 2021-09-15T13:33:20 | 2021-09-15T13:33:20 | 237,062,815 | 0 | 0 | MIT | 2021-06-10T19:43:28 | 2020-01-29T19:18:06 | Python | UTF-8 | Python | false | false | 6,782 | py | from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
from rest_framework import viewsets
from rest_framework.authentication import TokenAuthentication
from rest_framework import filters
from rest_framework.authtoken.views import ObtainAuthToken
from res... | [
"ckilcioglu@gmail.com"
] | ckilcioglu@gmail.com |
202dca8ab3b08386832090e04de47e161cbdd4e6 | 135807a198ae54d6560a76a0739773b37a59afa5 | /Social Learning in learning by doing process.py | 36a832cac7b580a941f2e4df4ab13b8dc05d9d36 | [] | no_license | sanghyunpark4/Social-Learning-and-SCBB | 7315201320a98cfc0c0a7c793c928ae88e4cb716 | 79fb84efd1505aedaa4f2a7f6b9dc2076f31e789 | refs/heads/main | 2023-01-19T22:24:57.518533 | 2020-11-23T07:17:05 | 2020-11-23T07:17:05 | 315,229,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,830 | py | # Social learning and SCBB in learning by doing process Ver 1.0
# Importing modules
# from IPython import get_ipython
# get_ipython().magic('reset -sf')
import math
import random
import numpy as np
import matplotlib.pyplot as plt
import csv
import datetime
STARTINGTIME = datetime.datetime.now().replace(mi... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.