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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
704b923b4e96e836bb13b79a28f8904cf72a5de2 | 7e9adedc8ca33d72a72bd5da3506bdca850ffb47 | /functions_tester.py | db2ad874185db8937e8db974477e8650c7675b90 | [] | no_license | efineberg19/Functions | 9cfc299bffacfc6190e94d56345b2dc6f440dd3a | dc1ea81938cae58d992bbcf0a3e457ed7aeb1718 | refs/heads/master | 2020-04-08T12:56:54.063279 | 2018-11-27T16:49:31 | 2018-11-27T16:49:31 | 159,368,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,213 | py | #!/ysr/bin/python
#functions_tester.py
'''Allows user to pick and try out functions defined in functions.py'''
__author__ = "Beth Fineberg"
__version__ = "1.0"
import functions
import utility
import turtle
def main():
done = False
while not done:
print("SELECT FROM THE FOLLOWING M... | [
"noreply@github.com"
] | efineberg19.noreply@github.com |
e49c06dfec6ac7ee3e2700e06d8b621ba4cfbb02 | 2219f4bc0ba1d48b2a7850ac28100b0d0657307d | /django_todo/settings.py | fe13565296f10c8b87e76654e505b763f3ebbaec | [] | no_license | alimgee/al-test-django | 6d88f8d4fb829671f58a5f647a787b0a66e2541b | 98f0fcce8c8a1d8e828ca11ef0b0ec7e9e15c1bd | refs/heads/master | 2021-06-22T11:47:37.290265 | 2019-09-20T15:28:35 | 2019-09-20T15:28:35 | 209,616,440 | 0 | 0 | null | 2021-06-10T21:58:52 | 2019-09-19T17:55:35 | HTML | UTF-8 | Python | false | false | 3,418 | py | """
Django settings for django_todo 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/
"""
import ... | [
"mcgee.al@gmail.com"
] | mcgee.al@gmail.com |
dbbff8315c06c6efb75d5de5c32e6314eb711158 | ecf2511642e0e8fb11616249b062a7c8a130d137 | /src/python_files/points_class.py | dadf59288293c9da1f916d04059e19ca530a1227 | [] | no_license | zaddan/apx_tool_chain | 61abc9d6958ce17d9823ac7bf71ae3097f76decf | ef81dd6515f110d3c8a4b62a642d44d9a4327a79 | refs/heads/master | 2021-01-24T06:37:12.248020 | 2017-04-08T20:39:08 | 2017-04-08T20:39:08 | 40,195,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,980 | py | import copy
import sys
import math
import numpy
import settings
import input_list
from calc_psnr import *
from inputs import *
from extract_result_properties import *
#**--------------------**
#**--------------------**
#----disclaimers::: SNR needs to modified when noise is Zero
#**--------------------**
#------------... | [
"behzadboro@gmail.com"
] | behzadboro@gmail.com |
58e8f8cf5aa71f3be2fd33336a15f03c913c1cc1 | 506b9ee4b0a0a6953b283d71253b50358844a3bc | /stats/collect_jlab.py | 7d121ab14efedcc6181e91bbf84c14fcba2f7237 | [] | no_license | robertej19/web_interface | 7ec3d57f0025c2ab95eb67caafc6bb7984c35461 | 435a78ff22e054faaa1d28cb0aafd6267102f9a7 | refs/heads/master | 2022-07-17T19:27:56.893490 | 2020-05-14T14:54:47 | 2020-05-14T14:54:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 865 | py | import subprocess
import datetime
import re
import json
from collections import OrderedDict
currentDT = datetime.datetime.now()
a=subprocess.Popen("/site/scicomp/auger-slurm/bin/slurmHosts",stdout=subprocess.PIPE)
b= a.communicate()[0]
available=0
total=0
state='DEFAULT'
c=re.split('684|1563|771|308|332',b)
for i, ar... | [
"sangbaek@mit.edu"
] | sangbaek@mit.edu |
0cbd5c3ea471e3f12474f5b780ba5c4b3e7f53cf | 28aad1a21031684c6446290095cd23de83cde9d8 | /code/utils.py | 5782fe7f85820d11bfe07d6c2b8df8541259f4fe | [] | no_license | dyelax/CarND-Advanced-Lane-Finding | e19bad353633e9fabe8b940ae588d4186fb96da8 | 9b37fa96d402d7030cff43650a7715674eb8cf21 | refs/heads/master | 2021-01-12T01:20:35.106086 | 2017-04-10T00:39:39 | 2017-04-10T00:39:39 | 78,373,625 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 26,615 | py | import numpy as np
import cv2
import skvideo.io
from glob import glob
from os.path import join, exists, splitext
import pickle
import matplotlib.pyplot as plt
import constants as c
##
# I/O
##
def read_input(path):
"""
Reads images from an input path into a numpy array. Paths can either be .jpg for single i... | [
"matthew_cooper@brown.edu"
] | matthew_cooper@brown.edu |
b39da536e11e785ffc39d3cc3c4dcdc0d73a3137 | 6d06b9368850aa7df559146498f2376ca24a33df | /extract_notes.py | 13285e9e0456e42270002290a4c59014c69453b7 | [] | no_license | manosplitsis/MusicRep | a515d501bd6fa7e53409b3c272b260d646f88c14 | 859df02a304caf2b35688a7c676108602623eb28 | refs/heads/master | 2022-12-25T10:10:04.941114 | 2020-10-03T00:03:49 | 2020-10-03T00:03:49 | 284,100,757 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,900 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jul 13 15:31:32 2020
@author: incog
"""
import tensorflow as tf
import tensorflow.keras.backend as K
import tensorflow.keras as keras
from tensorflow.keras.models import Sequential,Model,load_model
from tensorflow.keras.layers import Input, Dense, Dropout, LSTM, Activation... | [
"38662795+manosplitsis@users.noreply.github.com"
] | 38662795+manosplitsis@users.noreply.github.com |
805d85bf831dfc9c80d375ff4049fb25d82373c4 | f4086b2457392711c37b9bed66e2bcf95feb7a09 | /python_scripts/Telemetry_Object_Generator/Example_Files/EXAMPLE-python-script.py | a977b23365e3dcb148293cec902adbbaa3fc0d0c | [] | no_license | shilpakancharla/learning-nasa-open-mct | be995f853e2f241a9019168dfe2d9cc02b0b1768 | d7904cb86d1ca7f124f5ffe125914bab88b6294d | refs/heads/main | 2023-05-31T03:50:40.951328 | 2021-06-27T18:57:29 | 2021-06-27T18:57:29 | 380,753,330 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,408 | py | # Artificial Data provider for the EXAMPLE implementation
# sends artificial data to an specified UDP port
import socket
import time
UDP_IP = "127.0.0.1" #standard ip udp (localhost)
UDP_PORT = #chosen port to OpenMCT (same as in telemetry server object)
MESSAGE = "23,567,32,4356,456,132,4353467" #init message
da... | [
"shilpakancharla18@gmail.com"
] | shilpakancharla18@gmail.com |
68ee78499647086ad0364e5beac7a010f119ec10 | 634bfb41ed429b5af9aef1e6f81a653352a3e6f7 | /main.py | 1f5e4ab1487fa6b23fbd4f14b845f27230d8edf9 | [] | no_license | SuroWka-Roch/Current-sink-source-control | 304360df7332324000b3af7cfd6536d6904b8e7f | cbeaee2c95091980428cbe13b2a7b7fcfdc4d2c5 | refs/heads/master | 2021-06-04T12:27:26.168877 | 2020-10-14T20:01:01 | 2020-10-14T20:01:01 | 147,960,851 | 0 | 0 | null | 2018-10-13T18:49:05 | 2018-09-08T18:49:27 | Python | UTF-8 | Python | false | false | 371 | py | #!/usr/bin/env python3
#Program Inżynierki Wojciecha Surówki.
from mine import createGuiWindow
try:
with open('defValues.txt','r') as file:
defaultTable = [ val.strip('\n') for val in file ]
if len(defaultTable) > 8:
defaultTable = defaultTable[0:8]
except Exception:
defaultTable = [int(4000/7 * i) ... | [
"wojtek@surowka.com"
] | wojtek@surowka.com |
bc917c0f52b6892d718298732f2c69aac1208fed | c7f7834830905d2d5409a37c17b861987abf0f06 | /basic programs/list comprehension.py | b1d72da2a2148a0968d856f9e9efc4f82ef67962 | [] | no_license | Ayesha625/python-coding | ffd4207d3b368562971296d31f74df564822bb83 | 5e35c9a8b8a599b403f8e6c1f8aea484c7912bdd | refs/heads/main | 2023-04-03T10:43:08.620754 | 2021-04-03T15:34:28 | 2021-04-03T15:34:28 | 354,325,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | """question list comprehension:Print an array of the elements that sum not equal to 'n'.
Sample Input 0
x=1
y=1
z=1
n=2
Sample Output 0
[[0, 0, 0], [0, 0, 1], [0, 1, 0], [1, 0, 0], [1, 1, 1]]"""
if __name__ == '__main__':
x = int(input())
y = int(input())
z = int(input())
n = int(... | [
"noreply@github.com"
] | Ayesha625.noreply@github.com |
02a5254f1b24f0dcde485153c0d91ca2be961d79 | 74e2c360bb2ef1bdbcc92b1a23e9c8e4d7a17653 | /ecom/api/payment/views.py | 10172575c7dd2c9bef53fe414963b9b77266ff0d | [] | no_license | hrishabh-22/Ecom-backend | 86b7b999a6653cd54152e25c381ba485c04d5f23 | a4cca8131ac250b51e7c911a7e0c04ff5cd86121 | refs/heads/master | 2023-06-22T23:00:58.057854 | 2021-07-22T15:45:06 | 2021-07-22T15:45:06 | 388,514,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,869 | py | from django.shortcuts import render
from django.http import JsonResponse, HttpResponse
from django.contrib.auth.decorators import login_required
from django.contrib.auth import get_user_model
from django.views.decorators.csrf import csrf_exempt
import braintree
# Create your views here.
gateway = braintree.BraintreeG... | [
"hrishabhm22@gmail.com"
] | hrishabhm22@gmail.com |
ce48e15863da24140d252c472757691c90c3d814 | 12912f1b0cd38611e910edf04bde00c3a6361d6f | /multiproduct/ticket.py | f01edbca35cd0913461fc45e50f7de9b3dc541bc | [
"BSD-3-Clause"
] | permissive | trac-hacks/trac-multiproduct | 146fc9ea446612b2830ea58a1cac0ac76733be3b | e2bfe35c518a82371b35fc06169b9c939f45a998 | refs/heads/master | 2021-01-19T06:30:21.361038 | 2013-10-27T18:41:04 | 2013-10-27T18:41:04 | 13,906,752 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,909 | py | # Copyright (C) 2009 Mat Booth <mat@matbooth.co.uk>
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution.
from genshi.builder import tag
from genshi.filters import Transformer
from trac.core import *
from trac.config impor... | [
"mbooth@apache.org"
] | mbooth@apache.org |
1cd0ce2df6091470c3312efb0102f6a0cf0b6076 | 0cd115de67bb541f5e61f9a732a2f83cf0a04e6a | /data_analysis/ml_model.py | e9d75402d15fe670f03adf9a623f8559fe6ad0c8 | [] | no_license | majorsortinghat/majorsortinghat.github.io | d40745ee9e7698ac9b0485cc06008ea5e480ec00 | e3e2d07c46c90cbfdcb6d52ae977cbd58241f5fa | refs/heads/master | 2020-04-05T22:22:39.690838 | 2018-12-04T11:37:53 | 2018-12-04T11:37:53 | 157,254,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,613 | py | # tensorflow code modified by grace gu, then pp
#from __future__ import absolute_import
#from __future__ import division
#from __future__ import print_function
#import argparse
#import sys
import numpy as np
import random
import tensorflow as tf
import json
import math
import pandas
#import os
#os.environ['TF_CPP... | [
"pppillai@mit.edu"
] | pppillai@mit.edu |
b3222b657ad7126ab0f0c7f10b9d25d51a672c10 | d449cfd6c1e25fdb1d8b6ea24f14e166074e504c | /Capturing_video.py | ecb6a7e83d853f064c83ab6d2f784a6dafe26f3f | [] | no_license | crashoverloaded/Opencv-python | defa270db39976ed33ee32fca8680d5bb8450c60 | 57c650059dde3111b2e7ab7b6ff9ebb0e091410d | refs/heads/master | 2020-06-13T14:01:08.288503 | 2020-01-29T03:23:58 | 2020-01-29T03:23:58 | 194,680,605 | 0 | 1 | null | 2020-01-29T03:23:59 | 2019-07-01T13:43:22 | Jupyter Notebook | UTF-8 | Python | false | false | 777 | py | #!/usr/bin/python3
import cv2
import time
# '0' is used to specify the use of built-in camera
# We can also give path to the video file instead of '0'
video = cv2.VideoCapture(0)
a=1
# check returns True if camera captures a image or vice-versa
# Whereas frame is a numpy array which represents the first image that vi... | [
"priyankagarwal00.pa@gmail.com"
] | priyankagarwal00.pa@gmail.com |
05af8dfc4ab3dd26082388bb8e9ea525ec7e8fb7 | 268df89694f6fe4ff070ddbe9e451eb6be55466c | /Prime100.py | 4de65a153941429ad79cd8b63c93d78a7bae2c64 | [] | no_license | HarlanJ/CS-Python | 1936aacce57972243b9e0f79a0f54f8ce414cdf5 | 51aaa15fe24a67ffc9262e2c3b7fca754a3a21f2 | refs/heads/master | 2020-07-26T07:15:34.488887 | 2016-11-14T17:24:39 | 2016-11-14T17:24:39 | 73,729,523 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,628 | py | #John Harlan
#Prime Number function
#CS 100
#------Algorithm------
#1. Ask user for a number to test
#2. store answer (query)
#3a. If query is prime
#3a1a.create a place to store if the query is prime,defaulting to True
#(prime)
#... | [
"harlanj@sunyit.edu"
] | harlanj@sunyit.edu |
f9b955c5c606b543d3571a37cb315cd6c69bf6b6 | 30c4502cefe9a084c3d0057e76411b8227951aff | /djangogram/posts/views.py | b54ec1316fe5261d122a80cefb65e4a563a23975 | [
"MIT"
] | permissive | sosodoit/djangogram | 17dab8b1afd3ebfe0be6f70c2aaa0a1426a9a75f | bb3544b24f929eaf9079575e8edd431523bbac03 | refs/heads/master | 2023-06-07T16:19:28.531729 | 2021-06-24T06:22:51 | 2021-06-24T06:22:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | from django.shortcuts import render
# Create your views here.
def index(request):
return render(request, 'posts/index.html')
def home(request):
return render(request, 'pages/home.html') | [
"sohuig@sookmyung.ac.kr"
] | sohuig@sookmyung.ac.kr |
c87505ef499af065bd826fc255a3323af1107f30 | b503e79ccfca67c8114f5bd7a215f5ae993a0ba4 | /airflow/security/permissions.py | 983ebbd7f48ef4f41509dfb4a9f356808687fe2a | [
"Apache-2.0",
"BSD-3-Clause",
"Python-2.0",
"MIT"
] | permissive | github/incubator-airflow | df1d9780f862ea1df8261ea6015dd50a4583f983 | 73f70e00b9fd294057f8ca6b714a85622f6d5dd5 | refs/heads/gh-2.0.2 | 2023-07-29T18:08:43.140580 | 2022-09-14T18:23:42 | 2022-09-14T18:23:42 | 80,634,006 | 24 | 27 | Apache-2.0 | 2023-04-18T04:24:36 | 2017-02-01T15:34:55 | Python | UTF-8 | Python | false | false | 2,390 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | github.noreply@github.com |
6c4ab498dcb840547806bf7ffb0556b9fedfd3ff | 979d79b8eff90017fc1b847b72c57faec06cc31a | /assignment1/reducer_lessons.py | 927c92ddd48c0b5f64dd7d8ba8795c18b838ef6c | [] | no_license | richardharmadi/exc | f76c946ee153193e5e3b9c612785fd49aedad5b0 | f73b160185ed7a7ba3f9f5e1a6281d57cacac4ec | refs/heads/master | 2021-01-17T15:12:54.585966 | 2016-11-15T17:18:29 | 2016-11-15T17:18:29 | 71,827,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | #!/usr/bin/python
import sys
import math
for line in sys.stdin: # For ever line in the input from stdin
line = line.strip("\n") # Remove trailing characters
name, value, length = line.split("\t")
length=float(length)
value=float(value)
# Remember that Hadoop sorts map output by k... | [
"s1567619@sms.ed.ac.uk"
] | s1567619@sms.ed.ac.uk |
dc3853a7083f1f86ff06ac4235580d5ef01cf56c | 5ac8d558715eb0b92a3c2d0194593902f2d9dcaf | /testCase/testJumpCase/center_jump.py | 69e155b82a5e5589681349bf6453da71670d4b2a | [] | no_license | 18217276943/hello-world | 3aae33ed4f26c556628f9fab03c684782b3fb827 | b656cecf0534b45ce22c34f10ca6fe8083457507 | refs/heads/master | 2020-05-07T01:06:17.120257 | 2019-04-11T11:08:06 | 2019-04-11T11:08:06 | 180,260,096 | 0 | 0 | null | 2019-04-09T02:06:37 | 2019-04-09T01:23:03 | null | UTF-8 | Python | false | false | 10,461 | py | from time import sleep
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
class BasePage():
# =webdriver.Chrome()
def __init__(self,dr,
base_url="http://nettest.tpstic.com/policy-operation-web/partner?partnerCode=0117"):
self.dr = dr
self.base_url = ... | [
"2467346003@qq.com"
] | 2467346003@qq.com |
3a7a1a3bc44f522baefaeb79cd48891acf54d92d | 7e9160a8b54e2730a9b0ec95eef39bf778b356b5 | /detect_mask_video.py | 9a0837d8fc923701279ed66db8ffd24b25cc4b4a | [] | no_license | Amitorg7/Face-mask-detector-AI- | 614b0f440305275ea04057c9e86bfde7ef6e0d4f | 7ad4522fe88c8700c640efacd3e2f6b8ebf7ceb1 | refs/heads/master | 2023-06-30T12:41:27.188404 | 2021-08-09T13:45:49 | 2021-08-09T13:45:49 | 380,309,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,295 | py | from tensorflow.keras.applications.mobilenet_v2 import preprocess_input
from tensorflow.keras.preprocessing.image import img_to_array
from tensorflow.keras.models import load_model
from imutils.video import VideoStream
import numpy as np
import imutils
import time
import cv2
import os
def detect_and_predict_mask(frame... | [
"amitorg7@gmail.com"
] | amitorg7@gmail.com |
58af75f7d94ad6994d509c52b9cb8e7a7fe73b95 | d6b1b454466dd69b57b6a95b8a98298118ed6228 | /111_min_depth_of_tree.py | dc2f4ff69b8969fab8fe6ffe4506bc580e7795dc | [] | no_license | akshay-verma/LeetCode | d54d7561f65f384e977ba8e6dd1191c225295bdc | cf89abc4b0ff62ba423e3941d9db747d240beead | refs/heads/master | 2020-04-17T23:50:30.708155 | 2019-03-06T18:06:16 | 2019-03-06T18:06:16 | 167,052,887 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | """
111. Minimum Depth of Binary Tree
https://leetcode.com/problems/minimum-depth-of-binary-tree/
"""
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def minDepth(self, root: 'TreeNo... | [
"15175239+akshay-verma@users.noreply.github.com"
] | 15175239+akshay-verma@users.noreply.github.com |
623a65ebc14bdffe2e61999ff5575d46cb861983 | 6ec6d8fe444ebc81c71168fbf58b7e89cc4266da | /data_provider/knowledge_graphs/generators/qc_with_literal.py | 6e93b52f371b59be8e9f52a83fd54704747a0cab | [
"MIT"
] | permissive | 0x14d/PDPK | d33eb47fe723e41a00d2b7305c66989630651d4a | af04002cb44d54c604a12c1767f25fcf2f525a8f | refs/heads/main | 2023-05-13T23:55:36.883482 | 2023-05-10T09:45:41 | 2023-05-10T09:45:41 | 577,243,380 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | from igraph import Graph
from data_provider.knowledge_graphs.generators.abstract_knowledge_graph_generator import \
KnowledgeGraphGenerator
from data_provider.synthetic_data_generation.types.generator_arguments import KnowledgeGraphGeneratorArguments
from data_provider.knowledge_graphs.generators.qc_super import Q... | [
"andre.schweizer@xitaso.com"
] | andre.schweizer@xitaso.com |
deece30204d06174b120205bf902c54ea7942ada | ab76b1f80eb427dd2615480e1eaba73a7d67f1a0 | /python_the_hard_way/ex33.1.py | e5676acf75e1ee3e32e3669d6cd2bdc5d2054e37 | [] | no_license | sathish97625/Python-Course | 3a55629d2c02ed23c2920870cca14d1f780d2924 | 50b8e5d26c52314f0f7069ce5e35567bb8f923e8 | refs/heads/master | 2021-06-01T04:59:16.183725 | 2016-07-19T01:13:35 | 2016-07-19T01:13:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | i = 0
numbers = []
def theloop(numm, increment):
global i
while i < numb:
print "At the top i is %d" % i
numbers.append(i)
i += increment
print "Numbers now: ", numbers
print "At the bottom i is %d" % i
print "The numbers: "
for num in numbers:
print n... | [
"aarti.khatri@hotmail.co.uk"
] | aarti.khatri@hotmail.co.uk |
f80c866e2368db5e2bac7cfee73d7902ec658276 | 7170247c1586eb30a0283593fda2c20961b4eb8f | /Engine.py | 1b00d4a653175f0e44f3e8bd7b0e18cb660d2edb | [] | no_license | sunnybythesea/OverlookHotel | 20f0120a93b65c67bd5ebfd7bbf0172b0ab17157 | 4b32bdbc09f34d3e28adcf24211df3c1a85d21e5 | refs/heads/master | 2020-06-04T20:17:59.293747 | 2011-11-10T17:20:18 | 2011-11-10T17:20:18 | 2,538,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | from Rooms import *
''' The engine instantiates all the objects
'''
class Engine(object):
def __init__(self):
print "New engine"
room = Lobby()
state = 'run'
while True:
(result, blurb, state) = room.play(state)
print '---------------------------... | [
"sanket.khidkikar@gmail.com"
] | sanket.khidkikar@gmail.com |
13f7872f320aa7254289b77a2c80f0785d8087ce | d87a4b4efb2cb0d73f825faab90935e614495bec | /view/PanelSinglePrint.py | 99551366b563d565475dfbeef57ae0dcc511da9e | [] | no_license | glukhenko/housing-and-communal-services | 8afe13b524605882bbcf9992f7e9d9412709e7a3 | d883e889d56f2b910651ddcb31c01db6ca1ac1bc | refs/heads/main | 2023-01-24T08:32:02.868509 | 2020-12-06T23:23:37 | 2020-12-06T23:23:37 | 319,149,560 | 0 | 0 | null | 2020-12-06T23:23:38 | 2020-12-06T22:58:58 | null | UTF-8 | Python | false | false | 3,907 | py | # -*- coding: utf-8 -*-
import wx
from Preview import Preview
class PanelSinglePrint(wx.Panel):
def __init__(self, parent, data):
self.parent = parent
self.setting = self.parent.setting
self.model = self.parent.model
self.occ, self.surname, self.name, self.patro... | [
"anton.glukhenko@gmail.com"
] | anton.glukhenko@gmail.com |
621c3c3d152f7fb8d129e3d238577d35e84316bf | b78ef234823d13e7c0f1465ead1075959ae876fc | /ecommerce/store/views.py | 6072bc01e76e5d67f8e85eb156ff96d1f1c5064a | [] | no_license | pjelelhml/eCommerceProjectDjango | d6ce93eb012a27d323b5f07c1e4f0ea5207c8994 | 9a16829f22efdbaeca183d03b350b54733e933e8 | refs/heads/main | 2022-12-26T02:55:00.500980 | 2020-10-06T17:38:12 | 2020-10-06T17:38:12 | 300,421,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,107 | py | from django.shortcuts import render
from .models import *
# Create your views here.
def store(request):
products = Product.objects.all()
context = {'products':products}
return render(request, 'store/store.html', context)
def cart(request):
if request.user.is_authenticated:
customer = request... | [
"paulo3385@hotmail.com"
] | paulo3385@hotmail.com |
60561d38b824aef698610a5b4e3ba8bf7decd4e0 | 1a608da2cc50c911f236f655cb4bd6b0ebd5d4e4 | /django-001/first_django_project/bin/sqlformat | b2aa952f606c15f4e2b8d9ab3fdedabf5977311a | [] | no_license | buscaroli/python-basics | 6257fac35714858ee4bcd67107e1995f304254e0 | 2ba95719aebbb6e469705e84bc6b7a62539d6da2 | refs/heads/master | 2020-09-04T12:58:54.079978 | 2019-11-05T12:08:22 | 2019-11-05T12:08:22 | 219,735,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | #!/home/matteo/code/Python/Basics/django-001/first_django_project/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"matteo@pop-os.localdomain"
] | matteo@pop-os.localdomain | |
e98b4cbadcaaac6d2b48d317efb3adfdaa9baa0c | 8f9fab58dc58b80645589d499c3eac7e8749846d | /manage.py | 5962854b5aa0b80631ecc88c965cb1746ccd9bfc | [
"MIT"
] | permissive | knedlsepp/coffeemachine | 25c679702fb23bb5a9920e65006079aeb69387e1 | ce82e3d95fbc3112680dbc63961b96834381804a | refs/heads/master | 2020-03-24T19:26:45.343458 | 2018-08-30T02:21:24 | 2018-08-30T02:21:24 | 142,926,831 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "coffeemachine.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure tha... | [
"josef.kemetmueller@gmail.com"
] | josef.kemetmueller@gmail.com |
74108323456be3f195557ccb02b5015a1c51d6aa | c3d697979368ff48f89f8c00b04e65f5014f4c2b | /nes/processors/ppu/registers/oamaddr.py | c6a9a464187565c0d0c937fe5737c3b2e5e98a05 | [
"MIT"
] | permissive | Hexadorsimal/pynes | 8cbe53d3c23329b8fbf90066c4569bb2770c1340 | dbb3d40c1240fa27f70fa798bcec09188755eec2 | refs/heads/master | 2023-01-05T22:44:21.618461 | 2020-11-09T02:50:50 | 2020-11-09T02:50:50 | 83,525,658 | 1 | 0 | MIT | 2020-10-28T04:12:06 | 2017-03-01T07:30:58 | Python | UTF-8 | Python | false | false | 254 | py | from nes.processors.registers import Register
class OamAddr(Register):
def __init__(self):
self.addr = 0x00
@property
def value(self):
return self.addr
@value.setter
def value(self, addr):
self.addr = addr
| [
"john@whipple.org"
] | john@whipple.org |
60d3de6b5bc1d75bd0f6167150e81a785b6dc883 | 36bb6e6ee365548a49cd182ec05a1aa11b3a8542 | /2_6_3.py | 550262e764eda52cd2e9ae70f87a9fec7341ceed | [] | no_license | toha62/Learning_1 | 74f6544a2ac4909325d940a761abafc19dd593b7 | 27f8b7b0977999b3d31f6971464f031faf68d72e | refs/heads/master | 2023-07-05T12:27:37.141591 | 2021-08-18T08:25:46 | 2021-08-18T08:25:46 | 392,797,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | lst = [int(i) for i in input().split()]
x = int(input())
c = lst.count(x)
i = 0
if c != 0:
while c != 0:
i = lst.index(x, i) + 1
print(i - 1, end=' ')
c -= 1
else:
print('Отсутствует') | [
"toha62@inbox.ru"
] | toha62@inbox.ru |
c2ae43c2b91dac46aa6f964347b09d8dd965258b | 147d0863f4590649a90ea5f78c66974723a87247 | /api/views.py | dd4ab9ddecab2559c7faf133dec1c6c30553d792 | [] | no_license | jinchuika/ligabot | af5bd5443dc0df7d929e7b866869ba075c91db55 | 69544912e1ac46f281ba2fc78ff913d60d9a2a38 | refs/heads/master | 2021-01-20T12:50:32.894359 | 2017-05-08T14:07:47 | 2017-05-08T14:07:47 | 90,419,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,365 | py | from django.db.models import Q
from .serializers import MatchSerializer, TableSerializer, CompetitionSerializer, FixtureSerializer, TeamSerializer
from rest_framework import mixins, generics, viewsets
from api.api_request import RequestHandler
from api.models import Competition, Fixture, Team
class TeamMatchListView(... | [
"jinchuika@gmail.com"
] | jinchuika@gmail.com |
dc84d9e1573286edda37f9ec1d5235c5e58178a0 | 4a73d104af797c10af05ed38eb26170b54c205e8 | /eventMap/migrations/0001_initial.py | da8615dbf67f5d281ec460f1cbf6ddcdb3248412 | [] | no_license | Argonautic/FreeToday | 1db641d00bb9d760611f3066872ee57183c3750a | 7a4e11dc596b8ec3c1925f8b011975139a24aa09 | refs/heads/master | 2021-01-01T18:04:50.971337 | 2017-10-15T15:32:59 | 2017-10-15T15:32:59 | 98,239,842 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-25 01:03
from __future__ import unicode_literals
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
... | [
"jonathan.zhou93@gmail.com"
] | jonathan.zhou93@gmail.com |
ce2c59b57ea5030b3747f41fc82eb48cbecb159b | d44cbbed1061299c733239c513bfa7f530d97be2 | /adminalerts/tests/test_permissions.py | 13f3d1ee56e0790799de2df81bc0c2806d155c80 | [
"MIT"
] | permissive | raonyguimaraes/sodar_core | f6cb331b31476be595ff0d5a279b82f6871530ff | 903eda944ed75aaf54b74d959ef634790c042e57 | refs/heads/master | 2022-07-24T20:00:33.442200 | 2020-04-24T14:03:47 | 2020-04-24T14:03:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,699 | py | """Tests for permissions in the adminalerts app"""
from django.urls import reverse
# Projectroles dependency
from projectroles.tests.test_permissions import TestPermissionBase
from adminalerts.tests.test_models import AdminAlertMixin
class TestAdminAlertPermissions(AdminAlertMixin, TestPermissionBase):
"""Test... | [
"mikko.nieminen@bihealth.de"
] | mikko.nieminen@bihealth.de |
27307169cee9d5d04d8e1dbd08f5210847fcf786 | f84c7c0d049720e98db2a49655120833b71f4d2c | /Cypher/mergeNode.py | bdbe25491d5fbbcca55874db1db472a17026836e | [] | no_license | Spanarchie/PY2NEO_Demo | 49336311cac14d2ce6c328268b6dfab02b87c583 | b8a7e31c83762e1173dc6811e9aeef316bf31f91 | refs/heads/master | 2021-01-22T09:55:58.475176 | 2014-09-15T19:09:46 | 2014-09-15T19:09:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | __author__ = 'colinmoore-hill'
from py2neo.neo4j import GraphDatabaseService, CypherQuery
# Set up a link to the local graph database.
# When () left blank defaults to http://localhost:7474/db/data/
graph = GraphDatabaseService()
cypher = "merge (C :country {name: \"Homeland\", populus: 100 }) return C"
CypherQuery... | [
"colin.moore-hill@met.police.uk"
] | colin.moore-hill@met.police.uk |
e263652ba05be353c09aa7113d286da8b9dc6636 | 2626c2580c36b03debdc84855e4b5a48efdf7037 | /cs2quiz2.py | 92d19ba14b3dbdae4039d672c22e780eb7131a30 | [
"CC0-1.0"
] | permissive | isaiah1782-cmis/isaiah1782-cmis-cs2 | d54f2b17866d98d706befc0c0cbe5a03f733e55d | ac6683888c9215bb697cfc771e3fc955043a1668 | refs/heads/master | 2021-01-21T04:47:40.544311 | 2016-06-07T07:17:46 | 2016-06-07T07:17:46 | 50,395,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,232 | py | #PART 1: Terminology
#1) Give 3 examples of boolean expressions.
#a)
# >>>bool(1)
# >>>True
#b)
# >>>bool(0)
# >>>False
#c)
# >>>p = False
# >>>bool(p)
# >>>False
#
#2) What does 'return' do?
#
#The retrun command puts a variable's assigned value, that you assigned in a function, for the function so that ... | [
"cmis@cmis-hs10.(none)"
] | cmis@cmis-hs10.(none) |
1c65e874cc500c5891439e350e89441caa59a097 | 14abe13bff2c346430ec7129c49a79ff4f52c5b0 | /canteen_tests/test__main__.py | 30b0a9135238a41d45d9bfcb92a8f477f5f1e761 | [
"MIT"
] | permissive | ianjw11/canteen | 9a3122deed73a545aa8cc0c51b6913e945e23e39 | cfc4ef00ec67df97e08b57222ca16aa9f2659a3e | refs/heads/master | 2021-01-21T02:41:11.139310 | 2014-07-09T15:59:05 | 2014-07-09T15:59:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | # -*- coding: utf-8 -*-
'''
canteen: main tests
~~~~~~~~~~~~~~~~~~~
tests things at the top-level package main for canteen.
:author: Sam Gammon <sg@samgammon.com>
:copyright: (c) Sam Gammon, 2014
:license: This software makes use of the MIT Open Source License.
A copy of this license is incl... | [
"sam@keen.io"
] | sam@keen.io |
760de27845f1c0e14f9a23f17326228705be345f | 9609eecb4ac4e666512bdf4e754163ee8ccdb6db | /telemed/migrations/0005_auto_20210120_2107.py | aa286204f07b258668f97fb21f59c0aabcc22e0f | [] | no_license | mmngo/telemed | 5c170bd0ae68961bad7277301d5c032cc0f4797f | fffecba105eb514001838f545de510310a7ed49a | refs/heads/main | 2023-08-22T22:00:46.751803 | 2021-10-27T08:22:49 | 2021-10-27T08:22:49 | 421,725,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,507 | py | # Generated by Django 3.1.5 on 2021-01-20 13:07
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('telemed', '0004_auto_20210120_1142'),
]
operations = [
migrations.AddField(
model_name='consultationrecord',
... | [
"mmngo@up.edu.ph"
] | mmngo@up.edu.ph |
5138f623d82eed67afff76da96329637b5feec7f | 853d4cec42071b76a80be38c58ffe0fbf9b9dc34 | /venv/Lib/site-packages/pandas/tests/sparse/test_pivot.py | 44a8194bd5813d75ac10e22e2c0fafc7a5de7834 | [] | no_license | msainTesting/TwitterAnalysis | 5e1646dbf40badf887a86e125ef30a9edaa622a4 | b1204346508ba3e3922a52380ead5a8f7079726b | refs/heads/main | 2023-08-28T08:29:28.924620 | 2021-11-04T12:36:30 | 2021-11-04T12:36:30 | 424,242,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,369 | py | import numpy as np
import pytest
import pandas as pd
import pandas.util.testing as tm
@pytest.mark.filterwarnings("ignore:Sparse:FutureWarning")
@pytest.mark.filterwarnings("ignore:Series.to_sparse:FutureWarning")
@pytest.mark.filterwarnings("ignore:DataFrame.to_sparse:FutureWarning")
class TestPivotTable:... | [
"msaineti@icloud.com"
] | msaineti@icloud.com |
3d2bd8ff970e7a9fa6ed06d06362d446b3f710cd | 41dbb27af3a3ecabeb06e2fb45b3440bcc9d2b75 | /client/migrations/0001_initial.py | 8e69fdd04b310bf4d984b437435a5d02419dcaa0 | [] | no_license | joypaulgmail/Dookan | 4df83f37b7bcaff9052d5a09854d0bb344b9f05a | 7febf471dd71cc6ce7ffabce134e1e37a11309f7 | refs/heads/main | 2023-03-02T04:10:19.611371 | 2021-02-09T11:45:32 | 2021-02-09T11:45:32 | 336,476,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,240 | py | # Generated by Django 3.1 on 2020-11-28 06:01
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='ClientDetail',
fields=[
('id', models.AutoFie... | [
"joypaul650@gmail.com"
] | joypaul650@gmail.com |
1fe4adf0531d1598c12fe6bccc18a72c0ddeddf7 | 288d02c109bf82bcfffbccbb0438b51af389e0a5 | /pyserial/pyserial_test.py | 6acbb52ff71780c1035056954df732f8e4a6e609 | [] | no_license | breakersun/python_test | 211421993eb462f3e06d3592f42155bec3fcc3f7 | f0ebd7b7b5fea2b7c00e053e702d5f4785922a93 | refs/heads/master | 2021-10-24T05:21:31.683208 | 2021-10-11T05:35:00 | 2021-10-11T05:35:00 | 232,232,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | import serial
tx = serial.Serial('COM1')
rx = serial.Serial('COM2')
tx.write(open("test.txt", 'rb').read())
print(rx.readline())
tx.close()
rx.close() | [
"leosunsl@outlook.com"
] | leosunsl@outlook.com |
beca6c6a6fdc8c07bf59fafda1a3c0a1f35f7377 | f13acd0d707ea9ab0d2f2f010717b35adcee142f | /ABC/abc101-abc150/abc125/d.py | 65d866fb02f012f8ac51ed868bc202f0c9c93fe5 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | KATO-Hiro/AtCoder | 126b9fe89fa3a7cffcbd1c29d42394e7d02fa7c7 | bf43320bc1af606bfbd23c610b3432cddd1806b9 | refs/heads/master | 2023-08-18T20:06:42.876863 | 2023-08-17T23:45:21 | 2023-08-17T23:45:21 | 121,067,516 | 4 | 0 | CC0-1.0 | 2023-09-14T21:59:38 | 2018-02-11T00:32:45 | Python | UTF-8 | Python | false | false | 426 | py | # -*- coding: utf-8 -*-
def main():
n = int(input())
a = list(map(int, input().split()))
minus_count = 0
abs_min = float('inf')
ans = 0
for ai in a:
if ai < 0:
minus_count += 1
abs_min = min(abs_min, abs(ai))
ans += abs(ai)
if minus_c... | [
"k.hiro1818@gmail.com"
] | k.hiro1818@gmail.com |
3a241204309bb872de8646ff5018a65a4c3b3f50 | a97fb0584709e292a475defc8506eeb85bb24339 | /source code/code/ch713.py | 0b37f65b4505c1c49f2186b0ad00f91dad64d26c | [] | no_license | AAQ6291/PYCATCH | bd297858051042613739819ed70c535901569079 | 27ec4094be785810074be8b16ef84c85048065b5 | refs/heads/master | 2020-03-26T13:54:57.051016 | 2018-08-17T09:05:19 | 2018-08-17T09:05:19 | 144,963,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | #!/usr/bin/env python
#coding=utf-8
"""
# 多載overloading觀念, 註解的這個區塊無法在Python裡正常運作.
class Obj:
def __init__(self):
pass
def func(self, x=0):
print "func: x = %d ", x
def func(self, x=0, y=x+x):
print "func: x = %d, y = %d", x, y
def func(self, y=0):
print "func: y = %d ... | [
"angelak.tw@gmail.com"
] | angelak.tw@gmail.com |
a58fb6876185be87b47b79b2b86347d8d57364b3 | d15bdaddab59d1cfea76790004cbad3e5f0c2c55 | /batkin/build_isolated/base_local_planner/catkin_generated/generate_cached_setup.py | a99877387161efbb0a4785123c2005e570c2c1ff | [] | no_license | gychen-n/robot | 4265a1ff469d22550b6b537d1c81aa846ee7641a | 0663a33aea2c2de9e3ac5863307619091e5b5959 | refs/heads/main | 2023-04-10T13:32:06.623682 | 2021-04-16T00:41:04 | 2021-04-16T00:41:04 | 358,431,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,555 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/kinetic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.path.insert(0, ... | [
"gyc@autolabor-host.autolabor-domain"
] | gyc@autolabor-host.autolabor-domain |
90f9d81e1ac37422b6bc4c3d5187d3f54eb2b54c | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_083/ch129_2020_04_01_17_04_56_778073.py | 63194e8b169fab2b441de017db0cc2185bde9181 | [] | 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 | 211 | py | def verifica_quadrado_perfeito(n):
i=1
y=1
while n>=i:
y=n-i
if y==0:
return True
else:
return False
i+=2
print(verifica_quadrado_perfeito(25)) | [
"you@example.com"
] | you@example.com |
4d054bb48aa7d0014f79a7f8a3d8458fe1759745 | be3694d480577d7523fe2af7f5ae07bcd1afa561 | /TestCustomLoss.py | a7f1b3a7ff9c814b6e3932782365827a1474af6e | [] | no_license | vinitranjan1/AEGraphSparsifier | 590641cabb49ae0d0515e25b3b2490eb13fc1891 | d4cc856a86d7f7ad4b3ac207a992b8b85f35aae7 | refs/heads/main | 2023-01-20T10:47:56.828667 | 2020-11-23T00:10:05 | 2020-11-23T00:10:05 | 311,012,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,583 | py | """TensorFlow 2.0 implementation of vanilla Autoencoder."""
import numpy as np
import tensorflow as tf
from GraphOps import *
class Encoder(tf.keras.layers.Layer):
def __init__(self, intermediate_dim):
super(Encoder, self).__init__()
self.hidden_layer = tf.keras.layers.Dense(
units=int... | [
"Vinit@Vinits-MacBook-Pro.local"
] | Vinit@Vinits-MacBook-Pro.local |
33140059cadae207fba1a7f671a61251d1c55c08 | a807ce0fa3e3e9c3b558b2e977c05e60c3a667b1 | /tests/nemo_text_processing/de/test_measure.py | f96c3156ea1a17e934a8d3e924533bea950008fc | [
"Apache-2.0"
] | permissive | blisc/NeMo | 630376e7555c0face994da2f6f9af5d8d31243c3 | fadeb45c84d6b323d78e30475538455a88b7c151 | refs/heads/rework_reqs | 2023-08-17T00:03:39.248669 | 2021-08-12T15:15:06 | 2021-08-12T15:15:06 | 208,142,160 | 2 | 0 | Apache-2.0 | 2022-02-03T16:30:33 | 2019-09-12T20:37:24 | Jupyter Notebook | UTF-8 | Python | false | false | 1,474 | py | # Copyright (c) 2021, 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 appli... | [
"jasoli@nvidia.com"
] | jasoli@nvidia.com |
a0e585c73ccd0f53b6602f193b8f888584358b58 | 0fd2b832673946c9ee532686a2a35bf2680f8408 | /CybORG/CybORG/Shared/Actions/GlobalActions/ListGames.py | 76795b71f41c8585e6fe71ad744f82fc4ac7f0bd | [
"MIT"
] | permissive | pvu1984/cage-challenge-2 | 4e57bad7bc30c7df2b90c2fabc8395a5f2a3e65c | e76722dcd79a6b7511e185cde34fac1e0b45720e | refs/heads/main | 2023-09-02T15:11:32.072215 | 2021-11-12T02:33:19 | 2021-11-12T02:33:19 | 429,307,660 | 0 | 0 | MIT | 2021-11-18T05:27:36 | 2021-11-18T05:27:35 | null | UTF-8 | Python | false | false | 477 | py | # Copyright DST Group. Licensed under the MIT license.
from CybORG.Shared import Observation
from .GlobalAction import GlobalAction
class ListGames(GlobalAction):
"""Get a list of all active games """
def emu_execute(self, team_server) -> Observation:
self._log_info("Listing games")
obs = Ob... | [
"david@pop-os.localdomain"
] | david@pop-os.localdomain |
7b5aab5335ec727404f675c18b4d366dd9bfaf3f | 9d2a58f599730ce2b48b35d83b00446682a0acf1 | /PYTHON/story_generator.py | cd53ba24039fc1c0bb85fd2a5f724c43fd2c218a | [
"MIT"
] | permissive | rochroger/open-source-contribution | 17052d3b905266f20c8d48350a89755a4068e17f | 1699bc85993afbbb8e6fa501c172015726d71547 | refs/heads/main | 2023-08-14T06:01:14.063513 | 2021-10-04T16:39:33 | 2021-10-04T16:39:33 | 413,202,815 | 2 | 1 | MIT | 2021-10-03T21:37:19 | 2021-10-03T21:37:19 | null | UTF-8 | Python | false | false | 732 | py | import random
Sentence_starter = ['Once upon a time']
character = [' there lived a boy.',' there was a man named Pypy .', ' there lived a Fisherman.']
time = ['One Hot summer day', 'One day']
story_plot = [' he was playing in ',' he was going for a work to do in ']
place = [' the mountains', ' the river-side']
second... | [
"saifemon789@gmail.com"
] | saifemon789@gmail.com |
dda8aba87676939ac28666e47abb879e936cd81b | 01dff0c88d39fafd9c0b61005a13d728dc359875 | /loop15.py | 5b4b2c98f3317edbcc81f6c90ada07f77363ae0c | [] | no_license | shubhangiranjan11/Hackaloop | 927c94b8c7ebb7c15b93d76bbc60625c8bd73960 | a1189bc64c87f9eb4b3929a9108a2d957437a516 | refs/heads/main | 2023-06-06T11:30:46.815341 | 2021-06-20T08:19:43 | 2021-06-20T08:19:43 | 378,593,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | user=int(input("any number"))
fac=1
i=0
while i<=user:
i=i+1
fac=fac*i
print(fac)
| [
"noreply@github.com"
] | shubhangiranjan11.noreply@github.com |
424a8c06a3f08531de3379e9e20ca1903c31d935 | bba5ea3e79b89c39a8c9b109095f922f7dab48de | /moka-dulzuras/social/admin.py | 0a77201c6eca075c8bae8d2f373058cd17ba1b6f | [] | no_license | jonahs90/web-moka | c431d3993d61ea8b280c0fa80835e0c37bb36e39 | e129e269bc20de865dd5c9dfbcdd3e392fcaa801 | refs/heads/master | 2020-04-26T06:14:11.494006 | 2019-05-21T17:55:59 | 2019-05-21T17:55:59 | 173,358,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | from django.contrib import admin
from .models import Link
# Register your models here.
class AdminLink(admin.ModelAdmin):
readonly_fields = ('created', 'updated')
def get_readonly_fields(self, request, obj=None):
if request.user.groups.filter(name="Personal").exists():
# Comprobara si den... | [
"jonathansanchez595@gmail.com"
] | jonathansanchez595@gmail.com |
efab87b20664ec229e586c22e89bc0d3a85e244e | d1db868a3d7eb86a507cc7da910a8fc23f6f39c0 | /flexflow/dbengines/mongodb/mongoengine.py | 8fec38b19dbf4a1baf6e8fdc1dd1262cfb336d1f | [] | no_license | BhujayKumarBhatta/flexflow | 0b88ab10eb1f7eea77a903ee84921fe5e7a66912 | bdd9d1137e430b04dc3b13102639bab40fb541ec | refs/heads/master | 2022-11-28T03:01:40.888256 | 2022-11-20T05:04:54 | 2022-11-20T05:04:54 | 240,233,004 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,883 | py | from mongoengine import connect
try:
# Python 3.x
from urllib.parse import quote_plus
except ImportError:
# Python 2.x
from urllib import quote_plus
class MongoStorageDriver(object):
def __init__(self, conf):
# print(conf)
self.yml = conf
self... | [
"bhujay.bhatta@itc.in"
] | bhujay.bhatta@itc.in |
f4c3cec5dd6cebfc39e5ffc23081aa73db87640a | 7750af8e1b6589d5b964e284549c2fd41fc1c1e1 | /q1.py | 1181f1571ef9979d8639ed19ea357354d16008aa | [] | no_license | AREEG94FAHAD/Python-for-Data-Science-Project | 9f8586c52db40b741e8e723356fa827ba35a4fd9 | a249a897ba4c228e1ad2b987690717d864c34622 | refs/heads/master | 2023-06-02T20:00:52.332733 | 2021-06-17T09:33:52 | 2021-06-17T09:33:52 | 377,767,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | import yfinance as yf
import pandas as pd
TSLA = yf.Ticker("TSLA")
tesla_data = pd.DataFrame(TSLA.history(period="max"))
tesla_data.reset_index(inplace=True)
tesla_data.head(5)
print(tesla_data.head(5)) | [
"fahedareeg@gmail.com"
] | fahedareeg@gmail.com |
cc215b480e570e11337a36dbd5b42a7cbcffec5e | 707db98a71a11cc075e96351ec47cfa2fe7887ea | /variant.py | 616f493a826214c0ffeeba57d1eecbef3d7a7a28 | [] | no_license | rawagiha/Utils4RNAIndel | ff0ac635e30d2fd0b50f28c45efbadc31856bc7f | c01b21f383ed2d2d578edfb326fca958717a9ab9 | refs/heads/master | 2020-05-20T10:04:22.297009 | 2019-07-16T15:07:42 | 2019-07-16T15:07:42 | 185,517,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,615 | py | #!/usr/bin/env python3
class Variant(object):
"""Represents genomic variants based on VCF record
"""
def __init__(self, chrom, pos, ref, alt, genome):
"""Constructor
Args:
chr (str): chromosome names
pos (int): 1-based position
ref (str): refer... | [
"kohei.hagiwara@stjude.org"
] | kohei.hagiwara@stjude.org |
1938f3a950e134bc3209dd16dae822cae875aeb2 | 5f188af84b8b81603f6ade89c2b18c39fe6ddba1 | /venv/lib/python3.6/types.py | 87c9d6befad38cf7de3c158524e3e6fe78ac56a8 | [] | no_license | topdreg/aaron-tech-etc | 1a6734d87daacf6d54e3c851d58f9d3e5f8ffb73 | 2089425c9c0e00ce992d2bc215463167e7ce07a7 | refs/heads/master | 2020-03-16T22:30:21.176640 | 2018-08-12T13:21:54 | 2018-08-12T13:21:54 | 133,041,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | /home/topdreg/ENTER/lib/python3.6/types.py | [
"apercival314@gmail.com"
] | apercival314@gmail.com |
f9dc9e7848810d1714cfbe98beeb24b666c59b77 | 7ea78cfa39cedf8d490a4a6299d34058b2443ae0 | /tg/tg/tg_app/migrations/0017_auto_20171202_1159.py | 7887da31ff6077d1ecd40e2d8b0afdd24d570801 | [] | no_license | Hackers-Rajasthan/tourist-guider-backend | 68a05e0bb47fabaa8902771801c714a6d1d9b4a2 | 7bda25ea017064b279a4dee38c0c4c38adfa5480 | refs/heads/master | 2021-08-23T03:25:11.312584 | 2017-12-02T22:04:33 | 2017-12-02T22:04:33 | 112,813,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-12-02 11:59
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('tg_app', '0016_auto_20171202_1144'),
... | [
"shugupta1997@gmail.com"
] | shugupta1997@gmail.com |
344811379325693a3445800dd70f9d71e279251d | 2dd6d5db871b64a9fc270e790d5614d959ae79f4 | /Prob07/Prob07-IPRB.py | 16df4ee8800c6c54abea67814fe1052767d57d87 | [] | no_license | ImperialSquid/ROSALIND | 5da11cd0b5985715dfc0287075cefa8e66ad4054 | 874914571fa36659f1c4b4ee4c0f957689da32b8 | refs/heads/master | 2020-08-14T10:47:33.001584 | 2019-11-29T22:20:19 | 2019-11-29T22:20:19 | 215,153,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | with open("Prob07-IPRB-in.txt", "r") as f:
ints = [int(x) for x in f.readline().split(" ")]
k = ints[0]
m = ints[1]
n = ints[2]
t = k + m + n
prob = k/t + (m*k + n*k + n*m +3*m*(m-1)/4)/(t*(t-1))
print(prob)
with open("Prob07-IPRB-out.txt", "w") as f:
f.write(str(prob))
| [
"benjaeger99@gmail.com"
] | benjaeger99@gmail.com |
b59d95850094a8e35402245c52ec57944a360d0d | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-resource/azure/mgmt/resource/managedapplications/models/resource_py3.py | 5de1d2d3bb943026662197eb95d8d4819b5633fb | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 1,617 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"noreply@github.com"
] | xiafu-msft.noreply@github.com |
e2859cc0d3ae72d3b2cc03c00d1ac6675df0f8da | 4e4fe2651b86aa354b30e574fd0fdc597a7ac19b | /logs/MyLogger.py | dbf3f695de6f0164675bf62a95f29bbfc5262588 | [] | no_license | YoouKi/project_wise_superior | 90ee9f89b396b797343c7b4659f21aeedbbfbb82 | a5d30e62f24acc75a9781c7abb07312a1e7e83d4 | refs/heads/master | 2021-04-10T11:38:52.720939 | 2020-03-21T09:00:03 | 2020-03-21T09:00:03 | 248,932,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,197 | py | # coding:utf-8
import logging, time
import os
# log_path是存放日志的路径
cur_path = os.path.dirname(os.path.realpath(__file__))
log_path = os.path.join(os.path.dirname(cur_path), 'logs')
# 如果不存在这个logs文件夹,就自动创建一个
if not os.path.exists(log_path):os.mkdir(log_path)
class MyLogger():
def __init__(self):
# 文件的命名
... | [
"a1041238020@163.com"
] | a1041238020@163.com |
632531ce3e51e510b87b765c03cfa5f6ea264d16 | e1a78591c9702a7e61fbf076d78b59073ff33c37 | /InternetSemLimites/core/tests/test_fame_view.py | e938694682951acc076cf431f78fd1435b7febff | [
"MIT"
] | permissive | sebshub/PublicAPI | eb26f22a34a7022bccd6aaecdfa0c35e5fdf4c7a | 82677389430a30ad82be9fa81643431d9db24f0c | refs/heads/master | 2021-01-19T19:06:40.791795 | 2016-04-14T22:18:43 | 2016-04-14T22:18:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,489 | py | from django.shortcuts import resolve_url
from django.test import TestCase
from InternetSemLimites.core.models import Provider, State
class TestGet(TestCase):
def setUp(self):
sc = State.objects.get(abbr='SC')
go = State.objects.get(abbr='GO')
props = {'name': 'Xpto',
'url... | [
"cuducos@gmail.com"
] | cuducos@gmail.com |
5765f1aaf9b7afce460a6b3f9c964e80eb5842d3 | c8e5d2aa94b21a2102213176ff7cbeeb93dca89b | /C04_mlp/util.py | 89659078ea0b5fe013ea1f23df4ac140811be40f | [] | no_license | jurajmaslej/neuronky | c67348e0606bd6e7bac78b19940eadda8ab2d530 | 6bbb55cd8d913a772b5aa3d18b0b63355cd986c8 | refs/heads/master | 2020-03-19T00:40:37.131584 | 2018-07-02T20:54:45 | 2018-07-02T20:54:45 | 135,496,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,208 | py | import atexit
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
## utility
def augment(X):
if X.ndim == 1:
return np.concatenate((X, [1]))
else:
pad = np.ones((1, X.shape[1]))
return np.concatenate((X, pad), axis=0)
## plotting
def plot_errors... | [
"juraj.maslej@gmail.com"
] | juraj.maslej@gmail.com |
a45cab167d70434f5e3c645e0070f28a61099f01 | d36829711568f8f6d9018ebe55621e76e07f3806 | /review/models.py | 70b013dbf1dde0a9f6932599cb573dba17d39ecb | [
"MIT"
] | permissive | PeoplesMomentum/mxv | 3e41a01a10511fc01c72f91b4c614a86e83d5271 | 3ad06cc8d3db43c63f24a80a5709aed3ade94789 | refs/heads/master | 2021-06-05T10:32:02.901332 | 2020-07-17T10:08:36 | 2020-07-17T10:08:36 | 109,157,360 | 6 | 2 | MIT | 2020-07-17T09:35:58 | 2017-11-01T16:47:29 | Python | UTF-8 | Python | false | false | 13,159 | py | from django.db import models
from mxv.settings import AUTH_USER_MODEL
from datetime import date
from django.core.mail.message import EmailMultiAlternatives
from django.urls.base import reverse
from django.utils import formats
from django.db.models.deletion import CASCADE
# field sizes
name_length = 100
summary_length ... | [
"mark.reardon@peoplesmomentum.com"
] | mark.reardon@peoplesmomentum.com |
4be52575b9fbf763dd9515d892fb9547de81715f | ffbb02c425e1018c6c7a9610943be585a163011b | /venv/a.py | 037fee6afdcb0a6e0282d4d4cd4f5a60f7639132 | [] | no_license | SiddhantReddy/Smart-Notepad | adba4361c61b930f403e02317dcf5c86c9acba88 | f356e39fcfe6c84dd53aae8afaf673bb18eef19a | refs/heads/master | 2023-03-19T05:16:18.301626 | 2021-03-11T15:26:09 | 2021-03-11T15:26:09 | 296,317,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,619 | py | with open('C:Users/SID/Desktop/QuickSort.txt') as f:
a = [int(x) for x in f]
def FindMedian(A):
minvalue = min(A)
maxvalue = max(A)
for i in range(3):
if A[i] != minvalue and A[i] != maxvalue:
return A[i]
def ChoosePivot(A, flag):
n = len(A)
first = A[0]
final = A[n ... | [
"siddhantreddy13@gmail.com"
] | siddhantreddy13@gmail.com |
8f3f80865e0e486357a2d4045a4a6d3735bb28a8 | d4a6cc34eaf4869356e1c6d8b0088f527641d08b | /CarVender/settings.py | bc4cbce552ffee1c73432029c3318ab1775d8a49 | [] | no_license | taraszag/CarVender | 57d6a5441748340b4f5af3949d5b87345c5ace03 | fb41f2d379a092530827078c3f9706cdb4b1715a | refs/heads/master | 2023-07-18T05:37:34.090407 | 2021-08-31T10:54:46 | 2021-08-31T10:54:46 | 401,668,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,582 | py | """
Django settings for CarVender project.
Generated by 'django-admin startproject' using Django 3.2.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathl... | [
"taras288200"
] | taras288200 |
7e958ad0f0772acee6a462d43c319a692f311ff0 | 8811a28aff6609be3ecb366a7b058fbc633a450d | /lesson-2/home_work/hw02_normal.py | 238b31e33c3c34a950c4a845fb156cd358a202f0 | [] | no_license | stonerjurand/PythonLessons | d4c7cfd17adb98bb0777f09c08a634b3ac3cacee | 2738eef8789c21f0668709655581f07b419cd8bb | refs/heads/master | 2020-04-22T23:37:10.050898 | 2019-04-06T11:12:39 | 2019-04-06T11:12:39 | 170,747,551 | 0 | 0 | null | 2019-03-10T15:23:47 | 2019-02-14T19:39:41 | Python | UTF-8 | Python | false | false | 4,041 | py | # Задача-1:
# Дан список, заполненный произвольными целыми числами, получите новый список,
# элементами которого будут квадратные корни элементов исходного списка,
# но только если результаты извлечения корня не имеют десятичной части и
# если такой корень вообще можно извлечь
# Пример: Дано: [2, -5, 8, 9, -25, 25, 4] ... | [
"stonerjurand@gmail.com"
] | stonerjurand@gmail.com |
030730aea6d1dffe065b7f8024036c9897b30e29 | 330b887423a979d0cb23dd598efc71b397a1f507 | /exercicios/exe_27_6.py | 402d6f2f457779b0634dd92ee5fab39abd702e0c | [] | no_license | giovane-sylvestrin/aulas_python | 0ac10e0a16af5342bb859e4ec1b9de758e092dc0 | f6ef8e94024b9fa5f76376871a46c220a6d90445 | refs/heads/master | 2022-12-04T09:57:07.414613 | 2020-08-22T18:44:58 | 2020-08-22T18:44:58 | 289,150,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | from fractions import Fraction
n = int(input('Insira um numero: '))
n_i = 0
H_n = 0
for i in range(1,n+1):
H_n += 1/i
fraccion = Fraction(str(H_n)).limit_denominator()
print(fraccion)
| [
"giovane.sylvestrin@gmail.com"
] | giovane.sylvestrin@gmail.com |
4c646510599771a14b06e9cda4f6b5639a123e72 | ba18f5ad93e083b92267b28d626c317cf7e5085c | /FTPSync.py | 2e143a5c99570ff22bb4f771d9701a57c2454d9a | [
"MIT"
] | permissive | rfessler/SublimeText2-FTPSync | 0cebea13d483e2e2da8365588e508833893eaeb1 | 88d431ece204dc4eb29ea02430edd63f61a7f531 | refs/heads/master | 2021-01-18T11:00:00.112074 | 2012-11-09T18:15:34 | 2012-11-09T18:15:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51,576 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2012 Jiri "NoxArt" Petruzelka
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restriction, including without limitation the rights to use,... | [
"petruzelka@nox-art.cz"
] | petruzelka@nox-art.cz |
dc401f0b32823ac6961ded0464e606bcbbf5b981 | c3d4af1c811d2d45595060b10ad979ae148e9265 | /course1/week3/Planar+data+classification+with+one+hidden+layer+v5.py | dcbacbc5c84ae5829d40220976257e8a6986e38c | [] | no_license | DB-Zhang/My-Deeplearning-Homework-Angerw | ddd93bf3c1233939ac398771f089874e1c843e16 | df79115e47a0f2ed24369e96b453285f67c41d69 | refs/heads/master | 2020-04-01T17:29:02.909694 | 2018-10-17T09:58:03 | 2018-10-17T09:58:03 | 153,432,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,432 | py |
# coding: utf-8
# # Planar data classification with one hidden layer
#
# Welcome to your week 3 programming assignment. It's time to build your first neural network, which will have a hidden layer. You will see a big difference between this model and the one you implemented using logistic regression.
#
# **You wil... | [
"noreply@github.com"
] | DB-Zhang.noreply@github.com |
a195809630945e990f64e7f2e22e179be4e4622d | a88a3bef1f8bee61a68984b0fa3a701b83cba447 | /WordPotential.py | 2edd3ab622fee8671011de5e58fc8ddbbf0f79f9 | [] | no_license | srishtishukla-20/logical_questions | ba9918838669c3fba988fb8d3368e32103fd6e59 | 80688fb1817fb3b450781b0cbb3c6634a9221f60 | refs/heads/main | 2023-06-26T20:29:42.377728 | 2021-07-31T03:46:59 | 2021-07-31T03:46:59 | 386,346,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | #for sentence with numbers
name=input("enter any word which contain , . !=")
user=name.split(" ")
i=0
e=[]
s=[]
while i<len(user):
j=0
sum=0
while j <len(user[i]):
if user[i]>="a" and user[i]<="z":
sum+=ord(user[i][j])-96
else:
sum+=ord(user[i][j])-64
j+=1
... | [
"noreply@github.com"
] | srishtishukla-20.noreply@github.com |
912aebdb4e3832be3fe426b74613315c3fd79a6c | 5424cc8a16c5176cca0f15931c4380925fa9c06b | /pixel_clock_titanspikes.py | fef8f55885596123b33511d6715f493b00767812 | [] | no_license | guitchounts/continuous-ephys | c0fb6a26e659063d7e322e54762abfb2cee1c74e | 8ba1feee14a32474b19260a04a5ed8c318e761a3 | refs/heads/master | 2020-04-05T14:44:04.055683 | 2019-06-20T18:03:30 | 2019-06-20T18:03:30 | 156,938,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,967 | py | # This is will be our scratch pad
import sys, os,re
import h5py
from utils import pixelclock, timebase
import open_ephys
import matplotlib.pyplot as plt
import numpy as np
import numpy.matlib
from get_bitcode_simple import get_bitcode_simple
import itertools
import concatenateKWIKfiles
import pandas as pd
from bokeh.io... | [
"gg42@bu.edu"
] | gg42@bu.edu |
1acdfb1920626d1363c04b1ba023704c5c8ca65d | 0676f6e4d3510a0305d29aa0b1fe740d538d3b63 | /Python/FitPLine/InterpPline.py | 6390298333cf36a43eb18f5776c4babdb66361c4 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | pgolay/PG_Scripts | f70ffe7e5ca07acd6f4caedc9a9aec566542da7c | 796704a7daa6ac222a40bb02afdb599f74a6b0d4 | refs/heads/master | 2021-01-19T16:53:41.525879 | 2017-02-07T18:26:10 | 2017-02-07T18:26:10 | 2,730,362 | 9 | 1 | null | 2016-12-30T17:58:08 | 2011-11-08T00:04:33 | Python | UTF-8 | Python | false | false | 482 | py | import Rhino
import scriptcontext as sc
import rhinoscriptsyntax as rs
def Test():
pLineId = rs.GetObject("Select a polyline", 4, preselect=True)
if pLineId is None: return
pLineObj= sc.doc.Objects.Find(pLineId)
rc, pLine = pLineObj.Geometry.TryGetPolyline()
ang = Rhino.RhinoMa... | [
"noreply@github.com"
] | pgolay.noreply@github.com |
dd6e1952d481483a14c6af026279ff57759228ca | dd7f300548bd9370b3a1a1ad70950093c9f50b6a | /blogs/migrations/0017_auto_20201012_1158.py | 0402d4b008fb54e65ff87a1ea6d98cae1517ca24 | [] | no_license | ADI33352/adi-djangoblog | 82e149c2c7d689db58af66d08fa3143ab3345a69 | 247026dd9484851f7a5dc2cdcaa0ee3d8d29b030 | refs/heads/main | 2023-01-22T14:39:31.069382 | 2020-11-08T10:57:50 | 2020-11-08T10:57:50 | 311,027,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | # Generated by Django 3.1.1 on 2020-10-12 06:28
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blogs', '0016_author_singleblog'),
]
operations = [
migrations.RenameModel(
old_name='singleblog',
new_name='blogsingle',
... | [
"adityaparashar863@gmail.com"
] | adityaparashar863@gmail.com |
6ea1c91203c1db946cff5cda8fb14d9ce0942d23 | 41f149f8f2e3ac473992cd5f57868a7edaa5914e | /onnx/backend/test/case/node/dft.py | 7eb07f3769a8a140b957d563869155106ad446b4 | [
"Apache-2.0"
] | permissive | natke/onnx | 5e56d082a1f6239f479e463316726668ccd6ec5d | aa1d0fe69072ba705a2eba2ff09ebba8ea8c1ef2 | refs/heads/main | 2022-11-07T08:43:51.203162 | 2022-09-20T18:07:23 | 2022-09-20T18:07:23 | 254,453,457 | 0 | 0 | Apache-2.0 | 2022-10-26T01:43:48 | 2020-04-09T18:52:02 | C++ | UTF-8 | Python | false | false | 1,438 | py | # SPDX-License-Identifier: Apache-2.0
import numpy as np # type: ignore
import onnx
from ..base import Base
from . import expect
class DFT(Base):
@staticmethod
def export() -> None:
node = onnx.helper.make_node("DFT", inputs=["x"], outputs=["y"], axis=1)
x = np.arange(0, 100).reshape(10, ... | [
"noreply@github.com"
] | natke.noreply@github.com |
f51c5a4a15f49e683756fdd822a6618dc7c08cd3 | 7c98ce3ef36a427cdbe42ab62d4eed9fc191ae5e | /Information Security/RSA.py | 369be0351dd85789e8156255ac23a387356cd799 | [] | no_license | vk-19/msc-codes | 6f420647a12115c5c3a6c33cbfb160f5f917557d | a218a2f05d990718cde01c43eaf2ffe9367ce279 | refs/heads/master | 2023-06-18T16:59:00.290154 | 2021-07-16T17:09:12 | 2021-07-16T17:09:12 | 354,602,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,209 | py | from math import gcd
from sympy import *
from random import randint
def RSA_encryption(M, public_key):
e, n = public_key
C = (M ** e) % n
return C
def RSA_decryption(C, private_key):
d, n = private_key
M = (C ** d) % n
return M
def generate_keys():
p = randprime(100, 1000)
q = r... | [
"vineetkumarprogramming@gmail.com"
] | vineetkumarprogramming@gmail.com |
9fba420f4e785e93f123b0e60179b45f400adc82 | bcfa162cc1e6c6b4a1470c52043d93d111129ef5 | /generate.py | b944db04b5ff70da46b19fed7cf2c4ec26ddac92 | [] | no_license | eipanteleev-lm/jupyter--data-analyst | 159b5330a58b4b5efb3c377ac41f0f507a31e4c7 | 5e74da80d9cfb936eb7ac2f44ff6f4931a23c76a | refs/heads/master | 2023-07-17T14:53:07.507021 | 2021-09-03T11:05:51 | 2021-09-03T11:05:51 | 390,836,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,149 | py | from datetime import datetime, timedelta
from random import choice, randint, random
from typing import Tuple
products = [
('Люстра', 2000),
('Лампочка', 200),
('Газонокосилка', 18000),
('Камин', 20000),
('Перфоратор', 7000),
('Отвертка', 250),
('Шпатель', 300),
('Швабра', 15... | [
"evgenii.panteleev@leroymerlin.ru"
] | evgenii.panteleev@leroymerlin.ru |
049c15190f0142931a95e324dcc39ec13e781818 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/Ablation4_ch016_ep003_7_10/Gather1_W_change_C_fix_2blk/ep0_test/pyr_0s/L5/step10_a.py | 4ff6c76e23f16f7c54b25b5ca0b4b4c49fbd9a01 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,733 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
6205368c81d9fd6e11eea0a70e7073fba8748f02 | fea09fda1774459eec05b5610dc83b3f8cca17e6 | /inference/pymc/pymc_simple_probit_fit.py | 1feb99d9c7dcdec021143d35d511edc34c94ee26 | [] | no_license | ItayLieder/GMM_simulations | ea9a4fd57b671d44a1a50d845c09aec2415b3b1c | 2a05aa98b501c8633e1fe2baf611d137740709de | refs/heads/master | 2020-12-31T06:22:24.191116 | 2016-04-16T21:42:57 | 2016-04-16T21:42:57 | 56,406,762 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,382 | py | #%matplotlib inline
from pymc3 import *
import numpy as np
import matplotlib.pyplot as plt
from utils import phi
import theano.tensor as tsr
# Generating synthetic data
N =100
x = np.random.randn(N)
s_true = 0.1
a_true = 0.1
b = phi(x/s_true-a_true)
y = np.random.rand(N)<b
def probit_phi(x):
""" Probit transfo... | [
"itay.lieder@mail.huji.ac.il"
] | itay.lieder@mail.huji.ac.il |
685ba4cbb2f65e7f9b5a1b6490d04f4968025b18 | 7c82b6eb190fa96dc6486ce3c770d47279380066 | /simplemoderation/urls.py | df8c286d6aca19bc56e82d58a63d245ea9877241 | [] | no_license | Mediate18/Mediate | 8b34cda12c23947aeac644248672da4de272cb22 | 47eb0f0fbba8b87c69acb97bcf3d39e7a037dbc8 | refs/heads/main | 2023-07-25T22:27:23.138626 | 2023-07-17T12:31:37 | 2023-07-17T12:31:37 | 117,852,218 | 5 | 0 | null | 2023-03-29T11:53:17 | 2018-01-17T15:08:35 | Python | UTF-8 | Python | false | false | 569 | py | from django.urls import path
from django.views.generic import RedirectView
from django.contrib.auth.decorators import login_required, permission_required
from .views import *
urlpatterns = [
path(r'', RedirectView.as_view(url='moderations/')),
# Moderation urls
path('moderations/', permission_required('gl... | [
"m.hulsbosch@let.ru.nl"
] | m.hulsbosch@let.ru.nl |
e59e35eba0f5bc8203b44ba31dad8f05943e6e23 | 489f363c571ee3121922feebc8bf8e92e2179f9d | /wagers/forms.py | 232714fca620f60c6cf65e95488e0ffcd14b4e29 | [] | no_license | ryanchoe1205/wagering | 4485c6fca5c7050139781193ec90c93b0094ae3c | 6372d5c7ba79b6f6b2aa60a864955f56863ad86d | refs/heads/master | 2021-01-16T18:12:14.342153 | 2013-08-28T13:19:48 | 2013-08-28T13:19:48 | 12,314,621 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,206 | py | from django import forms
from django.shortcuts import get_object_or_404
from models import Schedule
from models import Tournament
from models import Proposition
from models import Bet
class TournamentForm(forms.Form):
"""
This form is used to interact with Tournament models.
"""
uuid = forms.CharField(... | [
"jColeChanged@gmail.com"
] | jColeChanged@gmail.com |
cc176a774c950fca1179196f76975994db0ffdf0 | 82042141439ae004fc38bb2ef6238f36ec6bb050 | /accounting/tables.py | e59289b4a7eb9e31422231abdbecd07c0d90f405 | [] | no_license | psteichen/clusil-intranet | 2e9a2cf3b00692a4ef441ebf669af4e63945e9a2 | 5c028d33f6a8559af57a4eeb02fc0f612cb1b261 | refs/heads/master | 2021-07-13T15:40:06.464105 | 2020-06-30T19:51:00 | 2020-06-30T19:51:00 | 27,195,950 | 2 | 1 | null | 2021-06-10T20:06:47 | 2014-11-26T20:59:46 | Python | UTF-8 | Python | false | false | 1,272 | py | #coding=utf-8
from django.conf import settings
from django.utils.safestring import mark_safe
from django.utils.html import escape
from django_tables2.tables import Table
from django_tables2 import Column
from cms.functions import visualiseDateTime
from cms.tables import gen_table_actions
from .models import Fee
#t... | [
"pst@libre.lu"
] | pst@libre.lu |
b5a20435c0065c1e45a1017cf93de003c61aee01 | 1f7c865d94d93048df70a6641a19f4b869d4c3c8 | /DjangoTest/view.py | 88bad1a095ce7141ba3f48dc7c4e93acb6da0164 | [] | no_license | littletonton/DjangoTest | 25593a1bf18628591eee54dd8a77c83b9b93b1d1 | 3457b55575f8eab562ff636565a7dd43d671a1b5 | refs/heads/master | 2021-01-01T16:23:30.565325 | 2017-07-20T16:12:35 | 2017-07-20T16:12:35 | 97,822,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | #!usr/bin/env python
#_*_ coding:utf-8 _*_
from django.http import HttpResponse
from django.shortcuts import render
def hello(request):
context = {}
context['isshow'] = False
context['hello'] = "Hello World!"
context['bye'] = "Good Bye!"
context['athletes'] = [{'name':'Ton'},{'name':'Tom'}]
re... | [
"769418213@qq.com"
] | 769418213@qq.com |
d031f9d17e6d7442b98764362e2808e3192189ab | 25e627d2931b89eb53d7dad91b200c1c29fe0233 | /code/lab_05_Important_Trick/sys_demo(3).py | 0740b2d3d833b437ef0f896f320dcf4511a6b1a6 | [] | no_license | tcano2003/ucsc-python-for-programmers | efb973b39dbff9a7d30505fecbd9afb1e4d54ae9 | cc7fe1fb9f38f992464b5d86d92eb073e18e57d5 | refs/heads/master | 2020-03-26T22:13:29.256561 | 2018-08-26T14:54:08 | 2018-08-26T14:54:08 | 145,442,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | #!/usr/bin/env python3
"""Demonstrating the sys module."""
import sys
def DemoOpenStreams():
"""Demos stderr, stdout and stdin. Also sys.exit()"""
sys.stderr.write('You can write to stderr.\n')
print (>> sys.stderr, "You might like the >> syntax.") # look this up how to convert to Python 3
... | [
"traviscano@msn.com"
] | traviscano@msn.com |
592013723710a78b9c48851a554dfcd087ddb071 | 84d5a6bf92dc369ed89424cfb279da058916c4a6 | /tests/read-text-file.py | d86b05d42ab617398e67d090ea1f279c66a687c1 | [] | no_license | oferby/playground | ebb9760b0a0ff217631a75ea2f77023ff6185373 | 50b088bc7aeb1d6b9ef74bc745600a4540e3f962 | refs/heads/master | 2022-05-11T17:31:20.568949 | 2022-04-28T06:34:01 | 2022-04-28T06:34:01 | 86,551,277 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | f = open('file1.txt', 'r')
line = f.read()
print(line)
f.close()
| [
"ofer.benyacov@gmail.com"
] | ofer.benyacov@gmail.com |
35f3e2159bde476249d6128daeff130be953637c | 9d64b6be2fe8928f3f33580c5e666f4e952f0005 | /startwrite.app/Contents/Resources/scrape/09-09-2019-copy60.py | c9c4b76648f899df9872a5320a101a3138a06b4f | [] | no_license | xhimalaya/startwritemacinstller | 8c5575f0b1c79cbe2dcf97cefb7ac611fdd13a01 | e9f87ff903b350859919fcccdb19533b1f233d57 | refs/heads/master | 2020-11-30T17:38:44.554815 | 2019-12-27T13:49:16 | 2019-12-27T13:49:16 | 230,449,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481,409 | py | #!/usr/local/bin/python3
from SW_lib import *
import key_generation
lin_flag = False
import Sw_db_init
user_id, user_mail, vaild_key, key_status = SWdb.fetching_data_from_license_table()
if key_status == 0:
lin_flag = True
import welcomedemo_SW
SWdb.update_data_into_license_table()
elif key_status == 1:
... | [
"etsindiapython"
] | etsindiapython |
4d2768bfcd201ed2ce6857a97e8884cb4df9470b | c95d852af55e03e30ea9e00f64ae431ea783a0ad | /Newfile.py | 25e02eac057d069df6d9d184fe76cfbd739ca566 | [] | no_license | nithyapy/TestingwithGit | 54696f09280cb485ae6a60998231291f6da867a8 | 0510a11d6eb1d8cc654d81f0d95d68ac939df8d7 | refs/heads/master | 2023-07-08T09:10:24.272312 | 2021-08-19T19:56:56 | 2021-08-19T19:56:56 | 398,042,812 | 0 | 0 | null | 2021-08-19T19:56:58 | 2021-08-19T18:44:37 | Python | UTF-8 | Python | false | false | 98 | py | print("working with GIT")
print("updated master branch to origin")
print("updating existing file") | [
"nithyapy@gmail.com"
] | nithyapy@gmail.com |
b7de473957936ec780838884a83cb0869cc090e3 | be168f80baa41430f4a458fd090273f2aa836dd9 | /tests/test_0198-tutorial-documentation-1.py | dcb6ad3d1767e09ab3afbc1f8c7288ccb86d2f63 | [
"BSD-3-Clause"
] | permissive | Ellipse0934/awkward-1.0 | d1ca5ce38ec57ff1a41e17269106a2ed3c698622 | 24347a92b825dd2a868217e0f8e45b79b81177e4 | refs/heads/master | 2022-04-24T13:57:36.502202 | 2020-04-24T21:34:24 | 2020-04-24T21:34:24 | 256,601,105 | 0 | 0 | null | 2020-04-17T20:17:30 | 2020-04-17T20:17:29 | null | UTF-8 | Python | false | false | 2,769 | py | # BSD 3-Clause License; see https://github.com/jpivarski/awkward-1.0/blob/master/LICENSE
from __future__ import absolute_import
import sys
import pytest
import numpy
import awkward1
def test_singletons():
array = awkward1.Array([1.1, 2.2, None, 3.3, None, None, 4.4, 5.5])
assert awkward1.to_list(awkward1.s... | [
"noreply@github.com"
] | Ellipse0934.noreply@github.com |
9e4621ec32ef28b5527df19a44d135884ac01e99 | 659c9c7792912617e289567a36dfdc987e5fce54 | /turnin/jhuan314_lab2_part2_tests.py | a44fef8360bba118d005badcbabab019a4b3d9ba | [] | no_license | jackhuangg/cs120b_lab2 | 8f3a94becc0229e17f553299113f05737b88b09d | 66c62f469895958f5d10ec1a7223412e79ef3049 | refs/heads/master | 2023-04-07T23:59:45.601443 | 2021-04-12T02:31:49 | 2021-04-12T02:31:49 | 355,007,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,120 | py | # Array of tests to run (in order)
# Each test contains
# description -
# steps - A list of steps to perform, each step can have
# inputs - A list of tuples for the inputs to apply at that step
# *time - The time (in ms) to wait before continuing to the next step
# and before checking expect... | [
"jhuan314@wch136-24.cs.ucr.edu"
] | jhuan314@wch136-24.cs.ucr.edu |
ac9f8f7bd7e5740f7b8e3cd61ea81cb39bfe3e50 | 9b5957a61341edd763b9dd5d739cbbb130954182 | /app/python/by_brightness.py | eb4774b292688fe2302a04d099e6bad7f0f30c8e | [] | no_license | Charles-1999/heart_server | 347c50c3269afacc13c5a17ea12af7c63e608052 | c990a4aacc0665f693c7b9e05c334422a40a51fb | refs/heads/main | 2023-05-09T13:02:48.409696 | 2021-06-04T05:05:45 | 2021-06-04T05:05:45 | 353,206,237 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | def get_brightness_data(frames):
data = []
print('Begin to read brightness')
for frame in frames:
gray = int((frame[0] * 299 + frame[1] * 587 + frame[2] * 114) / 1000)
data.append(gray)
print(data)
print('Brightness OK')
return data
| [
"792281365@qq.com"
] | 792281365@qq.com |
be210f89568c29063428ef21602005c46b94af7c | e86d020f8ade86b86df6ad8590b4458a9d415491 | /test-xooj/practice_infiltration/resource.py | 54fa54208d6e269ffbafe87eff7295d066e7fde0 | [
"BSD-2-Clause"
] | permissive | g842995907/guops-know | e4c3b2d47e345db80c27d3ba821a13e6bf7191c3 | 0df4609f3986c8c9ec68188d6304d033e24b24c2 | refs/heads/master | 2022-12-05T11:39:48.172661 | 2019-09-05T12:35:32 | 2019-09-05T12:35:32 | 202,976,887 | 1 | 4 | null | 2022-11-22T02:57:53 | 2019-08-18T08:10:05 | JavaScript | UTF-8 | Python | false | false | 787 | py | # -*- coding: utf-8 -*-
from common_env.models import Env
from practice import resource
class PracticeInfiltrationTaskMeta(resource.SolvedBaseTask):
subsidiary = [{
'force': {
'create_user_id': None,
'last_edit_user_id': None,
},
'subsidiary': {
'catego... | [
"842995907@qq.com"
] | 842995907@qq.com |
957e9a83a0906447bcd7c0b17c13adc0c9d0a9e7 | f338eb32c45d8d5d002a84798a7df7bb0403b3c4 | /DQMOffline/Alignment/test/testMuAlDQM.py | dafae5c403d9e801584a14e97431e543ac40337d | [] | permissive | wouf/cmssw | 0a8a8016e6bebc611f1277379e12bef130464afb | 60da16aec83a0fc016cca9e2a5ed0768ba3b161c | refs/heads/CMSSW_7_3_X | 2022-06-30T04:35:45.380754 | 2015-05-08T17:40:17 | 2015-05-08T17:40:17 | 463,028,972 | 0 | 0 | Apache-2.0 | 2022-02-24T06:05:30 | 2022-02-24T06:05:26 | null | UTF-8 | Python | false | false | 4,965 | py | import os
import FWCore.ParameterSet.Config as cms
process = cms.Process("MuonAlignmentMonitor")
process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.MessageLogger.cerr.FwkReport.reportEvery = 1000000
process.load("DQMOffline.Alignment.muonAlignment_cfi")
process.load("DQMServices.Components.MEtoEDMConver... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
710c01eb540d96e0f04f702f76a9b37f9c3e60e5 | 7e412e95f26d2fbf6845e84266e41df9d826548a | /mltest/LinearRegression.py | e206f4f7c6a188061477e5fe079a9eb9646bb236 | [] | no_license | mutaphore/mlproject | 1c277462652ec7a09feb503a26188fbf9b44d880 | 59466f769227311f317336c7be80fcc23b09aca0 | refs/heads/master | 2016-09-05T19:51:35.795610 | 2015-02-03T03:13:38 | 2015-02-03T03:13:38 | 30,222,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,628 | py | import numpy as np
from decimal import *
# X: 2D python list
# y: 1D python list
# theta: 1D python list
def gradientDescent(X, y, theta, alpha, numIters):
X_norm, mu, sigma = featureNormalize(X)
J_history = []
n = len(theta)
m = len(y)
# Convert to numpy structures for easier matrix indexing
ones = np.array([... | [
"deweichen47@gmail.com"
] | deweichen47@gmail.com |
9438eea367d5665d216f1aed93c8ff378a68025d | 5e644863f2a5e40702d0f936c9893a54c930f432 | /apps/trips/models.py | ea7d9919894b9c23be9629cd6b0a6afdc62802a5 | [] | no_license | MichaelJShea/belt | 881c02148c531d730418fc3fef9e249512e96a35 | 9b3f6f55cfc9c49d9f602be2f2ca75ca6ac2eef2 | refs/heads/master | 2020-04-25T18:25:48.531296 | 2019-02-27T20:22:10 | 2019-02-27T20:22:10 | 172,984,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,459 | py | from django.db import models
from apps.login_register.models import User
from datetime import datetime, timedelta
# Create your models here.
class tripManager(models.Manager):
def trip_validator(self, PostData):
errors = {}
is_valid = True
if len(PostData['edit_destination']) == 0:
... | [
"MichaelShea1814@gmail.com"
] | MichaelShea1814@gmail.com |
5b5335df5b4deea4e68468c7971013b78b2d4fda | fea4df9f31e62d7fc1adf0a5ca08c017cce504c1 | /site_experiences/apps.py | f21d41a38ec0134d8db1560b7074dde88bbf067f | [] | no_license | tahericode/personal-site-with-django | 47eec11c243d047ced7bb997913b53c902913b23 | 0f1a4fc7aa1489487fdae174b4b75c4ab037106d | refs/heads/main | 2023-07-07T07:29:10.454706 | 2021-08-03T19:48:37 | 2021-08-03T19:48:37 | 392,434,831 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | from django.apps import AppConfig
class SiteExperiencesConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'site_experiences'
| [
"mrtcode2@gmail.com"
] | mrtcode2@gmail.com |
2b7af92bfdd54503386f5e94c97ca30500b26788 | 409c4d0dce72de987dff7c76857499fba8f8b7a0 | /disargv.py | 74cc21ae8cb5195e712dce1e98515d6ada50d2d1 | [] | no_license | crystaleone/test | b4fece7fbc4e8ddd6186ea13245c62970c6d7038 | 4af3964bf6a657e888c7850f07a031440ba29e7a | refs/heads/master | 2021-01-18T19:17:36.924170 | 2017-09-19T03:37:01 | 2017-09-19T03:37:01 | 86,895,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | import sys
l1 = sys.argv[0]
l2 = sys.argv[1]
l3 = sys.argv[2]
l4 = sys.argv[3]
print(l1,l2,l3,l4)
| [
"403868144@qq.com"
] | 403868144@qq.com |
acf70baa430cd3b587289d71dd499a69ff5d23d5 | 1788a4e343e2c79135cf73298be7a8a3beb37ad9 | /src/google/protobuf/socketrpc/examples/helloworld/run_client.py | 01e97a0afb05a72eec1f5b39c6e6fbd938521547 | [] | no_license | chenhd/TLE | 025b49c309242ae176a259d6829a6519fad6a45b | cf9716e90de4761fb42f1053bad6fb5bb961bef8 | refs/heads/master | 2021-01-19T18:35:23.955574 | 2015-04-17T07:19:56 | 2015-04-17T07:19:56 | 33,033,395 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,603 | py | #!/usr/bin/python
# Copyright (c) 2009 Las Cumbres Observatory (www.lcogt.net)
# Copyright (c) 2010 Jan Dittberner
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, inclu... | [
"Grey@Grey-PC"
] | Grey@Grey-PC |
cf2b2c96d0d491c8c88a9fc1376182d7c150b431 | b5c33002505affb3fb527b56244ffdd6ea4a1c78 | /dota_2/image.py | 32c00f97bd58c0b781b4ef255681c50a02c58317 | [] | no_license | UANEMESIS/main | 1b01459dbf1db14924b9f52df401daa79971a1af | bb8acc46f0f49a79be303e6464354fc4f5f19c1a | refs/heads/master | 2020-03-19T11:26:55.282566 | 2019-04-01T06:45:58 | 2019-04-01T06:45:58 | 136,456,707 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | from lackey import * # Для установки прописываем pip install lackey
import time
#Settings.MinSimilarity = 0.55
#find("rank.png")
find(Pattern("xrank.png").similar(0.99)).highlight()
#time.sleep(2)
#click("rank.png")
#doubleClick("rank.png")
#wait("rank.png", 5)
#hover("rank.png")
#print(Settings.MinSim... | [
"mike_zone@ukr.net"
] | mike_zone@ukr.net |
ac071baf54ddf760d3e5687074c54196fc7752c7 | 013707f140b922e96750b14d7304fc51baf07e9e | /venv/Scripts/pip3-script.py | 21d091d8e19cf1b934ea2541332a715dd5bc13e2 | [] | no_license | omolojakazeem/git_hub | 61be5bb148c4a5b98c212021fa810f94cc8e3029 | 94307d597a1df0280d5a157f90818029d9ba90a8 | refs/heads/master | 2021-05-21T22:33:08.442431 | 2020-04-03T20:51:58 | 2020-04-03T20:51:58 | 252,833,216 | 0 | 0 | null | 2020-04-03T20:52:00 | 2020-04-03T20:24:44 | Python | UTF-8 | Python | false | false | 414 | py | #!C:\Users\Kazeem\PycharmProjects\git_hub\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv... | [
"omolojakazeem@gmail.com"
] | omolojakazeem@gmail.com |
556eaac15427d16380ef707d065ff665d205b6ff | 360e95a15e30b4f3baafaefb44bcfda156ae3e7f | /handler.py | 08d6ab07f4dd88546dae4b0ee70d79a7817bd7a5 | [] | no_license | edyesed/ignite-talk-tweeter-serverless | aea5739dccf25ed77a5d4bd0d073a4ae07fa981d | 58bad3095f2d67ca0869cdda65c3fecb694f7756 | refs/heads/master | 2022-12-09T15:14:41.559144 | 2019-10-31T21:51:34 | 2019-10-31T21:51:34 | 141,651,261 | 4 | 1 | null | 2021-06-01T22:43:26 | 2018-07-20T02:05:01 | Python | UTF-8 | Python | false | false | 10,530 | py | import json
import os
import twitter
api = twitter.Api(consumer_key=os.environ.get('CONSUMER_KEY'),
consumer_secret=os.environ.get('CONSUMER_SECRET'),
access_token_key=os.environ.get('ACCESS_TOKEN'),
access_token_secret=os.environ.get('ACCESS_TOKEN_SECRET'),
... | [
"ed@realself.com"
] | ed@realself.com |
24c37b2731f76d1274c85d3269703a9dd52a74b7 | b2913030cf1646310b08efaa57c2199bb08e37c9 | /general/object_id/apero_astrometrics.py | 8f21305a71d1f0d505c9856a0c692a251e7481f5 | [
"MIT"
] | permissive | njcuk9999/apero-utils | 6f5b5083537562a31573b5c4cc76908c5fe194b9 | 368d53182428ca8befcdd3e5c8ca054f61913711 | refs/heads/master | 2023-08-31T02:56:01.369406 | 2023-08-18T15:12:59 | 2023-08-18T15:12:59 | 238,777,509 | 3 | 5 | MIT | 2023-08-17T14:15:41 | 2020-02-06T20:24:49 | Python | UTF-8 | Python | false | false | 5,169 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
# CODE NAME HERE
# CODE DESCRIPTION HERE
Created on 2021-11-10 at 16:04
@author: cook
"""
from astroquery.utils.tap.core import TapPlus
from astroquery.simbad import Simbad
import numpy as np
from typing import Dict, List, Tuple
import warnings
from apero import lan... | [
"neil.james.cook@gmail.com"
] | neil.james.cook@gmail.com |
44ea589aaabee4858a1214504344aef3c957ced8 | dea05b9867104c800d4a145237402b2e877d7531 | /main_toolbox.py | e265e9f847b4a2871f2d3feadf4d6b15e876d41b | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | TonyRenHK/SalesforceXyTools | 848a7d6ae8224a5f7c0bc1c49d730a7915d7d879 | e6b64089f6db8bcf6298039135f4a1b6bd232a5d | refs/heads/master | 2020-04-15T16:25:54.858123 | 2019-01-07T14:13:56 | 2019-01-07T14:13:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,686 | py | import sublime
import sublime_plugin
import os,subprocess,threading
from .setting import SfBasicConfig
from .templates import AntConfig
from .uiutil import SublConsole
from . import baseutil
from . import util
from .salesforce import MetadataApi
from .permission_util import FiledPermissionUtil
#deploy open files
class... | [
"exia.huang@outlook.com"
] | exia.huang@outlook.com |
508ba345964380a61362afc629dea987c61c2b0c | c97ad9dbc96d151b5ef38a6d6dbac454d6e57576 | /architectures/preprocessing.py | f15f66e3b153c6b3f0bbf3ec310c58605c37fd61 | [
"BSD-3-Clause"
] | permissive | WangVictor/jets | 75177ff68fad2eaf3274537afcee325d93ff1d5f | 1f7209b4c026b63cad94aa8c93e2b8721b259b98 | refs/heads/master | 2021-07-14T05:39:54.983839 | 2017-10-17T20:48:01 | 2017-10-17T20:48:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,137 | py | import numpy as np
import copy
import pickle
import torch
from torch.autograd import Variable
# wrapping
def wrap(y, dtype='float'):
y_wrap = Variable(torch.from_numpy(y))
if dtype=='float':
y_wrap = y_wrap.float()
elif dtype == 'long':
y_wrap = y_wrap.long()
if torch.cuda.is_available(... | [
"isaachenrion@gmail.com"
] | isaachenrion@gmail.com |
60e192ad5b082abdc7f8a2241f19ad8f59ee6e93 | 2729d97fe8968f98102574a2c1e36c06e578b060 | /sports_list.py | f2f7be540e824f39c69d0249b39197cbc395d8f1 | [] | no_license | Sedarp/Sports-betting-odds | 44f3fd3d0781a03ed4373b45e46fa39a7fcfff43 | ca1c1b7433eb011bfe34f1d42712472636c1faf4 | refs/heads/master | 2022-04-16T10:04:39.875165 | 2020-03-24T01:14:26 | 2020-03-24T01:14:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | import json
import requests
api_key = '0208e3093800f6b65ee6103e854b4578'
# get a list of in-season sports
sports_response = requests.get('https://api.the-odds-api.com/v3/sports', params={'api_key': api_key})
sports_json = json.loads(sports_response.text)
if not sports_json['success']:
print(
'There was ... | [
"mushy0705@gmail.com"
] | mushy0705@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.