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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f33e9739d5c9414b68e42ed8a44983cb9e5b2cad | 439868a2bdd6a13a299ed2d0becf877591102d2f | /semrep/semrep.py | e148ae422a3ce644f2a549165c33d10d939864e9 | [] | no_license | sariogonfer/Master-DecisionSupport-TFM | b4b1f6032715264f5b4541a0a3978826c71a7350 | 02b4faeec0be4d6356acb5e7c5eb19af9b388c76 | refs/heads/master | 2020-06-04T05:52:27.747886 | 2019-06-20T13:15:20 | 2019-06-20T13:15:20 | 191,895,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,063 | py | from collections import ChainMap
from copy import deepcopy
from functools import partial
from itertools import chain, product
from tempfile import NamedTemporaryFile as ntf
from xml.dom import minidom
import os
import subprocess
import networkx as nx
import spacy
class NotProcessedException(Exception):
"""The te... | [
"cesar.gonzalezf@urjc.es"
] | cesar.gonzalezf@urjc.es |
83fbadd72e038adad5bad8df605e71ebda5b3319 | 99cb9304d2e7fc48721b3a63f8a3340d13ff1246 | /figures/forzado.py | 64924d5a696b4a03653f22409bac8ad77b283eb6 | [] | no_license | restrepo/Mecanica | 1e9ee12845330d47a223534a8328c02eeaee4996 | 8df79ae95ab5228c72d6e7d17fffa1111f098fcb | refs/heads/master | 2020-04-09T11:55:05.990581 | 2018-08-16T21:13:45 | 2018-08-16T21:13:45 | 5,415,048 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | from pylab import *
w=np.arange(40,49.9,0.05)
plt.plot(w,1./(50.**2-w**2),'b-')
w=np.arange(50.1,60,0.05)
plt.plot(w,1./(50.**2-w**2),'b-')
plt.vlines(50,-0.06,0.06,color='k', linestyles='dashed')
plt.hlines(0,40,60,color='k',lw=0.5)
plt.xticks([])
plt.yticks([])
plt.xlim(40,60)
plt.ylim(-0.06,0.06)
plt.xlabel(r'$\omeg... | [
"rescolo@gmail.com"
] | rescolo@gmail.com |
10968168e7fad76f8f96c8b8334aafb9050f112f | 9e3cb463a24f0f7be711c0f182fb5fc502011750 | /Codes/coins.py | 6edb5ce682e5ffc11daee8661c4bc93c91d65076 | [] | no_license | rodrigobmedeiros/Udemy-Python-Programmer-Bootcamp | 0d1b732743eb1b7061d76c66c1398ae016c5ab3a | 5a16b0f48ef6cf6a775d288ccd3c399a8a12811d | refs/heads/master | 2021-02-15T07:50:04.051416 | 2020-03-20T21:03:38 | 2020-03-20T21:03:38 | 244,878,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Mar 17 18:53:19 2020
@author: Rodrigo Bernardo Medeiros
@function: coins
"""
def coins(n_coins):
# I need to analyze heads and tails, because its a 0-1 outcoming, I will
# use a boolean to represent this event.
isheads = True
coins_list = []
# ... | [
"rodrimedeiros@gmail.com"
] | rodrimedeiros@gmail.com |
06385329021d4dfb1ba21644f6906dbaf727dd05 | a4d2e7a3585cff10b3ed52bc633dc9710ce68a87 | /CL/model/data_loader.py | 17c9f8a6d7cdbf1a385e491059b5be4ebbc2b915 | [] | no_license | runngezhang/deep-dereverb | 1bb58168ddcffd627990984a12916051e6bfe4d3 | f5867997f7fd3bab095c9b2afa836e87fd31db06 | refs/heads/main | 2023-08-25T00:23:01.710278 | 2021-10-15T19:10:38 | 2021-10-15T19:10:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,696 | py | """Alimentar con datos al bucle de entrenamiento"""
import sys
MAIN_PATH='/home/martin/deep-dereverb/model'
sys.path.append(MAIN_PATH) #Para poder importar archivos .py como librerias
from tensorflow.keras.utils import Sequence
import numpy as np
import os
import glob
import random
import librosa
import soundfile as sf... | [
"camartinbu@gmail.com"
] | camartinbu@gmail.com |
92a7c5238a237e2aa1f03f860a29e40dea618a06 | 8466c271575f3432981afd8f76afeaf9366570c9 | /player.py | a9d28014b32af43370a336ef2135b6fc38604630 | [] | no_license | BethGranados/Snake | 5c2686909552939ba429674300f8eef8718182b5 | 81c94b1c952cc8c721154de8a396e2a55552753a | refs/heads/master | 2020-12-25T14:58:18.691737 | 2016-08-25T04:08:08 | 2016-08-25T04:08:08 | 66,459,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | import actor
class player(actor.actor):
movement = (0, 10) #Always starts going left.
def move(self):
self.cord = (self.cord[0] + self.movement[0], self.cord[1] + self.movement[1])
def changeDirX(self, x):
self.movement = (x, self.movement[1])
def changeDirY(self, y):
self.move... | [
"BethGranados@gmail.com"
] | BethGranados@gmail.com |
20b361ed82e3c4f5ca631042f72ead83915be1a7 | 46ae8264edb9098c9875d2a0a508bc071201ec8b | /res/scripts/clientclientarena.py | 694ad470a4f1b89adc4300277077ab1452ac612e | [] | no_license | Difrex/wotsdk | 1fc6156e07e3a5302e6f78eafdea9bec4c897cfb | 510a34c67b8f4c02168a9830d23f5b00068d155b | refs/heads/master | 2021-01-01T19:12:03.592888 | 2016-10-08T12:06:04 | 2016-10-08T12:06:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,496 | py | # Embedded file name: scripts/client/ClientArena.py
import Math
import BigWorld
import ResMgr
import ArenaType
from items import vehicles
import constants
import cPickle
import zlib
import Event
from constants import ARENA_PERIOD, ARENA_UPDATE, FLAG_STATE
from PlayerEvents import g_playerEvents
from debug_utils import ... | [
"m4rtijn@gmail.com"
] | m4rtijn@gmail.com |
e22bff52efe6faa36581c0805d4918dfa3d5452f | ba9ec6cbfa9d32a5e1e876395c6958debe7475a6 | /random/ReadDict-panda.py | c05a5d39c8e4e0b3600d0902eb6bc5ffca352839 | [] | no_license | jadavsk/Python | 8481094b0d9c8a762e727f2955d36c4a7a51f748 | 8aa4e0e84d0b53868422c3a6439c466d80b86d75 | refs/heads/main | 2023-03-02T03:25:28.348063 | 2021-02-11T01:00:15 | 2021-02-11T01:00:15 | 318,917,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py |
dict = {"country": ["Brazil", "Russia", "India", "China", "South Africa"],
"capital": ["Brasilia", "Moscow", "New Dehli", "Beijing", "Pretoria"],
"area": [8.516, 17.10, 3.286, 9.597, 1.221],
"population": [200.4, 143.5, 1252, 1357, 52.98],
"Developed" : ["No","No","No","No","No"]
}
... | [
"noreply@github.com"
] | noreply@github.com |
4ca86184e584fc3bb1adf52144a6639fb2e8a214 | 6988f0e240b177c6e29ed9892d27c108dc86c490 | /ACGCharacterDetector/__init__.py | 94df5631e6f69a7924cb719b6b74b18ebacd5d6d | [] | no_license | zjulzy/ACGCharacterDetector | 351f45075f06eabe975e2564e22908eadd83614c | dc259529a397b26e928f5d1849b1188d7c2c11b3 | refs/heads/main | 2023-07-11T02:12:19.092055 | 2021-08-11T04:48:38 | 2021-08-11T04:48:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,543 | py | import io
from logging import log
from PIL import Image
from flask_cors import CORS
from flask import Flask, jsonify, request, render_template
app = Flask(__name__)
CORS(app)
# 读取配置文件
import configparser
config = configparser.ConfigParser()
config.read("config.ini")
app.config['YOLO_PATH'] = config['YOLO']['yolo_pat... | [
"81484981@qq.com"
] | 81484981@qq.com |
808b66ff6e5f2259bf63491d70c20bb57616c92b | 20e7b2997f4dd90ec4cea01124d70ee5bcf9b58f | /server/api/zone.py | 34ead4e61adb572ed1ed95c9da1cb40f7fc10376 | [] | no_license | baden/gps-maps27 | 77f87738984d3c711697bdbb380eeb039a1096eb | defe2925e6b35da5df6b546fd15e645d10d1a5b4 | refs/heads/master | 2021-03-12T23:52:22.735079 | 2014-01-29T12:31:20 | 2014-01-29T12:31:20 | 32,263,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,837 | py | # -*- coding: utf-8 -*-
from core import BaseApi
import json
import logging
from google.appengine.ext import db
class Add(BaseApi):
#requred = ('akey')
def parcer(self):
from datamodel.zone import DBZone
#points = self.request.get("points", None)
ztype = self.request.get('type', 'polygon')
p... | [
"baden.i.ua@gmail.com@cd201f0b-5521-6f96-0748-8efd02dae0ad"
] | baden.i.ua@gmail.com@cd201f0b-5521-6f96-0748-8efd02dae0ad |
a1e1777cc3e85074a7ca11f4d2a017bf604cf336 | dcb125099565f438a7a6f9c064abf4041fed14dc | /ex31.py | a6b438f6cb56c19ca7a7ea77c94a12aa3c31f458 | [] | no_license | SecZhujun/Py104 | 72794c57f5506e031fb11e786f50949b24bea8b5 | 966220b69588492d8d371935fb344d2e85544825 | refs/heads/master | 2020-12-30T10:11:23.345304 | 2017-08-08T13:59:37 | 2017-08-08T13:59:37 | 99,239,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,064 | py | print("You enter a dark room with two doors. Do you go through door #1 or door #2?")
door = input("> ")
if door == "1":
print("There's a giant bear here eating a cheese cake. What do you do?")
print("1. Take the cake.")
print("2. Scream at the bear.")
bear = input("> ")
if bear == "1":
... | [
"noreply@github.com"
] | noreply@github.com |
98c846f9ae6a523c8f2dd83d8d296e2c0eb068ae | 6e1334b12fa0549264dc8536a8383810668be598 | /train_model/__init__.py | 4bea6f1fe82ed6f351f1a5155576e1c48d012d49 | [] | no_license | FireJohnny/Attention_domain_sentiment_analysis | 460bec4c064d0933eb81cbcad431e4db42156bb7 | 9ef4621e7add164ff5c1c4f8803c495c1eeb7492 | refs/heads/master | 2020-03-23T01:47:30.371808 | 2018-08-02T06:56:07 | 2018-08-02T06:56:07 | 140,937,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | #!/usr/bin/env python
# encoding: utf-8
"""
__author__ = 'FireJohnny'
@license: Apache Licence
@file: __init__.py.py
@time: 2018/6/10 12:21
"""
def func():
pass
class Main():
def __init__(self):
pass
if __name__ == '__main__':
pass
| [
"firejohnny@outlook.com"
] | firejohnny@outlook.com |
0075b6d56de2872e38a7499b06627a80063c537b | 26654298576be6897f2ba37af7006644c71aca89 | /products/admin.py | 652c33f845da77f37b5b5691ff759d15bb420a67 | [] | no_license | EhsanOrandi/Online-Market | dd826f200a844d3a8da56306d67e6065a41b1abc | e65ef957b246b7346dbc98d192212abfd94abcd9 | refs/heads/main | 2023-03-21T15:53:42.736458 | 2021-03-03T17:05:39 | 2021-03-03T17:05:39 | 323,933,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,256 | py | from django.contrib import admin
from .models import Category, Brand, Product, ShopProduct, Comment, Image, ProductMeta
# Register your models here.
@admin.register(Category)
class CategoryAdmin(admin.ModelAdmin):
list_display = ('name', 'slug', 'details', 'parent')
search_fields = ('name', 'slug')
list_f... | [
"ehsanorandi17@gmail.com"
] | ehsanorandi17@gmail.com |
2353f630e1b4c55d06c5cd4999817f083f38db7b | 5463ff580e270799ba2a2c33bbcec6fc03c680d1 | /assignment1/cs231n/classifiers/softmax.py | dc69bb4085ac6a386c33e8d762b5a5b63953de82 | [] | no_license | vedantthapa/cs231n-solutions | d2bdfca72b9de7c6806aa71c4cf37227b92b5568 | faa78c245b12b24760189f7a5685c97ef39c21e7 | refs/heads/master | 2023-06-01T19:03:08.642427 | 2021-05-28T15:43:42 | 2021-05-28T15:43:42 | 369,722,183 | 0 | 0 | null | 2021-05-22T17:57:25 | 2021-05-22T05:19:53 | Jupyter Notebook | UTF-8 | Python | false | false | 3,373 | py | from builtins import range
import numpy as np
from random import shuffle
from past.builtins import xrange
def softmax_loss_naive(W, X, y, reg):
"""
Softmax loss function, naive implementation (with loops)
Inputs have dimension D, there are C classes, and we operate on minibatches
of N examples.
I... | [
"thapavedant@gmail.com"
] | thapavedant@gmail.com |
9db73616056bed06a9c8484c5aea2920e6c7b81e | 421b0ae45f495110daec64ed98c31af525585c2c | /PythonProgramsTraining/graphics/frame1.py | c0c8e6a93f60c197702ad936f518643ad8a67d1b | [] | no_license | Pradeepsuthar/pythonCode | a2c87fb64c79edd11be54c2015f9413ddce246c4 | 14e2b397f69b3fbebde5b3af98898c4ff750c28c | refs/heads/master | 2021-02-18T05:07:40.402466 | 2020-03-05T13:14:15 | 2020-03-05T13:14:15 | 245,163,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | import tkinter as tk
from tkinter import messagebox
def area():
'to calculate area'
len = float(tfLen.get())
wid = float(tfWidth.get())
result = len*wid
tfArea.insert(0,result)
# Showing massage box
messagebox.showinfo("Info MAss ", "Area is : "+str(result)+" CM")
# creating a ... | [
"sutharpradeep081@gmail.com"
] | sutharpradeep081@gmail.com |
cad334329fd8492c437cdc851735130c1e0f1e6a | 22dd98f5e63ec77f279b067fc8baa51bc53e01b4 | /stocksite/stocksite/wsgi.py | afade811f89688c76918677f21ce8f050f1385ef | [] | no_license | crystalyang/StockPortfolioSuggestionEngine | 05ea0cde89762340fb8570fce3db8c6888664c9f | 41fb9fce0637ecaaf8d2fe42c5d24a302959089a | refs/heads/master | 2020-07-13T07:18:53.971647 | 2016-12-10T01:58:47 | 2016-12-10T01:58:47 | 73,889,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for stocksite project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SET... | [
"scott.liu@marinsoftware.com"
] | scott.liu@marinsoftware.com |
2f03ef0c87909a7ddf885f12cf909aa7a187d78f | 2835f367eb7c521987bdd1cbb309be9d55d77364 | /HDM/urls.py | 516f3f0f960b48689ab9b3780abf9c3952db47ce | [] | no_license | guneet-batra17/HDM | d1534fcfd8357368cfa7ad6c250ec5ec21cfa4d2 | c594053cc8cabeaedcbe74be5567b06b2c1cda86 | refs/heads/master | 2020-04-28T15:20:55.084015 | 2019-03-13T07:41:08 | 2019-03-13T07:41:08 | 175,369,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py | """HDM URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vie... | [
"batraguneet5@gmail.com"
] | batraguneet5@gmail.com |
c7fad03eaae8d4aad5a35d208cb71239fb81131f | 86468928bc86d6551d85ea1b4fb643d4f99f5952 | /Day04_20190905/use_attention_model_for_IC.py | d22af1c305533e567ed256ab177efd749e1b79ef | [
"MIT"
] | permissive | Magicboomliu/liuzihua_PKU_intern | 4788b0e83f101d39dce61017ecce260b11ce7138 | 6d7c8cee49ad0c9471b184432a64f2cebea0d6c2 | refs/heads/master | 2020-07-17T14:41:26.551920 | 2019-09-14T08:31:51 | 2019-09-14T08:31:51 | 206,037,769 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,764 | py | __author__ = "Luke Liu"
#encoding="utf-8"
# First input following modules
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
from sklearn.utils import shuffle
from imageio import imread
import scipy.io
import cv2
import os
import json
# tqdm是python的一个进度条的库,用来显示进度长的长度
from tqdm import tqdm
impor... | [
"Luke-Liu2020@qq.com"
] | Luke-Liu2020@qq.com |
4971cef2eaad9bf4b633f3ef22dd270b3856a41b | ffdd2e74d8f4a1a21e88ddb2e6a232b1dbcb7aea | /cliente.py | 58204c37115fd88a7234a0b4a351b97880cc7563 | [] | no_license | AlanMSP/Redes-y-Protocolos-de-Servicio---Chat-Cliente-Servidor | e6bbf631a74d7d5bfb4deb09f93d63779b9691bb | 065ea6966ccafa72c94b92046dff201b52f362aa | refs/heads/main | 2023-01-24T01:04:37.180261 | 2020-12-06T03:28:01 | 2020-12-06T03:28:01 | 318,942,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,090 | py | import tkinter as tk
from tkinter import simpledialog
import socket as sk
import threading as th
from time import sleep
import sys
def Enter_pressed(event):
input_get = input_field.get()
input_user.set("")
s.send(input_get.encode('utf-8'))
messages.insert(tk.END, 'Tu: %s' % input_get)
messages.item... | [
"noreply@github.com"
] | noreply@github.com |
e23e5efb00fe42ebfa8b57218117e27262831dba | 7f7aec3330b83ed9fa36cb01152b7bda367cb949 | /source_code/digit_recog_act_sig_w_RMS.py | a934f261c390d13f87b9de984aa2c8acc225918c | [
"MIT"
] | permissive | Hanumanth004/Digit_recognizer | a935f483e029e6382015df3ed94c8ab37ac18c1f | 3d5a49e5fc7bf953fe76e1cbc53866144011cbbc | refs/heads/master | 2021-01-19T13:03:59.334134 | 2017-08-23T11:30:13 | 2017-08-23T11:30:13 | 100,818,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,021 | py | import numpy as np
from scipy.special import expit
import mnist_loader
from random import randint
X_tr, X_val, X_te = mnist_loader.load_data_wrapper()
hidden_size=30
input_size=784
classes=10
K=0
BATCH_SIZE=100
learning_rate=0.1
decay_rate=0.9
Wh=np.random.randn(hidden_size,input_size)*0.01
bh=np.random.randn(hidden... | [
"fhanuman@vols.utk.edu"
] | fhanuman@vols.utk.edu |
6a03e512fd4317dd2c671be45ac153ffe1ea4646 | 08c775eefc9b1d9ce6660aee5eacc4d072d79c3c | /mmo/model/minivggnet.py | b11bbc9d2eacbbb71cb61becef42ad1a1c43a91c | [] | no_license | minmyatoo/merguinet | c952154718131c4963c473a06c0f7f218cb90722 | ffb59ceda6946b82684081e2c6c48e5412b9e798 | refs/heads/master | 2023-01-20T03:34:06.845361 | 2020-11-20T10:47:52 | 2020-11-20T10:47:52 | 313,382,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,218 | py | # import the necessary packages
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import BatchNormalization
from tensorflow.keras.layers import Conv2D
from tensorflow.keras.layers import MaxPooling2D
from tensorflow.keras.layers import Activation
from tensorflow.keras.layers import Flatten
fro... | [
"myatviz@gmail.com"
] | myatviz@gmail.com |
837b5aa2779afab60eab22a966ca39223d8265d5 | 768f7a8aebf2969ce66404068df975aa98737f07 | /pyteal/ast/nonce_test.py | 917e78042463843815d22d6c2e91133cb49f1032 | [
"MIT"
] | permissive | Lumene98/pyteal | b2e1201aae006e7ea9492f0c42af8cee99caf4cd | 9191e3c6074eaa7aaefac7dab0ab024d1110f8a6 | refs/heads/master | 2023-03-24T23:32:25.569906 | 2021-03-19T20:30:52 | 2021-03-19T20:30:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,252 | py | import pytest
from .. import *
def test_nonce_base32():
expr = Nonce("base32", "7Z5PWO2C6LFNQFGHWKSK5H47IQP5OJW2M3HA2QPXTY3WTNP5NU2MHBW27M", Int(1))
assert expr.type_of() == TealType.uint64
expected = TealSimpleBlock([
TealOp(Op.byte, "base32(7Z5PWO2C6LFNQFGHWKSK5H47IQP5OJW2M3HA2QPXTY3WTNP5NU2MHB... | [
"noreply@github.com"
] | noreply@github.com |
ffad9388f1dcca576425078110769343b97f4166 | 416239a621e5ad30d96a0680caa970592b15dad5 | /models/Top1Net_Basic.py | 40e5785cc1220b5c86c938387669f15d17ff40f7 | [] | no_license | jonozw/ECG_Nets | 31596f8dec0c9bc3231aac679add8f5b52df5121 | 786cb4b12dc5859ffdd6690782017fdb5dd1f0e0 | refs/heads/master | 2022-12-31T21:28:38.142575 | 2020-10-08T02:41:07 | 2020-10-08T02:41:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,424 | py | import torch
import torch.nn as nn
from torchsummary import summary
from models.BasicModule import BasicModule
import torch.nn.functional as F
#block1 = bn--relu--conv
class Block1(BasicModule):
def __init__(self, in_planes, planes, kernel_size=[1, 15], stride=[1, 2], padding=[0, 7]):
super(Block1, se... | [
"hzzhangqf@163.com"
] | hzzhangqf@163.com |
979890fa8a9aeb80307745607028a058432661c8 | 2d6ad0873cfc52d83cbdb0ecd9844ea83686bb38 | /csvfileproject.py | 0c7657a1b4f2ce1564a7a355f4de5051f710d5a3 | [] | no_license | amit928/practiced_python_codes | 6cec1837b5ec91f3a22963e9b21b656fe80a4497 | b8f9db2bdc5520729770e4077a9a8461a8c64bd3 | refs/heads/master | 2023-06-03T10:36:46.227166 | 2021-06-12T10:06:35 | 2021-06-12T10:06:35 | 376,256,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | import csv
file=open('amitzqxcsv.csv','r')
read=csv.reader(file)
x=input("Enter your marks : ")
for row in read:
if(row[3]==x):
print(row)
file.close()
| [
"amitzqx@gmail.com"
] | amitzqx@gmail.com |
a02d45d50426a72b18991c0c25da0082ba9e835f | 1886065d10342822b10063cd908a690fccf03d8b | /appengine/findit/crash/loglinear/changelist_classifier.py | 96277a04aefab650a935aa33a7cf08c3b48f7e7a | [
"BSD-3-Clause"
] | permissive | TrellixVulnTeam/chromium-infra_A6Y5 | 26af0dee12f89595ebc6a040210c9f62d8ded763 | d27ac0b230bedae4bc968515b02927cf9e17c2b7 | refs/heads/master | 2023-03-16T15:33:31.015840 | 2017-01-31T19:55:59 | 2017-01-31T20:06:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,932 | py | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from collections import defaultdict
import logging
from common.chrome_dependency_fetcher import ChromeDependencyFetcher
from crash import changelist_classif... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
5f1c9876b397f2a6214c19777cfdbc3a879dac4e | d924d8b865c878771b5752776fd46d9a8e92fe57 | /venv/lib/python3.6/operator.py | 2b20f2aede65cf193fcfbf2fbb805968f2a82b47 | [] | no_license | dts1346/cicd-buzz | 46be577b03c5cb931e3516fed5deafaefc963c75 | f00e1378a20a858d1339e2f1fc8607b478427ae4 | refs/heads/master | 2023-05-12T02:29:46.810082 | 2019-08-06T16:31:54 | 2019-08-06T16:31:54 | 200,687,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | /Users/tejasekhar/anaconda3/lib/python3.6/operator.py | [
"dts1346@gmail.com"
] | dts1346@gmail.com |
2cfd8daa1660c41448828589412aabcb495d3bd4 | 54688f6bfa35f8943edcc46a551b4e282f61e007 | /src/server/contest/migrations/0001_initial.py | 6487927ad0d54686d73bb27cc3c0fa115c4e236d | [
"MIT"
] | permissive | Agrawal-31/crux-judge | 52ce8c4128a973fd02e3e65c2111b67b4bba45a0 | a194f05d50a799bb3cddf4c23ea8d14fdadb20a2 | refs/heads/master | 2021-08-17T00:49:53.127134 | 2017-11-20T10:35:10 | 2017-11-20T15:44:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-07-29 20:58
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('trial', '0003_auto_20170728_2227'),
... | [
"basu.96@gmail.com"
] | basu.96@gmail.com |
f67845c001a82eb0dcfa9f1f7952d10120248821 | 256a034b044fd1826a57ed6a079f908264243796 | /data_Matplotlib.py | ba4e2170c86fc4833b2368475b2682d07f1e8a04 | [] | no_license | DAMS96/Course_TensorFlow_DeepLearning_Python | 3c0580e2a58e1d022cfaa3bf9cc4b369818987a8 | b5e873e39f7b7cd610fca225c0a9c70c39db81b8 | refs/heads/master | 2022-04-23T05:20:08.798539 | 2020-04-25T05:04:45 | 2020-04-25T05:04:45 | 258,642,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
# x = (0,1,2,3,4,5,6,7,8)
# y = (0,1,2,3,4,5,6,7,8)
# plt.plot(x,y,'g*')
# plt.title('TItulo del grafico')
# plt.xlabel('eje de los valores x')
# plt.ylabel('eje de los valores y')
# plt.show()
array = np.arange(0,50).reshape(10,5)
print(array)
pl... | [
"noreply@github.com"
] | noreply@github.com |
e026a7597819cb1ea30bf7eeff93ee312490cb3b | d3c761185113a52d98da695df96fa46cc2e38667 | /test/test_parser.py | fea5f5725e941a3b82391d2ab47b5c38a0d88daf | [] | no_license | AndresBena19/rolly_interpreter | b43b66fc570900f5209788b5c7d21d093093d19c | aba8a96b1944f2197590ce2e225729be6520e1a8 | refs/heads/master | 2020-04-15T07:00:36.142454 | 2020-02-26T05:18:33 | 2020-02-26T05:18:33 | 164,483,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | import unittest
import sys
from XETLlexer.lexer import lexer
from XETLparser.operations import parser_tree
class TestParser(unittest.TestCase):
@classmethod
def setUpClass(cls):
sys.setrecursionlimit(5000)
@classmethod
def tearDownClass(cls):
sys.setrecursionlimit(1000)
def setU... | [
"andres.benavides.ext@nokia.com"
] | andres.benavides.ext@nokia.com |
72165727392d92a8ea91efc6e3297f575469e6e3 | c0fb9a80e558848bb8ab327cf96c8afb443b9536 | /simple_django/manage.py | d946c12585ad04e1dab97425c8fd5f98403409db | [] | no_license | aledotdev/django-simple-test | 4ec20eb97b9fc4e6d39b6e278cccbf9091bc8612 | 575f3866a9311fdd54c061d7ff4535180a004b2e | refs/heads/master | 2020-03-09T13:40:38.944284 | 2018-04-09T19:01:05 | 2018-04-09T19:07:47 | 128,817,097 | 0 | 0 | null | 2018-04-09T18:54:13 | 2018-04-09T18:33:33 | Python | UTF-8 | Python | false | false | 545 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "simple_django.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django... | [
"alejandrodevalis@gmail.com"
] | alejandrodevalis@gmail.com |
f2c5da5c1d2cf18d5ad626b121ead0bff447b272 | c80bf7d01ae92f95edefa74f78a7eed634e2bb0c | /compose-validator/parser.py | 2050cb2f2c7a98d253ae031ba586228574fcac2f | [] | no_license | knigawkl/compiler | 01a0e0c5a40f4793a26651c5823826cbf99f9037 | a870733ca435438f0097cf47dfc4dc613b97ba03 | refs/heads/main | 2023-06-02T22:03:49.465178 | 2021-05-17T12:04:47 | 2021-05-17T12:04:47 | 343,549,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,455 | py | from prettytable import PrettyTable
from scanner import Scanner
from exceptions import UnexpectedStartToken, UnexpectedToken, UnknownStatement
from tokens import TokenType
from logger import logger
from utils import represents_int
START_TOKENS = (TokenType.SERVICES, TokenType.VERSION, TokenType.NETWORKS, TokenType.V... | [
"lukasz.knigawka@outlook.com"
] | lukasz.knigawka@outlook.com |
16fa0a4b39d17c4ece50384f657fc65fb6ee0fef | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02271/s666225963.py | a1e305d0cdb1bc4f6641e39bb56d1f7301cd5a82 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | # ALDS_5_A - 総当たり
import sys
n = int(input())
A = list(map(int, sys.stdin.readline().strip().split()))
q = int(input())
m = list(map(int, sys.stdin.readline().strip().split()))
sum_set = set()
for i in range(2 ** n):
bit = [(i >> j) & 1 for j in range(n)]
combined = [x * y for (x, y) in zip(A, bit)]
sum... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
90f5f255e73ca497a4b8e8aed744da5ac49e4dda | 742fdd98cdb87119e67af1b9c2f18f475c549f9b | /todo/models.py | df2f2639465de6a56bc1105c88132380cef7b174 | [] | no_license | Devashishsingh98/Todo-List | bec2a27ef45f53feb615baed6cb74e441b1a23c3 | 8e10c52c1239bc099b8332de3d9e5f6b90ebe9f9 | refs/heads/master | 2021-03-26T07:35:06.792569 | 2020-04-05T15:23:58 | 2020-04-05T15:23:58 | 247,684,639 | 0 | 0 | null | 2020-03-16T11:26:36 | 2020-03-16T11:26:35 | null | UTF-8 | Python | false | false | 203 | py | from django.db import models
class Todo(models.Model):
text = models.CharField(max_length=100)
complete = models.BooleanField(default=False)
def __str__(self):
return self.text
| [
"pranjal.ag.1999@gmail.com"
] | pranjal.ag.1999@gmail.com |
5e02976a619cb1e6ada32cf79cbd4ed879067ae8 | 4b69b5dd4b1b3cf81b996065831226a243abb332 | /articles/admin.py | 45fafe2207a9eb4a089c73b9557ee149401c8418 | [] | no_license | cui0519/myBlog | d8ebd601ac5bf5a3fe0dc16e2c703cdbaa055ab9 | c0852b6e42bfa93820d330e8f9e547be229344e8 | refs/heads/master | 2023-02-09T06:33:13.641351 | 2021-01-05T00:18:21 | 2021-01-05T00:18:21 | 326,308,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | from django.contrib import admin
from .models import Articles
# Register your models here.
class ArticlesAdmin(admin.ModelAdmin):
list_display = ('title','author','img','abstract','visited','created_at')
<<<<<<< HEAD
search_fields = ('title','author','abstract','content')
=======
search_fields = ('ti... | [
"you@example.com"
] | you@example.com |
2ce60a0dc8f0d186cf58e7ed69897d3ba80923a1 | 895611e8fe516fdef39fc14b7dac954614ebbec2 | /ranking/migrations/0001_initial.py | a60686bbbe8576ee28e3e397bd76e111692a891e | [] | no_license | puilp0502/paperrank | 7e278de27b2f86ced40e1489a59894f396c98f79 | 2bc63214f4cf31fa67caa3334a3fa475e2c1a5e5 | refs/heads/master | 2021-07-12T11:40:59.968221 | 2019-11-01T16:36:02 | 2019-11-21T02:45:11 | 134,579,843 | 0 | 0 | null | 2020-06-05T18:23:13 | 2018-05-23T14:13:46 | Python | UTF-8 | Python | false | false | 1,358 | py | # Generated by Django 2.0.3 on 2018-05-27 13:49
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Paper',
fields=[
... | [
"puilp0502@gmail.com"
] | puilp0502@gmail.com |
2925380a3da3d5570b8f7b3da8d4507d2a652c58 | 2d66758d59bede6354ebb8884ef499e537b697dc | /pariksha/challenge/migrations/0020_featureflag.py | 6568e2cdfaab86daf6739e97a20db5b343aadb23 | [] | no_license | yogendramaarisetty/pariksha | 40658e40eb9c770db111a69e18f416e17b6ea072 | 9c97df6eb175ea509f88589058c8da9eb67e2ebb | refs/heads/master | 2023-05-01T12:12:08.471298 | 2023-04-22T12:34:04 | 2023-04-22T12:34:04 | 241,330,792 | 1 | 0 | null | 2023-04-22T12:32:44 | 2020-02-18T10:16:47 | PLpgSQL | UTF-8 | Python | false | false | 602 | py | # Generated by Django 3.0.4 on 2022-10-12 06:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('challenge', '0019_submission'),
]
operations = [
migrations.CreateModel(
name='FeatureFlag',
fields=[
... | [
"ymaarisetty@planful.com"
] | ymaarisetty@planful.com |
c5b193fb983b5e4d663f93a6485499e152a180c1 | e5cf5fd657b28d1c01d8fd954a911d72526e3112 | /tide_teach/tide_time_windows.py | b54f5fcebaccedcc95ffb40b903d76d6c69a1cd4 | [] | no_license | parkermac/ptools | 6b100f13a44ff595de03705a6ebf14a2fdf80291 | a039261cd215fe13557baee322a5cae3e976c9fd | refs/heads/master | 2023-01-09T11:04:16.998228 | 2023-01-02T19:09:18 | 2023-01-02T19:09:18 | 48,205,248 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,730 | py | """
Code to plot observed tide time series.
"""
import os
import sys
import pytz
import pandas as pd
import matplotlib.pyplot as plt
from datetime import datetime, timedelta
import numpy as np
from importlib import reload
import ephem_functions as efun
reload(efun)
import tractive_functions as tfun
reload(tfun)
alp... | [
"p.maccready@gmail.com"
] | p.maccready@gmail.com |
9cd66536cdc51a43bf901eccb7e2154f2e6368ec | 768058e7f347231e06a28879922690c0b6870ed4 | /venv/lib/python3.7/site-packages/numba/cuda/simulator/compiler.py | 5a88a649e47d11efe9887678a7397e77376673b8 | [] | no_license | jciech/HeisenbergSpinChains | 58b4238281d8c158b11c6c22dd0da82025fd7284 | e43942bbd09f6675e7e2ff277f8930dc0518d08e | refs/heads/master | 2022-12-18T08:04:08.052966 | 2020-09-29T12:55:00 | 2020-09-29T12:55:00 | 258,476,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | """
The compiler is not implemented in the simulator. This module provides a stub
to allow tests to import successfully.
"""
compile_kernel = None
| [
"jan@multiply.ai"
] | jan@multiply.ai |
34ea95617be832a8ef0f9d01010a60845f4ce08a | 06313b5aff0c376c5c146c82eeeb3d82399d93aa | /cfratinghandler.py | df72e93e6359625feea3b688b20753455387dac1 | [
"MIT"
] | permissive | PIE0/icpc-amarchi | 34b4ba8abdc968730eb4bf00c0f53503a1bd069e | 9272002a2d0d9e07d7fe20349ced830129fb68fc | refs/heads/master | 2020-05-24T18:02:13.662810 | 2019-05-18T20:17:50 | 2019-05-18T20:17:50 | 187,400,638 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,029 | py | import ast
import json
import os
import requests
import threading
handle_link = 'https://codeforces.com/api/user.info?handles='
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
local_path = ROOT_DIR + '/users/'
def get_user_rating(handle, local=False):
if not local:
res = requests.get(handle_link +... | [
"p.abdollahi@cafebazaar.ir"
] | p.abdollahi@cafebazaar.ir |
d1022f584747e762e37caeea29babb6ece88fe51 | 1633df15fc909ecc875224466d2e54d97c84e11b | /techmngt/migrations/0005_auto_20190114_1655.py | 1a51b80681f541bf8f505f82fc76f7ec921fe9f6 | [] | no_license | fmatray/groovy | c35da073e6b472e1d1dd2510d13919d131ccbfc4 | 7dcbf36b933beb47afd74ef12aecda1f62cf3998 | refs/heads/master | 2020-04-12T12:47:13.826015 | 2019-01-21T17:06:41 | 2019-01-21T17:06:41 | 162,502,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,806 | py | # Generated by Django 2.1.4 on 2019-01-14 15:55
from django.db import migrations, models
import django_cryptography.fields
import markdownx.models
class Migration(migrations.Migration):
dependencies = [
('techmngt', '0004_auto_20190114_1212'),
]
operations = [
migrations.AlterField(
... | [
"D@isuke10"
] | D@isuke10 |
95135f1e23b15e25a1b4ba5d78ecef4dd3de1c36 | 694c3d6ef7b75f640b0fe21b1637093f020b1cd3 | /palindromeCheck.py | 540c41630f16dec12ac2a0c7b0aa577651912fb8 | [] | no_license | MinhNguyen153216/palindromeCheck | 216fa6f18dc23b978517bb2433cd682ab1ea541f | ddbcf7ca4cee2578e34caded49eca45871386783 | refs/heads/master | 2023-03-29T04:53:16.527905 | 2021-03-26T13:57:21 | 2021-03-26T13:57:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Mar 26 17:27:54 2021
@author: ASUS
"""
def find_palindrome(s):
if s == s[::-1]:
return True
else:
return False
print(find_palindrome('momom'))
# momom | [
"minhnguyen153216@gmail.com"
] | minhnguyen153216@gmail.com |
0c46e45ada2e54e6238b1dc83d60a0db7b447b88 | bbfae437b046fb0e19190f45a59e92d3a65a1f52 | /day02/3-爬取出版社.py | b3459ac64cc0ca6b1aa63fa79428965d956c6f24 | [] | no_license | KEVINWANGXIANG/Scrapy_and_Data_analyse | 87ce4f0d48637e0fd40a7a40054e8cc395885deb | 66eb3cdb100837d90169e2368964af0a11167928 | refs/heads/master | 2020-05-19T19:21:57.122613 | 2019-05-06T10:50:31 | 2019-05-06T10:50:31 | 185,177,711 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | import urllib.request
import os,re
url = r"https://read.douban.com/provider/all"
path=r"F:\Python\爬虫与数据分析\day02\file.html"
headers={
"User-Agent":"Mozilla/5.0 (Windows NT 10.0; WOW64) "
"AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"}
req=urllib.request.Request(url,headers=headers)
... | [
"987727555@qq.com"
] | 987727555@qq.com |
ff81e1f3950f62d4dfbb90dc28261e8c8886eacc | 88c2b8b94fa184786ae57d013c0d2e9d85daf2eb | /final_submission_scripts/py_scripts/FS_rf_full.py | 60726f331e1ad8f19ce2157937e0b04118ce5df2 | [] | no_license | gianlucamancini7/ml_project2 | adffb9916fb3e91ce2851e296aed8f2b8c91583a | 25d21919af84c99ba90daa1e19983a963cc98a84 | refs/heads/master | 2020-04-04T20:46:30.355669 | 2018-12-23T09:12:59 | 2018-12-23T09:12:59 | 156,260,582 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,464 | py |
# coding: utf-8
# In[3]:
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.model_selection import train_test_split
from sklearn.ensemble import RandomForestClassifier
from sklearn.preprocessing import StandardScaler
from sklearn.pipeline import make_pipeline
from sklearn.preproces... | [
"43441083+tnutta@users.noreply.github.com"
] | 43441083+tnutta@users.noreply.github.com |
e04e36754867e4cce7f582ff4d53b49ee1c01c21 | 12b2f39a37cd022ced27fc266a5d1b47aba76b9d | /vanilla/demo.py | d38a082cbab51d9c0fb0472a89eadb0100bc9b68 | [] | no_license | ZhangYet/vanguard | 7a3e89035775dcf0b8c60a8a05165bc6e6af14e8 | 660cfdbcfb747c372e24466ef14680ffcbd2c68c | refs/heads/master | 2021-07-01T05:47:52.398437 | 2021-01-04T08:43:34 | 2021-01-04T08:43:34 | 207,758,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,235 | py | from gvanim import Animation, render, gif
class Node:
def __init__(self, value: int, name: str):
self.value = value
self.left, self.right = None, None
self.name = name
def preorder(root: Node, ga: Animation):
if not root:
return
ga.highlight_node(root.name)
if root.... | [
"zhangyet@gmail.com"
] | zhangyet@gmail.com |
bd2642958ca70142252da805baaf1c98b45dbc0d | 3eea8b36dfd6633ca7645b0d43d78c6eeb960502 | /website/migrations/0012_auto_20200606_0444.py | a07049f90835cafb4d289531fedf3b271c3f0e81 | [] | no_license | raifran1/100DaysPB | 9d5c367b4ad951da13c9f82e78785d51a3941bc3 | 4820aa0e09b9baeb761dc6ec6e262e4e0635bb84 | refs/heads/master | 2022-10-14T06:17:29.605900 | 2020-06-13T16:54:06 | 2020-06-13T16:54:06 | 272,049,540 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 719 | py | # Generated by Django 3.0.7 on 2020-06-06 07:44
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('website', '0011_auto_20200606_0444'),
]
operations = [
migrations.AlterField(
... | [
"raifranlucas@outlook.com"
] | raifranlucas@outlook.com |
fbc8a886afbdfc9782f396e85bce47a631519c2f | c3cb06f1107043f93ee3db12bef7abb758b4d002 | /in_progress/GiRaFFEfood_NRPy/GiRaFFEfood_NRPy_1D_tests_degen_Alfven_wave.py | 31b036de8bdab4f0b59a02858a0717a3b8dc1744 | [
"BSD-2-Clause"
] | permissive | basuparth/nrpytutorial | 58533f98c260649ece3f35d8777ceabd4bff702f | 8a6b05f33c17b42034cf21fb66d9ac7946065028 | refs/heads/master | 2023-01-03T05:26:53.681493 | 2020-10-23T21:43:23 | 2020-10-23T21:43:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,464 | py | #!/usr/bin/env python
# coding: utf-8
# <a id='top'></a>
#
#
# # $\texttt{GiRaFFEfood}$: Initial data for $\texttt{GiRaFFE}$
#
# ## Alfvén Wave
#
# $$\label{top}$$
#
# This module provides another initial data option for $\texttt{GiRaFFE}$, drawn from [this paper](https://arxiv.org/abs/1310.3274) . This is a fl... | [
"penelson@mix.wvu.edu"
] | penelson@mix.wvu.edu |
799ed238049370ca5758cf0a772ef317681ac106 | 2d2527a32797e1107f2c83ee455f9c249d3a2763 | /Lottery.py | 6266397111e4bc0333f9161fb5af21295ed4b7ed | [] | no_license | Olelewe-PROHUB/Python-Projects | a1f2ff66c7a2d6d389759fa26bb6347486b05742 | 3d4a2405f37bb53860fa34ae1efc1aa4ef9b5bdc | refs/heads/master | 2021-02-14T04:28:57.135887 | 2020-03-04T00:11:08 | 2020-03-04T00:11:08 | 244,768,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,746 | py | #The Lottery Program creates a list of 10 Letters and 5 Numbers from a list
#And randomly selects four numbers or letters from the list.
#A message will print saying that if the contestant posesses a matching
#Combination, that they will win the prize
"""Need to import the choice method from the random module"""
from... | [
"noreply@github.com"
] | noreply@github.com |
fe3d3c58722c2387acd324f43f7c8ae75d32030a | aabca07ca1c659e5d8ff9e935b46a73d365e1d45 | /python/candies.py | 6a17aedd7b94864fd258fc5751896bf3249d2277 | [] | no_license | colinbruner/leetcode | d47aa7b07a5fa7c4bc94bda085f69a0be405b6f7 | 5be75851833b57e37f7d725a6f195662b2a1a068 | refs/heads/master | 2022-12-11T14:18:56.200279 | 2020-09-16T22:07:58 | 2020-09-16T22:07:58 | 293,332,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | class Solution:
# def kidsWithCandies(self, candies: List[int], extraCandies: int) -> List[bool]:
def kidsWithCandies(self, candies, extraCandies):
ans = list()
most_candies = max(candies)
for kid in candies:
if kid + extraCandies >= most_candies:
ans.append(T... | [
"colin.d.bruner@gmail.com"
] | colin.d.bruner@gmail.com |
0c0782612fe16f2c714fe147ada9085f228edca5 | e3e1429aec04f84078d83bbd3b16646b04adc20f | /D03/ex04/django_venv/bin/easy_install-3.8 | 030c1b1a187ed4d81fb9b763b61069eb3a4f8aed | [] | no_license | KKWANH/42_Django_Piscine | e5b1da1e2b4fcc05898004e4c23d3388ae6b9437 | d7b2e86da7e8872b42461ee6f3b4ed4b0281b3d9 | refs/heads/main | 2023-07-11T12:37:01.503874 | 2021-08-11T14:39:07 | 2021-08-11T14:39:07 | 389,653,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | 8 | #!/Users/kimkwanho/Documents/Programming/42Seoul/Django_Piscine/git/D03/ex04/django_venv/bin/python3
# -*- 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())
| [
"kwanho0096@gmail.com"
] | kwanho0096@gmail.com |
e11e29e082e3b71ce4dd66262c39a752138a0743 | 3d5164c05354f4f3db782efa504670d441963cd6 | /semestrovka_django_2k/client/migrations/0001_initial.py | e876759ec72399d99f1e94cde0ea65f47c77e07f | [] | no_license | agalimullin/codeex | 7efd7c2e966193c8ec0aabae82ffe248d0ea1fa8 | c4757da23dd05b0be22ffbf0defd608633562d11 | refs/heads/master | 2020-12-25T09:48:00.003278 | 2016-07-31T11:29:48 | 2016-07-31T11:29:48 | 64,546,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 878 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.Create... | [
"amirgolden@Amirs-MacBook-Pro.local"
] | amirgolden@Amirs-MacBook-Pro.local |
b4f391918f30a778d049bd168cb1ca4154c0b42a | 3a4fbde06794da1ec4c778055dcc5586eec4b7d2 | /@lib/12-13-2011-01/vyperlogix/decorators/addto.py | 979a905e9a18fdcddf2620939aec919f9baa031a | [] | no_license | raychorn/svn_python-django-projects | 27b3f367303d6254af55c645ea003276a5807798 | df0d90c72d482b8a1e1b87e484d7ad991248ecc8 | refs/heads/main | 2022-12-30T20:36:25.884400 | 2020-10-15T21:52:32 | 2020-10-15T21:52:32 | 304,455,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | __copyright__ = """\
(c). Copyright 2008-2014, Vyper Logix Corp., All Rights Reserved.
Published under Creative Commons License
(http://creativecommons.org/licenses/by-nc/3.0/)
restricted to non-commercial educational use only.,
http://www.VyperLogix.com for details
THE AUTHOR VYPER LOGIX CORP DISCLAIMS ... | [
"raychorn@gmail.com"
] | raychorn@gmail.com |
c305892b8de9942ba1433b2aa00240da71b7b0bc | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AlipayCloudCloudbaseHttpaccessBindQueryResponse.py | ebc27653df46ebfce5e7c7e7b22f0e76998f3f54 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 1,902 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
from alipay.aop.api.domain.DomainBind import DomainBind
class AlipayCloudCloudbaseHttpaccessBindQueryResponse(AlipayResponse):
def __init__(self):
super(AlipayCloudCloudbaseHttpacc... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
e8992ba2dfbde226c943c5ad3695716282a166ef | b89e46fadd265777ffdf17ca7a7c2e656c9720e1 | /coding/firststep/function_default.py | d3b04d18c0e07a2f0c967f28e8cde494bb3b0b45 | [] | no_license | pengchant/enjoy-python | 9976dcb7e9bbd36fa76ec6c72f04a038f09ade82 | f13a5c78c4b2986700d9cefa09d39fa662b6a37e | refs/heads/master | 2022-10-21T00:28:07.174259 | 2018-01-26T05:28:01 | 2018-01-26T05:28:01 | 118,450,210 | 1 | 1 | null | 2022-10-06T02:04:53 | 2018-01-22T11:47:36 | Python | UTF-8 | Python | false | false | 79 | py | def say(message,times=1):
print(message*times)
say('Hello')
say('World',5) | [
"dntchenpeng@163.com"
] | dntchenpeng@163.com |
27b57af6ca5f6955108cd69191c354f0a95d9c05 | 84eb0bf9a8dc1f6b10fb094c0f40728c0b45320a | /gemdaq-testing/setup/scripts/python/v2/kernel/ipbus/ChipsBus.py | 0bb5a65b2ed936a797b259b55b7ea8960537d24a | [] | no_license | jsturdy/gem-daq-code | 9da017dc15c8b44ad9c6103b0dd78f04cffed1c6 | 008d34c9d4774e23c1c366a0e3afcdd671742427 | refs/heads/develop | 2020-12-24T07:05:01.055068 | 2016-06-03T12:57:30 | 2016-06-03T12:57:30 | 17,248,246 | 1 | 3 | null | 2016-06-01T11:25:47 | 2014-02-27T12:37:15 | C++ | UTF-8 | Python | false | false | 29,098 | py | '''
Created on May 12, 2010
@author: Robert Frazier, Carl Jeske
'''
# System imports
import socket
# Project imports
import IPbusHeader
from TransactionElement import TransactionElement
from Transaction import Transaction
from CommonTools import uInt32HexStr, uInt32Compatible, uInt32BitFlip
from ChipsLog import chip... | [
"sturdy@cern.ch"
] | sturdy@cern.ch |
595f1c198ad684dade52866bb75294a037bfaa99 | e2d817d14d1d4cad190a435a17a76168edfa87e4 | /Encoder.py | ba55dd2bdd3e49f3113a22683a643edaaa2baba4 | [] | no_license | KirillIvano/Snake | 9560005ad5e3284a01c009908ac6fe1f5fb0e3e6 | 0c2e3e86cb0e4c08242d0b9427487d5bd049026c | refs/heads/master | 2020-03-22T20:20:55.158147 | 2018-08-08T15:52:33 | 2018-08-08T15:52:33 | 140,591,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | import math
def encrypt(num):
return (num ** 2 - 10) * 7 - 3
def decrypt(num):
x = math.sqrt(abs((num + 3) / 7 + 10))
if x == int(x):
return int(x)
else:
return 0
print(encrypt(0)) | [
"noreply@github.com"
] | noreply@github.com |
e379a7cc8b122699f2ec0dd385e8fd29d4fb2681 | ccb4cbe7bf23a828ee3c2c9100258e0454ae9162 | /String Split and Join.py | 3f9e5f64de8e1dc48337608100a315c75cc86e6d | [] | no_license | rohanghosh7/Hackerrank_Python_Solution | 7132d08b5ee30b02e9e9a2df50aa67d02b39fbe6 | 9efa3856916c9c41474bbe6c8ca07ce9fa4fd881 | refs/heads/master | 2022-08-10T02:25:51.123439 | 2020-03-30T15:14:34 | 2020-03-30T15:14:34 | 265,371,243 | 0 | 0 | null | 2020-05-19T21:30:32 | 2020-05-19T21:28:18 | null | UTF-8 | Python | false | false | 174 | py | def split_and_join(line):
line = line.replace(" ","-")
return line
if __name__ == '__main__':
line = input()
result = split_and_join(line)
print(result)
| [
"pratikmukherjee32@gmail.com"
] | pratikmukherjee32@gmail.com |
4d49580aa0fafe91993759da0f7b959794e84dfc | 1f7481a40a1d44a58524e3fc4034a16f72ee8619 | /experiments/depth/TBLogger.py | 644ab0a8da2d5db24e3adcb449afc8cc24a8a0c9 | [
"BSD-3-Clause"
] | permissive | princeton-vl/oasis | f044f00b3fd6446ffeb19ac62f94b771f5996558 | 5835d24c331d78e91becba29f7e4a53ccd3e376e | refs/heads/master | 2023-06-18T18:00:13.043984 | 2021-07-22T00:34:58 | 2021-07-22T00:34:58 | 283,081,792 | 64 | 7 | BSD-3-Clause | 2021-06-10T17:02:59 | 2020-07-28T02:59:39 | MATLAB | UTF-8 | Python | false | false | 1,042 | py | '''
TensorBoard logger.
https://pytorch.org/docs/stable/tensorboard.html
'''
import config
from torch.utils.tensorboard import SummaryWriter
class TBLogger(object):
def __init__(self, folder, flush_secs=60):
self.writer = SummaryWriter(log_dir = folder, flush_secs=flush_secs)
def add_valu... | [
"wfchen@umich.edu"
] | wfchen@umich.edu |
7ca223afe5153d45121ca9011ccb886e87b49eb5 | 99fddc8762379bcb707ad53081cd342efa7a5d89 | /test/pinocchio_frame_test.py | fa17c45921833826190201d02cca144b699b6959 | [
"MIT"
] | permissive | zhilinxiong/PyPnC | ef19a4bcc366666d2550466b07cd8ec8f098c0c4 | abf9739c953d19ca57fd4bd37be43415f3d5e4a7 | refs/heads/master | 2023-07-04T19:09:26.115526 | 2021-08-03T04:29:10 | 2021-08-03T04:29:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,565 | py | import os
import sys
cwd = os.getcwd()
sys.path.append(cwd)
import pinocchio as pin
import numpy as np
urdf_file = cwd + "/robot_model/manipulator/three_link_manipulator.urdf"
model = pin.buildModelFromUrdf(urdf_file)
data = model.createData()
print(model)
q = np.array([np.pi / 2., 0., 0.])
# q = np.zeros(3)
qdot = ... | [
"junhyeokahn91@gmail.com"
] | junhyeokahn91@gmail.com |
b4836447f7d919821ab1c54198aa56640ac26bdd | 90025965043e73f4483b63557801e9463bead66c | /ex1/ex1_beginner.py | 71df2f10c11b39487c787f79f510d98676e7b74d | [] | no_license | University169/tetrika | 1436654ccea634d5bb36198a8287d03472eadf79 | 1a96453d6a4b848434246cfa0a1395a8981accdc | refs/heads/master | 2022-11-11T23:49:20.016355 | 2020-07-06T23:27:54 | 2020-07-06T23:27:54 | 274,887,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | # a = [12, 3, 51, 2, 17, 49, 80, 1, 4, 37]
def search_pairs(array, k):
n = len(array)
b = []
for i in range(n-1):
for j in range(i, n-1):
if (array[i] + array[j]) == k:
t_direct = tuple((array[i], array[j]))
t_inverse = tuple((array[i], array[j]))
... | [
"dmitriy.klimkov@rt.ru"
] | dmitriy.klimkov@rt.ru |
2e808d917489faf59e65fb3ab6a7e999316ec019 | 14a853584c0c1c703ffd8176889395e51c25f428 | /sem1/fop/lab5/static/strings.py | 2f47c15c3b3c7d3bd361c700be9a29ee4f30b077 | [] | no_license | harababurel/homework | d0128f76adddbb29ac3d805c235cdedc9af0de71 | 16919f3b144de2d170cd6683d54b54bb95c82df9 | refs/heads/master | 2020-05-21T12:25:29.248857 | 2018-06-03T12:04:45 | 2018-06-03T12:04:45 | 43,573,199 | 6 | 4 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | """
Most long messages displayed by the UI will be found here.
"""
from util.Color import bold
STRINGS = {
'helpPrompt':
'Commands:\n' +
'\t%s - displays this prompt.\n' % bold('help') +
'\t%s - adds a new student or assignment.\n' % bold('add') +
'\t%s -... | [
"srg.pscs@gmail.com"
] | srg.pscs@gmail.com |
6b1d1fdaa602c7768fb7a668612821ad314b4395 | 52d797a1a9f853f691d2d6fb233434cf9cc9e12b | /Implementation Challenges/Append and Delete.py | 1e2622a5816301cb9b83c0a56d915bdfe4639df0 | [] | no_license | harshildarji/Algorithms-HackerRank | f1c51fedf2be9e6fbac646d54abccb7e66800e22 | 96dab5a76b844e66e68a493331eade91541fd873 | refs/heads/master | 2022-05-21T06:57:59.362926 | 2020-04-19T14:05:19 | 2020-04-19T14:05:19 | 114,212,208 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | # Append and Delete
# https://www.hackerrank.com/challenges/append-and-delete/problem
s, t = input().strip(), input().strip()
k = int(input().strip())
for i in reversed(range(1, k + 1)):
if s == t[:len(s)] and len(t) - len(s) == i or len(s) == 0:
break
s = s[:-1]
print("Yes" if len(t) - len(s) <= i els... | [
"darjiharshil2994@gmail.com"
] | darjiharshil2994@gmail.com |
d3c5885435cc1f7e48eb2fec6f3463ab5093bd4b | f253f06b816503837744620befad8aed554ec72f | /tests/test_perceptron_multi_couches.py | a47b5dd51f5cd1e4a96b2b78ce4b4c0197ca259a | [] | no_license | julienbrosseau/IFT712-Projet | edc67ad4cd2437b57f9bdcb6b2fd1cc391e4c3d5 | 911090fc4a81e2a4f8c38d41543001cb1cc2da33 | refs/heads/master | 2020-09-11T04:11:27.170890 | 2019-12-11T22:13:06 | 2019-12-11T22:13:06 | 221,934,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,582 | py | # Test du fichier "perceptron_multi_couches.py"
import bin.data_opening as op
import bin.treatment as tr
import bin.perceptron_multi_couches as mlp
import seaborn as sns
import matplotlib.pyplot as plt
from sklearn.metrics import confusion_matrix
# Récupération des données
data_opening = op.DataOpening()
data_train ... | [
"36883495+Arnaud2N2@users.noreply.github.com"
] | 36883495+Arnaud2N2@users.noreply.github.com |
a3b496709b951d6d6b324d5404e6b63b78605179 | 4f1064197ea9c480eb0d2b883bdac4117b9e4ca4 | /examples/omxcommand.py | 8b664068d854546a5213509c2540d76a3e169e07 | [
"MIT"
] | permissive | Douglas6/omxcontrol | b87e8d58b23025baae9c2d5dab3f0b7ecde81e72 | 78bc887f70578d2448d3da321a16ec5ea6e51d3f | refs/heads/master | 2020-05-16T15:48:13.664469 | 2015-03-09T17:49:15 | 2015-03-09T17:49:15 | 30,987,387 | 11 | 1 | null | 2015-05-07T14:08:06 | 2015-02-18T21:16:15 | Python | UTF-8 | Python | false | false | 2,050 | py | #!usr/bin env python
import argparse
from omxcontrol import *
parser = argparse.ArgumentParser()
parser.add_argument("cmd", help="omxplayer command")
parser.add_argument("-u", "--user", dest="user", help="omxplayer user")
parser.add_argument("-n", "--name", dest="name", help="omxplayer D-Bus name")
args = parser.pars... | [
"douglasotwell@gmail.com"
] | douglasotwell@gmail.com |
4433c80d2920bbc698bca015e2f1863e260c09e5 | 8e728ab05f880ffe210c58d5fbc60f3cce4b01f2 | /server/tasks.py | f0fc928716f1c11e6472520fb1563a30982b1c79 | [] | no_license | SanaSystem/sananode | adb707ec70d7b17b581d06c7b6b59083999e6492 | 2c38910637a4957ae551327f2ceb1333449fa369 | refs/heads/master | 2022-12-10T09:06:13.562720 | 2020-08-16T19:43:30 | 2020-08-16T19:43:30 | 140,470,727 | 2 | 7 | null | 2022-12-08T02:16:18 | 2018-07-10T18:10:31 | JavaScript | UTF-8 | Python | false | false | 3,873 | py | from celery import shared_task, task
from celery.task.schedules import schedule
from celery.decorators import periodic_task
from .utils import decompose_medblocks, to_set, to_dict_list, reconstruct_medblocks, remove_duplicates, approved_decompose_medblocks
from .blockchain import retrieve_from_tangle, broadcast_on_tang... | [
"tornadoalert@gmail.com"
] | tornadoalert@gmail.com |
98efe801dbeb74dbc82ab21f122b91d51a31aadb | a6b09f253a12a0723a1116c67a2c35048e7a5788 | /unesco/migrations/0002_auto_20201024_0539.py | 6e41989d57a118a64d3c3be2d4fec628c7d747c7 | [] | no_license | ravik9158/django_projects | bc61b5a35018065873e4f5be6e1c17598e4c0cbb | 723cb1719a4d386cf3c25a31441f564250f750e0 | refs/heads/main | 2023-01-03T21:56:15.867273 | 2020-11-02T16:36:10 | 2020-11-02T16:36:10 | 309,423,604 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | # Generated by Django 3.1.1 on 2020-10-24 05:39
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('unesco', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='category',
old_name='category',
n... | [
"noreply@github.com"
] | noreply@github.com |
d1b8918a50eb13a7832d3eeb130092b3a684ac79 | 4fbafbec0766fe5235d6733aea3459e6dd264689 | /src/lib/models/utils.py | 94fecb70e54efdd7f55059a66957671106c74b99 | [
"MIT"
] | permissive | yangchengjun/HPRNet | 7a4f51fb1fa2930a705f0de6bb67f23a554b1bce | a23e691102ed50bd24391e6295c74f452592cdae | refs/heads/master | 2023-07-31T03:00:50.882141 | 2021-09-27T11:25:38 | 2021-09-27T11:25:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,586 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import torch
import torch.nn as nn
def _sigmoid(x):
y = torch.clamp(x.sigmoid_(), min=1e-4, max=1-1e-4)
return y
def _gather_feat(feat, ind, mask=None):
dim = feat.size(2)
ind = ind.unsqueeze(2)... | [
"nermin.samet@gmail.com"
] | nermin.samet@gmail.com |
444497d7d6946f0783350675c023b36c83f68076 | 406921ee42acbbc091c60a381eb9289b1897c90e | /Examples/Modules/laser_injection/analysis_2d.py | fffa7d3a19934eb397da780ec223f442265bd4a8 | [
"BSD-3-Clause-LBNL",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | lge0303/WarpX | 328354aaff9b688db693cefc1f76d52a7f39b19f | 5805f90c6937d135b1fe2f6bd0891d99e7e219e0 | refs/heads/master | 2021-09-16T03:40:42.954718 | 2021-08-29T01:50:27 | 2021-08-29T01:50:27 | 160,225,442 | 0 | 0 | NOASSERTION | 2021-08-29T02:43:10 | 2018-12-03T17:03:15 | C++ | UTF-8 | Python | false | false | 6,807 | py | #! /usr/bin/env python
# Copyright 2019 Andrew Myers, Jean-Luc Vay, Maxence Thevenet
# Remi Lehe, Weiqun Zhang, Luca Fedeli
#
# This file is part of WarpX.
#
# License: BSD-3-Clause-LBNL
# This file is part of the WarpX automated test suite. Its purpose is to test the
# injection of a Gaussian laser pulse from an ant... | [
"noreply@github.com"
] | noreply@github.com |
2118f12a1e03b7b2a2d66488ad573442c9f8c2ca | 5a242ab085c26ff1c9893341714267a7a2628c9b | /analysis/codelists.py | 5886e84b0c4497add341e767b3c99652d92b7961 | [
"MIT"
] | permissive | opensafely/ADTinj | 4859ad060061e6e21ccb00bfb6af437c905c0f5e | 00cdba64b00a4295c1ac4ac6006c2a632764d5c9 | refs/heads/main | 2023-08-23T10:41:33.839726 | 2023-06-28T21:13:34 | 2023-06-28T21:13:34 | 488,564,228 | 0 | 0 | MIT | 2023-06-28T21:13:35 | 2022-05-04T11:39:08 | Python | UTF-8 | Python | false | false | 1,789 | py | from cohortextractor import (
codelist_from_csv,
codelist,
)
ethnicity_codes = codelist_from_csv(
"codelists/opensafely-ethnicity-snomed-0removed.csv",
system="snomed",
column="snomedcode",
category_column="Grouping_6",
)
ADTinj = codelist_from_csv(
"codelists/user-agleman-adt-injectable-dmd... | [
"a.lemanska@surrey.ac.uk"
] | a.lemanska@surrey.ac.uk |
b55e183fd9206b56ad92286fde3c44ea50764e3c | d6a20ddd9db870d66916c77247f8746195926d7d | /Main project/skill_com/ui_skills.py | 3927066ea5ef1c72223b8e63e8fc6e4a316f3d52 | [] | no_license | mersadcam/db_linkedin_uni | 3e9f9f6e1431e22772b82252fe05f3ba9c49f054 | d226fe7dc942236608ccf0307beafb298cbd07f2 | refs/heads/main | 2023-06-26T10:52:10.824433 | 2021-07-26T03:21:33 | 2021-07-26T03:21:33 | 384,461,636 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,737 | py | # -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'skills.ui'
##
## Created by: Qt User Interface Compiler version 6.1.2
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
####################... | [
"mersadcam1@gmail.com"
] | mersadcam1@gmail.com |
cdbfa1646185540c98eb700f25ced9365adf3ea5 | 2359121ebcebba9db2cee20b4e8f8261c5b5116b | /configs_pytorch/f92-all_pt.py | 24f40fe7c10ebd9bd5510af10002262937b2188d | [] | no_license | EliasVansteenkiste/plnt | 79840bbc9f1518c6831705d5a363dcb3e2d2e5c2 | e15ea384fd0f798aabef04d036103fe7af3654e0 | refs/heads/master | 2021-01-20T00:34:37.275041 | 2017-07-20T18:03:08 | 2017-07-20T18:03:08 | 89,153,531 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,436 | py |
#copy of j25
import numpy as np
from collections import namedtuple
from functools import partial
from PIL import Image
import data_transforms
import data_iterators
import pathfinder
import utils
import app
import torch
import torchvision
import torch.optim as optim
import torch.nn as nn
import torch.nn.functional... | [
"frederic.godin@ugent.be"
] | frederic.godin@ugent.be |
eef7db4955b67a28aa9e471f54b63762353cd3d9 | 7bc6dfc393d9b3ddba1092f08cb10abfc75b285d | /case/__init__.py | 3c0f0614f4619bf5aaa9c705f99ad98475ea0058 | [] | no_license | ellezdi0808/casewrite | ae9873b96cc1e006d32774cf5caa7d8bef73a6ed | 70f832634f2cbe5ae17b5a9e589ba7165b83ced6 | refs/heads/master | 2020-06-25T19:25:31.792185 | 2018-01-17T06:32:34 | 2018-01-17T06:32:34 | 96,983,929 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,166 | py | from flask import Blueprint
case = Blueprint('case',__name__)
#Blueprint new 一个实例,article是终结点,链接从article开始
from case.views import *
case_list = CaseList.as_view('case_list')
case.add_url_rule('/list/',view_func=case_list)
case.add_url_rule('/list/<int:page>/',view_func=case_list)
case.add_url_rule('/add/',view_fu... | [
"wudi@oriental-finance.com"
] | wudi@oriental-finance.com |
ce041097a6930749d148a9937e8933fa38c20cca | 63182d8972f176d86ac114bbcae153976ee4b20f | /day_1.py | 7d6762c9cf169771379658b6b78bd5a281bfed58 | [] | no_license | yasirdin/advent-of-code-2019 | a60c7db2a1453e95fadea49891e87bf39dd3ebc5 | d8607bd4aef4496f88b775ce91c267ca8e85b63a | refs/heads/master | 2020-09-22T10:52:04.471620 | 2019-12-08T13:37:35 | 2019-12-08T13:37:35 | 225,162,927 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,354 | py | import logging
import math
from typing import List
logging.basicConfig(level=logging.INFO)
# PART 1 : What is the sum of the fuel requirements?
def parse_txt_file(filepath: str) -> List[int]:
with open(filepath) as f:
return [int(mass) for mass in f.readlines()]
mass_of_nodes = parse_txt_file('day-1.... | [
"yasir-360@hotmail.co.uk"
] | yasir-360@hotmail.co.uk |
e29a9590d83b44ba45526f334ad2ee6c6853f587 | bfca42cd7d71d3beedb4c85374f81561ce28cb2e | /project_celery/project_celery/settings.py | 028243aa0e41ce73f5b0943ff37b3a33f44b554b | [] | no_license | johnaflorez/email-microservices | 4efae03bc5d368f5104f427d8ad4a60fe4b9f05a | f42f13a21fa4ea00891894f208fa6c8c25757039 | refs/heads/master | 2020-03-21T16:40:11.502169 | 2018-07-04T16:37:17 | 2018-07-04T16:37:17 | 138,784,980 | 0 | 0 | null | 2018-06-26T19:41:38 | 2018-06-26T19:41:37 | null | UTF-8 | Python | false | false | 3,232 | py | """
Django settings for project_celery project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
impo... | [
"noreply@github.com"
] | noreply@github.com |
82271a49c22deb170f63fd3232c33d3a7f82602e | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/inspections/PyDunderSlotsInspection/inheritedClassAttrAssignmentAndOwnWithAttrAndInheritedSlots.py | 307acdbdb1c8afd488293f4deb2a1b2e092d9960 | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 243 | py | class B(object):
attr = 'baz'
__slots__ = ['f', 'b']
class C(B):
__slots__ = ['attr', 'bar']
C.attr = 'spam'
print(C.attr)
c = C()
<warning descr="'C' object attribute 'attr' is read-only">c.attr</warning> = 'spam'
print(c.attr) | [
"Semyon.Proshev@jetbrains.com"
] | Semyon.Proshev@jetbrains.com |
007da86134bd9cf81656b9de3a4b00e9262caadf | 0bce7412d58675d6cc410fa7a81c294ede72154e | /Python3/0983. Minimum Cost For Tickets.py | 67eeee126a10f3fbd09cd9f37ac9a746033d4c3f | [] | no_license | yang4978/LeetCode | 9ddf010b0f1dda32cddc7e94c3f987509dea3214 | 6387d05b619d403414bad273fc3a7a2c58668db7 | refs/heads/master | 2022-01-15T04:21:54.739812 | 2021-12-28T12:28:28 | 2021-12-28T12:28:28 | 182,653,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | class Solution:
def mincostTickets(self, days: List[int], costs: List[int]) -> int:
# end = days[-1] + 1
# dp = [0]*end
# for d in range(1,end):
# temp = dp[d-1] + costs[0]
# temp = min(temp,min(dp[max(0,d-7):d])+costs[1])
# temp = min(temp,min(dp[max(0,d-... | [
"noreply@github.com"
] | noreply@github.com |
63043710e6f6c2dcd39608e13ea8009e4915f17a | be07a1489063fc8724674114b0cba037caa53163 | /server/src/candidates_guide.py | 69240c74d4352289656044a01a2c2bbd2d112f80 | [] | no_license | prstcsnpr/CandidatesGuide | ed6bc9692dd2f625925e4655250bc33036fb7862 | 0eb65ea06505befc84b72863ec1a6650452384b3 | refs/heads/master | 2016-09-02T00:03:45.909327 | 2014-06-05T07:35:10 | 2014-06-05T07:35:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,878 | py | # -*- coding: utf-8 -*-
import json
import string
import tornado.ioloop
import tornado.web
class MainHandler(tornado.web.RequestHandler):
def get(self):
self.write("Hello, world")
class CandidatesRecommendationHandler(tornado.web.RequestHandler):
def post(self):
sat = sel... | [
"prstcsnpr@10.2.201.237"
] | prstcsnpr@10.2.201.237 |
29dd49992c3e6dc309501706541af5a0e95c0c2e | 3d2f75fa39b89cc7c3c3d6e1d7d34f15cd9571ad | /myshop/settings.py | 524fa6777377996838c6551f203d2e0f12a296f5 | [] | no_license | ifranaiyubali/Django_My_Shop | 15a460dc9d6529d456e251853269f989cc035159 | f2232f5f58f6521175dca6bd2a95be335478f50d | refs/heads/master | 2023-03-09T01:26:16.497838 | 2021-02-22T20:10:19 | 2021-02-22T20:10:19 | 341,316,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,646 | py | """
Django settings for myshop project.
Generated by 'django-admin startproject' using Django 2.2.7.
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 os
# ... | [
"ifranaiyubali@gmail.com"
] | ifranaiyubali@gmail.com |
ce6a3a58db7c01381630f48835bfc1305091fc2d | b663080c9d5680ce5d14de04ce390090c0b87f0e | /main_app/migrations/0001_initial.py | ead52c25129766a2adf002e2686fd31296d3c59d | [] | no_license | isama22/datura.metel | 1c85ccbed83fea4c4248e436611b638c412ad365 | bd9a4af8742fc639e5b147c3122708434e658927 | refs/heads/master | 2023-04-16T09:21:34.656802 | 2021-04-29T17:50:05 | 2021-04-29T17:50:05 | 303,929,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | # Generated by Django 3.1.2 on 2020-10-22 01:08
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Post',
fields=[
('id', models.AutoField(aut... | [
"elisabethmartinez@Elisabeths-MacBook-Pro.local"
] | elisabethmartinez@Elisabeths-MacBook-Pro.local |
93f3d82a3dbde659163043e13cd766201e977797 | 6b05bddf2e294c8e1b39846aecadfa06b4ff805d | /test/test_v1_guest_agent_ping.py | b5518c61004a78ef0ce9d3cb39339b04acf71066 | [
"Apache-2.0"
] | permissive | kubevirt/client-python | 5ca82fe55d48c07f62796d2bed3605a7c189922c | 235fe17f58d41165010be7e4122cb67bdc866fe7 | refs/heads/master | 2023-09-03T12:25:27.272479 | 2023-08-17T00:33:31 | 2023-08-17T00:33:31 | 105,017,761 | 29 | 25 | Apache-2.0 | 2022-10-20T13:52:10 | 2017-09-27T12:51:32 | Python | UTF-8 | Python | false | false | 911 | py | # coding: utf-8
"""
KubeVirt API
This is KubeVirt API an add-on for Kubernetes.
OpenAPI spec version: 1.0.0
Contact: kubevirt-dev@googlegroups.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
i... | [
"kubevirt-bot"
] | kubevirt-bot |
e49a33153e56bb9a9b5647ae17c825d2b36e806b | d3e251512ba74ece49d3159e058aad963ea40ec2 | /Botgui/settings.py | 83df29d2102693678a840431219534f1d613dc50 | [] | no_license | Rizwan0143/Botgui | 4e22ae90769d4e4f316bc70dbaa4d41b8fe9231a | 6a9c3e291c67f4d5a67214b899cc3ef02fae4aa0 | refs/heads/master | 2020-03-23T08:15:24.090830 | 2018-07-17T15:35:40 | 2018-07-17T15:35:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,814 | py | """
Django settings for Botgui project.
Generated by 'django-admin startproject' using Django 1.8.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths... | [
"abhisheksoni500@gmail.com"
] | abhisheksoni500@gmail.com |
4075b5b22b15371dc890e51d37bd615c1757abd3 | 61de27f71820834195dfb44ea5267ce2a710f127 | /test5.py | 974fe349590e2addbebd1965c860ebfc26ba2a9f | [] | no_license | paulfr8/tex2epub-python | 419a3c6808ee89fc06b90ddede2011e31834cb7c | 2ad0bbd8b48ace63a89c520b6a9a0a6f5c355e64 | refs/heads/master | 2020-05-19T07:22:43.236599 | 2013-05-26T15:30:38 | 2013-05-26T15:30:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,660 | py | import re
#TODO-List:
#Handle 2+ argument commands
#Handle tables
#Handle lists
#Handle 0-argument commands (e.g. \hline)
#Handle 1 argument commands splited over several lines
#Programs list
#Tables
#Lists
#2+ argument commands
#0 argument commands
#1 argument commands
#punctuation
#split files after big divisions <... | [
"paulfriboulet@gmail.com"
] | paulfriboulet@gmail.com |
e871e9044ad011bb88ff42f52abb3f06b2327ad5 | 6c38efd76998d3b607c8acd0bb6ff0d0872c8c98 | /πατσακης-εργασια 5.py | 10602f6b888277bdc44f38f743a6d8a8e029eea4 | [] | no_license | nikosf123/python_patsak | b7703371542927da4f9250a20569dbe1fa77a67c | e58846b79660920fea6bacd5d1a079103120e777 | refs/heads/master | 2021-01-09T15:26:31.613291 | 2020-02-25T20:56:58 | 2020-02-25T20:56:58 | 242,355,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,265 | py | print "gia na grapseis esu to arxeio dwse 1 "
print "gia ena aytomato arxeio dwse 2 "
print"-------------------------------------------"
epil=raw_input("dwse epilogh ")
while epil !="1" and epil!="2":
print "edwses lathos epilogh janadwse"
epil=raw_input("dwse epilogh ")
if epil=="1":
arxeio=raw_input("... | [
"noreply@github.com"
] | noreply@github.com |
9d74239c0561a82006e754793b8ad689019da6e8 | 42fe1fa7763f144764c6378c66d88d7f8d86ab03 | /biohsmm/util/read_atac.py | 64b6eb2d136472475c0fbb20278aa1aa93220ccb | [] | no_license | anders-w-rasmussen/biohsmm | 0b656beaf6f87081edc32166be12d454771b2d3f | 2030243a488a8832c650b34d5773af96188be72d | refs/heads/master | 2022-06-14T21:10:35.597723 | 2020-04-27T20:47:29 | 2020-04-27T20:47:29 | 258,550,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,096 | py | import numpy as np
import pysam
obs_vec = list()
length = list()
start = list()
chrom = list()
def bam_to_obs(c, s, e, filename):
'''
:param chrom:
:param start:
:param end:
:param filename:
:return: data array (obs)
'''
obs_vec.append(reads_from_sam(filename, c, s, e))
length.ap... | [
"noreply@github.com"
] | noreply@github.com |
2ff528d76ec3c032363cc59f587b0f6da4f410dc | 6e373b40393fb56be4437c37b9bfd218841333a8 | /Level_3/Lecture_21/enroll/models.py | 82f2f10c875633e48efc381b7887773f0c960169 | [] | no_license | mahto4you/Django-Framework | 6e56ac21fc76b6d0352f004a5969f9d4331defe4 | ee38453d9eceea93e2c5f3cb6895eb0dce24dc2b | refs/heads/master | 2023-01-22T01:39:21.734613 | 2020-12-04T03:01:17 | 2020-12-04T03:01:17 | 318,383,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | from django.db import models
# Create your models here.
class User(models.Model):
name = models.CharField(max_length=70)
email = models.EmailField(max_length=100)
password =models.CharField(max_length=100) | [
"mahto4you@gmail.com"
] | mahto4you@gmail.com |
bf665410bed50b229f08cbbbf8f37762a24340cb | 5196f5c2997592a1eca7c16e48d2a240b2968ffe | /venv/bin/python-config | c2b4ef8a5fd0a5b36101aab4f9b0d8df9421ef23 | [] | no_license | rashmitpankhania/FoodEx | 3594bed65ef10e73e293d913d6808f6ae935d49a | f772e1ef835c436bdf969001f5a78398551a8215 | refs/heads/master | 2021-05-11T17:30:19.864945 | 2018-01-28T06:46:28 | 2018-01-28T06:46:28 | 117,799,546 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,357 | #!/home/rash/PycharmProjects/connect/venv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.ve... | [
"RashmitPankhania@gmail.com"
] | RashmitPankhania@gmail.com | |
82fcee9c8e03a443d43358ac3efc3bbec521b329 | d190e9e4da0eb177f2e7c19c3684164ae685c44f | /mugMatch.py | c9b1989d6ab2ae4d270a735201a2729241217f7c | [
"MIT"
] | permissive | AndrewsOR/MugMatch | d8a81bdb085d32bcbfbf2b07b7ed67db2a403fad | 1a79bf410ff2773a632e1c5819c5121d9ac42128 | refs/heads/master | 2021-09-03T07:03:03.511263 | 2018-01-06T17:38:47 | 2018-01-06T17:38:47 | 116,165,354 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,633 | py | #!/usr/bin/python3
#-------- Required Libraries --------------------------------------
# for API requests
import requests
from requests_oauthlib import OAuth1
# for GUI elements
import tkinter as tk # using several elements, so import whole module
from tkinter import messagebox
#... | [
"andrews_or@outlook.com"
] | andrews_or@outlook.com |
164ea3c1d86ff2f8814148d93d4bfa038e83dea1 | e07177ad35b7eff50165bb0cb853e12291c2c40c | /Remove one char palin.py | d4788d72727a573d6acd8da73698b1fa604aa977 | [] | no_license | yasosurya33/Python | af707410234e09760b898853354e9567285a5e45 | 17c4055086d7ccec5076f2b7b2230238ad4a199c | refs/heads/master | 2020-07-04T06:29:15.912630 | 2019-08-18T05:54:52 | 2019-08-18T05:54:52 | 202,187,308 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | def palin(x):
sam1 = x
l = int(len(sam1))
i = 0
lab = 0
while i < (l // 2):
if (sam1[i] == sam1[l - 1 - i]):
lab = 1
i += 1
else:
break
if lab == 1:
return 1
else:
return 0
nam = input()
dub = []
sam=''
for i in nam:
d... | [
"noreply@github.com"
] | noreply@github.com |
d43e358c58ff1e26ae2b91404b33f60136411d29 | 84b6f74a9a78a6d54fad5ebbeafd6e8054e78e6c | /admin.py | e35332f0c24aeca1bbc8ee62db7498efc84f1141 | [] | no_license | uje/embedmedia | 9a6cb9b19e2020a4f6402afafca45c46c49eb4a0 | 6de3c45802ac62f8a28d484f4fb38fa749a5df06 | refs/heads/master | 2021-01-01T03:42:38.447561 | 2016-04-15T09:21:44 | 2016-04-15T09:21:44 | 56,307,661 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,979 | py | # -*- coding: utf-8 -*--
# Name: 模块1
# Purpose:
#
# Author: Jame
#
# Created: 11/04/2012
# Copyright: (c) Jame 2012
# Licence: <your licence>
#-------------------------------------------------------------------------------
import webapp2,uuid
from google.appengine.ext.webapp import ut... | [
"ualler@gmail.com"
] | ualler@gmail.com |
3c37470e6687cc51f01b3bfb39c7f931f854f693 | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/Gio/SocketServiceClass.py | 8c18c95238ae487ac715dd801bd46c959b88b0ce | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 5,419 | py | # encoding: utf-8
# module gi.repository.Gio
# from /usr/lib64/girepository-1.0/Gio-2.0.typelib
# by generator 1.147
# no doc
# imports
import gi as __gi
import gi.overrides as __gi_overrides
import gi.overrides.Gio as __gi_overrides_Gio
import gi.overrides.GObject as __gi_overrides_GObject
import gi.repository.GObjec... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
816ae873b0b90fcf3321f06f6a70489ed6eaeaa6 | c07380914a44df334194f234c33858f357365c19 | /ENV/lib/python2.7/site-packages/theano/tensor/tests/test_gc.py | d1304de7e268985aa6ba0543e87bf76860c9f26b | [] | no_license | damianpolan/Music-Genre-Classification | 318952ae7de5d0b0bdf5676e28071c7b38d0e1c5 | acd723ae1432ce798866ebb97ef3c484db37e971 | refs/heads/master | 2022-12-24T09:23:55.514337 | 2016-03-22T14:49:28 | 2016-03-22T14:49:28 | 42,965,899 | 4 | 4 | null | 2022-12-12T20:26:24 | 2015-09-22T23:05:37 | Python | UTF-8 | Python | false | false | 4,130 | py | import cPickle
import sys
import numpy
import theano
from theano import tensor as T
import time
def test_no_reuse():
x = T.lvector()
y = T.lvector()
f = theano.function([x, y], x + y)
#provide both inputs in the first call
f(numpy.ones(10, dtype='int64'), numpy.ones(10, dtype='int64'))
try:
... | [
"damian.polan@gmail.com"
] | damian.polan@gmail.com |
18e75a4ea3347217d6d887dd71f25525056b08a5 | 4331e4d07ae402b9ef9c176164194dc1f5d33f47 | /10.Examples/01.Basic/20.CreatingPackage/mymath/adv/fib.py | 8817d00be5fa977a5e9d586daca14489b31087e4 | [] | no_license | thiminhnhut/creating-modules-packages-python | 54cc0dc3a3482d28c2b1f7d3e221460ef628438b | 936600e53ab7069d0f234a1d8f2e6335b65f12a2 | refs/heads/master | 2020-03-25T22:41:26.954513 | 2019-08-16T02:58:42 | 2019-08-16T02:58:42 | 144,236,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | from math import sqrt
def fibonacci(n):
return ((1+sqrt(5))**n-(1-sqrt(5))**n)/(2**n*sqrt(5))
| [
"thiminhnhut@gmail.com"
] | thiminhnhut@gmail.com |
a84829ae8a55aa1d175e4dcacd447f99e538bea7 | 49201afc8c3515d9f5cb569f45cd34ba291e84ca | /autobahntestsuite/autobahntestsuite/caseset.py | 2611fd0aadbb7fe5e8808a6db96dedfd3862fc7f | [
"Apache-2.0"
] | permissive | crossbario/autobahn-testsuite | 2f3fe9a46a806550dddb23ed7bc98a94c47d5bd8 | 09cfbf74b0c8e335c6fc7df88e5c88349ca66879 | refs/heads/master | 2023-09-06T01:16:06.357182 | 2022-11-02T18:00:25 | 2022-11-02T18:00:25 | 3,762,517 | 718 | 74 | Apache-2.0 | 2022-01-26T11:07:29 | 2012-03-19T09:59:18 | Python | UTF-8 | Python | false | false | 5,570 | py | ###############################################################################
##
## Copyright (c) Crossbar.io Technologies GmbH
##
## 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
##
##... | [
"tobias.oberstein@tavendo.de"
] | tobias.oberstein@tavendo.de |
1d345d9a8c171862cfa1e01799e6435fa831594f | 6f82ba6b76690b983fbbcc65d12f4d2de955da3e | /math_functions.py | 1cead63758acd463df2cc0760d1bbe5fda5aa68f | [] | no_license | Hallurs/Assignment-13 | 854535493cc30b5337435ea899aec4912eaee363 | a31f0e10de3bff359db12b7080daa7d69b121db0 | refs/heads/main | 2022-12-18T23:22:09.635711 | 2020-10-08T10:48:22 | 2020-10-08T10:48:22 | 302,302,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,919 | py | import math
# first i create my functions
def sum_natural(n_str):
''' this function takes numbers that are equal to or higher than 2 and sums them up '''
for i in n_str:
if (i.isdigit()) == False:
return None
n_str = int(n_str)
if n_str < 2:
return None
sum_of_int = 0
... | [
"hallurh@7und.is"
] | hallurh@7und.is |
a2c2e07a8afdcf2c8f91018caceb18c216081b48 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Kivy/kivy/examples/canvas/fbo_canvas.py | dd06928bdb98fedb7c9f34cb533e75a733227641 | [
"MIT"
] | permissive | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:0cc3f5272ba46eb262d440a5c297b24905c455a2aa930e0baaa5f7f37b3486e6
size 2544
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
d25cb19db7748654e2fb0d84d8b6cf18d0112cbb | 8c21b22001777846ae14840ef5f09b4746659c2d | /using_slider_as_palette/work.py | 4ae4a86cbfbd2b6b0d9a269874b1af404063e791 | [] | no_license | nola222/opencv_tutorial | 87fb3ea16e9125156c21d34f0186e2e5a34d5554 | 5b13851f11a03aa9cfb208abf9c423731d26606e | refs/heads/master | 2021-07-01T07:46:09.642434 | 2021-02-23T08:15:30 | 2021-02-23T08:15:30 | 224,819,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,674 | py | # -*- coding: utf-8 -*-
"""
时间: 2021/2/19 11:14
作者: lixianchun@cyai.com
更改记录:
重要说明:
结合鼠标事件,创建一个画板,可自选各种颜色画笔绘制各种图形
"""
import cv2
import numpy as np
def nothing(x):
"""回调函数
Args:
x(int): 滑动条的位置,即滑动条上显示的数字
Returns:
None
"""
pass
drawing = False # 当鼠标按下时变为True, 默认是False... | [
"lixianchun@cyai.com"
] | lixianchun@cyai.com |
235947219c8ee574917b46a1f375e11b1287752e | 5cc409e8dbae06f5245475cbe33927f5653c2d4c | /Mask R-CNN/nucleusModel.py | b7231899f7737018925b91458a9b8d43b489ac1e | [
"MIT"
] | permissive | ananthrn/Nucleus-Segmentation | 69aebc6af9fb0308b9ab47f95b2b6b0580946461 | 5104ced7a72ce4eca8aa5ecb2bd70356fc4ba224 | refs/heads/master | 2020-03-25T01:06:53.655411 | 2018-08-02T01:21:48 | 2018-08-02T01:23:12 | 143,222,470 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,444 | py | # AUTHOR: #kr2741
# Adapted from and modified : https://github.com/matterport/Mask_RCNN/tree/master/samples
import matplotlib.pyplot as plt
import os
import sys
import json
import datetime
import numpy as np
import random
import skimage.io
from imgaug import augmenters as iaa
ROOT_DIR = os.path.abspath("Mask_RCNN/")... | [
"ananth360@gmail.com"
] | ananth360@gmail.com |
3093cad6eacfccaaa18b9bc638fb5ae11680bfe4 | e50dd6f593763e9e78af33b790e263a6cfb96289 | /SOS_base_alpha_FINAL_testing/Client/registr.py | fed713920fc3cdca8de5ea005aea289118952a82 | [] | no_license | sos-ds/DS | f5ae599838375654bf66ff5452d37cf161e8e87f | 75a6454bc3306e4288de5fdb7c05a29ad9e91149 | refs/heads/master | 2020-04-23T16:44:26.627099 | 2019-05-20T16:55:44 | 2019-05-20T16:55:44 | 171,308,031 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,705 | py | import tkinter as tk
from tkinter import *
import socket
import sys
import sqlite3
import subprocess
root = Tk()
root.geometry('500x500')
root.title("SOS reģistrācija")
Fullname=StringVar()
Adrese=StringVar()
Telefon=StringVar()
var = IntVar()
c=StringVar()
var1= IntVar()
def save_info():
Fullna... | [
"noreply@github.com"
] | noreply@github.com |
f695b79388c07e89cfa05c0175e698eadc9d3daa | 8523daaf19e0250962b454d9c4f87f4c7d71ab9d | /models.py | d70630bbfa64fe60497c69c7bc15cf28c945160d | [] | no_license | madtyn/cris | ad2fd35a05efb6829e96bd1aa39c86a0efa8102f | a45410e6a67f589ac7d392bebc1ee9725ff4cd1b | refs/heads/master | 2020-11-30T17:42:09.675319 | 2020-01-19T10:36:32 | 2020-01-19T10:36:32 | 230,450,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,617 | py |
import datetime as dt
from enum import Enum
from collections import namedtuple
from indexes import FIRST_MONTH_COL, COLS_PER_MONTH
StudentMonth = namedtuple('StudentMonth', ['quota', 'number', 'processed'])
class Months(Enum):
OCTOBER = ('Octubre', 10)
NOVEMBER = ('Noviembre', 11)
DECEMBER = ('Diciemb... | [
"madtyn@gmail.com"
] | madtyn@gmail.com |
7b39b7114c1044d33d060b4c2df7540ed2a28209 | 9167909f6407dbf848d3e82053a266a18067194e | /fuzzywuzzy/tests.py | e5549b26efd6cdf14a773a7ef103f0c1a8ae91de | [] | no_license | ryanfb/reconciliation_service_skeleton | 58611336b8d2a28e909243ee768e8a4e0a1b9b16 | ccece354afc13b8e89b66a72a30a37638ce37931 | refs/heads/master | 2020-05-25T14:17:44.804848 | 2014-03-24T17:17:36 | 2014-03-24T17:17:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,232 | py | from fuzz import *
import process
import utils
import itertools
import unittest
class RatioTest(unittest.TestCase):
def setUp(self):
self.s1 = "new york mets"
self.s1a = "new york mets"
self.s2 = "new YORK mets"
self.s3 = "the wonderful new york mets"
self.s4 = "new york m... | [
"adorsk@whoi.edu"
] | adorsk@whoi.edu |
f2257a66a17f8b82a0bb0a42260b553d534f2889 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/valid_20200616203432.py | d8f31778d62ce6a0b3ed7002c575bb9870500ea2 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | # Ipv4 --> 4 decimal numbers,between 0 to 255
# leading zero's is invalid
# check whethere its a digit between 0 to 255
def valid(str):
address = str.split(".")
numbers = range()
for a in address:
if a
print(address)
valid("172.16.254.01") | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
c25ceac5b087067da044a667efdbdb6828f40d20 | 47c102b18fe168ce26d0db31a2e678290e2e2185 | /HomeWork1.py | e09ae846faffed5ac72f45f07ad47db7d44485b7 | [] | no_license | maredmx/proba-statistics3C | 54981ff114263328d7d938ae85c9c2499a74255e | 92db592e98567d6cf78ae4a65c5a47a626c47328 | refs/heads/master | 2020-08-30T09:23:45.337604 | 2019-11-25T05:26:54 | 2019-11-25T05:26:54 | 218,332,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,436 | py | #!/usr/bin/env python
# coding: utf-8
# ## HOMEWORK
# ## 1. Print command is used to write text on the screen
# In[8]:
print("Hola mundo")
print("Hi world")
print("Hello earth")
# ## 2. The comments are used to make annotations in the code for the programmer see... | [
"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.