blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1381ca116c99cc6ea7e9337e43bb5944241029d8 | fd5b8eb6894f51e17f9d918fb8166162832c36fe | /norix/pipelines.py | a342c2a7ebeb241243985a04c1628472009cf86c | [
"Unlicense"
] | permissive | busla/norix-scraper | 608d2c912ff18c7d7fbe98364b378f10c1281a93 | 994c23865039eaa949089b680c881697cb504eb8 | refs/heads/master | 2020-12-03T05:10:51.615201 | 2015-10-01T13:48:14 | 2015-10-01T13:48:14 | 33,375,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,420 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
import pymongo
from norix.items import *
from scrapy.conf import settings
from scrapy.exceptions import DropItem
from scrapy im... | [
"nonni@nonni.cc"
] | nonni@nonni.cc |
fe737470b74d64cbc5ac466cb42e40ada5666b32 | ee295a3f82f22d27f2aa4e9697eefa38d3660bd1 | /coaches/admin.py | c19ebc5d96cd0347d47c588adf3e64d086a63396 | [] | no_license | OlgaChe/pybursa | d8373c730f5384458f402483a82318ee2d967b4b | 5acd1645248444da65f4bc4330f5ea60e4e92c58 | refs/heads/master | 2020-12-11T07:40:24.542960 | 2015-01-11T16:31:09 | 2015-01-11T16:31:09 | 28,009,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | from django.contrib import admin
from coaches.models import Coach
@admin.register(Coach)
class CoachAdmin(admin.ModelAdmin):
list_display = ['name','surname', 'email', 'phone']
radio_fields = {'job': admin.HORIZONTAL, 'dossier': admin.HORIZONTAL}
save_as = True
save_on_top = True
| [
"olgache73@gmail.com"
] | olgache73@gmail.com |
ef671cbf550f126fb9ae19a992829f6fc521cdc6 | a71582e89e84a4fae2595f034d06af6d8ad2d43a | /tensorflow/compiler/tests/while_test.py | 15a31111cb6b51f6d6e501b86d906d9ba53d1c22 | [
"Apache-2.0"
] | permissive | tfboyd/tensorflow | 5328b1cabb3e24cb9534480fe6a8d18c4beeffb8 | 865004e8aa9ba630864ecab18381354827efe217 | refs/heads/master | 2021-07-06T09:41:36.700837 | 2019-04-01T20:21:03 | 2019-04-01T20:26:09 | 91,494,603 | 3 | 0 | Apache-2.0 | 2018-07-17T22:45:10 | 2017-05-16T19:06:01 | C++ | UTF-8 | Python | false | false | 9,093 | py | # Copyright 2018 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... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
b20d92f82601082dd870674fcdda146fed234b4b | 36eb5d43686264e110f0aa6f23ffc725076a067a | /train_exp.py | 39312b4a0240b04d70346fbc1a993bf81b29cfcd | [] | no_license | samsdimko/SMOMI5 | 16edb9535af1759baf5338ea5fad52e4202704cf | 21fde8714e5493addb85f8c9bacdeef2bde2e2a6 | refs/heads/master | 2022-04-21T02:30:32.936304 | 2020-04-21T16:54:38 | 2020-04-21T16:54:38 | 257,272,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,423 | py | """This module implements data feeding and training loop to create model
to classify X-Ray chest images as a lab example for BSU students.
"""
__author__ = 'Alexander Soroka, soroka.a.m@gmail.com'
__copyright__ = """Copyright 2020 Alexander Soroka"""
import argparse
import glob
import numpy as np
import tensorflow a... | [
"noreply@github.com"
] | samsdimko.noreply@github.com |
640f0ac472579660bb1ca6b5856e1f775e2eda85 | 397e125e94f4f139f2bf5055824d81f24b8b1757 | /ABC/011/next_month.py | 2377071939fa14fe0e525012aedc43caaa3a7802 | [] | no_license | tails1434/Atcoder | ecbab6ee238e3f225551297db961b1b502841fa4 | e7c7fed36be46bbaaf020a70997842240ba98d62 | refs/heads/master | 2021-07-07T00:31:49.235625 | 2020-09-30T01:42:01 | 2020-09-30T01:42:01 | 189,009,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | N = int(input())
if N == 12:
print(1)
exit()
print(N + 1) | [
"sososo1333@gmail.com"
] | sososo1333@gmail.com |
17b1c73deb8173d4bb2d925572a319123a08f653 | 4afaca0d5f87ec6eb7c04f4decba5d3a0deb0cd5 | /contact/migrations/0001_initial.py | d42dbc5fc658c00682f7b070050fc8211c165799 | [] | no_license | royell1415/mandala | 9cb84f093d72ebf0faabac83e255095c8b3c3ce6 | 8e1dfb1f756d19cc7f324c3372b7e74a39cacabe | refs/heads/master | 2022-11-09T22:45:39.841677 | 2020-06-26T10:05:58 | 2020-06-26T10:05:58 | 275,124,698 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | # Generated by Django 3.0.7 on 2020-06-21 07:54
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Contact',
fields=[
('id', models.AutoField(... | [
"royell1415@gmail.com"
] | royell1415@gmail.com |
5529c55961a948d29b811b913d32cdb0d55b2f3a | c1dab6818d05c52bdc0347150ce700a73d64fa1d | /build/realsense/realsense-2.2.0/realsense2_camera/cmake/realsense2_camera-genmsg-context.py | 6e81dfdd7ec6dfc93ef19b8847ffe4d715d317f0 | [] | no_license | Sinchiguano/Perception_ur10 | de5ee83f6e930679c045f96d4d3b6a87caeab452 | 40f18dc771bdcc4372d784f4aa8261774bab2b2a | refs/heads/master | 2022-02-16T05:38:00.578173 | 2019-09-01T15:16:11 | 2019-09-01T15:16:11 | 194,514,569 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/casch/ws_moveit/src/realsense/realsense-2.2.0/realsense2_camera/msg/IMUInfo.msg;/home/casch/ws_moveit/src/realsense/realsense-2.2.0/realsense2_camera/msg/Extrinsics.msg"
services_str = ""
pkg_name = "realsense2_camera"
dependencies_str = "sensor... | [
"cesarsinchiguano@hotmail.es"
] | cesarsinchiguano@hotmail.es |
74a69ff594bc5636f84fca27064f3a1d41602740 | cc284bd22cad0552bf306e4d4f4dc3ca39ddbe61 | /anderson.py | e3d2e0f35c53475f7a604200dd09078b4d938bbb | [
"MIT"
] | permissive | afcarl/BFS_Sequences | d97dadcc59a419e5bb0992bf1708de69312e9e5b | 75d8ecaedc2050ede120015d8a4b17ed72276ded | refs/heads/master | 2020-08-22T15:16:29.796535 | 2019-06-25T18:02:56 | 2019-06-25T18:02:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 930 | py | #!/usr/bin/env python
# coding: utf-8
# Anderson Darling
# use future imports for python 3.x forward compatibility
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
# other imports
import math
import numpy
import random
def _phi(x):
'Cumulative distrib... | [
"fja0568@gmail.com"
] | fja0568@gmail.com |
eb0e4c2d2bd361697b98bb51b25ba54661c9b5dd | 2031771d8c226806a0b35c3579af990dd0747e64 | /pyobjc-framework-Cocoa/PyObjCTest/test_cfattributedstring.py | e11d40062532f71cdc30338ac39d3f6dc3c7a7a0 | [
"MIT"
] | permissive | GreatFruitOmsk/pyobjc-mirror | a146b5363a5e39181f09761087fd854127c07c86 | 4f4cf0e4416ea67240633077e5665f5ed9724140 | refs/heads/master | 2018-12-22T12:38:52.382389 | 2018-11-12T09:54:18 | 2018-11-12T09:54:18 | 109,211,701 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,680 | py | from PyObjCTools.TestSupport import *
from CoreFoundation import *
from Foundation import NSCFAttributedString
class TestAttributedString (TestCase):
def testTypes(self):
try:
NSCFAttributedString = objc.lookUpClass('__NSCFAttributedString')
except objc.error:
NSCFAttribut... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
0b298d38894ef425ad1305607c706ac8c1028a1c | 5168da0fb501135a3c86e4e95679f54a825d69d0 | /openquake/hazardlib/gsim/nshmp_2014.py | 7414d27cba6bcacae5529a8212acc10c9591c0e2 | [
"BSD-3-Clause",
"AGPL-3.0-only"
] | permissive | GFZ-Centre-for-Early-Warning/shakyground | 266b29c05ea2cfff6d9d61f21b5114282c6fa117 | 0da9ba5a575360081715e8b90c71d4b16c6687c8 | refs/heads/master | 2023-06-01T21:41:11.127323 | 2018-10-09T10:31:48 | 2018-10-09T10:31:48 | 144,732,068 | 1 | 3 | BSD-3-Clause | 2019-11-18T07:58:49 | 2018-08-14T14:32:50 | Python | UTF-8 | Python | false | false | 15,711 | py | # -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright (C) 2015-2018 GEM Foundation
#
# OpenQuake is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the Licen... | [
"mhaas@gfz-potsdam.de"
] | mhaas@gfz-potsdam.de |
04c6380edc9d403e0daa8af46e8821b04b91781c | 4a23d02c58b95dbdd1616de9b738289f97e5bf43 | /SimpleBatch.py | 5f507d9b2de8fe97c3edc5f23740e3d8577b1e4c | [] | no_license | ChenKQ/rs_mxnet_reader | 5123bb2de2106126da6a356db9e7ca17847ba80f | ad3710c605114cf027d954e8f75372bef17c1b4a | refs/heads/master | 2021-08-10T16:10:21.567289 | 2017-11-12T19:41:39 | 2017-11-12T19:41:39 | 110,461,772 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | class SimpleBatch(object):
def __init__(self,data,label):
self.data=data
self.label=label | [
"chenkaiqiang14@mails.ucas.ac.cn"
] | chenkaiqiang14@mails.ucas.ac.cn |
832c6f2677b752fed350fdf56b3de06df8dae36d | 2d75d4fcc65bbfbc0b160b7205b8fbcb2ecaaf5b | /core/dbt/task/rpc/project_commands.py | e9b3f52c52ea4ebc9d1503c41538f1070eaa13fa | [
"Apache-2.0"
] | permissive | carlineng/dbt | 0c78f35db9e1d052de4bf11f48f80aab2638aeec | cf6359803edea6c1c3f4cbe70a4dc02e55f8168e | refs/heads/dev/0.15.2 | 2020-12-20T19:29:45.211945 | 2020-01-31T19:07:34 | 2020-01-31T19:07:34 | 236,188,153 | 0 | 0 | Apache-2.0 | 2020-01-31T19:07:35 | 2020-01-25T15:27:20 | null | UTF-8 | Python | false | false | 5,043 | py | from datetime import datetime
from typing import List, Optional, Union
from dbt.contracts.rpc import (
RPCCompileParameters,
RPCDocsGenerateParameters,
RPCRunOperationParameters,
RPCSeedParameters,
RPCTestParameters,
RemoteCatalogResults,
RemoteExecutionResult,
RemoteRunOperationResult... | [
"jake@fishtownanalytics.com"
] | jake@fishtownanalytics.com |
3566c31f10feda9150fe9811c47702d72682d1a0 | 06c05314b018bb133f34e7052cc315b3cfdcd311 | /TP1/data-ex4/mapper4.py | 76fe6e1ac8201d274be9ddbcfc56665d261ef1b8 | [
"MIT"
] | permissive | tjaskula/dauphine-slpbd-tp | 6a29a0e02049998135822de26770b7c5e800958b | ba82d2d3eda16ca6380ad7e1ddb30f9fd962b68c | refs/heads/master | 2020-03-30T10:18:58.181528 | 2018-10-17T18:30:19 | 2018-10-17T18:30:19 | 151,114,966 | 0 | 0 | MIT | 2018-10-01T15:51:14 | 2018-10-01T15:51:14 | null | UTF-8 | Python | false | false | 266 | py | #! /usr/bin/env python
import sys
remeberIdc = None
for line in sys.stdin:
line = line.strip()
idc, d, name = line.split(',')
if idc == remeberIdc:
print "%s\t%s\t%s" % (idc, d, name)
if remeberIdc != idc and name.startswith('G'):
remeberIdc = idc
| [
"thomasv1000@hotmail.fr"
] | thomasv1000@hotmail.fr |
f4bc7a7de3187d89d91b4c6ee55aafc3a8683e27 | 380a47268c5975473a2e7c38c747bc3bdbd981b1 | /benchmark/third_party/transformers/tests/models/bert/test_tokenization_bert.py | dfbcd266c49917d91429910a65a04ecb6ffbf9b5 | [
"Apache-2.0"
] | permissive | FMInference/FlexGen | 07aa9b1918c19b02077e13ad07e76840843810dd | d34f7b4b43ed87a374f394b0535ed685af66197b | refs/heads/main | 2023-07-24T02:29:51.179817 | 2023-07-21T22:38:31 | 2023-07-21T22:38:31 | 602,270,517 | 6,821 | 411 | Apache-2.0 | 2023-07-07T22:59:24 | 2023-02-15T21:18:53 | Python | UTF-8 | Python | false | false | 13,961 | py | # coding=utf-8
# Copyright 2020 The HuggingFace Team. 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 requir... | [
"sqy1415@gmail.com"
] | sqy1415@gmail.com |
4012a5cd1acbc94fa691959cc75443b63e3e39f1 | 024d71c9addb15f2da3a7dc4b6cceb15d104f53f | /facial_landmark_detection.py | 0b5474b09011117cc2979918d6d83513cd2cea69 | [] | no_license | Nishant-Ramakuru/Alcohol-Detection-Based-on-Thermal-Images | e9414b426573c235c2d57ed311952352d8c77a83 | f90aafddacd0801a441868975c81581e7d6b639d | refs/heads/master | 2022-08-20T21:51:00.017876 | 2022-07-20T08:29:44 | 2022-07-20T08:29:44 | 251,707,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,507 | py | # Face landmarks Detection
# usage:
# python facelandmarkdetect.py --shape-predictor shape_predictor_68_face_landmarks.dat --image images/face1.jpg
# import the necessary packages
from imutils import face_utils
import numpy as np
import argparse
import os
import imutils
import dlib
import cv2
import matplotlib.pyplot ... | [
"noreply@github.com"
] | Nishant-Ramakuru.noreply@github.com |
11b130a31c10fb9e095dcf07a1785c19c8b7458b | a9633fe2a90daf3623047ac0009b54b802d16d0d | /HW/HW2/Code/HW2_q1.py | f17b663928ece0c75692d0a8a6e41b83c5fc0884 | [] | no_license | sarasovdat/MMDS | 485a6712750a5dc4ac16b8f7f9c4692e1817c206 | f73862fbc0d504a223217b7fbb1490b929c81b73 | refs/heads/main | 2023-08-04T16:07:49.133831 | 2021-09-15T08:10:02 | 2021-09-15T08:10:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | import numpy as np
from scipy import linalg
# SVD of M:
M = np.array([[1, 2], [2, 1], [3, 4], [4, 3]])
U, Sigma, V_transpose = linalg.svd(M, full_matrices = False)
V = V_transpose.transpose()
sig = np.array([[7.61577311, 0], [0, 1.41421356]])
print("----- U -----")
print(U)
print("----- Sigma -----")
print(Sigma)
pri... | [
"sarabizjak97@gmail.com"
] | sarabizjak97@gmail.com |
193acb5dc5a44ce5eb4800a26e3b5c3263006b47 | 9f0c84ec676d967af0d3dcebfeb51477797c6f16 | /evaluating_expressions.py | 13ef43bd1ed72bf605167e95dfc0271ddb67a66f | [] | no_license | monajalal/Python_Playground | 71169841d62eff5098af862c4443f022518a6be8 | bb07a973d4459a957ca4fda07a6a55ed14c65067 | refs/heads/master | 2020-04-15T00:01:27.225571 | 2020-03-12T03:01:46 | 2020-03-12T03:01:46 | 60,127,186 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 902 | py | class Solution:
# @param A : list of strings
# @return an integer
def evalRPN(self, A):
operations = set('+-/*')
operands = []
for item in A:
if item not in operations:
operands.append(item)
else:
operand2 = int(operands.pop())
... | [
"jalal@wisc.edu"
] | jalal@wisc.edu |
06649657ccf0f10d85bfa2c3ddd68a7de6b02f20 | 09d557923f726e5a8301d3489d0b0e20f3ecd9c6 | /friends.py | 0c49a2ee04dc44ca55975c0e533eaf39232d4dd7 | [] | no_license | moragbl/checkio | 9b3a70301b7195876f0bf176dfdb054f7d6d1092 | 13761610cc651aeea426f4b61d35c28acc3e2bad | refs/heads/master | 2021-01-10T06:47:14.406928 | 2016-01-10T18:24:13 | 2016-01-10T18:24:13 | 49,025,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,044 | py | #!/usr/bin/python
class Friends:
def __init__(self, connections):
self.connections = list(connections)
return None
def add(self, connection):
if connection in self.connections:
return False
else:
self.connections = self.connections + [connection]
... | [
"moragbl@users.noreply.github.com"
] | moragbl@users.noreply.github.com |
e62afdacebeee507bc7b6ffbe8a9a5216896add4 | f8a58ae93ff78c59296a136dff721c5ef666790b | /Starting small/Open Concept.py | fc11dd75f69e0575b469b286f4e4b37d2c6c9d47 | [] | no_license | Anthonymcqueen21/Python-Programs | cb116b36e3c774ef51dba7f1fd29561767f89c7f | 127d5cbab4e7a2d0009d65075508cbaf5a6b6dc2 | refs/heads/master | 2021-06-26T18:03:30.212592 | 2017-09-15T19:59:21 | 2017-09-15T19:59:21 | 79,636,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | message = "Hello World Crash Course reader!"
print(message)
message = "Hello World"
print(message)
message = "Python crash course"
print(message)
| [
"noreply@github.com"
] | Anthonymcqueen21.noreply@github.com |
c0d33eecc47b3c11ae377ec4a317558862c0186b | 47b4233f1c42a1136f661e2827c185f5a7ae31bf | /milestone3-flask.py | 2de40561b15bc5c867b062b3d450be761ff588ac | [] | no_license | RutujaJadhav/Baby-got-Back | ff9c7c2d0ea9ec96cf3d896fe63f0fc754cf97d5 | 6adaaacd88125b007e47739090739d6c03bed88d | refs/heads/master | 2020-04-24T08:08:02.379108 | 2019-04-23T05:41:08 | 2019-04-23T05:41:08 | 171,821,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,595 | py | from flask import Flask, render_template, jsonify, request
from Adafruit_CCS811 import Adafruit_CCS811
import RPi.GPIO as GPIO
from twilio.rest import Client
import threading
import urllib
import os
import time
import board
import neopixel
import pandas as pd
import numpy as np
import math
import datetime
import json
... | [
"noreply@github.com"
] | RutujaJadhav.noreply@github.com |
d41231abad772ae1e1447c830b6edba0dd5e0d56 | 3d66f781359fa22b02764711ce7fefcdf9b7c82a | /zab_parser.py | 72cbf1642bf25aee78511b3540211ab3ee11b51c | [] | no_license | lekhasv/parser_airmonitor | 0dccdc4167b05ee055676066bcd253cecc0ce01d | b63e60d2b6fe169b75358ed84862b65e92aa7f8a | refs/heads/master | 2020-07-31T06:19:29.890927 | 2020-02-13T09:19:58 | 2020-02-13T09:19:58 | 210,513,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,698 | py | import datetime
import configparser
import os
import sys
import argparse
def loadConfig(path,radio,chas,data):
now = datetime.datetime.now()
hh = 0
log = ""
if data == '0':
name_file = now.strftime("%Y-%m-%d")+".txt"
else:
name_file = data+".txt"
if cha... | [
"noreply@github.com"
] | lekhasv.noreply@github.com |
0c4fd9e1c44215905b61eecef8c50b3727e7e016 | 17fe4529fd2772b7d046f039bde140768634d028 | /misc/cases/web/boss/test_login.py | e6fe63f8bf3b6493e346ecdf40111d113bcc2878 | [] | no_license | namesuqi/tapir | b9c21f30bf781eec314f0ae4f57c232f167e4734 | a5d4e9bb45d8cbf7e41d42d9006b43b753f3ecf1 | refs/heads/master | 2020-03-07T04:16:45.213561 | 2018-03-29T08:34:46 | 2018-03-29T08:34:46 | 127,261,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,839 | py | # coding=utf-8
# author: zengyuetian
import unittest
import time
from lib.web.boss.login_page import *
from lib.web.boss.summary_page import *
from lib.web.boss.const import *
from lib.common.HTMLTestRunner import HTMLTestRunner
from lib.common.path import *
from lib.driver import chrome_driver
class TestLogin(unitt... | [
"suqi_name@163.com"
] | suqi_name@163.com |
f8d9f2cc232063431ad4ba72a77b12166ca49f65 | f9a96f02fb59ebb320d48ae7d266a1ba1bb2f7cc | /ex7.py | 7d68bff89bed06e79931998e639987c4d066be79 | [] | no_license | virtualet/LPTHW | eb54eca5471c179652b1466e604419601a3a082c | e31b703e835640fc9f04ad99b027bcf6d6c1a746 | refs/heads/master | 2021-01-13T01:53:50.027232 | 2014-10-06T22:03:27 | 2014-10-06T22:03:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | print "mary had a little lamb"
print "its fleec was white as %s." % 'snow'
print "and everywhere that marry went"
print "." * 10
end1 = "C"
end2 = "h"
end3 = "e"
end4 = "e"
end5 = "s"
end6 = "e"
end7 = "B"
end8 = "u"
end9 = "r"
end10 = "g"
end11 = "e"
end12 = "r"
print end1 + end2 + end3 + end4 + end5 + end6,
print e... | [
"echoecho@gmail.com"
] | echoecho@gmail.com |
640e384f480d6dde5bb173efa0440e4aac09c5ae | 49cddcbe8f80b80a6c8fcd2d6fea6586c65a710f | /face-det-cam.py | 3cb06fb17a632c964757e1b7a48f6249f48a88b8 | [] | no_license | agurani/Face_Detection | 2a9e432c001157ed81cb6dfbca9c341fd528f304 | 9d8a08ca2c6604366f7d2b98a9f7596afab40a4f | refs/heads/master | 2021-06-08T11:45:56.660187 | 2021-05-10T06:45:18 | 2021-05-10T06:45:18 | 166,808,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,182 | py | """
ÖNEMLİ NOT: Çalıştırdıktan sonra programı kapatmak için "Q" tuşuna basın.
"""
import cv2
# Cascade yükleme
face_cascade = cv2.CascadeClassifier('haarcascade-frontalface-default.xml')
eye_cascade = cv2.CascadeClassifier('haarcascade-eye.xml')
# Tanıma yapacak fonksiyon
def detect(frame):
gray = cv... | [
"noreply@github.com"
] | agurani.noreply@github.com |
be4c7a95bb2e3dea3e5cef3331037298bb4cf366 | cbb5355de11afa6679bcc6157148b64c48fb7d62 | /subfun.py | 44ca97e1039db74891d53aa462d73a0c46a73129 | [] | no_license | SimonWang1995/writeJobsheet | 19e6577955759e073f42e72580193b88dc28ebb8 | f49968dea46ad5eeffd9172b0fe49c9f138ff1ea | refs/heads/master | 2021-05-20T04:20:51.924380 | 2020-07-20T13:17:25 | 2020-07-20T13:17:25 | 252,182,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,631 | py | from utils.logsave import *
from tkinter.messagebox import *
from threading import Thread
import re
from random import choice
def getuserinfo(root,kaoqian):
try:
logger.info("开始获取用户信息")
user_info = kaoqian.getuserinfo()
logger.info(user_info)
return user_info
excep... | [
"1069500569@qq.com"
] | 1069500569@qq.com |
e85679eb12a298bbe947d702485fe04af1f16d37 | 92f9527ce8c91fb78baa1de13142d2d2dd59c4b5 | /src/dailypoker/poker/migrations/0004_auto_20171025_1323.py | 327c18a8f422d0db200511f6decda6718f2ad1c4 | [] | no_license | wislish/Texas-Holdem-Poker | 869f8874d5b277ff78b51246098222ef881cb2e2 | 4260b3d3b44bbbf56e3faca851e14c12b5f9db8b | refs/heads/master | 2021-04-26T16:47:29.233769 | 2018-04-02T17:35:52 | 2018-04-02T17:35:52 | 123,970,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-10-25 17:23
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('poker', '0003_remove_player_hand_card'),
]
operations = [
migrations.Remove... | [
"maoan119@gmail.com"
] | maoan119@gmail.com |
26c7154286d22389cae93c532751367878955fb2 | 024a2f21e8b1b044f4214090471dc02c411861c5 | /oms/controllers/wx_meta_purchase_controller.py | 62c26a121d4acb4b4e3d07ba709783c2ed8df2c2 | [] | no_license | qiaozhizt/OMS | 1e8d1d2fb8e7510576b635cbd8bbdc4908ed0fc0 | 43d31095b496d7cf0a2cf1ccda05f7891366aae4 | refs/heads/master | 2023-02-28T23:50:21.867461 | 2021-02-03T07:57:43 | 2021-02-03T07:57:43 | 335,470,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,349 | py | # -*- coding: utf-8 -*-
import logging
import simplejson as json
import time
import requests
from api.controllers.tracking_controllers import tracking_lab_order_controller
from vendor.models import WxMetaProductRelationship, LensSpecmap
from pg_oms.settings import WX_META_SERVICE, WX_META_PURCHASE
from oms.models.order... | [
"250849686@qq.com"
] | 250849686@qq.com |
77485e7d02d6ad9aee29932b1412cd93cec7b922 | dcc6e06cac54e16e9a4387237f409fbd95c14a07 | /dotfiles/newsboat/split-opml-by-tags.py | 454f620ae46f429a6c5b85b719ab3869227491ed | [
"MIT"
] | permissive | simshadows/sims-dotfiles | 09ee62581ca52abd05500cbba9b252d39a2f1cfb | ce664af873377d74370f5d1398d2165348de33a3 | refs/heads/master | 2023-04-08T19:09:36.028682 | 2023-03-27T06:40:02 | 2023-03-27T06:40:02 | 103,027,299 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,020 | py | #!/usr/bin/env python3
import os
import sys
import shutil
import collections
import re
# Reserved tags
NO_TAGS_TAG = "NO-TAGS"
ORIGINAL_TAG = "ORIGINAL"
src_dir = sys.argv[1] # Good enough arg parsing for now
# We read these:
orig = os.path.join(src_dir, "autogenerated-opml/ORIGINAL.xml")
urls = os.path.join(src_di... | [
"contact@simshadows.com"
] | contact@simshadows.com |
1d227f48078109297a8c011b71885c3e33db0946 | 8e07b5b7a8dd38e0ef2c7ffc97d0392d886f32e6 | /venv/Lib/site-packages/mypy/typeshed/third_party/2and3/paramiko/win_pageant.pyi | 388c2e9d7a61872a1866ea01df0f94007bc377cd | [] | no_license | RodrigoNeto/cursopythonyt | fc064a2e6106324e22a23c54bdb9c31040ac9eb6 | 279dad531e21a9c7121b73d84fcbdd714f435e7e | refs/heads/master | 2023-07-03T00:54:09.795054 | 2021-08-13T12:42:24 | 2021-08-13T12:42:24 | 395,646,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | pyi | import ctypes.wintypes
import sys
assert sys.platform == "win32"
win32con_WM_COPYDATA: int
def can_talk_to_agent(): ...
class COPYDATASTRUCT(ctypes.Structure): ...
class PageantConnection:
def __init__(self) -> None: ...
def send(self, data: bytes) -> None: ...
def recv(self, n: int) -> b... | [
"rodrigoneto.forseti@gmail.com"
] | rodrigoneto.forseti@gmail.com |
241d12f0589080f83b03b869cccac1c92f023f75 | 5f6fa94e87f7607f85d02482a3fee09d4bf02bc2 | /db/mysqlclient.py | de8e363b2e47404f86b42c51065dc23937dd7a43 | [] | no_license | 13718422048/proxypool | 802a41335fdc4aa4919cebb4ad56928baa55f6f4 | eb7e93965c60c1680791fb4f595326566f3207af | refs/heads/master | 2022-04-07T13:14:21.307534 | 2020-03-18T09:25:19 | 2020-03-18T09:25:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | #!/usr/bin/env python
#coding:utf-8
"""
Author: --<>
Purpose:
Created: 2019/7/10
"""
import mysqlclient
class CMysqlClient(object):
def __init__(self, *args, **kwargs):
# 构造函数
user = kwargs.get("user", d=None)
password = kwargs.get("password", d=None)
ip = kwargs.get("ip", None)
database = kwa... | [
"1640498323@qq.com"
] | 1640498323@qq.com |
f0291c27c5720c0abd84b3e5731be796e60a259c | d65e041389d251bcdc861bfe6c33c8afad972b0e | /src/python/day_four/part_two.py | 3b35b1c3f6c18e7d53084db7a1de0341e883bca9 | [] | no_license | DSmedley1989/adventofcode2020 | 674e23df22ccfd75f40592e91e5b57d7cba0d9d3 | e9a447fc47779e727087fda4005b436f43403725 | refs/heads/master | 2023-01-31T21:01:52.736909 | 2020-12-07T22:57:56 | 2020-12-07T22:57:56 | 317,817,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,932 | py | from part_one import required_fields, problem_input_raw, parse_passports, validate_passport
import re
invalid_passports_raw = """
eyr:1972 cid:100
hcl:#18171d ecl:amb hgt:170 pid:186cm iyr:2018 byr:1926
iyr:2019
hcl:#602927 eyr:1967 hgt:170cm
ecl:grn pid:012533040 byr:1946
hcl:dab227 iyr:2012
ecl:brn hgt:182cm pid:0... | [
"daniel.smedley@footballradar.com"
] | daniel.smedley@footballradar.com |
3fdfd6e33e65ec14df4bae6e7af73d7016887185 | 54665756c8ef8abb86ea92e927100ae80be60e0f | /application.py | ce61d7cc3bef74fb06a59578259c2d50724f2ef8 | [] | no_license | Tamerlan74/eb-app-1 | e5e667b64b6fa9eb3afd39e4c5395f7ad14bddbf | e4db117b0e5cbeebec3ec92a4c660f04ae71fad1 | refs/heads/main | 2023-07-16T13:36:04.330482 | 2021-09-02T13:20:59 | 2021-09-02T13:20:59 | 402,420,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,978 | py | import logging.handlers
# Create logger
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
# Handler
LOG_FILE = '/tmp/sample-app.log'
handler = logging.handlers.RotatingFileHandler(LOG_FILE, maxBytes=1048576, backupCount=5)
handler.setLevel(logging.INFO)
# Formatter
formatter = logging.Formatter('%(... | [
"noreply@github.com"
] | Tamerlan74.noreply@github.com |
41c62ffb7c314661ff39786e0248172dd70cdeda | 73a5eca1ddee1d74a3c2be9ca4e5e67ebe3d16f7 | /src/tensortools/regress2d.py | 3ea96986cf2c264b45bda84fb41642dd8a2b6e8a | [
"MIT"
] | permissive | ychnlgy/Chebyshev-Lagrange | 34346692a2925cde620377e8fbcb8d588623fac7 | 74292e72b83f992d6c42a2f2db04dfdce5a52aea | refs/heads/master | 2020-05-23T06:20:10.831035 | 2020-02-12T16:31:38 | 2020-02-12T16:31:38 | 186,661,893 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,429 | py | import torch
def regress2d(x, y):
'''
Input:
x - torch Tensor of shape (d, n), d different sets of n x-points.
y - torch Tensor of shape (d, n), corresponding y-values.
Output:
w - torch Tensor of shape (d, 1), linearly least square
weights to map x to y.
b - t... | [
"ychnlgy@gmail.com"
] | ychnlgy@gmail.com |
9189010707a10a16ab13b7ec406f8795e10748f4 | 80429abf48f2a5cbd93db95416400b0a3c5f12f4 | /project2/problem_6.py | 9e014ea8a5bdfd9acdda38ced559af2e810d6843 | [] | no_license | andrijana-kurtz/Udacity_Data_Structures_and_Algorithms | 9b8c452c5d065a4c18419a3de14234887468c515 | 6bf39e5c20f9c8adef83d6484b9204bbfcb0717c | refs/heads/main | 2023-04-27T14:37:55.978222 | 2021-05-14T02:38:07 | 2021-05-14T02:38:07 | 367,224,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,532 | py | """
Union and Intersection of Two Linked Lists
Your task for this problem is to fill out the union and intersection functions. The union of two sets A and B is the set of elements which are in A, in B, or in both A and B. The intersection of two sets A and B, denoted by A ∩ B, is the set of all objects that are member... | [
"andrijana.kurtz@gmail.com"
] | andrijana.kurtz@gmail.com |
7d6073ad7cb84d1e921bb255869454481c50ca3d | f1cbbbf53d25b9f03134dcbf8ceb0074b0cb3ab9 | /customuser/forms.py | 40dfee5d24e2d829f07091de0ce4c1af666b1636 | [] | no_license | skiboorg/i_temp | b8be438a0ca2e17d15ba518188dc9c60d918cf25 | 742366985fe409f0c2ad59025cac9bf4cc63da76 | refs/heads/master | 2023-01-04T06:32:53.359662 | 2020-11-02T17:29:12 | 2020-11-02T17:29:12 | 291,662,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | from django import forms
from django.contrib.auth.forms import UserCreationForm, UserChangeForm
from .models import *
from django.forms import ModelForm
class SignUpForm(UserCreationForm):
email = forms.EmailField(max_length=254, help_text='Required. Inform a valid email address.')
class Meta:
model =... | [
"11@11.11"
] | 11@11.11 |
ed1e906f2466f24dbf42f890104a0c0f9e20ef61 | eb4731411b97ba2028682c367005183a8039b2e2 | /eval_calculator.py | d2e433576c91e29b8eff507221125cab20e48db7 | [] | no_license | rezvanieh/practice_python | 1f603c8132b7da4e8a78979a53ba4bb7d5bd2887 | ec7f627e3bb3af9ced8cba6f71f4e70bd1592c70 | refs/heads/master | 2023-07-22T08:27:56.151757 | 2021-09-02T07:12:31 | 2021-09-02T07:12:31 | 402,309,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | import re
print("Using Eval Function for Calculation")
print("Type 'quit' to exit\n")
previous = 0
run = True
def perform_math():
global run
global previous
equation = ""
if previous == 0:
equation = input("ٍEnter equation: ")
else:
equation = input(str(previous))
if equatio... | [
"rezvanieh.talebi@gmail.com"
] | rezvanieh.talebi@gmail.com |
7375d9c055ddef901788d0d3a34d84e9bcd60115 | 2e5afac9380dc05d71ea8ae92488266ce3cb5c94 | /Ring/setup.py | 710611a70cbd4ff428e5fb3a9aeb8de2c765d601 | [] | no_license | rraj29/RealtimeAudioPython | 47d692e53f32ad7002df77348329cacccbed4611 | bab55ae5410bccae27bf66aca148b1fd673d60f8 | refs/heads/master | 2022-10-23T10:12:26.388947 | 2020-06-19T13:15:04 | 2020-06-19T13:15:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | #!/usr/bin/env python
''' Usage: python setup.py build_ext --inplace '''
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
from Cython.Compiler.Options import get_directive_defaults
directive_defaults = get_directive_defaults()
directive_defaults['linet... | [
"noreply@github.com"
] | rraj29.noreply@github.com |
9ee7a1390ae377ee6ccb2031080cf90ddfbd4522 | 0558a02176b4c27b369594d2f2d0070b64b77f32 | /app/static_typing.py | 69d669ca097703f4c5f3f4a774860d862809b9bb | [] | no_license | marcelh89/projectX | 57e77e844197ccf728b1a996a7330472210b2110 | 580817316ac8dc5cb9bf84fc8f83b0337075590c | refs/heads/master | 2021-01-10T07:14:49.231907 | 2015-10-28T20:24:58 | 2015-10-28T20:24:58 | 44,829,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py |
def greeting(name: str) -> str:
return 'Hello ' + name
print(greeting('Peter'))
try:
print(greeting(1))
except TypeError as ter:
print(ter)
| [
"marcelh89@googlemail.com"
] | marcelh89@googlemail.com |
48e96cb4959b50297d7f6413e401936fcd538a85 | 752704eba6977ddaee1c33dc9a8594c0f47eb358 | /repositories/artist_repository.py | 87b117296e737fcba05fae0aaae34c6f0d5f6266 | [] | no_license | JarrodBennie/python-record-shop | 6dcce6ade10b5624e13a1e2816d9688204965eff | 6758c4309acd919ee7c92a8b033a87d79b369dd1 | refs/heads/master | 2021-02-18T17:43:08.320906 | 2020-04-06T10:39:58 | 2020-04-06T10:39:58 | 245,218,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | from models.artist import Artist
from db.run_sql import run_sql
def select_all():
artists = []
sql = "SELECT * FROM artists"
results = run_sql(sql)
for row in results:
name = row["name"]
id = row["id"]
artist = Artist(name, id)
artists.append(artist)
return artists
... | [
"jarrodbennie@icloud.com"
] | jarrodbennie@icloud.com |
fbad7287e306066bb1f74d6162618521239bdabd | b8560fcc01d746fde45c2a2c0364cacfc3d6613f | /4常用模块/shutil_module.py | 3552f40f7fd23fcca6b3556a9b9b11d5f4753ce6 | [] | no_license | RingoSnail/Python_Basic | b76e17675ef29e40f544caccaf0c29f1ba0afdf5 | 830c472a9f231e3b7402705f6a02b1028bccfe92 | refs/heads/master | 2023-08-19T18:01:45.096762 | 2021-10-15T08:30:10 | 2021-10-15T08:30:10 | 305,307,563 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | # 高级的文件、文件夹、压缩包处理模块 | [
"rain_hugo@yahoo.com"
] | rain_hugo@yahoo.com |
9882a77c834b182dafafe702c6450be8ddadef23 | 75e4e51e6bfb19f00bffb308074bd492a09ec6e0 | /NewPic.py | e2607ae2c139f75eaf340cb159c3b36e1eaaf4ef | [] | no_license | canydream/pyautogui | 1eba874bf656b6712c7f3e93b3dd28987ce78b2f | a0c880dffea0ac7e28bb49ca5ee3447a2916325a | refs/heads/master | 2023-06-21T06:46:32.147508 | 2021-08-01T11:08:40 | 2021-08-01T11:08:40 | 391,299,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | import cv2
import numpy as np
img3 = np.random.random((600, 800, 3))
while 1:
img3 = np.random.random((600, 800, 3))
img3 *= 50
img3 = img3.round()
cv2.imshow('img', img3)
print(cv2.waitKey(1000))
if 0:
break
cv2.destroyAllWindows()
| [
"canydream@qq.com"
] | canydream@qq.com |
f923c988e6a1535d7ed8fffd7072ffde4193bc8a | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/googlecloudsdk/calliope/walker_util.py | 5ac7827a51c6e386400e44564a8fdd49c740f037 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 19,357 | py | # -*- coding: utf-8 -*- #
# Copyright 2015 Google LLC. 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 requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
ff71f224008ee670b97d700b32ef94e4a96165ea | 33213395f9b7606da83003d9f89966af16a47ed7 | /proyecto/api/forms.py | 78e5e6a6e54d6fa4fc77fd4d5730201856690ffa | [] | no_license | sofiamanana/proyectoAnalisis | e75866d306424e37296c018da9cb7ee34a6450b4 | 3d7914dc2f6ef7813bd4672ada1cd57e01e24e26 | refs/heads/main | 2023-02-10T22:14:28.913022 | 2021-01-09T00:59:37 | 2021-01-09T00:59:37 | 311,785,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | from django import forms
from .models import File, Plan, Mensajes
class FileForm(forms.ModelForm):
class Meta:
model=File
fields=["name","filepath","username","plan"]
class FileForm2(forms.ModelForm):
class Meta:
model=File
fields=['filepath']
class FormMensaje(forms.Model... | [
"sofia.manana@sansano.usm.cl"
] | sofia.manana@sansano.usm.cl |
7ed9ede5a5b610fc38980e7998b759468f5dbce6 | 18899c79fa17d4b15df065db1a83ff25590b9ca0 | /model_closedloop.py | 027816de79943003c16e064dcbd575ba2294a88e | [
"MIT"
] | permissive | brunopcarv/id4control | 0ce3082674f9fdc8c68c3b478c17dec2bb00f927 | a1a78aafce08abc94d008ecb9a53a6de771919bc | refs/heads/master | 2022-11-28T21:52:56.405327 | 2020-08-12T00:10:47 | 2020-08-12T00:10:47 | 278,949,646 | 0 | 0 | null | 2020-08-12T00:10:48 | 2020-07-11T22:10:58 | Python | UTF-8 | Python | false | false | 4,336 | py | #!/usr/bin/env python
# -*- coding: utf-8 vi:noet
# Closed-loop system - Plant and Controller
import numpy as np
class ClosedLoopSystem():
def __init__(self, plant, controller, additive_noise_gen, xo, dt=0.01):
self.plant = plant
self.controller = controller
self.x = xo
self.xo = xo
self.k = 0
self.dt ... | [
"brunopcarv@gmail.com"
] | brunopcarv@gmail.com |
9ee969ac84ea09647d6a185b3e82eab861cc2331 | 4feec0d298181dd982103bf0beafd8c42dff3b51 | /Prototypes/GUI Prototype/GUI.py | cbb6bf107e8b50afde5af2d86141ee10380df798 | [] | no_license | ashbrindle/Programmable_Dynamic_Turning_Machine_Project | 1484d23ada220c2ff37ace1972adba2d79a032c6 | de1249e0b15b76d6913a9e21863fe6602d6c7e29 | refs/heads/master | 2021-10-28T03:47:20.271657 | 2019-04-21T18:21:18 | 2019-04-21T18:21:18 | 178,104,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,938 | py | from Tkinter import *
instructions = [[]] # 0: state, 1: symbol, 2: direction, 3: new symbol, 4: new state
def save():
instructions[0].append(entstate.get())
instructions[0].append(entsymbol.get())
instructions[0].append(entdirection.get())
instructions[0].append(entNsymbol.get())
instructions... | [
"ash.brindle97@gmail.com"
] | ash.brindle97@gmail.com |
4204bd99b9f1ec5958bd3e6f3840050defbbfb1d | 317649dde4c3ca8b185d98eda59aff11c3276c88 | /POWHEG-BOX-RES/vbs-ssww-nloew/.svn/pristine/42/4204bd99b9f1ec5958bd3e6f3840050defbbfb1d.svn-base | 211da05343c92209feaad97890a2596f11e8ce0a | [] | no_license | freejiebao/generator | 8b5019cdf53be70006405a4d9547d693f813d9bd | 8e658a44e69d770ac57e6bc9d13a66bcebcab07a | refs/heads/master | 2021-06-16T14:31:10.174653 | 2021-05-19T08:13:41 | 2021-05-19T08:13:41 | 203,158,169 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 10,992 | ################################################################################
# genplots_shower.py #
################################################################################
"""
File: genplots_shower.py
Author: J.-N. Lang
Email: jlang@physik.uzh.ch
D... | [
"jiexiao@pku.edu.cn"
] | jiexiao@pku.edu.cn | |
91e40d0f70f0106885be19ffb1c262f22102ec2f | 8d8278a835f3fd7f878cf5539f6a09a6346e1812 | /solution.py | e06b8d01cfd59a0982d14a7fbecbf337daec5616 | [] | no_license | mociadm-w4k2/lab2 | 40c875cb9c93039c657f6c6c033fab7fcd71fbfa | 2a374dae7565898bf5472259fe1c6f6f84c4280e | refs/heads/master | 2020-04-06T09:37:52.482974 | 2018-11-13T16:26:43 | 2018-11-13T16:26:43 | 157,350,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | # Exercise 1
# Fill with code
# Exercise 2
# Fill with code
# Exercise 3
# Fill with code
# Exercise 4
# Fill with code
# Exercise 5
# Fill with code
# Exercise 6
def prepare_data(file_name):
# Fill with code
return X, y
| [
"noreply@github.com"
] | mociadm-w4k2.noreply@github.com |
f48ee1c2fb841d283cf1a9eeda275639a74825e7 | 09dbe6f5f4a01d25df5b5783fcf621d4d4e6acab | /python/workflow/__init__.py | 68b8c99d8054b5ee7de8d79efbde2f07b363598d | [] | no_license | cjhopp/scripts | b2e925b42e3685713475d15cb4a637e62143778a | 89cecfe82532e84a739e26a845b9455df0090ca5 | refs/heads/master | 2023-05-31T06:35:03.638455 | 2023-05-15T18:14:44 | 2023-05-15T18:14:44 | 71,869,887 | 7 | 5 | null | 2017-07-12T13:59:15 | 2016-10-25T07:15:46 | null | UTF-8 | Python | false | false | 210 | py | #!/usr/bin/python
__all__ = ['util', 'data_prep', 'focal_mecs', 'magnitudes', 'obspyck_util',
'process_parties', 'pyfehm_util', 'relocate', 'shelly_focmecs',
'shelly_mags', 'vis_3d_grid'] | [
"chopp@lbl.gov"
] | chopp@lbl.gov |
4f46318710d0faa395f2befd39d9c72fd1a5173d | 0961b605531fa73cb88640b5978572217bdb6554 | /excelTitleToNumber.py | d9000b22ae72dcd4fcf299fb2d1d19c302278509 | [] | no_license | LYoung-Hub/Algorithm-Data-Structure | e01d8b72c4026d9d4b9788016ca54c4e359e80ba | e42ec45d98f990d446bbf4f1a568b70855af5380 | refs/heads/master | 2020-07-13T17:17:42.897244 | 2019-11-11T06:15:59 | 2019-11-11T06:15:59 | 205,121,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | class Solution(object):
def titleToNumber(self, s):
"""
:type s: str
:rtype: int
"""
length = len(s)
if length == 0:
return 0
ans = 0
for i in range(0, length - 1):
curr = ord(s[i]) - 64
ans = pow(26, length - 1 - i... | [
"yangliu2@caltech.edu"
] | yangliu2@caltech.edu |
54bf05de8cba8f49586ed5ab995b396493f49645 | 0178f788d9d8aa9bf1d72b63967e07b20b5981e9 | /tests/python/kaolin/metrics/test_pointcloud.py | 050ec4ba10f94cf81aec55d380d09889e697b090 | [
"Apache-2.0"
] | permissive | nexuslrf/kaolin | 0ad5a7a92abcea8dc3dc50f8ef3c83d59ea7960d | 85a78ef931b2b5231322566a25882ba049b01d26 | refs/heads/master | 2023-09-06T06:00:20.506722 | 2021-11-25T21:47:59 | 2021-11-25T21:47:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,849 | py | # Copyright (c) 2019-2020, NVIDIA CORPORATION. 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 appl... | [
"noreply@github.com"
] | nexuslrf.noreply@github.com |
fcb22e747567a162c6efe867fc957b9bc486b356 | 3529744f2a26e567162df37cbc62193670a61a8e | /rf/registration/admin.py | 5d3f7861475c98d2da4bd959fc07e2d09e68bc79 | [
"BSD-2-Clause"
] | permissive | ooola/ruggerfest | 7d46081e651c514ec4e65f3e6b1ae0cbb24e08ac | 20e4b72678a960db4d660d893f82f6cf8c9c9116 | refs/heads/master | 2020-04-09T14:57:24.200365 | 2013-08-22T14:30:01 | 2013-08-22T14:30:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | from django.contrib import admin
from models import Team
class TeamAdmin(admin.ModelAdmin):
list_display = ('teamname', 'division', 'captain', 'email', 'phone_number', 'date', 'paid')
admin.site.register(Team, TeamAdmin)
| [
"ola.nordstrom@gmail.com"
] | ola.nordstrom@gmail.com |
442e6625ffa0755f8423cb17b85506d4ad09d399 | 1f318aec4903a8a5a024c70b6f2fea1742af3f0c | /python3/VisionTherapyReader.py | a19a65af4a9d6c2dfe21c22f1fee3a350c5b2527 | [] | no_license | lightkraken/VisionTherapyReader | 5a0aed474615030512cb51853ebeffc474acc04b | 2a6284338b7668dd3a21d64de3920eebfd1dc401 | refs/heads/master | 2020-05-16T14:00:37.729650 | 2015-04-22T19:27:55 | 2017-11-13T20:34:31 | 34,411,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,203 | py | from tkinter import *
import tkinter.filedialog
import tkinter.ttk
from files.colorreader import *
from files.barreader import *
from files.ptadjust import *
from files.rbadjust import *
from files.ptcalibrate import *
from files.rbcalibrate import *
from files.paster import *
from files import coder
class Root(Tk):
... | [
"joshua.behan@gmail.com"
] | joshua.behan@gmail.com |
62ea2cf617b2827d170b1172c33ef87418de9112 | 6d967da5fd95aa5e66ddbb211da40041006ca5ec | /myvenv/Lib/site-packages/pip/_vendor/idna/package_data.py | 5c7a356106d74de03558d9b069f42a36e8724c2a | [] | no_license | gevorkyannaira/my-first-blog | 96e4458045a1dd0aa9c1f3ec69f4c829428200e0 | 42ab12a8c2b0e402b5fa1b8e5a7cdd2629d06c16 | refs/heads/master | 2022-09-03T21:14:18.946448 | 2020-05-18T18:15:39 | 2020-05-18T18:15:39 | 264,909,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | <<<<<<< HEAD
__version__ = '2.8'
=======
__version__ = '2.9'
>>>>>>> e585743114c1741ec20dc76010f96171f3516589
| [
"gevorkyannaira5@gmail.com"
] | gevorkyannaira5@gmail.com |
4a8fc58e050c984be3b4182514e57e8c3d48b934 | 55169883340a5fd9c405156238035afac169cff6 | /boston_example.py | 019fa6284578eb1b971dcbf279bf8d73fbcbb840 | [] | no_license | attakhan/DataScience-and-AI | 1d16dbb4634c64c162847821d0ebce68bba091d8 | 2037e6bc2412e99831a3c63c0f9e4c4169df755e | refs/heads/master | 2021-09-20T08:42:48.655821 | 2018-08-07T07:41:32 | 2018-08-07T07:41:32 | 111,201,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,699 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jun 10 13:08:55 2018
@author: muhammad.atta
"""
from keras.datasets import boston_housing
from keras import models
from keras import layers
import numpy as np
(train_data,train_targets) , (test_data , test_targets) = boston_housing.load_data()
print(train_d... | [
"noreply@github.com"
] | attakhan.noreply@github.com |
f5e0381785565c4cf6fa682343001d5bd8f1aeff | 40ed785aabe76003d6416bcdef858ab25a8b6cd8 | /back_service/apps.py | b095178eafc2c740b69bc7e4e02744c91403bbbb | [] | no_license | Takaklas/mobility-offloading-server-side | ece5164c51960b1f963763e5fd007d86af7a49ac | 4acd709a1a702d783769d273f633f6fda20c1282 | refs/heads/master | 2020-04-06T09:41:08.428712 | 2019-03-29T20:57:23 | 2019-03-29T20:57:23 | 157,352,448 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | from django.apps import AppConfig
class BackServiceConfig(AppConfig):
name = 'back_service'
| [
"takgate7@gmail.com"
] | takgate7@gmail.com |
bfe903ff472179fdfe59c5d045c065182ac0ec97 | 517c863520bbe7652586b3095c0b7359755453ad | /main.py | 09164c211d31e1342476bb8b7859e4db3660f2da | [] | no_license | Wallar1/card_chemistry | b5309950f6fb266c72d2149d5712eabeb2f7ad11 | e42509996722ccaa0569b2a7702f0ee08af5285b | refs/heads/master | 2023-03-03T17:09:12.615042 | 2021-02-14T10:23:53 | 2021-02-14T10:23:53 | 326,491,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,337 | py | from flask import Flask, jsonify, send_file, make_response, send_from_directory
from player import Player
from scientist import ALL_SCIENTISTS
app = Flask(__name__)
@app.route('/')
def home_page():
return send_file('./static/scientist_scroller.html')
@app.route('/service_worker.js')
def service_worker():
... | [
"Robertwallace.naples@gmail.com"
] | Robertwallace.naples@gmail.com |
f6fc270193bc949f831597b37c31160cd44d1ebf | 983dd371747f70473e0445aa810d98f555dc626e | /lispypy/__init__.py | 0edbd20c3b77041467d0673f5d66ad19b041757f | [
"BSD-2-Clause"
] | permissive | cg123/lispypy | 6a2d9f54b5f3b0886b5591d1ff8f9e2fdf6304d8 | 04df5ea55c646342c8d5537787f9c0ce90aaf31b | refs/heads/master | 2020-03-27T22:29:06.479280 | 2013-08-20T00:35:28 | 2013-08-20T00:35:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,462 | py | # Copyright (c) 2013, Charles O. Goddard
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions ... | [
"Charles.Goddard@students.olin.edu"
] | Charles.Goddard@students.olin.edu |
d2c4033b46d5dd98b49f6fb13115f128c2f1873a | a3e9f51d0d7c086852421590c3fb8d2412bd013c | /test_models.py | 83b521ccf839dcbf43fb2d65ec8e6d096f9da63a | [] | no_license | Sprivideo4/Samsung-Prism-Project | db6b32b8f2cec58a756dea5b21b456d7e3329071 | 7e9b69f94ed17a151101c52f05f85efc7d95ce40 | refs/heads/main | 2022-12-18T21:21:49.767313 | 2020-10-06T02:45:36 | 2020-10-06T02:45:36 | 301,395,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,650 | py | # Code for "TSM: Temporal Shift Module for Efficient Video Understanding"
# arXiv:1811.08383
# Ji Lin*, Chuang Gan, Song Han
# {jilin, songhan}@mit.edu, ganchuang@csail.mit.edu
# Notice that this file has been modified to support ensemble testing
import argparse
import time
import torch.nn.parallel
import torch.opti... | [
"somandra.bhl2015@gmail.com"
] | somandra.bhl2015@gmail.com |
46680f13ec78eb01cf69e406dab8be4e25fa0251 | 9538e8a5719ea0d9e4759b357f368b80f0a9c2a4 | /basic-knowledge-penetration/py_penetration_1_网络基础/client_udp.py | 66ac22fc686b4cd2934528cb4004f558dc6502d4 | [] | no_license | BLACKGOATGG/python | c7019e0c6b476a9ff6cb46f50237ee7b6a9da16e | 230eb48153ee6c691e5ffdaec5c7ca1fa6d4254b | refs/heads/master | 2021-06-30T02:47:07.771983 | 2019-04-18T09:18:27 | 2019-04-18T09:18:27 | 144,562,485 | 1 | 0 | null | 2019-02-02T09:58:34 | 2018-08-13T10:09:07 | Python | UTF-8 | Python | false | false | 1,762 | py | """
python编写的udp客户端和tcp客户端差别不大,仅需要做两处简单的修改,将数据包以udp格式发出
UDP:用户数据报协议,是一个面向无连接的协议。
采用该协议不需要两个应用程序先建立连接。
UDP协议不提供差错恢复,不能提供数据重传,因此该协议传输数据安全性差。
UDP应用于及时通信,而TCP协议用来传送文件、命令等操作,因为这些数据不允许丢失,否则会造成文件错误或命令混乱。
下面代码就是模拟客户端通过命令行操作服务器。
客户端输入命令,服务器执行并且返回结果。
"""
import socket
from lib import *
host_ip = ... | [
"hzgjl@tairanchina.com"
] | hzgjl@tairanchina.com |
a068aa8f19d1906f4996e1b50e34fdd2d1c23dd3 | e3875fe665b5090a705d5c14caccb80cae46eaa5 | /bench/bench.py | dbc6a823edec8932d8ccf4b0d1f54184811c8189 | [
"BSD-3-Clause"
] | permissive | pankajp/pysph | 0664b4efb069def53f6fa3d1103d300977b14e6a | 5bb1fc46a9c84aefd42758356a9986689db05454 | refs/heads/master | 2021-01-23T13:55:43.269572 | 2011-05-11T09:06:15 | 2011-05-11T09:06:15 | 1,721,136 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,230 | py | #! /usr/bin/env python
"""module to run timings test code
Modules to time-test can be specified in two ways
* bench modules can be automatically collected from directory where this
file is present if they are cython modules with sources having extension
`.pyx`. The modules are compiled if they are not already
... | [
"pankaj86@gmail.com"
] | pankaj86@gmail.com |
e5d73f03edf687e56a5bb4d04835d977c7935337 | a7d41aa056165fc33b0c1d8edd50b8557f642548 | /Python/List-2/no14.py | b1c7bc74951a9915a65187483d298fff9381c562 | [] | no_license | jemtca/CodingBat | 3243ec9c5309f8581e1a54fba0b076069cec7d74 | 8545a70348dd621070c8b3efa280ca79a24f9d5a | refs/heads/master | 2023-04-05T03:20:17.416495 | 2023-03-31T06:35:08 | 2023-03-31T06:35:08 | 147,287,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py |
# given an array of ints, return true if it contains no 1's or it contains no 4's
def no14(nums):
b = True
one = False
four = False
for x in range(len(nums)):
if nums[x] == 1:
one = True
for x in range(len(nums)):
if nums[x] == 4:
four = True
if on... | [
"30645648+jemtca@users.noreply.github.com"
] | 30645648+jemtca@users.noreply.github.com |
ecfb2b0c2bbeb0959aaecb984d03c3768a12ee18 | 7e47a0079d2eef72b3bcd4c566b0ee233f0e2fc6 | /alaska/venv/bin/wheel | 5a4e689dc3106306caf8f67b03a06ccbdc51a9ae | [] | no_license | jlyonthinks/28July15 | 6781b3aee6140d3edcb05aa2e804f3d5429fd8a1 | cf5c716a67cc2e48dc0cf7d4690859587cf45dfb | refs/heads/master | 2023-01-14T00:43:42.315018 | 2015-07-29T00:40:51 | 2015-07-29T00:40:51 | 39,864,986 | 0 | 0 | null | 2022-12-26T19:49:43 | 2015-07-29T00:45:48 | Python | UTF-8 | Python | false | false | 237 | #!/home/jlyonthinks/alaska/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"jlyonthinks@gmail.com"
] | jlyonthinks@gmail.com | |
e4c7fa728fc770c8d90def3d56e9a6d7f2e07661 | 0e228bea5d374ea2a01401908547066932bce8e8 | /sypt_ptree.py | 8af00271125bafba927367ba0e483344a5a460db | [
"MIT"
] | permissive | marjanhs/phan_style_change | c4c2cdcec80fc35f3727e156350f3ebfbde09bfa | 76c47ff751ec8d4318364b1f3d1272f50a94e06e | refs/heads/master | 2020-03-22T22:41:43.767233 | 2019-02-08T16:56:23 | 2019-02-08T16:56:23 | 140,766,204 | 1 | 2 | MIT | 2018-07-19T21:19:45 | 2018-07-12T21:25:05 | Python | UTF-8 | Python | false | false | 3,392 | py | from pycorenlp import StanfordCoreNLP
from nltk.tree import ParentedTree
import re, os, subprocess
from nltk.tokenize import sent_tokenize, word_tokenize
arrow = ' => '
def leaf_to_root(node, ignoreleaf=True):
rules=[]
while node.label()!="ROOT":
rule= node.label() + arrow
for s in node:
... | [
"ma.hosseinia@gmail.com"
] | ma.hosseinia@gmail.com |
74cdeeaefa73433d6ba79843dc152782e3814a80 | c4e377c125cd02c2cd6a7ac8baaa92498ec0c0b5 | /light_sensor.py | 799b6eb435851f140095b6245bc9fc00670961ce | [] | no_license | carlhdr/raspberry_pi | 5f32d4900e153c82cdb20422b9ee569f98dba0a0 | 922e2c61f3028f3ab73350165261ea264b324401 | refs/heads/master | 2020-12-14T08:54:27.896296 | 2016-05-03T04:16:11 | 2016-05-03T04:16:11 | 58,165,160 | 0 | 0 | null | 2016-05-05T22:44:30 | 2016-05-05T22:44:30 | null | UTF-8 | Python | false | false | 606 | py | #!/usr/bin/env python
# Example for RC timing reading for Raspberry Pi
# Must be used with GPIO 0.3.1a or later - earlier verions
# are not fast enough!
import RPi.GPIO as GPIO, time, os
DEBUG = 1
GPIO.setmode(GPIO.BCM)
def RCtime (RCpin):
reading = 0
GPIO.setup(RCpin, GPIO.OUT)
GPIO.output(... | [
"pannii.orosz@gmail.com"
] | pannii.orosz@gmail.com |
68665a1bae1103716df96bc7d8a47e9d199f37f2 | 8535a64935c9f94269029d3c018dd0ed34686b78 | /Coursera-Machine-Learning/Python-Code/ex2/gradient.py | da53eeb0f02f9c81c999121951c60e4fd2a0a218 | [] | no_license | hosjiu1702/ML-Self-Study-Training-Course | 929647a73b04dd1529f2882da9cf2187001c32d3 | 71d9f00e0460a6f8f43bf0276ec67d75a7a02936 | refs/heads/master | 2022-12-13T11:29:16.343033 | 2019-03-13T07:08:19 | 2019-03-13T07:08:19 | 175,346,159 | 0 | 0 | null | 2022-12-09T15:37:52 | 2019-03-13T04:27:25 | JavaScript | UTF-8 | Python | false | false | 300 | py | import numpy as np
from sigmoid import sigmoid
def gradient(theta, X, y, lam_bda):
m = len(y)
grad_J = np.zeros((theta.shape))
h = sigmoid(X.dot(theta))
grad_J = (1 / m) * X.T.dot(h-y) + (lam_bda / m) * theta
grad_J[0] = grad_J[0] - (lam_bda / m) * theta[0]
return grad_J | [
"hosjiu1702@gmail.com"
] | hosjiu1702@gmail.com |
d33ede4c779f29fb5299d2cd5d13206c63fba933 | 76d319fb1cebc730feb0e730d4fc3ac328bb5e93 | /backend/settings.py | 237f324df8acfc60a2f124ef74e0ca13e972d583 | [] | no_license | RAlanWright/django-react-todo | 2a801af06eab530a04a15ca0d98d357d34657b34 | aeebe1ff1d9a5a24e6399f604bc338cbb5b9c983 | refs/heads/main | 2023-01-11T18:56:52.600981 | 2020-11-09T16:29:24 | 2020-11-09T16:29:24 | 306,974,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,278 | py | """
Django settings for backend project.
Generated by 'django-admin startproject' using Django 3.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
import os
fro... | [
"wright.alan88@gmail.com"
] | wright.alan88@gmail.com |
701da3c11fa30fb3121be3633c9e8150d1062c84 | 0b17f21b3447700e99ad376b88d1440c3546a29b | /engine.py | c27cd41e816ebea8508ab9faa735ab80de98286b | [] | no_license | juniferd/terminal-boggle | 4580d0253c52b7a38db2d9604a33b62703dbc592 | c2abbdfae1f881da1c9d0bee476bc2c8613b1061 | refs/heads/master | 2021-01-10T09:27:06.046285 | 2016-02-22T23:13:57 | 2016-02-22T23:13:57 | 51,971,610 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,992 | py | import threading
import mechanics
## engine for game play
GAME_TIME=15
class Engine(object):
def __init__(self):
self.__timer_on = True
self.__remaining_time = GAME_TIME
self.__round_score = 0
"""
menu_map = {
'h': full_menu,
'e': exit_round,
's': start_ro... | [
"jyk@jyk"
] | jyk@jyk |
71e18a1184fee5d651e67b275dbcebed8c58628c | fcb053bd5cb1e43d6d02818c8683f31c58f5b678 | /Collections/Collections.OrderedDict().py | a6f7fa9957c3a737b6bd8b1f36cee83f5e604ec7 | [] | no_license | 12akshat12/Hackerrank-Python-Practice | 40b20df8fadd925a0bc01ca52daa9cd3a6052340 | d0c14da3d32e717b506614216f098a9729545f7a | refs/heads/master | 2022-11-07T05:37:18.368939 | 2020-06-29T05:22:38 | 2020-06-29T05:22:38 | 275,672,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | from collections import OrderedDict
def main():
d=OrderedDict()
N=int(input())
for i in range (N):
item_name, space, net_price=input().rpartition(' ')
if(item_name not in d):
d[item_name]=int(net_price)
else:
d[item_name]=d[item_name]+int(net_price)
for i... | [
"akshat.minocha@quovantis.com"
] | akshat.minocha@quovantis.com |
6cd92e60f7754b6ce14be9c99f3185a81c39fc5f | 74a09ecda56217babdb1e13bece699ca603267f2 | /blog_api/views.py | f201e662cc47703c6e01c215275e98b59d7f485c | [] | no_license | shz699/blogapi_django | 6e2266f35d505c86a687e6c3fd908ceb5debb44a | a7b28e4f0d5666c58bbf8b6599d18b4b9c604af3 | refs/heads/master | 2023-06-11T15:50:28.360309 | 2021-07-02T15:47:51 | 2021-07-02T15:47:51 | 382,393,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,182 | py | from rest_framework import generics, serializers
from blog.models import Post
from .serializers import PostSerializer
# Create your views here.
class PostList(generics.ListCreateAPIView):
queryset = Post.postobjects.all()
serializer_class = PostSerializer
class PostDetail(generics.RetrieveDestroyAPIView):
... | [
"shahidula699@gmail.com"
] | shahidula699@gmail.com |
1b5a79a4089a68bc7d9a2514d8c1f9c8638bf771 | 533d11ec5e56b22ade009213c36cdb5fca1a4073 | /TD3/agent.py | 24d9b2bf71c0a538e62a681451aa868ac5c5595f | [] | no_license | joelseytre/advanced-machine-learning | 309735f1fa0cfe6f3cf41f49e5c94853813f9d69 | 579ebece149669673b956914849adcadb941277c | refs/heads/master | 2021-05-12T08:18:01.638194 | 2018-02-11T19:06:59 | 2018-02-11T19:06:59 | 117,275,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py |
from agents.RandomAgent import RandomAgent
from agents.QAgent import QAgent
# Agent = RandomAgent
Agent = QAgent
| [
"joel.seytre@student.ecp.fr"
] | joel.seytre@student.ecp.fr |
bd48a7891bb09bfcada77c9f790b924d43f78d56 | b5d3f6c6da601013b761ae302bfa8beea31852d7 | /flask_api/modules/meteorological_img.py | 8be8f522b77b258ad60a9b29fef7d400ef7fd254 | [] | no_license | is0363hr/ste_api_server | 113d9cc90a7d6341e5dcd72d972ed529e2c39637 | 63cbced7e3466c667e884d6c6fc9d55897aa6557 | refs/heads/main | 2023-05-26T03:39:37.335804 | 2021-06-11T03:30:13 | 2021-06-11T03:30:13 | 348,591,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,349 | py | # 気象庁画像取得(2021/3/11)
from flask.app import Flask
from modules.line_api import LinePush
import requests
from datetime import datetime, timedelta
import os
import cv2
import base64
def strToDate(year, month, day, hour, minute):
tstr = year + month + day + hour + minute
tdate = datetime.strptime(tstr, '%Y%m%d%H%... | [
"tan_tan_tanuki-73@softbank.ne.jp"
] | tan_tan_tanuki-73@softbank.ne.jp |
0d873babbf620fae68abe2c32e8a1578624ca799 | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /log-20190927/132.230.102.123-10.21.9.70/1569573569.py | dc5839f67d211337395137ed458b092a279d00b4 | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,932 | py | import functools
import typing
import string
import random
import pytest
## Lösung Teil 1.
def divisors(n)
"""
Nimmt positive ganze Zahl und gibt die Listee aller ihrer Teiler ohne wiederholung zurück
args:
n: int (positives integer)
returns:
result: lst (aller Teiler ohne ... | [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
b36d2685c58c8d2b9e060a1ba82ec9a7e2d959f8 | a92e506fb1ef8f6cd0ee9a5215c0a402b47920d1 | /Divisor Game.py | 8bd673e843645b6928df7b2c2cee00793328ca95 | [] | no_license | NikitaFir/Leetcode | 81e6d9cce43a69584279ccdd41f5af833c49cc3f | b179f637c7587836cf1047b27514587b4db0776f | refs/heads/master | 2022-06-30T17:47:37.915052 | 2020-05-12T16:21:58 | 2020-05-12T16:21:58 | 263,385,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | class Solution(object):
def divisorGame(self, N):
k = 0
x = 1
while N != x:
if N % x==0:
k += 1
N -= x
x = 1
else:
x += 1
if k % 2 != 0:
return True
else:
... | [
"noreply@github.com"
] | NikitaFir.noreply@github.com |
f3a2a0af14fc312520e401d23a530a671f70d031 | 68c92b50fa7eebd4edd93240252ad7cfdaa36d45 | /semisup/train.py | 0b19fed904b4cdcefb906781c5e799e91e09a7e4 | [
"Apache-2.0"
] | permissive | xu-ji/associative_deep_clustering | dcda58c1a8a391b91201789f55bd91dd9a041d0b | fb324f3749c1dedcde685640dc6143606bc6527b | refs/heads/master | 2020-03-31T15:37:24.337726 | 2018-10-12T21:16:37 | 2018-10-12T21:16:37 | 152,344,260 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 15,352 | py | #! /usr/bin/env python
"""
Copyright 2016 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to ... | [
"johannes.plapp@logivations.com"
] | johannes.plapp@logivations.com |
e88fe4c04c5aeb05fbd2703796f983a9c004218c | 2b38f4398a1b54ed45c4e30219b02bec704a71c6 | /110.平衡二叉树/isBalanced.py | f0bccf81238571051c49250bd09866788b0f55e3 | [] | no_license | johnmaster/Leetcode | 7a1f6bd39d43d262f4436bf9e34e2fb9a984e475 | ceecad205a5809036e59c726a1baa42918f97619 | refs/heads/master | 2020-07-21T06:00:22.290353 | 2019-12-27T09:19:50 | 2019-12-27T09:19:50 | 206,766,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,069 | py | """
一个高度平衡的二叉搜索树(平衡二叉搜索树)是在插入和删除任何节点之后
可以自动保持其高度最小。也就是说,有N个节点的平衡二叉搜索树,它的高
度是logN。并且,每个节点的两个子树的高度不会相差超过1。
根据定义,我们可以判断一个二叉搜索树是否是高度平衡的(平衡二叉树)。
正入我们之前提到的,一个有N个节点的平衡二叉搜索树的高度总是LogN。
因此,我们可以计算节点总数和树的高度,以确定这个二叉搜索树是否是高
度平衡的。
同样,在定义中,我们提到了高度平衡的二叉树一个特性:每个节点的两个子
树的深度不会相差超过1。我们也可以根据这个性质,递归的验证树。
为什么需要用到高度平衡的二叉搜索树?
当分析二叉... | [
"noreply@github.com"
] | johnmaster.noreply@github.com |
7cc3a8bcd234a170d28a60514da557484369ec59 | 87b8e3090f33e73892ef79b6d52c37d66ba21ea3 | /src/huffman.py | 09b5c0fbaf70a1ba80a5d32a97ea3c93d63bb906 | [
"CC0-1.0"
] | permissive | jwhang627/DigitalImageCompressor | 97abdb6bb1757b244ae07ff699a0d2eab1253997 | 7d2d20ac98f6c6e8baf2c98410846d7b4a7c4388 | refs/heads/master | 2022-07-30T23:16:48.113088 | 2020-05-18T20:37:12 | 2020-05-18T20:37:12 | 261,240,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 997 | py | # src/huffman.py
class NodeTree(object):
def __init__(self, left=None, right=None):
self.left = left
self.right = right
def children(self):
return (self.left, self.right)
def nodes(self):
return (self.left, self.right)
def __str__(self):
return '%s-%s' % (sel... | [
"jw8n5@mail.missouri.edu"
] | jw8n5@mail.missouri.edu |
73cf0ef2cb9fe2e438f97e2903b8c4922208754c | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_262/ch133_2020_04_01_11_12_20_875320.py | d6b43f8de09fc367129e32985f549dbeebf2944e | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | fun=input("está funcionando?")
if fun=='n':
fun=input("você sabe corrigir?")
if fun=='n':
fun=input("você precisa corrigir?")
if fun=='n':
print("Apague tudo e tente novamente")
else:
print("sem problemas!")
else:
print("sem problemas!") | [
"you@example.com"
] | you@example.com |
f532a8bb80293ee3fadcc4683d18bd6e07ffd0cf | 7224f79adb11e02f17068a48cb0650266db8560c | /blog/migrations/0001_initial.py | 5caeed9db7c25da82dcf89f0ad550e83e62223f2 | [] | no_license | kirbycbressler/blog_posts | 5e994490861d31bb22fa235f2d4c2d4ecb2907d5 | 2bbaf6c2de989a9d43914ab7976b8d7d8b7a9adf | refs/heads/main | 2023-07-15T19:37:55.806798 | 2021-08-22T17:07:11 | 2021-08-22T17:07:11 | 397,456,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | # Generated by Django 3.2.6 on 2021-08-18 02:24
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... | [
"kirbycbressler@yahoo.com"
] | kirbycbressler@yahoo.com |
05e555436bf655e00619796225111cd597e83c09 | 5123fb89f99bf6f109f3ac5a64b5ee7473ba8517 | /CellularAutomata.py | 6ee51c49a8c168170494acc544962b1c6e22a162 | [] | no_license | RyanSamman/ElementaryCellularAutomata | cf051d00a346a362dcf4cb0959304b76e6c7e187 | 5a7628a0528d66b869896a7055a940d733dadfba | refs/heads/master | 2023-03-30T12:26:55.273514 | 2021-04-07T11:40:21 | 2021-04-07T11:40:21 | 286,540,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,041 | py | from random import randrange
class CellularAutomata:
def __init__(self, width=11, rule=0, initialState=None) -> None:
if initialState is None: # Create an array with stuff in the center
sides = (width - 1) // 2
middle = width - 2 * sides
initialState = [0] * sides + [1... | [
"RyanSamman@outlook.com"
] | RyanSamman@outlook.com |
0bd8081080edffef12ace581f49e14a0cfcdd932 | c37f5b94eff116e9b2ea3bb17ba3390e12ff8265 | /drf_shoestore/settings.py | 7d5e5a831a5fbd2cc2ae3d7649e59b6b36d42576 | [] | no_license | DJJD2150/drf_shoestore | 67f74fe7d179934bf723bdd67c387cb350388a65 | 7a66a2cd6b06705c36850a338649fc1595f5f3cf | refs/heads/dev2 | 2022-12-19T14:09:01.217579 | 2020-10-03T00:25:36 | 2020-10-03T00:25:36 | 300,011,999 | 0 | 1 | null | 2020-10-03T00:25:37 | 2020-09-30T18:15:19 | Python | UTF-8 | Python | false | false | 3,280 | py | """
Django settings for drf_shoestore project.
Generated by 'django-admin startproject' using Django 3.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from p... | [
"jndetke2150@gmail.com"
] | jndetke2150@gmail.com |
130d2e97b46cd60325c75df08f8304805de254a7 | 1f8e6d593740241012941b530faea20f0560880e | /summer_pre_assign_package1/summer_pre_assign_package2/module2.py | f6ea2b7b5609a4d619d734abff1e4803331ee929 | [] | no_license | durgaprasad1997/missionrnd_python_course | 0c576d41985e83f96a0359160fdc606953bc5b1e | 30e26b2a255a3387d2a2810559050ccb281e3fef | refs/heads/master | 2020-03-22T07:57:33.983821 | 2018-07-04T14:59:38 | 2018-07-04T14:59:38 | 139,735,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | import logging
def f3():
logger = logging.getLogger(__name__)
logger.info('Entering function f3')
logger.warning('This cannot be done using function f3')
logger.error('Error occurred in function f3')
logger.debug('Leaving function f3')
def f4():
logger = logging.getLogger(__nam... | [
"noreply@github.com"
] | durgaprasad1997.noreply@github.com |
5cb372ed429f9cc84f45f4986d19d7db6de2a6ff | 9f45fe47cf6e6556118d59310af4652292231673 | /eleventry.py | a51e1663f429fa7060f642a9861a9ee625981235 | [] | no_license | zubairrv/Python-basics-programs-practice | 683d93d3a1f28bae9246d2bd3c898a7637e96f2b | 5b0f7b9da56c67b4620e3421973d87c3e5607bd5 | refs/heads/master | 2022-12-29T11:48:44.816036 | 2020-10-08T11:38:13 | 2020-10-08T11:38:13 | 287,947,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | while True:
for i in ["/","- ","|","\\","|"]:
print "%s\r" % i, | [
"noreply@github.com"
] | zubairrv.noreply@github.com |
624671d487dd50b1558eb59e9f858d68e6edc44d | 21b5d639df0157d4b93780ef12104ed0b3ae3d89 | /examples/iris.py | 2c0ee17611d0d8eb4e80903e0192c7f718c0eb3b | [] | no_license | lwthatcher/mlp | 54564e5bd2c3ffbff6c2aa6528c07e158986bd07 | a57bf621c31884659c0df9bab52e048b82f4776d | refs/heads/master | 2021-01-23T00:34:38.011259 | 2017-04-05T23:00:42 | 2017-04-05T23:00:42 | 85,741,442 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,370 | py | import numpy as np
from mlp import NeuralNet
from mlp import util
from sklearn.preprocessing import normalize
from mlp.activation_functions import ReLU, Sigmoid
from sklearn.model_selection import cross_val_score
def run_iris():
features, labels = util.load_data_file("iris.txt")
features = normalize(features,... | [
"lwthatcher@msn.com"
] | lwthatcher@msn.com |
6123625e902a2d37a7242f0f539d4af1f68662e8 | 4a040bbd3e463c37095dd955440aa12e3c9f2e1f | /exam/4_structure/package/ex2.py | 9bb227231d3ee712ebfb8a9b3571b18eab8f7c59 | [] | no_license | ace2267/pythonExam | 7a06b898237938a6f7036087160fb57efee33b09 | 6b6a4227c711b426114249c4993a738328bb4950 | refs/heads/master | 2020-05-07T08:30:59.891136 | 2019-05-25T00:04:33 | 2019-05-25T00:04:53 | 180,332,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | # from exam.package.packEx import testPakage
import exam.package.packEx
packEx.testPakage(1, 50)
| [
"ace22672@gmail.com"
] | ace22672@gmail.com |
0e450cd56fbe42980d5a7104818eb4074accb3b1 | 5c60daf869242848c7ef2e15e143d470a7e9e50c | /pypokerengine/api/game.py | 1c1bb310697aafe2f121e93e7f38362d279c92db | [] | no_license | cfacundus/artificial-intelligence | 32c30b7f27d112a799c07da2c93cf9c39645b8f2 | ec4b2d1c41f416f3c73c62d027e20b19fcd0b99f | refs/heads/main | 2023-01-29T21:35:48.976810 | 2020-11-29T22:18:11 | 2020-11-29T22:18:11 | 317,053,124 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,047 | py | from pypokerengine.engine.dealer import Dealer
from pypokerengine.players import BasePokerPlayer
def setup_config(max_round, initial_stack, small_blind_amount, ante=0):
return Config(max_round, initial_stack, small_blind_amount, ante)
def start_poker(config, verbose=2):
config.validation()
dealer ... | [
"noreply@github.com"
] | cfacundus.noreply@github.com |
79c37e2cdea99cda4a653a7d2446f0cfc4ac29d2 | 58d500012a959a07b9560000886ddcb6140da175 | /user_interface/neo4j_scene.py | 9d795edf52b99f4cd7935130f22404b09c504fa4 | [] | no_license | daisy-ua/chat-application | b0f4520d6f4e13b791355b6493223e85a3b0162c | 377b1d1b07fcb00a48dbfed3dde2fb733b2deb4c | refs/heads/master | 2023-05-27T22:00:02.202621 | 2021-06-07T20:15:42 | 2021-06-07T20:15:42 | 354,841,629 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | from services.neo4j_server import neo4j
tags = [
'ads', 'swag', 'kpop', 'vegan', 'solotravel', 'puppylove', 'vr', 'bts', 'bantansonyendan',
'fitfam', 'cardio', 'giveaway', 'weddinghair'
]
OPTIONS = []
def get_users_by_tags():
for tag in tags:
users = neo4j.get_users_by_tag(tag)
users = l... | [
"eightnum.81@gmail.com"
] | eightnum.81@gmail.com |
c9aa318b9b0c13d3782326990ef227fa50314c45 | 66f7814e54fbae6473d4226ce843257ede1c6724 | /scripts/websockets.py | 1826ba78aaacafb8ff70725a322641fa5c70b41d | [] | no_license | kgz/Maple | cb1b094563467fa6c720193f98e893926683b64b | 0a801563ebbf9a6cf9bb24f69ee067e81d89661a | refs/heads/master | 2020-04-16T19:33:58.486930 | 2019-01-15T14:40:17 | 2019-01-15T14:40:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,259 | py | """."""
from PyLog import Log
import json
from quart import websocket, request
class Sock():
"""."""
def __init__(self, app, *args, **kwargs):
"""."""
self.socks = {}
self.clients = []
@app.websocket("/ws")
async def connect():
"""."""
while True... | [
"mat.frayne@gmail.com"
] | mat.frayne@gmail.com |
5ad570ef73816ca4ebb5fc3842c9f429ae06ab16 | 2a7c72c37a3ad3b3c839a9363f07baa5bf7e8366 | /omnizart/models/chord_model.py | 69b2fa024b8b1c383730a1732c6c287902fadad1 | [
"MIT"
] | permissive | Hadiaz1/omnizart | 4bc3be58073e61f9b67650ec365bc10916226076 | 4188e6e193a4d5de6a0bec9f8dc2f0e847310e26 | refs/heads/master | 2023-08-16T11:20:26.060034 | 2021-10-02T08:53:18 | 2021-10-02T08:53:18 | 414,891,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,730 | py | # pylint: disable=W0102,W0221
import tensorflow as tf
from tensorflow.python.framework import ops
from omnizart.models.t2t import positional_encoding, MultiHeadAttention
from omnizart.models.utils import shape_list
class FeedForward(tf.keras.layers.Layer):
"""Feedfoward layer of the transformer model.
Param... | [
"freedombluewater@gmail.com"
] | freedombluewater@gmail.com |
003cadbd97efb17c22d41fca3bf34dc5e842bda4 | a05f65967b8f7b09d0e56bb7571abfcd25bc2bd6 | /prime.py | 37d11a9f6082decf449e2164eb1fcd6c665a8f7c | [] | no_license | jyothi1802/python-programs | b5d793a1f5540aa1b7311a6c188123d65acc7c74 | 78273a9737973e282de46f83dd1119d3d5a96617 | refs/heads/master | 2020-04-14T15:22:32.320671 | 2019-01-03T11:46:39 | 2019-01-03T11:46:39 | 163,924,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | #Write a python program to check whether given number is prime or not
def find_prime():
try:
num = int(input("Enter a Number:"))
if(num>0):
for i in range(2,num//2+1) :
if (num % i == 0):
print(b,"is not prime")
break
... | [
"noreply@github.com"
] | jyothi1802.noreply@github.com |
03213bed7a200f336273927a512d357e0510ab02 | d6f6f7267fd94fb2b912f667a97519fda7e60743 | /tragetory/extrator3.py | dc839d94564ea827576236643bce74088305bf95 | [] | no_license | marcosvro/FrankIA | 7d2af8dcae5c1a530d33a651eb3848bd056a7d91 | e850b4c8794972b583ed80f64989126596d1ec3d | refs/heads/master | 2021-07-25T09:06:58.079365 | 2017-11-08T03:27:23 | 2017-11-08T03:27:23 | 106,047,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,452 | py | import numpy as np
import math
import threading
#import cv2
import time
import os
import ikpy as ik
from ikpy import plot_utils
#v1 = 250 estados
#CONFIGS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
deslocamentoZpes = 3.
deslocamentoXpes = 5.
deslocamentoYpes = 0... | [
"marcos.v.rodrigues@hotmail.com"
] | marcos.v.rodrigues@hotmail.com |
c1d2095b70735c2304cbced854cabac380d14209 | 0843e27390fc52a4095931097cf357eebe6fa666 | /blender_scripts/tools/svg_bobject.py | 3803574344e5f68041a40a4000259146fcdc995e | [] | no_license | DowLucas/primer | d087380adbbeffa3b1255b78708a131b4dfd1ba3 | 0b59bdaef5310d52eaa5b7a68e5e4a5ec707263d | refs/heads/master | 2022-01-27T02:21:36.075525 | 2019-05-02T21:52:27 | 2019-05-02T21:52:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 58,480 | py | import imp
from copy import deepcopy
import winsound
import sys
sys.path.append('C:\\Users\\justi\\Documents\\CodeProjects\\Primer\\blender_scripts')
import bobject
imp.reload(bobject)
from bobject import *
import constants
imp.reload(constants)
from constants import *
import helpers
imp.reload(helpers)
from helper... | [
"justin.r.helps@gmail.com"
] | justin.r.helps@gmail.com |
94142f103a81d05da488cf0826ef22b6aefe9da9 | 43800bc4600961119339c7e1dd6fd9e685d8f991 | /reto.py | e2792bdadc539bf5854a405a72039a1b7f6dc173 | [] | no_license | KevinMichelle/Repositorio_RSA | 91219ae5f35c04516dddbf34f86ca4a1f1199ebf | c347cee2a50e577039611312773dd79744ed4e24 | refs/heads/master | 2016-09-05T15:19:41.881708 | 2014-10-16T10:15:56 | 2014-10-16T10:15:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,055 | py | import sys
import random
def sonNumeros(arreglo):
areNumber = True
for i in xrange(1, len(arreglo)):
if not arreglo[i].isdigit(): # Si alguno de los argumentos no son numeros
areNumber = False
break
return areNumber
def f_x(x):
return (x * 2)
def encrip(mensaje, clave, n):
return pow(mensaje, clave, n)... | [
"michelleglz93@gmail.com"
] | michelleglz93@gmail.com |
373796447841d57b9fab8651bb3abfafb95db738 | 9b129a2b02072914d34e3c170e4ccc7655d4cdcf | /app.py | 4171781ce3ff2814f010747a825c4da66f913074 | [] | no_license | Vsevololod/docker-web | 7b69cafd1af88c8b34f4d94593ce3b9eea7b54e2 | cdd895590a5218b37a65bbe850057060ce4b6042 | refs/heads/master | 2020-03-12T20:44:17.407642 | 2018-04-24T07:28:22 | 2018-04-24T07:28:22 | 130,812,629 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,814 | py | from flask import *
from flask_bootstrap import Bootstrap
from flask_ldap import LDAP
from flask_ldap import login_required
import requests
import docker
app = Flask(__name__)
Bootstrap(app)
app.debug = True
app.config['LDAP_HOST'] = '195.19.252.68'
app.config['LDAP_DOMAIN'] = 'cc.spbu.ru'
app.config['LDAP_SEARCH_BAS... | [
"vsevolodtachii@gmail.com"
] | vsevolodtachii@gmail.com |
2efa64d46e5d91e597a0c42442ffc6eb5ff9156b | c925a13ca720d085bb661be1466e0c56456af97e | /src/antpy/path.py | 6a1843628d0dc6d42358145ef94d7c280f34768b | [
"MIT"
] | permissive | IvanAntipov/AntPy | 0e754727e6c090cce554ede6ef07f052ac1eb705 | 361a569141518bebd13a46917267567add8e138e | refs/heads/main | 2023-08-06T04:29:33.149181 | 2021-09-14T10:11:36 | 2021-09-14T10:11:36 | 389,035,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | import datetime
import string
import random
def generate_random_filename():
ts = datetime.datetime.now().strftime("%Y%m%d%H%M%S")
file_name = ''.join(random.choice(string.ascii_lowercase) for i in range(5))
return f"{ts}_{file_name}" | [
"imantipov@activebc.ru"
] | imantipov@activebc.ru |
252d0b54e5f8b124952be5653984cfe5aa8991e7 | b2ecdc83c8d8b7038ff293daa442d3162fc3772b | /rkWebApp/views.py | 00df447c7995029f3c1090fae25d3b33db7b7cae | [] | no_license | simonrakovic/RakovicKarmenDjango | efef88316f45876cf658acd774ece58693099ecc | 83f88b5a62fc1dcc5a99bddfba91b1af149b7251 | refs/heads/master | 2021-01-21T13:17:50.001362 | 2016-05-26T09:27:27 | 2016-05-26T09:27:27 | 45,276,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,123 | py | # -*- coding: utf-8 -*-
from django.contrib import messages
from django.core.mail import EmailMessage
from django.shortcuts import render, render_to_response
from django.template.loader import render_to_string
# Create your views here.
from django.template import RequestContext
from rkWebApp.forms import QuestionForm
... | [
"simonrakovic@gmail.com"
] | simonrakovic@gmail.com |
67e6a589520d73111095f3a72afd004de6c4c1f8 | bfc885bbe60e80fb295ef711666518200889adc1 | /peyecoder/panels.py | 5a9e2d2de512910e1618a92a2618cb56f1152cd8 | [
"MIT"
] | permissive | rholson1/peyecoder | 470151c1cd189117fb88ffbc40d945facf04a60a | 8a30b2ae44d0a9be1f4c6b51be0d63a49dff6c6a | refs/heads/master | 2022-11-29T11:55:01.585022 | 2022-08-05T15:36:15 | 2022-08-05T15:36:15 | 242,180,640 | 1 | 0 | MIT | 2022-11-22T10:43:44 | 2020-02-21T16:16:03 | Python | UTF-8 | Python | false | false | 10,332 | py |
from PySide2.QtWidgets import QWidget, QLabel, QPushButton, QSpinBox, QComboBox, \
QRadioButton, QVBoxLayout, QHBoxLayout, QTableWidget, QTableWidgetItem, QCheckBox, \
QButtonGroup, QHeaderView, QApplication
from PySide2.QtGui import Qt
from PySide2 import QtGui
from peyecoder.models import Reason, Event
c... | [
"rholson1@wisc.edu"
] | rholson1@wisc.edu |
c18c6a803556cb3d4779e0ae99b912b6b15ebaa3 | c960fe2d453043123db739cc3e5521231fb028d4 | /units/models.py | eb93e96017ad4d60f34e7d7a0b849971baa4616d | [] | no_license | RaphaelQuem/bitsweet | d74590c366219161c911d21aa05dedf0de258766 | 66e90177544e0754a1dcc71409f16163e530b92f | refs/heads/master | 2020-09-01T22:19:01.012848 | 2019-11-12T18:36:56 | 2019-11-12T18:36:56 | 219,073,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | from django.db import models
class MeasurementUnit(models.Model):
unit_id = models.AutoField(primary_key=True)
unit_name = models.CharField(max_length=100, null=False)
unit_abbreviation = models.CharField(max_length=10,null=True)
def __str__(self):
return self.unit_name | [
"raphzmaia@gmail.com"
] | raphzmaia@gmail.com |
199a343f605d4cb6ba0cf1a2b56902993154ff5d | 24e7e0dfaaeaca8f911b40fcc2937342a0f278fd | /venv/Lib/site-packages/toolz/recipes.py | 89de88db2b46d9a50231ffdf18aa0aa280f051f0 | [
"MIT"
] | permissive | BimiLevi/Covid19 | 90e234c639192d62bb87364ef96d6a46d8268fa0 | 5f07a9a4609383c02597373d76d6b6485d47936e | refs/heads/master | 2023-08-04T13:13:44.480700 | 2023-08-01T08:36:36 | 2023-08-01T08:36:36 | 288,455,446 | 1 | 0 | MIT | 2021-01-22T19:36:26 | 2020-08-18T12:53:43 | HTML | UTF-8 | Python | false | false | 1,256 | py | import itertools
from .itertoolz import frequencies, pluck, getter
__all__ = ('countby', 'partitionby')
def countby(key, seq):
""" Count elements of a collection by a key function
>>> countby(len, ['cat', 'mouse', 'dog'])
{3: 2, 5: 1}
>>> def iseven(x): return x % 2 == 0
>>> countby(iseven, [1... | [
"50989568+BimiLevi@users.noreply.github.com"
] | 50989568+BimiLevi@users.noreply.github.com |
66106037a9117fd9b932a27781f87dc77cf935c9 | 4afd23a55aad4634db84969f8019eabee7cfa27e | /restaurant/user/migrations/0001_initial.py | 6a26f973f322015ce03ae345861273b9ad65af92 | [] | no_license | fdfdd12345628/uidd2019_restaurant | bb8d9ac72acb047c347cf04567c733d3ced3ac1d | 3768fbbcaf419ea72661b93b58d5494387e1ab7e | refs/heads/master | 2020-05-02T04:40:15.601828 | 2019-07-09T04:00:25 | 2019-07-09T04:00:25 | 177,755,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,625 | py | # Generated by Django 2.1.7 on 2019-04-15 17:42
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0009_alter_user_last_name_max... | [
"fdfdd12345628@gmail.com"
] | fdfdd12345628@gmail.com |
707fff8e60eb4a656961574d96ad9a1c5683f7e3 | f8fbdd49b3af8cd159fab32f5af6f35f6d8a38a6 | /jeevih14.py | 92fc8ed1f5ba1fb91d865c139ae6c14d126a8354 | [] | no_license | JEEVITHAVIJAYAN/jeeviv | f2e8393f2a8d45eb781ff054127f561183ac45cc | 0c6e34788528feeb0d124ef92d6e8e3702563685 | refs/heads/master | 2020-07-04T15:03:20.293758 | 2019-08-14T10:37:07 | 2019-08-14T10:37:07 | 202,319,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | #h
from itertools import permutations
p=input()
q=permutations(p)
r=[]
for i in list(q):
s="".join(i)
if s not in r:
r.append(s)
for i in r:
print(i)
| [
"noreply@github.com"
] | JEEVITHAVIJAYAN.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.