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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
157a3d3762cc8977a459d52c027c5d70f25c9791 | e9df6cc836892f71846dca5da1b5b2bdaebf8330 | /experimentmanager/curve_matching.py | 3dba1df511d903f8486126a45d0c86dc6b67c126 | [
"MIT"
] | permissive | sciexpem/sciexpem | 84866185b1a740c009365bb90fc90dfa781db59a | 6de9a8039356588a5e817f0fa6bafd948220fc8f | refs/heads/master | 2022-07-05T20:24:14.646830 | 2019-03-08T15:51:39 | 2019-03-08T15:51:39 | 174,402,006 | 0 | 2 | MIT | 2022-06-21T21:45:57 | 2019-03-07T18:50:35 | JavaScript | UTF-8 | Python | false | false | 5,941 | py | import shutil, os, glob
import numpy as np
import subprocess
import pandas as pd
from . import models
from pint import UnitRegistry
ureg = UnitRegistry()
def normalize_execution_column(execution_column, experiment=None, target_column=None):
if execution_column.species is not None:
return execution_column... | [
"gabri.scalia@gmail.com"
] | gabri.scalia@gmail.com |
f5560087d3c5205da216158283d187e9677206c3 | 483af21ffe6319b597728809e2431526040200b1 | /xarm/version.py | 2b221f4f1a2dbd26a75bba9122884849063d7edd | [
"BSD-3-Clause"
] | permissive | vimior/xArm-Python-SDK | d70d8813022c0c2bac657db55299b56d9a42c396 | 0fd107977ee9e66b6841ea9108583398a01f227b | refs/heads/master | 2023-01-20T00:09:58.955596 | 2022-12-06T08:34:26 | 2022-12-06T08:34:26 | 184,701,445 | 1 | 0 | NOASSERTION | 2019-08-13T04:19:45 | 2019-05-03T05:05:23 | Python | UTF-8 | Python | false | false | 24 | py | __version__ = '1.11.6'
| [
"vinman.cub@gmail.com"
] | vinman.cub@gmail.com |
e0e85e71a993dc6f8e37fcc3f5c6073f51f24d73 | 3d9ae67435dc1347853b2b9af48cfd3f06d6be72 | /Server/main_demo.py | 4c3f8be8efcf78a03b9ae6d5157d1a2a1c4213a8 | [] | no_license | Fabianopb/mcc-thin-client | 3e0d6f49b720d70c6d58dac8fdbc0d79cf6e898d | 3c237fefcdda120aa072f17315b453cb4963a0d6 | refs/heads/master | 2021-01-11T16:59:16.821589 | 2016-10-23T16:53:30 | 2016-10-23T16:53:30 | 79,711,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | from flask import Flask
app = Flask(__name__)
app.config['DEBUG'] = True
@app.route('/')
def hello():
return 'Hello World!'
@app.errorhandler(404)
def page_not_found(e):
return 'Sorry, nothing at this URL.', 404
| [
"mborekcz@lenovo.mborekcz"
] | mborekcz@lenovo.mborekcz |
dedf4a6c0facbe5539d15d8895fba80889bbe317 | e037114adce145d846c6ce64aab1798dfd689ffc | /code/Insert_Paper_extend.py | 2211aa6834b9aea01aca12a5b5a4085ec7598134 | [] | no_license | Jingfei-Han/citation_prediction | 11562ef51db24861001aae8aaf2f1b31cec3f304 | cfd1c255a894e61b179d5004febbd67b32894ad7 | refs/heads/master | 2021-01-19T09:58:16.406627 | 2017-07-17T02:22:49 | 2017-07-17T02:22:49 | 87,803,920 | 0 | 2 | null | 2017-05-04T06:11:11 | 2017-04-10T11:39:08 | Python | UTF-8 | Python | false | false | 4,144 | py | #encoding:utf-8
#该程序用于向citation数据库中插入paper表和venue表。dblp_dblp_id 初始化为 MAX_ID
import MySQLdb
import MySQLdb.cursors
import sys
import re
MAX_ID = 999999999
db = MySQLdb.connect(host='192.168.1.198', user='jingfei', passwd='hanjingfei007', db='citation', charset='utf8')
cursor = db.cursor()
f = open(r'/home/j... | [
"749846857@qq.com"
] | 749846857@qq.com |
8f06dbc31744ccafccf14b71eca5b27636bda6e0 | f7b98fbe0bc11a61061d92dff94012cb41531bf4 | /src/_builtins.py | de5b77f8bc5d1ec29f58e0b479b647d3d9d707a0 | [
"Unlicense"
] | permissive | algerbrex/Schemey | ddff8434388c57d8293ce5c35b1750f058746a02 | 4a499054758d33d2f170b0b536f1c1a7372385b7 | refs/heads/master | 2021-01-13T11:34:37.562476 | 2017-08-16T18:50:19 | 2017-08-16T18:50:19 | 81,210,225 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,651 | py | """
builtins.py
----------------------------------------
An implementation of builtin procedures
and variables in Scheme.
"""
import operator as op
from functools import reduce
from .expressions import *
from .utils import get_number_of_params
class ProcedureError(Exception):
pass
class Procedure:
"""
... | [
"c1dea2n@gmail.com"
] | c1dea2n@gmail.com |
f030bde4c21b7c31c80dc828e0a67f44dc8b4914 | e6a475fab1c62cd564abce33a7ca53929e9927e3 | /migrations/versions/51b44cfcce3f_.py | 77ea3ab75b365723ae591125457d07e93a40dff3 | [] | no_license | varsha0201/Fyyur | 3b46a4c2342abca94666665e357a7c55026eb054 | feaf200b37906241b26262521dc4f9c854fd7695 | refs/heads/master | 2022-12-15T21:43:29.344772 | 2019-11-24T14:09:04 | 2019-11-24T14:09:04 | 219,885,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,645 | py | """empty message
Revision ID: 51b44cfcce3f
Revises: ce8db3751bd8
Create Date: 2019-10-25 22:54:19.820733
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '51b44cfcce3f'
down_revision = 'ce8db3751bd8'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"Varsha0201"
] | Varsha0201 |
ad3d8fd5bb22c17815a291bf13a1fdc52cd6bff3 | 5d309b9d1fca83d44dc869c6106e43d4268d7ba2 | /wordcount/urls.py | 55566e4a969e61074cbaa02cde3f7b9034f8d73d | [] | no_license | IvanRossE/wordcount-project | b720d3a62dd6e870e9c17ce22207aa8af6fc606c | 0d40e49d4bbed2e483a524ecdf44287e1db304be | refs/heads/master | 2022-11-30T14:56:31.094494 | 2020-08-01T13:01:26 | 2020-08-01T13:01:26 | 284,265,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | """wordcount URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"ross@Rosss-MacBook-Pro.local"
] | ross@Rosss-MacBook-Pro.local |
1763c5abf0cbeff022b2a7bc85b1d848cdd7adb6 | 58ac5fa83e69f2875d5305206a3a166961f31562 | /app/search.py | 6ebbcfba790626f5a23f12f1f1311574336f13f8 | [] | no_license | Willamette-OR/microblog-2 | 27e2d202616edca0ade2f902a945e6874118f1a9 | f2ba8012590777b93e68707e37ebc8cf5ffea0c2 | refs/heads/master | 2023-07-14T16:21:02.738767 | 2021-08-26T01:42:59 | 2021-08-26T01:42:59 | 389,118,940 | 0 | 0 | null | 2021-08-12T03:08:54 | 2021-07-24T14:31:38 | Python | UTF-8 | Python | false | false | 1,408 | py | from flask import current_app
def add_to_index(index, model):
"""This function adds a given index along with a specified data model/table to the app's elasticsearch instance."""
# return None if elasticsearch is not configured
if not current_app.elasticsearch:
return
payload = {}
for... | [
"wgrandoms@gmail.com"
] | wgrandoms@gmail.com |
d8e576c9c313b8facd5bacbf2652f27f5f2f9a3c | 9b6a3902e8a33e83dd6b24dc83b8a989c6666461 | /app/helpers/cache.py | 0c4ead791eac0760006c432201d5849677a51ba0 | [
"MIT"
] | permissive | MTES-MCT/mobilic-api | 91dd171c1fb22e23f4cd672d380ce27feca24366 | 1e189f1e4d175feb275585d8eba8ec08b5aa8465 | refs/heads/master | 2023-09-04T10:56:54.731547 | 2023-08-29T13:51:37 | 2023-08-29T13:51:37 | 238,493,241 | 1 | 0 | MIT | 2023-09-14T19:37:52 | 2020-02-05T16:14:13 | Python | UTF-8 | Python | false | false | 1,068 | py | from flask import g, has_request_context
from functools import wraps
def _get_function_hash(function_or_method):
f = function_or_method
if function_or_method.__class__ == "method":
f = function_or_method.__func__
return hash(f)
def cache_at_request_scope(f):
missing = object()
@wraps(f)... | [
"rayann.hamdan@hotmail.fr"
] | rayann.hamdan@hotmail.fr |
41f66d5f189dd3871733de89a22fb69901999860 | de8b832a3c804837300b9974dc0151d9294fa573 | /code/experiment/GenderSoundNet/ex16_1_1_1_1_1_1_1_1_1_1_1_1_1/expUtil.py | 71ae408bd5de7553b28a9f4472613859dad14ddd | [] | no_license | YuanGongND/Deep_Speech_Visualization | fcff2ac93e5adffd707b98eb7591f50fe77c1274 | 73a79e3596d9a5ee338eafb9a87b227696de25d1 | refs/heads/master | 2021-07-19T23:00:36.294817 | 2017-10-28T01:04:59 | 2017-10-28T01:04:59 | 105,332,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,429 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Oct 7 00:40:02 2017
@author: Kyle
"""
import numpy as np
import tensorflow as tf
from keras.utils import np_utils
from imblearn.under_sampling import NearMiss, AllKNN, RandomUnderSampler
from imblearn.over_sampling import ADASYN, SMOTE, RandomOverSampler
import sys
sys.path... | [
"ygong1@nd.edu"
] | ygong1@nd.edu |
876265867be240579c0ef5056c8dc26bfcf83e95 | 82e9605ce72ce25246b76a88256432bde9981f5c | /weixin/__init__.py | 29505c009361ed4415d045f9b58ca5a2dff9a241 | [] | no_license | qiwei123/wechat-sdk | 6fd8ce818dcabe119ff87e43a48ffd44db5dd06e | 9e55a1212ec764f9f3663b928a2f6fc87d74d6d9 | refs/heads/master | 2023-05-13T08:09:39.158651 | 2021-06-08T02:13:50 | 2021-06-08T02:13:50 | 374,851,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | # -*- coding: utf-8 -*-
__title__ = "requests"
__version__ = "0.1.0"
__author__ = "qk"
__license__ = "qk"
from .bind import WeixinClientError, WeixinAPIError
from .client import WeixinAPI
| [
"qi.wei@qianka.com"
] | qi.wei@qianka.com |
85db6aaa022b862155183b3c5ddc4dd6968745b2 | 21f7fc432496abef7b9deff3eb76aa60e7ac7602 | /ex001.py | fc23a1b0733e6aca3a9e04ae1618f8a18e0920e7 | [
"MIT"
] | permissive | rezende-marcus/script-python | 6d2bb3c74a427614eebc913febdb8ef37576d3fb | b717d6ed2aba2787d6099abee0112224859ffefd | refs/heads/main | 2023-04-23T23:11:01.963977 | 2021-05-12T21:24:02 | 2021-05-12T21:24:02 | 366,833,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | nome = input('Qual é o seu nome?')
print('É um grande prazer te conhecer ', nome)
| [
"mglrezende@yahoo.com.br"
] | mglrezende@yahoo.com.br |
51f845175e3601dffa096d89dd7b190d21db2e20 | b79bf68dc0666d80c7145fdea7891f5b114e3f7d | /api/admin.py | cf9c8a60029d4c339dc0c3f987ab402706663dde | [] | no_license | Chatbot-4ADS/Chatbot-Web-Server | 34210ddd50cfaf935fa62868dd4f6d9851301b69 | 69ca1d09799a0ea38670f6ca6c53e65ae7a1281e | refs/heads/master | 2023-01-22T14:15:13.581646 | 2020-12-04T23:48:52 | 2020-12-04T23:48:52 | 311,152,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | from django.contrib import admin
from .models import *
# Register your models here.
admin.site.register(Log)
| [
"joao.braz@ekaizen-br.com"
] | joao.braz@ekaizen-br.com |
6c942b2bf53f2c5dd3278b4989aed9c2f3790bae | c6ec292a52ea54499a35a7ec7bc042a9fd56b1aa | /Python/1396.py | 42df2b39f50cb44cdc466e7f32d62dd8cd8ccc59 | [] | no_license | arnabs542/Leetcode-38 | ad585353d569d863613e90edb82ea80097e9ca6c | b75b06fa1551f5e4d8a559ef64e1ac29db79c083 | refs/heads/master | 2023-02-01T01:18:45.851097 | 2020-12-19T03:46:26 | 2020-12-19T03:46:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,125 | py | class UndergroundSystem:
def __init__(self):
self.history = collections.defaultdict(dict)
self.idToStation = dict()
self.stationTostation = collections.defaultdict(dict)
def checkIn(self, id: int, stationName: str, t: int) -> None:
self.history[stationName][id] = t
... | [
"lo_vegood@126.com"
] | lo_vegood@126.com |
5cb42f6a646187203f7c5c1fe2425ef463c4c398 | e2e72222b0b943bf43a247b0c89f9fc5c57acd88 | /conv/maxpool2d.py | 46ef5d6d04ad6c5d4a80271e4bf97e43f53d5b41 | [] | no_license | cxrasdfg/conv_test | 8740bb547aa1c109bd6a3671b9f0f9386f0b4bfb | fc825bc852a7b24e97ad0e7d7549a112adedbcd3 | refs/heads/master | 2020-04-02T00:27:30.607652 | 2018-10-22T01:42:18 | 2018-10-22T01:42:18 | 153,805,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,484 | py | # coding=utf-8
import torch as th
from .conv2d import Conv2D
class MaxPool2D(Conv2D):
def __init__(self,k_size,stride,padding):
super(MaxPool2D,self).__init__(0,0,k_size,stride,padding)
# useless
del self.channels_in,self.channels_out,self.weights,self.bias
self.last_idx=... | [
"theppsh@example.com"
] | theppsh@example.com |
705ca1f24650faab554112bb06163766cb33c892 | b6195a654bf9087869603241d19dab21e1942120 | /plane_controller/plane.py | df577ef7ac811ce251e1a30137f7fc8975028047 | [] | no_license | coyle5280/FAA-CS-4250 | fbe4522b8226fb9b50c1578dc18ce0132af6b406 | cbda5c574cc187c87d4728583bab47fe661efb58 | refs/heads/master | 2021-01-17T12:41:42.883190 | 2015-11-02T07:58:42 | 2015-11-02T07:58:42 | 45,362,351 | 0 | 0 | null | 2015-11-01T23:44:13 | 2015-11-01T23:44:12 | Python | UTF-8 | Python | false | false | 649 | py | __author__ = 'group'
class PlaneObject(object):
transponder_code = 0
name = ''
current_lat = 0
current_long = 0
current_altitude = 0
current_velocity = 0
previous_velocity = 0
previous_lat = 0
previous_long = 0
previous_altitude = 0
def __init__(self, transponder... | [
"coyle5280@gmail.com"
] | coyle5280@gmail.com |
9e86b56c8e63dbb82480d5d7e8cc0f38e215c547 | 3dc0f0bc9f1ef4840a05a29f88226f6f81decd6d | /Current/7-Scientific_Computing_With_Python/4-Polygon-Area-Calculator/shape_calculator.py | 52204f84f16a50ba5288e98f2d3b288054dad84c | [] | no_license | kal4EaI/Free-Code-Camp | ff31528cde74a044fa9425cd2ae5d1be4b3c81c5 | 3146386bb58d3852980ba2ec538e883ff9462bc4 | refs/heads/master | 2023-03-31T06:38:20.179473 | 2021-04-04T20:45:40 | 2021-04-04T20:45:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,294 | py | class Rectangle:
def __init__(self, width, height):
self.width = width
self.height = height
def __str__(self):
return f'Rectangle(width={self.width}, height={self.height})'
def set_width(self, width):
self.width = width
def set_height(self, height):
self.height = height
def get_area(se... | [
"vinarius@MARKK-P53S.localdomain"
] | vinarius@MARKK-P53S.localdomain |
a21061bf5358aaa201d3b893acf0ec084371341a | 9589c56cfb7f5954f29eee55a7682a635d611e22 | /main.py | 999cac4e3e04c1b967126a9c312d3bbaa4b6d390 | [] | no_license | zacker-22/zdrive | aa86388b1f7f2a91c4052ec2dba34ee0e685a721 | ae458da18a6856ac350b5872c27b1990f2d0e93f | refs/heads/master | 2021-09-11T00:54:26.228077 | 2018-04-05T05:24:00 | 2018-04-05T05:24:00 | 116,158,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,848 | py | import tornado
import tornado.httpserver
import tornado.ioloop
import tornado.web
import os, uuid
__UPLOADS__ = "./files/"
class Mainpage(tornado.web.RequestHandler):
def get(self):
self.render("mainpage.html")
class MainLogin(tornado.web.RequestHandler):
def post(self):
username=self.get_... | [
"Zacker"
] | Zacker |
d16ae67b41b1528bb0116d6a8e0870f587fefd41 | 89e4c3dd91ceb3a4a5e74cfaedbb795152ebd1f9 | /lc105_bt.py | dd379a2e68cceb2a57826262c2634dc06cff9c75 | [] | no_license | Mela2014/lc_punch | a230af2c9d40b1af4932c800e72698de5b77d61a | 498308e6a065af444a1d5570341231e4c51dfa3f | refs/heads/main | 2023-07-13T03:44:56.963033 | 2021-08-25T05:44:40 | 2021-08-25T05:44:40 | 313,742,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def buildTree(self, preorder: List[int], inorder: List[int]) -> TreeNode:
if not preorder: return No... | [
"noreply@github.com"
] | noreply@github.com |
741555ab98238029b76cb2720bb76e979fcebfd1 | df85df3217b2f7a4fcd9c30d6a8c73a6a9d1709d | /step_one/show_result.py | b4b7c71e22ba2464afd2ab1006576a3c326dc2eb | [] | no_license | qq763511774/Whole-Heart-Segmentation | 924ed729ecda950e585a790feddf916806fd39ce | e73b7fba757466933e7405837f8c345899ad3f25 | refs/heads/master | 2023-01-27T15:55:44.326906 | 2020-12-10T12:51:30 | 2020-12-10T12:51:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | import SimpleITK as sitk
import numpy as np
import cv2
import os
import constant_model
def nii_gz_to_png(path_nii, path_png):
image = sitk.ReadImage(path_nii)
image_array = np.squeeze(sitk.GetArrayFromImage(image))
cv2.imwrite(path_png, image_array*255)
if __name__ == '__main__':
... | [
"noreply@github.com"
] | noreply@github.com |
a7cba2a9d41f25fd0315d124feb7c355ad033ed6 | 6ac945df1ff9cdc8b637aeb2e9cf21512e13204b | /check_size.py | b4074063654f5a0a54bef458d0ef7ef230764a3f | [] | no_license | Phung82/XLA | 9000ee14ebe4ad91ba0cc6714504819d8cbb2f03 | bf299f67dc2439ca59e501c2532617b40b8b686d | refs/heads/master | 2022-08-12T01:38:28.532112 | 2020-05-26T19:54:49 | 2020-05-26T19:54:49 | 267,138,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | from tkinter import *
window=Tk()
print(window.winfo_screenwidth())
print(window.winfo_screenheight())
window.mainloop() | [
"pn8778773@gmail.com"
] | pn8778773@gmail.com |
133232d3a2d4b8e120c9a54a44709de103ddac00 | e6af5a4caa5857a07db4df2759a788ceb43608e1 | /backend/utils/cleanup_md.py | 651af5ea8a1c855c55832bc65edef18bddef58d7 | [] | no_license | LeonieFreisinger/ComplAInce | c069951ba9c91058cf9392a2368da3c2175b1c39 | ffe5eea175f4fdef581987279dd61545bef9678b | refs/heads/main | 2023-04-07T05:45:10.386918 | 2021-04-20T11:59:59 | 2021-04-20T11:59:59 | 358,588,226 | 1 | 1 | null | 2021-04-18T11:52:22 | 2021-04-16T12:13:58 | Python | UTF-8 | Python | false | false | 1,677 | py | from bs4 import BeautifulSoup
from markdown import markdown
import re
import os
def markdown_to_text(markdown_string):
""" Converts a markdown string to plaintext """
# md -> html -> text since BeautifulSoup can extract text cleanly
html = markdown(markdown_string)
# remove code snippets
html = r... | [
"mail@andychen.de"
] | mail@andychen.de |
8eacf3c3b32ad7b2652ca50ab27a4e16e87ad6af | a47382be43966945c44033c8f16471bd1947f676 | /PSO.py | 49e52c0c9a0f58364238debb0fd121a159c118fd | [] | no_license | ahmad-emanuel/quant_trading_system | c25e517af8dbb91fb69c88e3a9a72579793e73c2 | 980b09491e6d42986cd00aab429d5fd17039b282 | refs/heads/master | 2022-01-10T10:14:46.930090 | 2019-05-13T20:03:54 | 2019-05-13T20:03:54 | 117,387,403 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,100 | py | import numpy as np
import pandas as pd
import copy
"""
Helper methods of class particle
"""
def rand_arr_sum_one(length):
arr = []
rand = np.random.ranf(length - 1)
rand = np.append(rand, [0, 1])
rand.sort()
for i in range(len(rand) - 1):
arr.append(rand[i + 1] - rand[i])
return arr
... | [
"ahmadh@campus.uni-paderborn.de"
] | ahmadh@campus.uni-paderborn.de |
005120b02c600aa0241e390bd256d154160f0200 | 343b75d19d23336274d47c73185cc1afee927841 | /kfood/urls.py | 923622c463c48f2937b310af0c51aa1f66bc9e46 | [] | no_license | allan2327/kfood-server | 850aff71fae44d1327a01b30f7363e6d967a61a9 | 11a47c250809cc991dc9e74988b8b60525c903a6 | refs/heads/master | 2020-06-28T05:12:40.977091 | 2016-03-08T04:42:45 | 2016-03-08T04:42:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,209 | py | """kfood URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based... | [
"jjinking@gmail.com"
] | jjinking@gmail.com |
d16f06029e76bb7cb24d6b3bec2cb8c0b487984e | 296fcdd19a03c7a38cbc926dc286c06425fe1920 | /contrib/seeds/makeseeds.py | d0de83fbe35cb7872da17f731c30b6f83323d005 | [
"MIT"
] | permissive | givehopecoin/GiveHopeCore | fe7a094e74954c427d86c1b878b5d838e827080c | fa90c3f13a27e1a83658dbde8bc1ef5f33b5f2be | refs/heads/master | 2020-04-02T02:47:17.014891 | 2019-03-23T14:38:38 | 2019-03-23T14:38:38 | 153,927,829 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,514 | py | #!/usr/bin/env python3
# Copyright (c) 2013-2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Generate seeds.txt from Pieter's DNS seeder
#
NSEEDS=512
MAX_SEEDS_PER_ASN=2
MIN_BLOCKS = 615801
#... | [
"pavhash@core.givehope.com"
] | pavhash@core.givehope.com |
83d000605b618a2e8dbfda1c65f277e62005961e | 334f85db42a24710dcabd715d00087b90988fbe1 | /Class 6/Virtual Post it.py | 01665fa3960feec953a5b69c06b95476130a33dd | [
"MIT"
] | permissive | GRCosta/vgp245 | c92fc04150f4abdf4513755b29cfe448b5cc00c0 | 4b5e727a597d884d9bd7ae4a41f5f35e8c0de459 | refs/heads/master | 2020-03-30T22:15:49.929001 | 2018-12-14T04:52:41 | 2018-12-14T04:52:41 | 151,660,505 | 1 | 0 | MIT | 2018-10-05T02:16:01 | 2018-10-05T02:16:01 | null | UTF-8 | Python | false | false | 2,141 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Nov 14 12:36:01 2018
@author: grcosta
"""
import tkinter
import tkinter.scrolledtext as scroll
import tkinter.messagebox as messagebox
import tkinter.filedialog as filedialog
from tkinter import END
import datetime
root = tkinter.Tk(className="#Virtual Post-it")
notePad = ... | [
"gr.costa@gmail.com"
] | gr.costa@gmail.com |
e36e51123dfd3b00410807e81503fefeaed8eb57 | e36416c7ee3ae44ac8df45ba0c34fc10b7913bee | /getJson.py | faac71db8ab9afa4e2664e974d2765838a490d3d | [] | no_license | LockeyCheng/economist | 69f19964843b700748294ce83635717158a98acd | 7fc9427e0a46e156013ab1248e4a1c98080033e6 | refs/heads/master | 2020-03-10T12:53:01.591547 | 2019-05-12T07:58:22 | 2019-05-12T07:58:22 | 129,387,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | import json
def getJson():
with open('./result/explanation.json') as fo:
data = json.load(fo)
return data
if __name__ == '__main__':
data = getJson()
print(data['household'])
| [
"iooiooi23@163.com"
] | iooiooi23@163.com |
2bb8cf74872671a4a9d6fc670751fb70b3e2ba7b | 972cefd4d6c8079be70fefdf291718388c903a47 | /authentication/views.py | 64f95e5df461f6ac5b4ce9fc82caebdea048f27c | [] | no_license | zaplon/shop | fe9abd46fac270ed985202bc42b8c9a6e6c20924 | edfb2f683aa0aba37c80d3c99ede5384312d8669 | refs/heads/master | 2021-01-01T15:19:12.264275 | 2015-11-01T13:45:10 | 2015-11-01T13:45:10 | 27,991,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,540 | py | import json
from django.shortcuts import redirect
from django.views.generic import CreateView
from django.contrib.auth import authenticate, login, logout
from .admin import UserCreationForm
from authentication.models import User
from django.views.decorators.csrf import csrf_exempt
from django.contrib.auth.views import ... | [
"janek.zapal@gmail.com"
] | janek.zapal@gmail.com |
ff685150be501c205b1a25081fb6692c47358299 | 2a86db4e93cfb66a10242438c41660b6555cc8f6 | /Day10/college/college/settings.py | f59a76f3a4f1bb5da72ccae53585e8be043aff5d | [] | no_license | Srinivasareddymediboina/Djano-Batch4 | 97c8b5c192c82c155bd8c95d1b1bff58b1b372aa | 9a8a3df4001ff4cc4c7e31aac194e99c87670482 | refs/heads/master | 2023-01-31T11:54:01.186971 | 2020-12-18T06:00:18 | 2020-12-18T06:00:18 | 284,895,371 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,106 | py | """
Django settings for college project.
Generated by 'django-admin startproject' using Django 3.0.8.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
#... | [
"sireeshareyyi@gmail.com"
] | sireeshareyyi@gmail.com |
8952daabad114969d0e758dd5d4c67265ace80e8 | 1f01150c7036f41f697406a75481c4b3c5590264 | /L0/fw.py | 87a78bea5ac7fc8db2e323b8a62154c9410316d1 | [] | no_license | xidactw/LM | 1dc6fdeff30e80bd81244f92008a54cbaaa52d91 | 0980a349be4c6428991b91451487d9e2d07804c5 | refs/heads/master | 2021-03-16T05:35:19.633824 | 2017-05-31T08:08:28 | 2017-05-31T08:08:28 | 91,556,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | # -*- coding:utf-8 -*-
# /usr/bin/python
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
import math
def func(a):
if a < 1e-6:
return 0
last = a
c = a / 2
while math.fabs(c - last) > 1e-6:
last = c
c = (c + a/c) / 2
return c
if __name__ == '__... | [
"zhangdi214@126.com"
] | zhangdi214@126.com |
d907442a9099c3f6ce5d5d7bbfa9cb87cb008925 | d9e016cd6030dd33738334b6676e67ffd8f30a03 | /Experiments/Ex1_3.py | d80ca7275d1692320dde3619b29e5a1345a55d99 | [] | no_license | daaaisuke/ControlMeditation_EEG | 288d0e3b67045e429c982cd3d373547ab0788742 | f992e71d3d46b2f80522412c0a749d341222e1d8 | refs/heads/master | 2020-11-25T11:54:25.099041 | 2019-12-17T15:38:44 | 2019-12-17T15:38:44 | 228,645,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,433 | py | # coding: UTF-8
import signal
import sys
import pygame
import pygame.midi
import time
import pygame.pypm
#Ctrl-Cで抜けた時用の関数
def handler(signal, frame):
player.close()
pygame.quit()
sys.exit(0)
print("Ex1_3.py")
pygame.midi.init()
player = pygame.midi.Output(1, latency = 1)
#Ctrl-Cで抜けたことを検知するトリガー
signal.sig... | [
"daaaisuke15176266@gmail.com"
] | daaaisuke15176266@gmail.com |
d4ff15d238cee16bddae1bf5d6acc597802e025c | a592f54ea1da7f9c512ff178f93635f48fb6bf4c | /main.py | 24fe251f7e0f66e466fc21d38099690376f839f9 | [] | no_license | mildbyte/console-massacre | a7719f2fad4ce921ffdc046c819f1332d2f334a7 | 9fd41cdbf88fe75469c73bf79be267832c48b55c | refs/heads/master | 2021-01-01T06:49:33.348826 | 2012-09-26T10:47:22 | 2012-09-26T10:47:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,165 | py | """Main unit, includes CharGen functions and entry point with loop"""
import World
import Item
import os.path
import sys
import pickle
import os
import Character
import UI
import BattleField
import Shop
def save():
"""Saves user character progress, returns 0 on success, -1 on failure"""
globa... | [
"mildbyte@gmail.com"
] | mildbyte@gmail.com |
b52b80c1ef9bad3a706f6fbba47094d387f72eb7 | 2d46ba87b2fcd835b07e4608f08a38b476a87aef | /mnist.py | e4d77aa81190e7da6e2dc89309885a615ef34c16 | [] | no_license | VariSingh/deepMNIST_tflearn | f4c63600e0c3a59321c82f0f4454a2df9850e292 | b1eaf6dd9db3de65d506a2164e9ba97662c43848 | refs/heads/master | 2020-03-26T05:15:14.629662 | 2018-08-18T16:18:41 | 2018-08-18T16:18:41 | 144,546,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | import tflearn
#load data
import tflearn.datasets.mnist as mnist
X, Y, testX, testY = mnist.load_data(one_hot=True)
#neural network
input = tflearn.input_data(shape=[None,784])
input = tflearn.fully_connected(input,100,activation='relu')
layer1 = tflearn.fully_connected(input,100,activation='relu')
layer2 = tflearn.f... | [
"varindersingh271990@gmail.com"
] | varindersingh271990@gmail.com |
d798cd3985b8664d72e9f49e1424f34a35fa588f | d5241877326f9aa3e65f5d9f0a89184d24e94929 | /binSearch.py | a855cdc772ca708b2f909f0125bacc5e94d832ff | [] | no_license | Anthony-dominianni/Algorithms | 4ad9b54ffbcd9ff168c79030221faa05b5b59bfb | 7f4bbe2321a1bbbccdd5b6ac78f2d51f340098f6 | refs/heads/master | 2020-04-20T12:56:36.668817 | 2019-02-13T15:48:49 | 2019-02-13T15:48:49 | 168,855,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | import math
# Return the index of n in a sorted list L
def binSearch(L, n):
if len(L) == 0:
return 0
hi = len(L) - 1
lo = 0
while lo <= hi:
mid = math.floor((hi + lo) / 2)
if L[mid] == n:
return mid
elif L[mid] > n:
hi = mid
else:
lo = mid
return None
L = [1, 2, 3, 4, 5, 8, 9, 10, 24, 56, 6... | [
"anthony.dominianni@gmail.com"
] | anthony.dominianni@gmail.com |
b737c76be0be41b139dfb866ea3859363c252a67 | eb92413b4e4b6e36b43d7f0d2c4fe754a5267144 | /api/lib/data_tables.py | 5cb6fb4ce2fb507e6947f56ed3e96c72620529e1 | [] | no_license | asmtechnologiesltd/Ruckus-Monitoring | ce9445e1702e2eeb81b4bcd7d4b7aa033b837096 | d6426b0ca57415a4f3239c2f09311b3d73318cf3 | refs/heads/master | 2021-03-27T10:25:47.263446 | 2015-09-30T14:40:00 | 2015-09-30T14:40:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,076 | py | ### This is data table library for generic function for all tables with search and paginations
### This will respond the jsons fot table for the given page number and number of rows with search query
### Date Created: Sep 24th, 2015
### Originated By Hariharaselvam Balasubramanian (4470)
from mysqlclass import MysqlPy... | [
"root@Karthic-Jayaraman.local"
] | root@Karthic-Jayaraman.local |
5cd707b6becf1983598806138c1b602763026b7a | 1f5f8f95530003c6c66419519d78cb52d21f65c0 | /projects/golem_api/tests/users/edit_user.py | 8ede3ba2a8db79addec2b7d17f38ee7b733cf6f1 | [] | no_license | golemhq/golem-tests | c5d3ab04b1ea3755d8b812229feb60f513d039ac | dff8fd3a606c3d1ef8667aece6fddef8ac441230 | refs/heads/master | 2023-08-17T23:05:26.286718 | 2021-10-04T20:34:17 | 2021-10-04T20:34:17 | 105,579,436 | 4 | 1 | null | 2018-11-19T00:14:24 | 2017-10-02T20:05:55 | Python | UTF-8 | Python | false | false | 3,058 | py | from golem import actions
from projects.golem_api.pages import users
def test_edit_user(data):
username = actions.random_str()
users.create_new_user(username, '123456', 'test@test.com')
new_username = actions.random_str()
new_email = 'test2@test.com'
new_project_permissions = [{'project': "projec... | [
"luciano@lucianorenzi.com"
] | luciano@lucianorenzi.com |
7c71bbfd294ea8ed674139bbcfef86adb6f6d038 | 9ab9ffedb95cfe38de6a6472b57e8b87a0d6c147 | /python/montecarlomodeling-joy1995/joy1995_chap03.py | f8a13fd04e24b346105e8ffab779acc8c5f5e4a7 | [] | no_license | drix00/MonteCarloModeling-Joy1995 | e67ba3d202e2145652007aba16b32bdda661e1a4 | 12ab34caace423ef11b7ec4850ab7cb3c3d734f1 | refs/heads/master | 2020-07-07T20:42:44.540172 | 2019-03-14T01:57:55 | 2019-03-14T01:57:55 | 203,472,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,350 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Apr 23 18:11:49 2015
@author: hdemers
"""
import logging
import math
import random
import csv
import matplotlib.pyplot as plt
two_pi = 2.0*math.pi
# Cutoff energy in keV in bulk case
e_min = 0.5
def single_scatter(inc_energy, at_num, at_wht, density, traj_num, thickness=No... | [
"12611589+drix00@users.noreply.github.com"
] | 12611589+drix00@users.noreply.github.com |
d259e0fd9233ecc539f5355b80ffdc63ed8e26d9 | 76260a60681ddc3e9aae5af9195188ff53973576 | /project.py | 4d3470418430d8eeb9be2d8c0e03d6634ad5bafb | [] | no_license | Fedyok/Yandex-Lyceum-project-3 | 34d534bcc53a3e80a4e5c4f7923c0ee9439d4070 | f77a69502cc12972314777aa38f8ab092c2274ac | refs/heads/master | 2020-05-03T16:25:33.485839 | 2019-03-31T20:59:39 | 2019-03-31T20:59:39 | 178,715,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,052 | py | from flask import Flask
from flask import *
import bd
import sqlite3
from flask import render_template
app = Flask(__name__)
HOST = '127.0.0.1'
PORT = 8080
mybd = sqlite3.connect('users.db', check_same_thread=False)
user = bd.UserModel(mybd)
user.init_table()
table_films = bd.FilmModel(mybd)
table_fil... | [
"noreply@github.com"
] | noreply@github.com |
af8b45eb284b3530ad3e6119002d939b6b2c6eed | d87243c4f3bdd058115846b267964a8b513457a5 | /shortstories/migrations/0001_initial.py | cda48a52ee47a215154c75720299e5dfa2e06f0f | [
"MIT"
] | permissive | evenset/ketabdan-project | 33678b1afafe3cd0f969f624e4aabac10fae718b | ea56ad18f64b35714c6c3a0d85e59a3f8514057a | refs/heads/develop | 2021-07-26T16:29:24.011024 | 2018-09-24T23:20:10 | 2018-09-24T23:20:10 | 125,778,476 | 4 | 0 | MIT | 2018-09-28T04:00:46 | 2018-03-18T23:49:39 | Python | UTF-8 | Python | false | false | 946 | py | # Generated by Django 2.0.3 on 2018-07-13 01:04
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"you@example.com"
] | you@example.com |
b07f6888353b55adccdd583944efb91ff439f5f5 | 676acab8ff535019faff7da3afb8eecc3fa127f5 | /target/pixhawk/fmu-v2/SConscript | 308c9dcb859676580241ec094f1ec6e7087e31d0 | [
"Apache-2.0"
] | permissive | Firmament-Autopilot/FMT-Firmware | f8c324577245bd7e91af436954b4ce9421acbb41 | 0212fe89820376bfbedaded519552f6b011a7b8a | refs/heads/master | 2023-09-01T11:37:46.194145 | 2023-08-29T06:33:10 | 2023-08-29T06:33:10 | 402,557,689 | 351 | 143 | Apache-2.0 | 2023-09-12T05:28:39 | 2021-09-02T20:42:56 | C | UTF-8 | Python | false | false | 275 | import os
from building import *
cwd = GetCurrentDir()
objs = []
list = os.listdir(cwd)
for d in list:
path = os.path.join(cwd, d)
if os.path.isfile(os.path.join(path, 'SConscript')):
objs = objs + SConscript(os.path.join(d, 'SConscript'))
Return('objs')
| [
"jiachi.zou@gmail.com"
] | jiachi.zou@gmail.com | |
d363aeeb63a3262fdaff076630ab474b56876fe3 | 71626ba3dd283a0e11901d6df87f1e52c9f9cfc9 | /overflow2/exploit.py | 2377e0a5d8aa0a452d2adffb2b241aaf17035ffd | [] | no_license | not-duckie/PicoCTF | fd26e1c5b1ba695d942962e28473344a8e1ba4fa | 1d642511d0f016234dfea105a1bf19b7341aa3e8 | refs/heads/master | 2020-11-29T00:49:06.987049 | 2020-01-04T06:35:10 | 2020-01-04T06:35:10 | 229,966,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | #!/usr/bin/env python2
from pwn import *
p = process('./vuln')
rop = ROP('./vuln')
padding = "A"*188
flag = 0x080485e6
main = 0x080486b5
arg1 = 0xDEADBEEF
arg2 = 0xC0DED00D
#rop.call(0x080485e6, [0xDEADBEEF, 0xC0DED00D])
payload = padding + p32(flag) + 'ABCD' + p32(arg1) + p32(arg2)
p.recvuntil(':')
p.sendline(payloa... | [
"sarthakmisraa@gmail.com"
] | sarthakmisraa@gmail.com |
15c088ce58b087c604e61d3e01ed76d7b68636b0 | b18fc146fd7e9cc5e7b511418a06c7b57e4ca797 | /Client.py | 7cca7993b35f79af11c732bd8cffb2f40edfe203 | [] | no_license | Stmuslimah/IndividualProject_Client | d7756087bfd812946d0e64a8e4c2d50f8ee6f9c9 | 78ef0114e6d7400f0ed903a861d039abd732b5e5 | refs/heads/main | 2023-05-14T05:21:43.625617 | 2021-06-06T06:07:58 | 2021-06-06T06:07:58 | 374,281,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 882 | py | import socket
import time
c = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
host = '192.168.56.103'
port = 8888
c.connect((host,port))
print('\n***_DOMAIN NAME RESOLVER APPLICATION_***\n')
file = open('Details.txt','w')
while True:
msg = input('\nEnter a Domain / details / \'end\' to exit: ')
c.sendto(msg.enc... | [
"muslimahaisyah39@gmail.com"
] | muslimahaisyah39@gmail.com |
882fd3432f04d71fdf073898a62bbc1c477f22b9 | 7bf6dabe69350a27f64c09e6eab1b4a51e2c9283 | /covid_analysis_state_gender.py | f20cb8ece2f2adf272f376f0ac6e13663af99665 | [] | no_license | JoaquinTripp/covid_analysis | 51bd8cb9445d69e0313cab1668f050b7fedd5a62 | 37c902469177e8106f572438e25e17abcdf5179b | refs/heads/master | 2022-12-13T12:15:44.731260 | 2020-09-12T03:59:39 | 2020-09-12T03:59:39 | 294,858,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,135 | py | """Amphora Health:
Challenge code.
Author: Joaquin Tripp Gudiño
Date: September 11, 2020.
This is a correlation analysis, searching for the factors associated with
ICU (Intensive Care Unity) usage by state,
in the people infected with Covid-19 in Mexico.
The Covid-19 is the infectious disease caused by the most re... | [
"joaquintripp@gmail.com"
] | joaquintripp@gmail.com |
63f331aa35178b96b3b7a5bff53d76affbd12d84 | 687a57837c2ce1ec366ce05d1a3a3a113552137e | /src/neurounits/unit_term_parsing/__init__.py | a794123e054901c0ba4e9d7778810a3f939fb2b4 | [] | no_license | mikehulluk/NeuroUnits | ba9974897b2a1807010fdcd141eac7503ba09766 | ee59a8f7dcce382cb28a0f87b56952e0b7c59f17 | refs/heads/master | 2020-04-05T08:07:13.422241 | 2013-07-29T09:06:06 | 2013-07-29T09:06:06 | 2,848,923 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,555 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# -------------------------------------------------------------------------------
# Copyright (c) 2012 Michael Hull.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions... | [
"mikehulluk@googlemail.com"
] | mikehulluk@googlemail.com |
d7ccf67ffe0981f04b86d9ad04297b26a1605383 | 2bef61d763ee448d651d72162e7538ade709d6d5 | /blog/urls.py | fcaf8fb99b306cf8e56545aa1242b947b04f5d5a | [] | no_license | devsatrio/lancarjaya | ac4163998c2693aa03f22ef0866321f674122b64 | 7c1a0734ee0014a6533e941c3b0c5f222d7756b9 | refs/heads/master | 2020-12-19T10:45:59.458972 | 2020-02-20T02:03:06 | 2020-02-20T02:03:06 | 235,710,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | from django.urls import path
from . import views
app_name='blog'
urlpatterns = [
path('kategori/<int:kategori>',views.bykategori,name='kategori'),
path('<slug:blogslug>',views.show,name='show'),
path('',views.index,name='index'),
] | [
"50070374+zicom99@users.noreply.github.com"
] | 50070374+zicom99@users.noreply.github.com |
036d74224f28eb6fba178a7111ac0131c3ce7cd4 | a426a2de6c1bf2c991d3a1c10cac16b794bf41c2 | /Graph/lib/GraphSearch/island_problem.py | 63889a2f271695eb8e5104538aee760a675c7099 | [] | no_license | lvamaral/RubyAlgorithms | 8643e7c2996adaad50bff6174e8e81b58b918492 | 81a50d96807b7eef02c67985e45acf404bcc156b | refs/heads/master | 2021-01-01T19:23:39.513409 | 2017-11-13T23:28:06 | 2017-11-13T23:28:06 | 98,580,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,432 | py | class Node:
def __init__(self, value):
if value == 1:
self.filled = True
else:
self.filled = False
self.seen = False
class Graph:
def __init__(self, grid):
self.grid = grid
self.row_n = len(grid)
self.col_n = len(grid[0])
self.coun... | [
"lucas.v.amaral@gmail.com"
] | lucas.v.amaral@gmail.com |
34b5f9e260cc2fb420987d806f362d71e1057274 | 0c8801e1acb6909ee1f0a69b6a4a0ddb013b9c2d | /c13.py | ffeff028a7656e62e88ebd426c9671668e0c3838 | [
"MIT"
] | permissive | bobbydurrett/sympytutorial | 99ed04ad96cc505779d88d966744ef6470c50767 | 071b2f0de8b6934556ab1e48d180e424bcbd7345 | refs/heads/main | 2023-04-09T06:34:51.185799 | 2021-04-23T23:49:54 | 2021-04-23T23:49:54 | 356,042,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,788 | py | # https://docs.sympy.org/latest/tutorial/manipulation.html
from sympy import *
init_printing(use_unicode=False)
from myprint import spprint
x, y, z = symbols('x y z')
expr = x**2 + x*y
print(srepr(expr))
x = symbols('x')
print(srepr(x))
x = Symbol('x')
print(srepr(x))
print(srepr(x**2))
print(' ')
spprint(Pow(x,... | [
"bobby@bobbydurrettdba.com"
] | bobby@bobbydurrettdba.com |
c6672d7dd3e2446b3f16cf09954a42762c8fceef | 88b7c57a0d9a7a3b28ebd9d6c12ecbbebc50e8a5 | /config/settings/dev.py | fb7a3dc769830e8f5120adf3b2bf7efddccd22d8 | [] | no_license | largerbigsuper/beep | 71438a4c2feae1afd6ecd25899e95f441bf2165b | a5d84437d79f065cec168f68210c4344a60d08d1 | refs/heads/master | 2022-09-23T02:09:37.117676 | 2020-01-03T06:21:57 | 2020-01-03T06:21:57 | 209,052,138 | 0 | 0 | null | 2022-09-13T23:03:25 | 2019-09-17T12:47:26 | Python | UTF-8 | Python | false | false | 4,456 | py | from .base import * # noqa
from .base import env
# GENERAL
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#debug
DEBUG = False
# https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
SECRET_KEY = env(
"DJANGO_SECRET_KE... | [
"zaihuazhao@163.com"
] | zaihuazhao@163.com |
884e1f63d9339161e149eeadb442024f17746da7 | 02cbfdbf5f36e073b48aebb5d78e77b86ecab143 | /2.3.4.py | 374beaa0d1b1f5c1fd8819a2a640ee5ead6b0616 | [] | no_license | afdRinQ/auto-tests-course | a5c22e3f23a76d06494d757e0834207934b5a9ec | 8697941277d6590b6bcce31535c0e634427c71b5 | refs/heads/main | 2023-07-11T15:28:04.835611 | 2021-09-12T11:23:05 | 2021-09-12T11:23:05 | 405,616,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | from selenium import webdriver
import time
import math
def calc(x):
return str(math.log(abs(12 * math.sin(int(x)))))
link = "http://suninjuly.github.io/alert_redirect.html?l"
try:
browser = webdriver.Chrome()
browser.get(link)
button1 = browser.find_element_by_css_selector("button.btn")
button... | [
"RinQ86@gmail.com"
] | RinQ86@gmail.com |
c7dc591c085c21ed5bdbf2b6023f721f349dd348 | 36e1c37b4af7685840e145a3b444c2417d246438 | /mq/monitor/api_ping_check.py | 136075237e36d98942919561d0a08cb7eaf31e17 | [] | no_license | lynndotconfig/python-analysis | 0850fa87cfbb5a295970ad3eebb2759371a469bf | dcfb4d139bc8df0e41a979fa6d9b89a6184ef786 | refs/heads/master | 2021-01-13T16:40:03.063075 | 2018-04-04T09:53:03 | 2018-04-04T09:53:03 | 78,192,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,176 | py | """RabbitMQ vhost aliveness check."""
import base64
import httplib
import urllib
import socket
import sys
EXIT_OK = 0
EXIT_WARNING = 1
EXIT_CRITICAL = 2
EXIT_UNKOWN = 3
def main():
"""CHECK CONNECTION."""
server, port = sys.argv[1].split[":"]
vhost = sys.argv[2]
username = sys.argv[3]
password = s... | [
"lynn.config@gmail.com"
] | lynn.config@gmail.com |
7682a21f925f9cf50ba7ae3728c38a11dacdb942 | 6ffbdd335ac5083ba5bdd0bd41c105f9c408682c | /src/django_react/urls.py | 882aaa0a34106f05075280eb8a65e2b854c91c7b | [] | no_license | BettinaBurri/spielwiese_bbu | 2a6025447152da6c52a7959d750737cc25b01213 | 3c3d8fa4346f8d295fcb8e312d0dc27a588ef81f | refs/heads/main | 2023-01-02T04:50:07.161672 | 2020-10-09T11:49:13 | 2020-10-09T11:49:13 | 302,352,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | """django_react URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/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-... | [
"burri.bettina@gmail.com"
] | burri.bettina@gmail.com |
43c114108be58675f3315ffc4f23538067730145 | 15581a76b36eab6062e71d4e5641cdfaf768b697 | /LeetCode_30days_challenge/2021/August/Set Matrix Zeroes.py | 51c881a0fe2ad8b202fa896fd86dffc76c4635b2 | [] | no_license | MarianDanaila/Competitive-Programming | dd61298cc02ca3556ebc3394e8d635b57f58b4d2 | 3c5a662e931a5aa1934fba74b249bce65a5d75e2 | refs/heads/master | 2023-05-25T20:03:18.468713 | 2023-05-16T21:45:08 | 2023-05-16T21:45:08 | 254,296,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,805 | py | from typing import List
# Approach 1 with O(M + N) extra memory
class Solution:
def setZeroes(self, matrix: List[List[int]]) -> None:
"""
Do not return anything, modify matrix in-place instead.
"""
rows = set()
cols = set()
n = len(matrix)
m = len(matrix[0... | [
"mariandanaila01@gmail.com"
] | mariandanaila01@gmail.com |
82a1d4a6d1260f47e4cd6b966110c9fd65ca757c | 1fa6c2650c791e35feaf57b87e832613e98797dd | /LeetCode/DS - Heap/M K Closest Points to Origin.py | 2659259e57c56c802f5c7355b47c50a2a063b30e | [] | no_license | hz336/Algorithm | 415a37313a068478225ca9dd1f6d85656630f09a | 0d2d956d498742820ab39e1afe965425bfc8188f | refs/heads/master | 2021-06-17T05:24:17.030402 | 2021-04-18T20:42:37 | 2021-04-18T20:42:37 | 194,006,383 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,591 | py | """
We have a list of points on the plane. Find the K closest points to the origin (0, 0).
(Here, the distance between two points on a plane is the Euclidean distance.)
You may return the answer in any order. The answer is guaranteed to be unique (except for the order that it is in.)
Example 1:
Input: points = ... | [
"hz336@cornell.edu"
] | hz336@cornell.edu |
d215d6cb373ff4b845e69b5dab58f40d7ac86236 | 6e4391a1e7ae04a22edeeb68f9a6179701b6ab02 | /sir_assignmemts/program_4.py | ef115e647036de49338c2e67e83d90e1dbfcf085 | [] | no_license | iamrajshah/python_assignments | be129a20ce15628698b39a64488cb0e603004326 | eec01828be205102bc551cf9d2eb4aff19c05852 | refs/heads/master | 2022-10-21T13:34:49.178036 | 2020-06-17T04:09:52 | 2020-06-17T04:09:52 | 264,990,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | def turnOnGivenBit(number, bit):
modifiedNumber = 1<<bit-1
print(number | modifiedNumber)
number = int(input('Enter the number:'))
bitPosition = int(input('Enter the bit-position to turned on:'))
turnOnGivenBit(number, bitPosition) | [
"shahrajesh2113@yahoo.com"
] | shahrajesh2113@yahoo.com |
0797af2c95637088a36e231295fda75cd70373a6 | 54447dfd073ceba38dbed5d8a04105f845d2fa4f | /apps/pages/apps.py | 8543a84123edc71f662b40460d264556924e405c | [] | no_license | Railkhayrullin/watch_store | 58a4ea71db0c685efd87aa67f85f8f88d4cc6bc5 | f469f37c69331d47461402bc8d120f4361260cce | refs/heads/master | 2023-04-29T18:08:43.758849 | 2021-05-26T10:47:36 | 2021-05-26T10:47:36 | 358,810,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | from django.apps import AppConfig
class BlogConfig(AppConfig):
name = 'apps.pages'
| [
"rail.khayrullin@gmail.com"
] | rail.khayrullin@gmail.com |
62acac9f1ebfd24d7c48ad282623209de9fb6711 | 2626f6e6803c8c4341d01f57228a0fe117e3680b | /students/MikeShand/Lesson 04/json_save/test/test_savables.py | 3121cade9de7f296765a3f5f547a6ab833befd8f | [] | no_license | kmsnyde/SP_Online_Course2_2018 | 9e59362da253cdec558e1c2f39221c174d6216f3 | 7fe8635b47d4792a8575e589797260ad0a2b027e | refs/heads/master | 2020-03-19T17:15:03.945523 | 2018-09-05T22:28:55 | 2018-09-05T22:28:55 | 136,750,231 | 0 | 0 | null | 2018-06-09T19:01:52 | 2018-06-09T19:01:51 | null | UTF-8 | Python | false | false | 2,565 | py | #!/usr/bin/env python
"""
tests for the savable objects
"""
import pytest
import json
from json_save.saveables import *
# The simple, almost json <-> python ones:
# Type, default, example
basics = [(String, "This is a string"),
(Int, 23),
(Float, 3.1458),
(Bool,... | [
"kmsnyder2@verizon.net"
] | kmsnyder2@verizon.net |
8bf0b1f72b2e606188c775d35b3aa59e41a431d3 | a6a349e3aed8462909fdf4397ec4ffa598d2904c | /django/contrib/gis/forms/fields.py | 072dd4766b6d875b08d9225141aac8813db2e18a | [
"BSD-3-Clause"
] | permissive | mrts2/django | 02b66cde7392275db22a35d03c6228f16c602d94 | 973cf20260cb90b42b0c97d6fe80c988b539ed89 | refs/heads/master | 2021-01-21T01:35:13.330520 | 2009-04-26T06:08:26 | 2009-04-26T06:08:26 | 185,943 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,745 | py | from django import forms
from django.utils.translation import ugettext_lazy as _
# While this couples the geographic forms to the GEOS library,
# it decouples from database (by not importing SpatialBackend).
from django.contrib.gis.geos import GEOSGeometry
class GeometryField(forms.Field):
"""
This is the bas... | [
"jbronn@bcc190cf-cafb-0310-a4f2-bffc1f526a37"
] | jbronn@bcc190cf-cafb-0310-a4f2-bffc1f526a37 |
09944c01ca308136cfa4faea92a9b6151e86e8ec | 609966de60a1743971de663017f10f016fed2e9c | /server/upload/migrations/0014_auto_20181120_2025.py | e366111e8bf32f81b6c836e73f0fe9bcb6e8ab22 | [] | no_license | arpit-1110/Secure-Personal-Cloud | 8ea3bff732e2928310b1799a49ad6947fa8d1dc8 | 3c5685db29948f6046e873bfe23a589dd5dc6c58 | refs/heads/master | 2021-06-22T17:36:12.988532 | 2020-07-02T12:06:41 | 2020-07-02T12:06:41 | 151,406,735 | 2 | 1 | null | 2021-06-10T23:07:20 | 2018-10-03T12:10:14 | HTML | UTF-8 | Python | false | false | 401 | py | # Generated by Django 2.1.2 on 2018-11-20 20:25
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('upload', '0013_auto_20181120_1948'),
]
operations = [
migrations.RemoveField(
model_name='document',
name='author',
... | [
"noreply@github.com"
] | noreply@github.com |
2d670cf46ab518d12618a5c7cd214f15721b1946 | 1afec7d1d3099138b5afe5fd73dfd3d24ff4eb15 | /test/functional/feature_minchainwork.py | bf9177d0a7c94fd1dfa263477971b818dbe15ed0 | [
"MIT"
] | permissive | republic-productions/finalcoin | 5c7c6b0734178fe22db63f0946ec555f59e8d0eb | 7c0f335ded1e5c662034c822ca2c474b8e62778f | refs/heads/main | 2023-09-04T17:04:32.683667 | 2021-10-14T17:45:22 | 2021-10-14T17:45:22 | 417,209,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,109 | py | #!/usr/bin/env python3
# Copyright (c) 2017-2020 The Finalcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test logic for setting nMinimumChainWork on command line.
Nodes don't consider themselves out of "in... | [
"republicproductions@protonmail.com"
] | republicproductions@protonmail.com |
900b424ebfa594d40ca4dcc8a7346b168b4070c8 | f55e0d871e8652c21bd30acf7f18468f4a9ce00d | /SALT/views.py | 7ff3baedcb875c25a5ca56389989aed8e6f9c426 | [] | no_license | chensambb/EWP_OMS | a5a01d1964e2ce726c8c0cf03a514d566131a76e | 25a3fa7f3922a62b60e57a3b899d2600925de445 | refs/heads/master | 2021-01-19T03:37:54.855404 | 2016-06-21T05:39:04 | 2016-06-21T05:39:04 | 61,770,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,063 | py | # -*- coding: utf-8 -*-
from django.shortcuts import render,render_to_response,get_object_or_404
from django.http import HttpResponseRedirect,HttpResponse,JsonResponse
from django.core.urlresolvers import reverse
from django.contrib import auth
from django.contrib.auth.decorators import login_required #setting: LOGIN... | [
"ywzhou@ewininfo.com"
] | ywzhou@ewininfo.com |
e83f47dbd72ca335c9ebd0b2ca917651d3aab358 | 48a65d8b989ef2ba014a32d45ccc188234913529 | /catkin_ws_lab/build/odom_to_trajectory/catkin_generated/pkg.installspace.context.pc.py | 5cacdb1f6e1669d645f76ebb7f2fc28fe65e553b | [] | no_license | cielsys/RoboND2_Proj2_WhereAmI | 3f28ccb0e4632e75a7d49f4137e0677c11a93809 | 88d425799ebe4dd0c380bbfa08d7b8e173fee764 | refs/heads/master | 2020-04-17T05:54:56.517721 | 2019-01-26T21:54:32 | 2019-01-26T21:54:32 | 166,303,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "odom_to_trajectory"
PROJECT_SPACE_DIR... | [
"ciel.github@cielsystems.com"
] | ciel.github@cielsystems.com |
6a92c988f60facc3f241c0d2989405a32321adcc | 7419aba26b3163726a37fb1ab64040b51560d3a5 | /6.py | 7cb0f736b54db896db2dcf904ab5c69af013cf40 | [] | no_license | hopemit/project | 1c82755a405cabbfb45ce5e8e350fb598e84db7a | 53b4d8b98986058c156da434528022eb9a7c0479 | refs/heads/master | 2022-12-08T01:28:31.902345 | 2020-08-20T15:34:30 | 2020-08-20T15:34:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | phrase = 'Parcham balast! '
ph_list = list(phrase)
new_ph = ''.join(ph_list[8:10])
new_ph = new_ph + ''.join (ph_list [-12:-15:-2])
new_ph = new_ph + ''.join (ph_list [5:8])
print (new_ph)
| [
"noreply@github.com"
] | noreply@github.com |
167189898c959abc7ed28e564880ee1069d227f1 | 2d4380518d9c591b6b6c09ea51e28a34381fc80c | /CIM16/CDPSM/Balanced/IEC61970/LoadModel/__init__.py | 9ee7be64a7b50687c12f23c691687acf992d4b74 | [
"MIT"
] | permissive | fran-jo/PyCIM | 355e36ae14d1b64b01e752c5acd5395bf88cd949 | de942633d966bdf2bd76d680ecb20517fc873281 | refs/heads/master | 2021-01-20T03:00:41.186556 | 2017-09-19T14:15:33 | 2017-09-19T14:15:33 | 89,480,767 | 0 | 1 | null | 2017-04-26T12:57:44 | 2017-04-26T12:57:44 | null | UTF-8 | Python | false | false | 1,650 | py | # Copyright (C) 2010-2011 Richard Lincoln
#
# 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, copy, modify, merge, publish... | [
"fran_jo@hotmail.com"
] | fran_jo@hotmail.com |
417cd82f7a985638ba65904bc40e92d25c3270ba | 8a4b7cf4f887db7d44a39c039bbf1da63de24a50 | /Sequencias no Python/listas.py | d3245a6f3684f8b2b11c17674f474d020f943ab0 | [] | no_license | doug-silva1992/basicoPython | 2fe0be79999bd95d744d5daaea077e482b26a66e | dde089f4b2d2723afacc2fece1a264282f186716 | refs/heads/master | 2022-08-23T09:39:34.440193 | 2020-05-24T23:34:04 | 2020-05-24T23:34:04 | 266,245,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | participants = ['John', 'Leila', 'Gregory', 'Cate']
print(participants)
print(participants[1])
print(participants[-2])
participants[3] = 'Maria'
print(participants)
del participants[2]
print(participants)
print(participants[2]) | [
"dvalverde"
] | dvalverde |
41ed90e1efa2e54d0712813739dca91b33844f38 | 2c74cd55ce55cfad2e10011127e97dc6aa417d59 | /subs.py | 92de443a3804e88522bdae670b3f75e06b3662ed | [] | no_license | ajdensmore/Tools | 4521638c103dfea13d5f71ec4a6360d38f00fdf1 | 0c50eaedbab6e0278f955268659470ca8e8c9893 | refs/heads/master | 2022-04-15T08:43:12.040255 | 2020-04-14T15:54:28 | 2020-04-14T15:54:28 | 255,639,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | #!/usr/local/bin/python
import requests
import sys
sub_list = open("subdomains-1000.txt").read()
subs = sub_list.splitlines()
for sub in subs:
url_to_check = f"http://(sub).{sys.argv[1]}"
try:
requests.get(url_to_check)
except requests.ConnectionError:
pass
else:
print("Vali... | [
"noreply@github.com"
] | noreply@github.com |
1540d8e9c7c999570183cbc454092b66ce1f7c03 | 0f4b03bbf60d4d76c132215ae2e21495b561e47e | /matthieu/internal_lib/bruteforce.py | 78bac9b6bb20e7358d6bcdf35075c02c36a78b3e | [] | no_license | brainOut/app_api | 62fa0673da2b43c743a83446fc25a37d1ef7b3a0 | 4830057bedd28f2f9535c57a283c7a438bb6f62f | refs/heads/main | 2023-03-22T05:09:58.737049 | 2021-03-12T21:26:09 | 2021-03-12T21:26:09 | 344,802,132 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,670 | py | from .dirb import FuzzUrl # \o/ Merci François
from bs4 import BeautifulSoup
import requests
import re
from pathlib import Path
class BruteForcer:
def __init__(self, url, filename, target, userlist="wordlist/users.txt", passlist="wordlist/test_pass.txt"):
self.userlist = userlist
self.passlist =... | [
"mlamamra@jehann.fr"
] | mlamamra@jehann.fr |
705298b32622dbaf11a94a4320eac4278c72051a | 896da6e62703afc5cbeca27969bf9d3a813b2605 | /yodlee/models/holding_type_list_response.py.3ec3f47a605b66b6dd09b1e33e8e8126.tmp | 50330eaed8b52422ae97e28b8289f8a23984a0b0 | [] | no_license | webclinic017/yodlee_client | 4d150f74c8c2255b096f3765c3772c6fb0bcbe81 | 7cbf79d3367fd13da375bf7134718bae51b4e8fe | refs/heads/master | 2023-08-04T01:51:17.850386 | 2021-09-22T21:29:34 | 2021-09-22T21:31:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,666 | tmp | # coding: utf-8
"""
Yodlee Core APIs
This file describes the Yodlee Platform APIs, using the swagger notation. You can use this swagger file to generate client side SDKs to the Yodlee Platform APIs for many different programming languages. You can generate a client SDK for Python, Java, javascript, PHP or oth... | [
"jordan-hamill@hotmail.com"
] | jordan-hamill@hotmail.com |
21a0ee4f7316533bbb7ac7285f5705a31c1f9ea2 | 9c91ebc7a8b9e18327ba5b7bdd5c37606d5981c7 | /RGG/testWorkflowConfig.py | 5f2a792f5d3ac097910fa3447c9adc9833546cec | [] | no_license | ajserensits/RGG | acb9af24339e0d59aa42dfd6ea8a67778974fd46 | 0ab29b6a37e6e4b189e0d85472f4651b2beff297 | refs/heads/master | 2020-08-04T00:59:01.449675 | 2019-10-01T19:04:00 | 2019-10-01T19:04:00 | 211,945,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,370 | py | import json
from django.http import HttpResponse
from . import settings
def update(request):
rgg = request.GET.get('rgg')
radial = request.GET.get('radial')
mapping = request.GET.get('mapping')
file = open(settings.WORKFLOW_CONFIG_URL)
data = json.load(file)
file.close()
data[mapping]["... | [
"noreply@github.com"
] | noreply@github.com |
2ec4138b6920016a1f4c5a330d3efbf33d001b78 | aa7eca0eeccc7c71678a90fc04c02dce9f47ec46 | /Codes_13TeV/LimitTool_HiggsCombine/ExcitedQuarksShapeInterpolator/inputs/PhMID_JetTID_Pt200_170_DEta1p5_NoDPhi_CSVL_Summer16_35866pb/input_shapes_Bstar_1bTag_f1p0_13TeV_PhMID-JetTID-Pt200_170-DEta1p5-noDPhi-CSVL_mass700_80X_Summer16_BSFUP.py | 6ea3f07571854d8fbfed47972e78c70de2ef12ec | [] | no_license | rockybala/Analyses_codes | 86c055ebe45b8ec96ed7bcddc5dd9c559d643523 | cc727a3414bef37d2e2110b66a4cbab8ba2bacf2 | refs/heads/master | 2021-09-15T10:25:33.040778 | 2018-05-30T11:50:42 | 2018-05-30T11:50:42 | 133,632,693 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 164,354 | py | shapes = {
500 : [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,... | [
"rgarg@cern.ch"
] | rgarg@cern.ch |
0283e43ce1b3b31585f53812085b759b79811cc6 | 5182897b2f107f4fd919af59c6762d66c9be5f1d | /.history/src/Individuo_20200710164705.py | ffc91aee5f741018ab08a59df5c8052c8ae54c56 | [
"MIT"
] | permissive | eduardodut/Trabalho_final_estatistica_cd | 422b7e702f96291f522bcc68d2e961d80d328c14 | fbedbbea6bdd7a79e1d62030cde0fab4e93fc338 | refs/heads/master | 2022-11-23T03:14:05.493054 | 2020-07-16T23:49:26 | 2020-07-16T23:49:26 | 277,867,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,332 | py | import random
class Individuo():
SADIO = 0
INFECTADO_TIPO_1 = 1 #assintomáticos e o infectado inicial
INFECTADO_TIPO_2 = 2 #sintomático
CURADO = 3
MORTO = 4
def __init__(
self,
status,
atualizacoes_cura,
posicao):
self.status = status... | [
"eduardo_dut@edu.unifor.br"
] | eduardo_dut@edu.unifor.br |
986c67916f48b5aa8885b21b81790c29d362e926 | 861ba53ac6451da5ebd827f47dbe3003453959d0 | /flip_img.py | 19bd4924d2de3cac8af69100adcb57d8b2ec0b3b | [] | no_license | puru07/opencv_work | 97de2456ec6059815ac449debdb102907acea7a3 | dc3e33c019509fe46d7cc66461584f761db7dd38 | refs/heads/master | 2020-05-25T15:41:39.391002 | 2017-04-26T00:19:02 | 2017-04-26T00:19:02 | 70,036,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | import numpy as np
import cv2
img=cv2.imread('1.png')
rimg=img.copy()
fimg=img.copy()
rimg=cv2.flip(img,1)
fimg=cv2.flip(img,0)
cv2.imshow("Original", img)
cv2.imshow("vertical flip", rimg)
cv2.imshow("horizontal flip", fimg)
cv2.waitKey(0)
cv2.destroyAllWindows() | [
"pururastogi@gmail.com"
] | pururastogi@gmail.com |
19f8187d93bb10f927d848281bb4a5f8e3453b84 | f5745bb0b7cabdb67840fe4b7326203e99917844 | /weather_app/main/urls.py | a69971e9e5c92f4a93e0c7363a0ed8fdeaa37407 | [] | no_license | oluwakayode-a/Django-Weather-App | f927ff4ea511603289d808eddbdbbe7271504178 | a2cebce388c69eb60cc0b422db12894f18df7288 | refs/heads/master | 2020-07-09T15:44:04.390546 | 2019-08-27T07:05:31 | 2019-08-27T07:05:31 | 204,013,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name="index"),
path('get_weather', views.get_weather, name='get_weather')
] | [
"khaox07@gmail.com"
] | khaox07@gmail.com |
12b006e6c4928d647c1a85d07b6fdc1ebf6d9561 | c51cd17622d2a070bc18b6a989ba20553786ad4f | /predict_price.py | 4503dc7853c030e55dca678c431997c7b0a95ce7 | [] | no_license | botezatpv/Boston_Housing_PythonML | 9de2d2eb33a5237dd68ff983a18782946b5f9cc1 | 3de686d48d4a017a3f8cde4a40af2d269d45ee89 | refs/heads/master | 2021-01-19T03:42:25.318288 | 2016-08-04T16:20:10 | 2016-08-04T16:20:10 | 64,949,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,053 | py | """Load the Boston dataset and examine its target (label) distribution."""
# Load libraries
import numpy as np
import pylab as pl
from sklearn import datasets, grid_search
from sklearn.tree import DecisionTreeRegressor
################################
### ADD EXTRA LIBRARIES HERE ###
from sklearn import metrics
f... | [
"botezatpv@gmail.com"
] | botezatpv@gmail.com |
ac97a83825c0b8ba008191001b6326f46282b0a8 | 5647950a195e5474b8d8a21f34654d9fd7c6cd6b | /ControlStation/SimpleTeleOp.py | 4c7845a5152c1361953c65c66d1871cda47e3a32 | [
"MIT"
] | permissive | buoyancy99/CalRover | 38e389e0b9da647307334ca6cd8a64b87aa299f6 | c25920b0e4e33e8b5912faeb8950970a61e93bfb | refs/heads/master | 2020-04-22T13:50:08.127811 | 2018-05-23T17:28:33 | 2018-05-23T17:28:33 | 134,224,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | import socket
import cv2
import numpy as np
import sys
def nothing(x):
pass
TCP_IP = '107.77.75.66'
TCP_PORT = 5005
BUFFER_SIZE = 1024
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((TCP_IP, TCP_PORT))
# Create a black image, a window
img = np.zeros((300,512,3), np.uint8)
cv2.namedWindow('image'... | [
"mentalchen@gmail.com"
] | mentalchen@gmail.com |
a16f4ccd8b245bdbb8bf5ab9769f24f7a4c598e1 | 6fd3a7c98543145c107b6644b3fbad7775cd1b16 | /hlf-deployment-prod/app/node_modules/node-expat/build/config.gypi | 1cac7a26db45b82542b88b2c58fd31620b6e1f73 | [
"MIT"
] | permissive | genrich9d/GKProject | 147b802ed58bf7e482712f86be454cb469adac9c | a0d1cbf0b968ee7c8fcadc0d8ddff19122fed90a | refs/heads/master | 2023-03-18T02:41:10.943083 | 2020-04-22T13:50:29 | 2020-04-22T13:50:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,075 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"debug_devtools": "node",
"debug_http2"... | [
"savitri.sonnad@inetframe.com"
] | savitri.sonnad@inetframe.com |
d6c6ef41a93ddf5071425f220a32d513faabedcb | d4a5462b2cd2eff99da6ad5147b5423c819ae731 | /1035.py | 17ec547190913baa9f8a7082b65a74d1eeb678cf | [] | no_license | Rafesz/URI_solutions_py | 3a61e6b0b571a03857f1c4efb54546edb2a0fb6a | 62a9f8227523e409afa9d506df66516ef9b48079 | refs/heads/main | 2023-08-11T20:55:04.267913 | 2021-09-21T22:25:50 | 2021-09-21T22:25:50 | 402,085,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | # Leia 4 valores inteiros A, B, C e D. A seguir, se B for maior do que C e se D for maior do que A, e a soma de C com D for maior que a soma de A e B e se C e D, ambos, forem positivos e se a variável A for par escrever a mensagem "Valores aceitos", senão escrever "Valores nao aceitos".
# Entrada
# Quatro números i... | [
"noreply@github.com"
] | noreply@github.com |
591897413cfedd971e1f5fd6e91cc59b6dcc9383 | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /homeassistant/components/cast/helpers.py | c6a92c21fb462790c9a937b728dc7784cd8ac5ec | [
"Apache-2.0"
] | permissive | home-assistant/core | 3455eac2e9d925c92d30178643b1aaccf3a6484f | 80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743 | refs/heads/dev | 2023-08-31T15:41:06.299469 | 2023-08-31T14:50:53 | 2023-08-31T14:50:53 | 12,888,993 | 35,501 | 20,617 | Apache-2.0 | 2023-09-14T21:50:15 | 2013-09-17T07:29:48 | Python | UTF-8 | Python | false | false | 12,912 | py | """Helpers to deal with Cast devices."""
from __future__ import annotations
import asyncio
import configparser
from dataclasses import dataclass
import logging
from typing import TYPE_CHECKING
from urllib.parse import urlparse
import aiohttp
import attr
import pychromecast
from pychromecast import dial
from pychromec... | [
"noreply@github.com"
] | noreply@github.com |
8461e2f548998a35f94100eb6fdd0f429b1d5ab8 | c68268657c1a94c09271a124b200b0aeb85bb05e | /angulardjangorest/angular/views.py | 2fc517fe4100318c5e1a5d13e2a29905c476cc33 | [] | no_license | photonkhan/angulardjangorest | 146960801c8fdab924c4012271075a04c1379d91 | 3357066ab094ae152b138a506f3e2d41588ecf68 | refs/heads/master | 2022-12-12T02:09:56.248353 | 2018-07-25T13:12:39 | 2018-07-25T13:12:39 | 142,123,874 | 0 | 0 | null | 2022-11-17T05:58:28 | 2018-07-24T07:49:54 | HTML | UTF-8 | Python | false | false | 278 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render
# Create your views here.
def index(request):
context = {
'header' : 'Angular with Djano Rest API'
}
return render(request, 'angular/index.html', context)
| [
"you@example.com"
] | you@example.com |
aed096f0fa853f4bd7cb572ae62823a68425cc61 | 0a980a0ee82e702fb49082b94013cd69674b6260 | /resume-codewars/fav_lang.py | 6492d1d3668f1ff2db9fe09f64031e784163456a | [] | no_license | avtokit2700/resume | 3578ee06ccce826e5b13dd1d1e982f720dc45dc4 | 237f3373b2e8fff141f7f0f69c6492f414156654 | refs/heads/master | 2021-01-17T17:26:26.833357 | 2017-08-05T22:36:10 | 2017-08-05T22:36:10 | 82,938,342 | 0 | 0 | null | 2017-03-25T21:32:44 | 2017-02-23T15:01:20 | Python | UTF-8 | Python | false | false | 301 | py | fav_lang = {
'jen': 'python',
'sarah': 'c',
'edward': 'ruby',
'phil': 'python',
}
must = ['jen', 'vlad']
for m in must:
if m in fav_lang.keys():
print("{}, thanks for your voice".format(m.title()))
else:
print("Hey " + m.title() + ' you must voted!') | [
"noreply@github.com"
] | noreply@github.com |
d29f521a654b15c312751d8f72d1ec6c1fa0ff3d | d0081f81996635e913b1f267a4586eb0bfd3dcd5 | /tests/unit/dataactvalidator/test_fabsreq4.py | 489d9acbfbffa7cd67a5f92be51975de4852decc | [
"CC0-1.0"
] | permissive | fedspendingtransparency/data-act-broker-backend | 71c10a6c7c284c8fa6556ccc0efce798870b059b | b12c73976fd7eb5728eda90e56e053759c733c35 | refs/heads/master | 2023-09-01T07:41:35.449877 | 2023-08-29T20:14:45 | 2023-08-29T20:14:45 | 57,313,310 | 55 | 36 | CC0-1.0 | 2023-09-13T16:40:58 | 2016-04-28T15:39:36 | Python | UTF-8 | Python | false | false | 1,561 | py | from tests.unit.dataactcore.factories.staging import FABSFactory
from tests.unit.dataactvalidator.utils import number_of_errors, query_columns
_FILE = 'fabsreq4'
def test_column_headers(database):
expected_subset = {'row_number', 'business_funds_indicator', 'correction_delete_indicatr',
'u... | [
"Burdeyny_Alisa@bah.com"
] | Burdeyny_Alisa@bah.com |
ff6750998ace4ef5d00078ea55ba213c8bdec0e3 | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-bcs/huaweicloudsdkbcs/v2/model/dimension.py | cd981259ff98407818c27a6f0bc3680ff3fc3da4 | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,440 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class Dimension:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attri... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
84c1e7300fa229fc4c6af81029f8c681e97cf881 | 182fce54fdaa79a05a6771dc537305f348650913 | /src/billing_calculator.py | 0070b60e6bd192dca0c9a2570e61388052c9b55e | [] | no_license | energy-army-knife/hack-the-electron-a | aa69f85ef666a711714132ce589d0dc0716e9d9a | cbd487608383f2ec619a933a7d628725cd604aff | refs/heads/master | 2023-03-13T20:55:49.089851 | 2021-03-24T13:35:39 | 2021-03-24T13:35:39 | 351,020,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,734 | py | import pandas as pd
from electron_django import settings
from src.data_loader import TariffPeriods, TariffDataLoader, PowerDataLoader, MetersInformation
from src.data_models import TariffCost, TariffType, HourTariffType
from src.exceptions import TariffHoursException
from src.time_peak_type_calculator import TimePeakT... | [
"mfatimamachado13@gmail.com"
] | mfatimamachado13@gmail.com |
ba4cb1ebbd0bd1a3353a936b7ffabee94f7f78a6 | 9ccc18775bb6e33873c6f53ee4416ce372935769 | /python_script/script/script.py | d85e37370582a21b9c418f6cde15ede6395588af | [] | no_license | raghavverma190/GreenhouseGasEmissions | fb5c75c974437d747ef6883f1bb7564dab78b5e5 | 1f87e0a843223f114d8ab57003910428caadf0c0 | refs/heads/main | 2023-07-17T06:13:50.439618 | 2021-08-13T04:50:31 | 2021-08-13T04:50:31 | 395,290,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,195 | py | import json
import csv
from collections import defaultdict
import pandas
import pandas as pd
import numpy as np
class GasEmissions:
def __init__(self,FILE_INPUT_CALL):
"""
File input file name is initialised
:param FILE_INPUT_CALL:
"""
self.FILE_INPUT= FILE_INPUT_CALL
... | [
"raghav.verma190@gmail.com"
] | raghav.verma190@gmail.com |
a86d41080f7599c1ab7e74fb8152208371ace868 | e98b2b1259ff946612ea804ee3512821416b5c90 | /src/flask/app/graph/channel/data.py | 7557b608801e6b2f419e18768dbe958528645b7f | [] | no_license | duke79/alligator | 2e58b426e38aa44a5325a910ec9151bf2ea271d1 | 54e699f35b436b370b14e429f8bf072256bccfd5 | refs/heads/master | 2023-03-08T19:42:46.440032 | 2018-10-13T07:17:44 | 2018-10-13T07:17:44 | 171,137,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,777 | py | import feedparser
from sqlalchemy.exc import DatabaseError
from app import db_session
from app.data.config import Config
from app.data.mysql import MySQL
from app.data.tables.article import Article
from app.data.tables.channel import Channel
from app.data.tables.channel_categories import ChannelCategories
from app.uti... | [
"pulkitsingh01@gmail.com"
] | pulkitsingh01@gmail.com |
4c45d226e473cbf5a897adaf78f7abab91310417 | d1c31f9fcf6cc1c0e109e417ed8f30238529daa5 | /tasKing_api/tasks/migrations/0002_teammember.py | b34752e36bd281ac85e130d678af23def79d93b9 | [] | no_license | divyashreedivya/TasKing-api | 5c7f25aff506a5dba340c45e829a962183bba07a | c23e8796d3ca598346aeb6e14db6a55f4b00bc1d | refs/heads/main | 2023-08-14T21:29:58.134791 | 2021-09-24T20:21:26 | 2021-09-24T20:21:26 | 410,091,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 853 | py | # Generated by Django 3.2.7 on 2021-09-23 20:48
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('tasks', '0001_initial'),... | [
"divyamanipal01@gmail.com"
] | divyamanipal01@gmail.com |
dfc2a6b2776b3db293b2e9262e7c7becdd1e1e12 | 369c041097deb83c41b5500f2915d4f868c2404f | /task_2/app.py | 386654df63fd1f717ab878fcf42e6427ee64ea10 | [] | no_license | Ternavskyi/summer_school | 602cef172dbd9e16e7b17c615a614dbf2ce94194 | 5c8e3ead4ee592a91ca5e640d85163a7b5c44812 | refs/heads/master | 2021-01-20T18:47:47.412812 | 2016-07-14T03:25:56 | 2016-07-14T03:25:56 | 62,992,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,368 | py | import random
from bottle import default_app, route, run, view, request, response
from models import Message
YES_LIST = [
"yes",
"affirmative",
"amen",
"fine",
"good",
"okay",
"true",
"yea",
"all right",
"aye",
"beyond a doubt",
"by all means",
"certainly",
"definitely",
"even so",
"... | [
"ternavskyi.roman@gmail.com"
] | ternavskyi.roman@gmail.com |
e566806dd954cb8355edee63eeff20ed396c643b | a0a3b289d8e86f2da499e0283bc87a33bf3b7730 | /site/site1/settings.py | e20e00946cc815a26932621decd30bd72feda2dc | [] | no_license | v-rudin/blog | aa636050af1aa9b291b3065b92e820196880868d | fead80994fb7a24f6475550c384c72c635446156 | refs/heads/master | 2020-04-05T11:54:39.140637 | 2018-11-09T12:01:07 | 2018-11-09T12:01:07 | 156,849,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,165 | py | """
Django settings for site1 project.
Generated by 'django-admin startproject' using Django 2.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# B... | [
"ap@progm.ru"
] | ap@progm.ru |
2f4f00b6691d1c4423b52d21af57d2756cc78463 | 0aa1a16c136ceb0afe10ec1094282deb27128de4 | /Udacity - FSND/projects/01_fyyur/starter_code/config.py | 6a943e5894fe3301db01f1b4912a9ccfdcfc7d7e | [] | no_license | linahhamdan/courses | 36013ea28b8ccbafac8e756223574e68ad08f9e4 | 47c2d01d5483266bd21b49b42559f79139be297d | refs/heads/main | 2023-01-12T00:21:24.891220 | 2020-11-20T14:02:46 | 2020-11-20T14:02:46 | 302,576,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | import os
SECRET_KEY = os.urandom(32)
# Grabs the folder where the script runs.
basedir = os.path.abspath(os.path.dirname(__file__))
# Enable debug mode.
DEBUG = True
# Connect to the database
class DatabaseURI:
DATABASE_NAME = "fyyur"
username = 'postgres'
password = ''
url = '127.0.0.1:5432'
S... | [
"linah.hamdan@kapsarc.org"
] | linah.hamdan@kapsarc.org |
c3b8845978fac8cfa735af881c0a55ce00ccf926 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_326/ch6_2020_03_09_19_29_35_692924.py | 62c78804fbf0b43e0866b1d8788774568a3b42ba | [] | 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 | 134 | py | def celsius_para_fahrenheit(celsius):
temperatura_equivalente_em_F = (celsius * 9/5) + 32
return temperatura_equivalente_em_F | [
"you@example.com"
] | you@example.com |
6b332b79588d1f2cabf045f710391aad9fa34745 | c9f7c5515a8d6344d08d97e53b5733fb64f9dd76 | /server.py | 5003fccbb339841394508e019116025e74988e55 | [] | no_license | jim1406g/get_datetime_server | be8b6533628cffbc721947bc3fda0f5d8b1ee87f | 9e69c2dc7017283f4cb3574a19e9113c122ac2ae | refs/heads/master | 2023-01-22T05:40:54.699219 | 2020-11-30T15:45:23 | 2020-11-30T15:45:23 | 317,270,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | import datetime
import pytz
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return str(datetime.datetime.now(pytz.timezone("Europe/Moscow")))
if __name__ == "__main__":
app.run(host='0.0.0.0')
| [
"mzhihalkin@vp.ru"
] | mzhihalkin@vp.ru |
8cb8230380b4d1ad1f573c320fd5ec262f0c769e | 493605f0adbd9248d7080fcef42a4bc312621e4b | /procgen.py | b24f012da6baa5bddf61ec555c6c416b508fa36b | [] | no_license | wlpj2011/test-roguelike | bfe2ff68c9c47c1b171f5519d49b4ca31ce24c3d | 5163214d84c4d0312762da9078f9a08bd89dad8e | refs/heads/main | 2023-06-23T09:56:20.264888 | 2021-07-23T00:52:12 | 2021-07-23T00:52:12 | 385,398,386 | 2 | 0 | null | 2021-07-21T17:28:36 | 2021-07-12T22:19:58 | Python | UTF-8 | Python | false | false | 5,695 | py | from __future__ import annotations
from typing import Dict, Iterator,List,Tuple,TYPE_CHECKING
import random
import tcod
from game_map import GameMap
import tile_types
import entity_factories
if TYPE_CHECKING:
from engine import Engine
from entity import Entity
max_items_by_floor = [
(1,1),
(4,2),
]
... | [
"wlpj2011@gmail.com"
] | wlpj2011@gmail.com |
7107117c90a0bd9e5cccfdb44d57cab3c2348581 | 8a57b4213435baa0c4431d77d0daacfaf97b8f87 | /lab01/lab01/settings.py | c86a2bde46c5341e8d677573b0b1d303255a2330 | [
"MIT"
] | permissive | jvazkback/TECSUP-DAE-2021-2 | eaaa3e2ba1c5aad8adc90ea8dae40120f7ea2fd4 | 28af4ebc1b9428f3ec9124fc2ac057d4866d46c9 | refs/heads/main | 2023-07-18T01:37:03.152916 | 2021-08-28T21:43:59 | 2021-08-28T21:43:59 | 397,650,863 | 0 | 0 | MIT | 2021-08-28T21:44:00 | 2021-08-18T15:31:45 | Python | UTF-8 | Python | false | false | 3,236 | py | """
Django settings for lab01 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 pathlib i... | [
"jvazkback@hotmail.com"
] | jvazkback@hotmail.com |
333f777a6bacfac3e41306924dcc6a4b415c5aa8 | c7e441f1757aea99d85c1bed199b6d2151868ab3 | /venv/lib/python3.6/sre_constants.py | d4f7ed8c0a1b2ca669d3b2395ae792db58b2d85b | [] | no_license | visarad/REST-API-WITH-FLASK | 428f3a83d6529c8680d79dc7157c2e83e3068d49 | 7231823a511b9783376c95155aa37a59d1897b18 | refs/heads/master | 2021-04-15T16:18:51.104640 | 2018-03-23T11:03:49 | 2018-03-23T11:03:49 | 126,468,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | /Users/pararthi/anaconda/lib/python3.6/sre_constants.py | [
"visarad@github.com"
] | visarad@github.com |
c728ae87bedf61ae87a3b9715df359479018fde4 | a08cbd5e9b4e4a037deaaae1749ed4dc55c79661 | /test/IECoreMaya/ObjectDataTest.py | b61ac51f2f90642c99a252ee1471e27d8838e253 | [] | no_license | victorvfx/cortex | 46385788b12dae375c1a5ade26d8f403d2dbccff | deb23599c8c69eac5671e59fe1a8ca0d5e943a36 | refs/heads/master | 2021-01-16T23:11:39.139147 | 2017-06-23T12:39:41 | 2017-06-23T12:39:41 | 95,709,763 | 1 | 0 | null | 2017-06-28T20:40:12 | 2017-06-28T20:40:12 | null | UTF-8 | Python | false | false | 3,927 | py | ##########################################################################
#
# Copyright (c) 2011, Image Engine Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistribu... | [
"john@image-engine.com"
] | john@image-engine.com |
1b9b039dbe5f42cbf9f670db513e766d387099dd | 46b8db1e9931a63f144662667c291f7af69a9309 | /AI/Machine learning/CVOXPT.py | a20f7aa1ff3ba66fb94a5a5f636946eea662c78f | [] | no_license | tranbaohieu/MachineLearningBasic | 2106af285ed9b9866b0748fde03fe70de3cb9169 | 40e96b1b360df51ee488e179f2e4055e85975ffb | refs/heads/master | 2020-05-19T22:09:53.455995 | 2019-05-06T17:19:28 | 2019-05-06T17:19:28 | 185,240,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | from __future__ import print_function
import numpy as np
import matplotlib.pyplot as plt
from scipy.spatial.distance import cdist
np.random.seed(22)
means = [[2, 2], [4, 2]]
cov = [[.3, .2], [.2, .3]]
N = 10
X0 = np.random.multivariate_normal(means[0], cov, N) # class 1
X1 = np.random.multivariate_normal(means[1], co... | [
"hieubkls98@gmail.com"
] | hieubkls98@gmail.com |
ae1c13e88a5f86f23ba97c65f55bbb3d0a5e5c20 | ed411cf508b81d2fb314fd1a1b574dc76b865d50 | /Cat.py | 36cb04730366d6ab32b2d975a9cd2f3373ac641d | [] | no_license | sriharivaleti/Python3_July2020 | 8e767428082f79af1951a285e2609ac391ae6743 | 52ad3310a4cb61746ff5f10996b3cd506507bda5 | refs/heads/main | 2023-03-05T11:16:39.724081 | 2021-02-15T06:39:59 | 2021-02-15T06:39:59 | 338,987,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | class Cat:
species = 'mammal'
def __init__(self, name, age):
self.name = name
self.age = age
# 1 Instantiate the Cat object with 3 cats
cat1 = Cat("sree",34)
cat2 = Cat("hari",32)
cat3 = Cat("jyo",31)
# 2 Create a function that finds the oldest cat
def get_oldest_cat(*args):
... | [
"noreply@github.com"
] | noreply@github.com |
48f2bac777a5668df5a8aab9fac523b3b248a256 | 7f1a6dccd135776de1725e0c7a56f6348c8c3df0 | /recreationalnuclearbombs.py | beab6d4982f07b55f82fbdb520b628ffb163ae59 | [] | no_license | CorwinAnsley/dumber_doom | 7ca2195a208dd61052fa6026e93e1b8d1797bab1 | 9f8389165c0acd07f18ce0f778766e58b95d35ea | refs/heads/master | 2021-10-13T12:49:35.661811 | 2017-10-29T14:04:56 | 2017-10-29T14:04:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,601 | py | import requests
import json
import math
import random
import aim_at_point
portvariable = 6001
def Aimbot(target, list_pl, shots):
from pprint import pprint as pp
connect = "http://localhost:%s/api/player" % portvariable
r = requests.get(connect)
Xtarget = []
Ytarget = []
Targetlist = []
... | [
"noreply@github.com"
] | noreply@github.com |
6df2122e03a63d0522c49643951d554e7116ea72 | 7bb81c60a3e320b0dbbbb49ec68ae5b559b29618 | /fun/bin/pbr | b86cad08914aab4ac6723c5e4365b9ac7922bb35 | [
"MIT"
] | permissive | vishaljain3991/flask_oauth_example_template | 594714d7507057e5008f167f94aa451b288bfe22 | 50c73063178296de45c678f6a788ee63010b5a7c | refs/heads/master | 2021-01-10T01:30:29.841247 | 2016-03-18T11:34:42 | 2016-03-18T11:34:42 | 54,195,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | #!/home/vj/flask-oauth-example-master/fun/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from pbr.cmd.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"vishaljainthebest@gmail.com"
] | vishaljainthebest@gmail.com | |
97e8c0838b69c13d3f904330d4219b2d235fae39 | a3c8d3e3f0d7704c6e0fcebe1667ae5cbfc9510f | /pygments/lexers/nit.py | ba2670868d5b409e4ffa17e420e44bbda0fcfad5 | [
"BSD-2-Clause"
] | permissive | sglyon/pygments | 3946518ac79194394c8dbef1c28f5de9a99e8955 | b89c13fd95362eb9197a4c7e893cbaced3514eee | refs/heads/master | 2021-05-30T02:55:31.500066 | 2014-10-01T15:44:15 | 2014-10-01T15:44:15 | 24,683,763 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,747 | py | # -*- coding: utf-8 -*-
"""
pygments.lexers.nit
~~~~~~~~~~~~~~~~~~~
Lexer for the Nit language.
:copyright: Copyright 2006-2014 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from pygments.lexer import RegexLexer, words
from pygments.token import Text, Comment, Ope... | [
"georg@python.org"
] | georg@python.org |
6c3946f36f0aed60cdcca6cdfad7f2b5c603db1b | 0e48d3bfc41ad48bc4b87e89d57d3da38c368c3a | /02day/Func15.py | 1fbe1a7c3dc1bca1a05abe05442f89dfc0c23150 | [] | no_license | pdm2017/PySrc | 08faeac90d0da5a022340723721e4a0f11d9d570 | 8da7255a7b4fe010ddb4443e654579492af882b8 | refs/heads/master | 2022-02-19T23:54:57.807733 | 2019-09-27T06:02:10 | 2019-09-27T06:02:10 | 208,995,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | # Func15.py
def pow(x): return x**2
a = [1,2,3,4,5,6,7,8,9,10]
b = list(map(pow,a))
print(b)
c = list(map(lambda x:x*100,a))
print(c)
d = [ i + 100 for i in a ]
print(d)
# a에서 짝수값만 제곱값, 홀수는 그대로 --> LC 형태
e = [ i**2 if i%2==0 else i for i in a ]; print(e)
# a에서 짝수값만 제곱값, 홀수는 그대로 --> map 함수
f = list(m... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.