blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4dabbe95f411c3f366cd132317485e112c08b660 | d1d154e30e9f3e8c68bf785909a5f8ca9ff86e03 | /Python/note/图像处理/test/bitwise.py | 48cf57a81fed6935abb01569d19752607bc7294c | [] | no_license | Mecoly/note | aae522123acdba8ee785ed7baaee7a2b7df2da26 | e82f933a7a20bedc30cc0e56006405e4a33f9c90 | refs/heads/master | 2023-04-23T13:53:35.399635 | 2021-05-10T09:46:31 | 2021-05-10T09:46:31 | 286,954,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | import cv2 as cv
#图片读取
img1 = cv.imread('Trackbar_Color.png')
img2 = cv.imread('blending.jpg')
# 主图的logo范围图片部分
rows,cols,channels = img2.shape
roi = img1[0:rows, 0:cols ]
# logo和取反
img2gray = cv.cvtColor(img2,cv.COLOR_BGR2GRAY)
ret, mask = cv.threshold(img2gray, 10, 255, cv.THRESH_BINARY)
mask_inv = cv.bitwise_not(mask... | [
"48834713+Mecoly@users.noreply.github.com"
] | 48834713+Mecoly@users.noreply.github.com |
e4054e3a7097e2df819383ffeb0765121f09cd18 | 33e78c2f65c7f6f0b0d448787ad7df2557dec774 | /mysite/views.py | c87b994bed0c80da315730170b53aeb2103103f6 | [] | no_license | hjf12402/mvote | 086c8a5a50bb82fd0d1d35fdd726c730e719cef4 | 615c03344cbed562d81dc8215686b922d2fb729a | refs/heads/master | 2022-12-11T07:47:00.708907 | 2019-07-01T13:52:22 | 2019-07-01T13:52:22 | 194,530,367 | 0 | 0 | null | 2022-12-08T05:49:55 | 2019-06-30T15:15:06 | Python | UTF-8 | Python | false | false | 3,930 | py | #未解决ajax刷新局部代码后投票函数失效问题!!!!
from django.shortcuts import render, redirect
import datetime
from .models import PollItem, Poll, Profile, VoteCheck
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from django.http import Http404, HttpResponse
from django.contrib import messages
from django.contri... | [
"492710346@qq.com"
] | 492710346@qq.com |
2a054dda5938df39f5dcdbd92bb0b4ea2a6b8503 | abce7e5e587e69342c3ef19bd0d6ccee270a85cc | /turtle/catandmouse/catandmouse.py | 23438dee6a416a7f8d4f78b46c0143a9cfe211d9 | [] | no_license | ruazjy/raspberry_pi | 184ff234d13e5b287bbfd21d2936b12982ac737f | f60718d73232b169db58501920a0aafa40878eb6 | refs/heads/master | 2020-06-10T08:53:21.306582 | 2019-09-05T09:01:29 | 2019-09-05T09:01:29 | 193,626,340 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,967 | py | import turtle
import time
# Python程序由一系列命令组成并从上到下执行
# 可以通过循环和if语句控制程序
# 不必事必躬亲,通过导入模块
# 函数可以帮助重用代码,也可以使程序变得易于理解和维护
# 变量可以存储信息以便后面使用
boxsize = 200
caught = False
score = 0
# functions that are called on keypresses
def up():
mouse.forward(10)
checkbound()
def left():
mouse.left(45)
def right():
m... | [
"331182615@qq.com"
] | 331182615@qq.com |
35f673f2499226f1528d14ea822392bfa93ec288 | b0531384ca9944b8f7ed03ff5c6bd0f309348513 | /Code/Braille_Dictionary_Grade_2.py | c15392ac3812fca175d25726ec248c849edffedf | [] | no_license | Rajk0520/Portable_Braille | 9198f6509aee2e583210d34e6c15245b18c86615 | b27a274a649b910e19da579c7b6e13cedcb6b3d1 | refs/heads/master | 2020-05-14T20:05:31.122653 | 2019-03-21T19:50:25 | 2019-03-21T19:50:25 | 160,282,211 | 1 | 0 | null | 2018-12-04T02:09:47 | 2018-12-04T02:09:47 | null | UTF-8 | Python | false | false | 27,241 | py | # -*- coding: utf-8 -*-
"""
**************************************************************************************
* Braille Dictionary (GRADE 2)
* ================================
* This software is intended to convert english text into braille characters
* MODULE: Braille_Dictio... | [
"adityasingh3007@gmail.com"
] | adityasingh3007@gmail.com |
e00038dbf01aa55c77357fc630db17f81da0127f | c1125e2835829c6ed0f06d641142fb7b4e179132 | /project/visualization.py | f6ccd049de7124b92023b4a14e589f24992f3dcc | [] | no_license | chien-lung/DataScience_2018 | b3b41e9cd9a5deaadd17e8507fcb0b80dd576022 | dbb2a6ac9b695aafe6e2b9ba5a892387574b2514 | refs/heads/master | 2020-04-16T19:55:20.242523 | 2019-01-17T10:08:44 | 2019-01-17T10:08:44 | 165,879,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,104 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jan 8 21:35:09 2019
@author: Lung
"""
import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
from sklearn.preprocessing import LabelEncoder, Imputer
from sklearn.model_selection import train_test_split
#filename = '2018matchdata.csv' #... | [
"e125313530@gmail.com"
] | e125313530@gmail.com |
4c2339ae7981418077a33d7acdc0e31910af011f | e6f5e2f1238cd38e6a524a38111dd36de10d911e | /main.py | 085943c7193c8c940aedb4e9713d6c89711ed39b | [] | no_license | prantikpariksha/PythonHomework | 650787778192b3a8a8b809e6a6b115b17e39a4ec | 86b942526cdd97053d1b1c45bb7986919cd7f8fa | refs/heads/master | 2020-04-19T09:08:14.699533 | 2019-02-04T10:57:33 | 2019-02-04T10:57:33 | 168,100,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,719 | py | #This file contains information about few songs those are my favourite
Artist="Bob Marley" #This is the singer name
Title="No Woman No Cry" #This is the Song name
Album="Raga Music" #this is the Album name
TrackLength=7.58 #this is the duration... | [
"noreply@github.com"
] | prantikpariksha.noreply@github.com |
5bb104e3ff4c5531bec4dfe4204d4e626ef4dc32 | e86897d5780bc80c0746f21233b6f93f88f8016a | /PythonCode_Practice2/function201~210.py | 937a45542f6db0ddefa41fa331c55a91446500b8 | [] | no_license | alstndhffla/PythonCode_Practice | 8e6e030b75d62e4363a1041087fe73138d9c8392 | e664802b9a5353cda1d44e929330930be125d785 | refs/heads/master | 2023-04-14T00:17:56.830120 | 2021-04-13T04:55:37 | 2021-04-13T04:55:37 | 344,238,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | # 201
def print_coin():
print("비트코인")
# 202
print_coin()
# 203
"""
100번 호출
"""
print("-----------")
for i in range(1, 101):
print_coin()
# 204
print("-----------")
def print_coins():
# for i in range(1, 101): # 이것도 사용가능
for i in range(100):
print_coin()
print_coins()
# 209
print("---... | [
"alstndhffla@gmail.com"
] | alstndhffla@gmail.com |
848896a09b323f63b826a5d7d1a101d443ee8e97 | eba3c6eb8d5ae18f3bcbb39df9b391a3d4a40ebd | /src/pod.py | 0c5a188691b12a8dcdfcdd05b25d3cc6f487bd37 | [] | no_license | aleefrank/VPP-Simulator | 294381d5dafe6316dc21180683110081bfbb91ca | 44f2663c905d6c6ecdd098d05a74a9d66fb31650 | refs/heads/main | 2023-03-23T15:50:31.444004 | 2021-03-13T11:11:19 | 2021-03-13T11:11:19 | 347,332,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,558 | py | from src.enums import ModelResolveMethod
from src.load import LoadT3, LoadT2
from src.profile import Profile
from src.pv import PV
from src.wind import Wind
from src.pod_solver import Solver
from src.storage import SimpleStorage
import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
sns.set()
class... | [
"alessandro.f95@live.it"
] | alessandro.f95@live.it |
259cd5eaaa20071850043e7d7215f3ce6aebb6c9 | 02447b317690827683dc329153e74f1599e4db92 | /wazimap_ng/general/views.py | cf915a8c7c7477aca9df7290d0a6c06d7c62058d | [
"Apache-2.0"
] | permissive | neoromantique/wazimap-ng | fc8ca6704851db8d9941d3bcb9c06e367c2e1e94 | c19e9450655f5d404c60e2b4d214715ec8a0b1d9 | refs/heads/master | 2021-02-11T00:02:54.001820 | 2020-02-13T20:36:40 | 2020-02-13T20:36:40 | 244,431,358 | 0 | 0 | Apache-2.0 | 2020-03-02T17:23:51 | 2020-03-02T17:23:50 | null | UTF-8 | Python | false | false | 1,482 | py | from rest_framework.response import Response
from rest_framework.decorators import api_view
from ..datasets import models as dataset_models
from ..datasets import views as dataset_views
from ..boundaries import models as boundaries_models
from ..boundaries import views as boundaries_views
from ..utils import cache_dec... | [
"adi@openup.org.za"
] | adi@openup.org.za |
1a8c0082d7e1b3c37b764106167cf493af3e10c5 | 9188138de9e8b4e46750476de0e72472087ce4bf | /Student/mysql.py | c5493b626daea2b8bff8fe5082afa981ce18aecd | [] | no_license | Rjsetter/LearningPython | 91493a7b0faf02301d54ba0fb73a812611c35aa7 | 74c672e270f2280699aacd480cd13f0ebd60a40a | refs/heads/master | 2020-03-23T09:24:21.913141 | 2018-12-17T10:20:31 | 2018-12-17T10:20:31 | 141,385,712 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,978 | py | #!/usr/bin/python
#_*_ encoding:utf-8_*_
"""
Datetime:2018-7-28 20:14
Author:叶强
Version:基于mysql的学生管理系统 v1.0
"""
import pymysql, time
import datetime
def connect_db():
return pymysql.connect(host="127.0.0.1",
port = 3306,
user = "root",
password =... | [
"1039339929@qq.com"
] | 1039339929@qq.com |
fe0a66dc75df9851dd1126510d15ca89dad1ec91 | bcb4da89ab0513c095158ffc7a9a1b6a6bdfd435 | /app/routes.py | 5daa74e8a7400c72eb6c7749c3d639d877b51db4 | [] | no_license | marino2009/Flask | bec55230e0cba0c289b8252e2e92e528b5b9fdee | b94b1e7107e32124b21ce4edb3891332927d42eb | refs/heads/master | 2020-04-18T13:01:28.987967 | 2019-01-30T01:48:36 | 2019-01-30T01:48:36 | 167,551,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,947 | py | from flask import render_template, flash, redirect, url_for, request
from app import app, db
from app.forms import LoginForm, RegistrationForm, EditProfileForm
from flask_login import current_user, login_user, logout_user, login_required
from app.models import User
from werkzeug.urls import url_parse
from datetime impo... | [
"45363000+marino2009@users.noreply.github.com"
] | 45363000+marino2009@users.noreply.github.com |
d5c55ee89e6eaf5651c721d1759f24bff2d67de8 | d35b4e99e584abb052f6c6ee8e633ff80bbda990 | /backend/app/app/models/user.py | 5c028df7d1bab02675ee481f9d38f4a3126ddb52 | [] | no_license | montionugera/card_game | 09b0ecda5f7241ff01bd4981807f42c3c11e1592 | 9bd67e3c76258b598a5714e479982255088af700 | refs/heads/master | 2023-04-19T06:18:45.006573 | 2021-04-25T03:43:19 | 2021-04-25T03:43:19 | 361,054,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | from typing import TYPE_CHECKING
from sqlalchemy import Boolean, Column, Integer, String
from sqlalchemy.orm import relationship
from app.db.base_class import Base
if TYPE_CHECKING:
from .item import Item # noqa: F401
class User(Base):
id = Column(Integer, primary_key=True, index=True)
full_name = Col... | [
"montionugera@gmail.com"
] | montionugera@gmail.com |
645502244d8b5bd04e4b89886304985eb4e75872 | 93f122d1cc40eaf65d5be2257103b0d216b3601e | /skripte_klassifikation/tfidf_embedding_vectorizer.py | 329673725d5646a5964d615d8c53e660e8eaf9f5 | [
"MIT"
] | permissive | TimSchmittmann/ML2-Project | b1e4390e0f6d9ba3f86ad1f1dc58d3a2e2137255 | 7ad01366f2322018065efcae542ae75786b3c0ec | refs/heads/master | 2022-08-17T11:50:38.013327 | 2019-01-31T19:09:44 | 2019-01-31T19:09:44 | 154,804,149 | 0 | 0 | MIT | 2022-06-21T21:40:18 | 2018-10-26T08:43:20 | Jupyter Notebook | UTF-8 | Python | false | false | 1,055 | py | from sklearn.feature_extraction.text import TfidfVectorizer
from collections import defaultdict
import numpy as np
class TfidfEmbeddingVectorizer(object):
def __init__(self, word2vec):
self.word2vec = word2vec
self.word2weight = None
self.dim = len(next(iter(word2vec.values())))
def fi... | [
"tim.schmittmann@gmx.de"
] | tim.schmittmann@gmx.de |
073ead4492da0cd5742377f402f6dddb6d8260bc | 4eb5aeef510f827e864fe7beaf2ee52647663872 | /day14/删除文件.py | 9ce80500d2170d9034934fb1151d352797eaef57 | [] | no_license | Sunshine-Queen/Test | 5d7127cc356dc7b52a2e249ec0c609d601ef6951 | d36186d04de7076675f682f993b75f0797d64f86 | refs/heads/master | 2022-12-21T21:04:54.773926 | 2019-04-10T12:05:09 | 2019-04-10T12:05:09 | 157,209,473 | 0 | 1 | null | 2022-12-17T21:45:53 | 2018-11-12T12:22:04 | Python | UTF-8 | Python | false | false | 42 | py | import os
os.remove("heihei[复件].txt") | [
"1053710934@qq.com"
] | 1053710934@qq.com |
3e7c790c56f14ea782d02ca44526b8f07db60168 | f76bdfd886ce116fdfeea408d7251142ed73d7c4 | /dash/_validate.py | 76047242a6a08c325706708be192ed92f0639e4a | [
"MIT"
] | permissive | pikhovkin/dj-plotly-dash | 73a4a679472eddfbb56c44ca054040b64b6a57a4 | 25efb612ead04bf3564c25b994dc633929eec457 | refs/heads/master | 2023-08-10T22:08:30.363654 | 2022-05-03T12:23:56 | 2022-05-03T12:23:56 | 151,003,269 | 53 | 16 | MIT | 2023-09-04T20:56:53 | 2018-09-30T20:18:22 | JavaScript | UTF-8 | Python | false | false | 12,126 | py | import collections
import re
from .development.base_component import Component
from . import exceptions
from ._utils import patch_collections_abc, _strings, stringify_id
def validate_callback(output, inputs, state, extra_args, types):
is_multi = isinstance(output, (list, tuple))
outputs = output if is_multi... | [
"pikhovkin@gmail.com"
] | pikhovkin@gmail.com |
5efc50ceb6731db4235259a51c5915dd70f4ba85 | 1288ef00c7f77aa75c8d3281592dee6024a6115e | /Project 5.2 randomwalk GOOD part1.py | 1bed70a41dd3eba55571f6d790e2af0e1dc3398b | [] | no_license | SONGjiaxiu/CS-111 | 32ee85c6fcd28ba2e062e282f6df51bf206f0970 | b80e7d185745aeb1185300231c43c7a21004b996 | refs/heads/master | 2020-04-13T18:56:14.065602 | 2016-11-22T15:22:15 | 2016-11-22T15:22:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,088 | py | """ Taylor Heilman
Haley Nugent
Escaape function"""
import math
import turtle
import random
import matplotlib.pyplot as mpl
tortoise=turtle.Turtle()
def distance(x1,x2,y1,y2):
""" funciton to find the distance between the turtle object and the origin
parameters:
x1: x cordinate of first point
... | [
"noreply@github.com"
] | SONGjiaxiu.noreply@github.com |
d5b659372a216b999b788a1e5dbe6d3852e2a1f3 | 474525154a4e1d48ef5242d1f44164d05399b145 | /tensorflow_probability/python/experimental/distributions/mvn_precision_factor_linop_test.py | 47676d4d6f31be7ebf0b5ac98d233982286579c7 | [
"Apache-2.0"
] | permissive | svshivapuja/probability | 9855737790f74a39169688fbfec9671deef804d9 | af7ccb22d972329633530c3b754ed1f49472f6a7 | refs/heads/main | 2023-07-17T04:14:53.703622 | 2021-08-30T17:47:06 | 2021-08-30T17:47:06 | 400,983,015 | 1 | 0 | Apache-2.0 | 2021-08-29T07:51:29 | 2021-08-29T07:51:29 | null | UTF-8 | Python | false | false | 8,157 | py | # Copyright 2020 The TensorFlow Probability Authors.
#
# 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 o... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
794f3abbe9fca363cc78d142151697bd2f6917bf | 9bf5d10a4644ebb4b788233cae2e82ad9515d433 | /Bank/settings.py | c7b4ff3d587217be41a204660a47977d685de06f | [] | no_license | Mohitkashyap123/Bank | 2ea3d808406d1fa06a7a0e9e2a005d45dc53810f | 8f6d3b509a6945ba7eaecedc0fe5287bc769c8f6 | refs/heads/master | 2022-12-17T03:39:29.581970 | 2020-09-26T07:04:53 | 2020-09-26T07:04:53 | 276,882,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,121 | py | """
Django settings for Bank project.
Generated by 'django-admin startproject' using Django 3.0.6.
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
# Bu... | [
"mohitkashyap656@gmail.com"
] | mohitkashyap656@gmail.com |
2b66f779ad34d216561b67a4a62e5d69750079e3 | 869d917ef14fb8e4bb899a192903dd1f64028d2b | /train/train_street_view_regression.py | faa00a2a48b49ee081de9cbc395048edd88abcef | [] | no_license | andreiqv/rotnet_not_my | bbd7fadba9c2e000d324e931d4fddc95ad8e4e25 | ce0ea3f80aba263ae5fc54549c5d3d571d02ef59 | refs/heads/master | 2020-04-26T11:00:21.724905 | 2019-03-02T22:50:31 | 2019-03-02T22:50:31 | 173,502,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,469 | py | from __future__ import print_function
import os
import sys
from keras.callbacks import ModelCheckpoint, EarlyStopping, TensorBoard
from keras.applications.resnet50 import ResNet50
from keras.applications.imagenet_utils import preprocess_input
from keras.models import Model
from keras.layers import Dense, Flatten
sys... | [
"phxv@mail.ru"
] | phxv@mail.ru |
c1228f134d14c27af8d505faefe1a09d888286aa | 42f5eaf16bfd7076cb5a598cf2f239faa575f28b | /05-grpc-google-cloud-speech/python/google/ads/googleads/v1/enums/attribution_model_pb2.py | 3977838048d1c0fe49d068f669eb36d56bfbe38f | [] | no_license | jiriklepl/IMW-2019 | ab0e1c791a794ccf8a6a8d8d4e732c29acee134c | 921c85d3c8132114ad90db8deb52eb5ddc06c720 | refs/heads/master | 2020-08-28T13:29:15.087785 | 2019-12-15T17:12:24 | 2019-12-15T17:12:24 | 217,711,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 4,827 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads/v1/enums/attribution_model.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.prot... | [
"jiriklepl@seznam.cz"
] | jiriklepl@seznam.cz |
b69f0a2e498e5ca5ef4367126e3697b6e381c9fb | 564546e079bef8f6610a3c4cdff30fb2cea802bd | /scripts/delete_posts.py | 233f076cab9cb6de63cc11d0c72552efe5a6df91 | [] | no_license | santhi-nyros/Tastypie-django | 399dd55019b75b4e55a1ffbc9b6a34bd13d548aa | 55d48b5f14c248a4be07363d49ec157526d12994 | refs/heads/master | 2021-01-13T03:08:34.939942 | 2016-12-27T09:20:25 | 2016-12-27T09:20:25 | 77,442,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | # scripts/delete_all_questions.py
from datetime import timedelta
from django.utils import timezone
from api.models import Comment,Post
def run(*args):
print list(args)
if list(args):
comments = Comment.objects.filter(id__in=list(args))
print comments
comments.delete()
else:
print "empty list given."
| [
"santhi_nyros@yahoo.com"
] | santhi_nyros@yahoo.com |
a8b5ba72724f1f79ee0c9186191a238c4b463315 | 27a4208c86693ea1da9abd485e69f5db89c9dcf9 | /tests/irteusgl9-29_slime2-22_color.py | 8c9f0c5764c6af10ffccd86fd7e914fbf0538957 | [
"BSD-3-Clause"
] | permissive | Affonso-Gui/euslime | b70eec1766680cfbbb6fd94e22d52eb3494c4002 | cc457db9b839073fe95d01e93325afbe1f8fa996 | refs/heads/devel | 2023-01-23T21:59:58.582923 | 2022-12-22T10:34:07 | 2022-12-22T10:34:07 | 481,096,158 | 0 | 0 | BSD-3-Clause | 2022-05-12T07:52:30 | 2022-04-13T06:19:20 | Python | UTF-8 | Python | false | false | 84 | py | from irteusgl import irteusgl
class irteusgl_color(irteusgl):
USE_COLOR = True
| [
"guilherme.c.affonso@gmail.com"
] | guilherme.c.affonso@gmail.com |
bce6368fc8a866dd4bff9c0a271687bdaea848c1 | 5e014f95b49f376b34d20760c41f09bdca094247 | /flask_ide/auth/models.py | 2fe1fcdca8701cfe3cf45972adb5b95603c108eb | [] | no_license | jstacoder/flask-ide | 34ae304c211c7b263f37b2fcf0660ae76053c0a2 | 3890756c094b4b7872bad7d915e764e3e32dcb2d | refs/heads/master | 2023-02-12T11:22:24.412680 | 2020-07-20T17:21:55 | 2020-07-20T17:21:55 | 29,079,246 | 50 | 10 | null | 2023-02-02T07:17:40 | 2015-01-11T02:51:35 | JavaScript | UTF-8 | Python | false | false | 3,478 | py | from flask_xxl.basemodels import BaseMixin
from flask import url_for
from LoginUtils import encrypt_password, check_password
from sqlalchemy.ext.declarative import declared_attr
#import sqlalchemy to global namespace
from sqlalchemy import (
UnicodeText,func,Enum,UniqueConstraint,DateTime,Text,Column,Integer,... | [
"kyle@level2designs.com"
] | kyle@level2designs.com |
4fe043e3715e5b8438e6d887a92c5386dfd3f625 | 2044867096d52f2737102681dbb1baf6b05eeb97 | /Robot sense Localization.py | 256c0425096c8aaeed3e4ba1a4add37ba9af80cc | [] | no_license | ahmedfarid98/Robot_Localization | 4a42fbb81d83cdcca69a5d47ed2e8b1634343d81 | 4b618eef94e9e7dbb4785feb3dbfc4a34da3d791 | refs/heads/master | 2022-11-15T14:28:22.447170 | 2020-07-13T00:12:20 | 2020-07-13T00:12:20 | 277,865,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,555 | py | ############################### Robot Localization #########################
################# Example 1 ####################
#Modify the code below so that the function sense, which takes p and Z as inputs, will output the NON-normalized probability distribution, q,
#after multiplying the entries in p b... | [
"noreply@github.com"
] | ahmedfarid98.noreply@github.com |
c7f7d61a99c4af08ce8617ff03de87e252df99b8 | fd143272c9e958fa814692454ddb4a2eced2ab92 | /S4.2.py | 8bbe73c5cbcca0a385bda40a62e76e2558d95687 | [] | no_license | taowenyin/HelloSLM | febf3c4b4ce515da27ec307f8184d3b11e43a0dd | adced132a187c0e2d708ca9858535e8cebe664b4 | refs/heads/master | 2022-05-27T09:13:59.122326 | 2020-04-26T14:01:47 | 2020-04-26T14:01:47 | 259,044,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,413 | py | import numpy as np
from sklearn.naive_bayes import GaussianNB, BernoulliNB, MultinomialNB
if __name__ == '__main__':
data = np.array([
[1, 'S', -1], [1, 'M', -1], [1, 'M', 1], [1, 'S', 1], [1, 'S', -1],
[2, 'S', -1], [2, 'M', -1], [2, 'M', 1], [2, 'L', 1], [2, 'L', 1],
[3, 'L', 1], [3, 'M'... | [
"wenyin.tao@163.com"
] | wenyin.tao@163.com |
a98dbf4c9d9e1172ec1e655a3091b12b5af3dea1 | 795cdbb2192e069a808e59d9a8c098637e738ccb | /app/upload_file.py | 785974f435d3b9b36c82957c375bf85a7a246e8c | [
"MIT"
] | permissive | terrainthesky-hub/Human_Rights_Asylum_Seekers | ccc09b72caac0e4684b04a7bc10b7699d3e2833e | 5f2715c0fc4d2b48922d37527fa3860a20e9c72d | refs/heads/main | 2023-06-22T20:50:07.487285 | 2021-07-12T22:26:39 | 2021-07-12T22:26:39 | 385,399,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,692 | py | # All Required Imports
from fastapi import APIRouter
from fastapi import FastAPI, File, UploadFile
import pandas
import urllib.request
import logging
import boto3
from botocore.config import Config
import shutil
from pathlib import Path
from tempfile import NamedTemporaryFile
from typing import Callable
from botocore.e... | [
"lesley.t.rich@gmail.com"
] | lesley.t.rich@gmail.com |
00e199a0bfedc87514bce6f71c530ade6ab7313b | 299355248bb243427667e8192e93f378907150b9 | /envs/robots/minitaur.py | 81915b6897aa89b6de918f27ad285fe02c415e07 | [
"MIT"
] | permissive | FrankTianTT/pytorch_sac | d35f60579a31e0063ffbdba44e13db16de2e38ae | 770a632b25dc00419faef3ba672eb4982f950d2a | refs/heads/master | 2022-11-24T12:48:23.181504 | 2020-07-31T15:30:11 | 2020-07-31T15:30:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52,723 | py | # coding=utf-8
# Copyright 2020 The Google Research Authors.
#
# 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 applicab... | [
"franktian424@qq.com"
] | franktian424@qq.com |
ff1fa756c47a62759082ec1444f5f81912834726 | 7d81a7bba996c4257e47f039ab2524be0fe4bea4 | /theawesomeprice/first/MyAwesomeSite/PageScrape/migrations/0016_auto_20190612_2155.py | b009a44ddaf20d15af55d6720da5f461bd5ef174 | [] | no_license | KushSondhi/theawesomeprice | 38a43f9586a69636446de0b5d055db7a657073d9 | cddc36bf8a64db14dd801865b1c4a61f38c780c6 | refs/heads/master | 2022-11-05T14:08:27.967107 | 2020-07-05T00:30:35 | 2020-07-05T00:30:35 | 269,604,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | # Generated by Django 2.2b1 on 2019-06-12 16:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('PageScrape', '0015_auto_20190612_2153'),
]
operations = [
migrations.AlterField(
model_name='shopclues',
name='prod_... | [
"root@Kush.theawesomeprice.tk"
] | root@Kush.theawesomeprice.tk |
a6ca45275323f2440e95e9be09e07f653e6250ef | f9e4c2e9cd4a95dc228b384e2e8abadc9f1b0bda | /fratevents/settings.py | 22d7c2df522fd15d68bce7043a05c6b6fa4c9fe0 | [] | no_license | sanchitbareja/fratevents | 227adddd77c9a0055ccd74d5e0bf6f771790f8d3 | f50c8ccb40b8c9124b40e70d90c9190ef27a2fb7 | refs/heads/master | 2016-09-06T15:36:45.443412 | 2013-02-16T21:13:36 | 2013-02-16T21:13:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,645 | py | # Django settings for fratevents project.
import os, os.path, social_auth
if os.environ.has_key('DATABASE_URL'):
DEBUG = True
else:
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
('Sanchit Bareja', 'sanchitbareja@gmail.com'),
)
MANAGERS = ADMINS
if os.environ.has_key('DATABASE_URL'):
import dj_datab... | [
"sanchitbareja@gmail.com"
] | sanchitbareja@gmail.com |
c1d9e970d2aaa6133afb7698b6b7cd8027825d57 | bdc14f0cd470219fd62bd94d2025cccf553fd905 | /news/serializers.py | a3f7eeaca3c237ade0efe48adc55640633e6c5f6 | [] | no_license | mhsniranmanesh/sporthub-core | b12fb4f4dc180b7fb6b3808c488952623c9364ff | 57ef2caead9e7346a6b02e0d7df0f9b0bb8e5d2e | refs/heads/master | 2020-04-18T07:41:12.531413 | 2019-01-27T20:37:11 | 2019-01-27T20:37:11 | 167,367,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | from rest_framework import serializers
from news.models import News, NewsTag
class TagSerializer(serializers.ModelSerializer):
class Meta:
model = NewsTag
fields = ['name']
class NewsGetRecentSerializer(serializers.ModelSerializer):
tag = TagSerializer()
class Meta:
model = News... | [
"mhsn.iranmanesh@gmail.com"
] | mhsn.iranmanesh@gmail.com |
c629e0e16b3e985e068c51df8646c388991624fe | 193247e2d09b2ceb003a07630b93b671a88aaddd | /reference-implementations/air-c2-cop/AirC2Weather/Tools/MultidimensionSupplementalTools/Scripts/mds/tools/get_variable_statistics_over_dimension.py | e7a2e4598f3ba4900ee4b06accb210a6b2c51ecd | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Esri/defense-solutions-proofs-of-concept | 5044c062e0bca762b95bb7dbe6aa7b27170923f1 | b0d796e0c36f8ee3a17dfe57b19f8de930b08414 | refs/heads/master | 2023-08-28T10:18:33.364318 | 2022-10-26T15:27:46 | 2022-10-26T15:27:46 | 102,737,392 | 15 | 21 | Apache-2.0 | 2022-09-30T18:11:37 | 2017-09-07T13:00:26 | Java | UTF-8 | Python | false | false | 11,190 | py | # -*- coding: utf-8 -*-
import arcpy
import mds
import mds.messages
import numpy
import netCDF4
import os.path
#
# LIMITATIONS:
# > Attributes:
# Attribute values are copied wholesale from the original variable. Hence,
# if these values describe the the values in the new variable, i.e. as with
# valid_range, a... | [
"jbayles@esri.com"
] | jbayles@esri.com |
c785fc4d347223457e4644dfcffd8c08364a742c | 7700f9014b8f34a2ab9795ce51572dc0c311aae4 | /source/nc_data_tools/data_tools/reformat_raster.py | f9b5e02b9b55b38cb47f49377410edccbf10ef9c | [] | no_license | geoneric/nc_data_tools | 59c057476dfaaccc6a30348d7aecfc22d026c3dc | 553828836a616e307ca5d60d7f845e5e90ee2429 | refs/heads/master | 2021-01-11T22:46:47.139938 | 2017-06-02T08:25:35 | 2017-06-02T08:25:35 | 79,031,535 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | import rasterio
from .driver import driver_by_pathname
def reformat_raster(
source_raster_pathname,
target_raster_pathname,
override_crs=None):
target_driver = driver_by_pathname(target_raster_pathname)
with rasterio.open(source_raster_pathname) as source_raster:
profile = s... | [
"kor@jemig.eu"
] | kor@jemig.eu |
b4fbc50150b419753f6d6e59d82190c93aac1e3f | ef31e4986b524f73a1cc7300327f28d0e7fd1960 | /venv/Scripts/pyi-makespec-script.py | b5f8e8f7834bff66fba68d49892f0987cf07502d | [] | no_license | aurvandel/pdfcombine | a5348150ef8f5649c09c689f5f5966a045cd49b5 | 7900faa2c823005adc46ee1f434cebf575632d24 | refs/heads/master | 2023-04-15T08:13:26.170775 | 2019-06-05T16:22:51 | 2019-06-05T16:22:51 | 362,185,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | #!C:\Users\pwatkin1\PycharmProjects\pdfcombine\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'PyInstaller==3.4','console_scripts','pyi-makespec'
__requires__ = 'PyInstaller==3.4'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|... | [
"parkergw@gmail.com"
] | parkergw@gmail.com |
f0c8e4a7e7eedd40041bc507e96e9ebd1d7c55c0 | 3e713a67f370d1cc1ba0882159a03b673bd22f9a | /DataStructure and Alogorithms/[HACKERRANK]-cats and a mouse .py | d1edad7dc3eaf287f6fbb70ca5520a5f5a091571 | [] | no_license | s-abhishek2399/competitive-progamming--PYTHON | 739797ffea0b92cc2781559e7d4eed1d274678a6 | 29f9e63cfc05c01fa605c14fb8a3a55920296d43 | refs/heads/master | 2023-03-08T02:40:00.962109 | 2021-02-16T15:07:52 | 2021-02-16T15:07:52 | 328,732,345 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | n = int(input())
for i in range(n):
l=[int(x) for x in input().split()]
a = l[0]-l[2]
b = l[1]-l[2]
if abs(a)<abs(b):
print("Cat A")
elif abs(b)<abs(a):
print("Cat B")
else:
print("Mouse C")
| [
"s.abhishek2399@gmail.com"
] | s.abhishek2399@gmail.com |
bd374ed841b18e22b1108b9e8b2c12dac786d446 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/artificial/transf_Anscombe/trend_MovingMedian/cycle_30/ar_12/test_artificial_128_Anscombe_MovingMedian_30_12_100.py | ccc8235516ad5f149b1dacaabb8d05d4860cb57f | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 269 | py | import pyaf.Bench.TS_datasets as tsds
import tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "MovingMedian", cycle_length = 30, transform = "Anscombe", sigma = 0.0, exog_count = 100, ar_order = 12); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
fdb8fc4c86a750baa500c7ee03cbb74671b28f35 | ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f | /Sourcem8/pirates/minigame/RepairGlobals.py | 8027e62d79153e2436b77a14e3c56012b7f68cec | [] | no_license | BrandonAlex/Pirates-Online-Retribution | 7f881a64ec74e595aaf62e78a39375d2d51f4d2e | 980b7448f798e255eecfb6bd2ebb67b299b27dd7 | refs/heads/master | 2020-04-02T14:22:28.626453 | 2018-10-24T15:33:17 | 2018-10-24T15:33:17 | 154,521,816 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,950 | py | from pandac.PandaModules import Vec3, Vec4, Point3
class VariableContainer:
def __init__(self):
pass
AI = VariableContainer()
AI.goldRewardRange = (15, 35)
AI.goldRewardMultiplier = [
(14.0, 3.0),
(18.0, 2.5),
(24.0, 2.0),
(36.0, 1.6000000000000001),
(52.0, 1.3),
(72.0, 1.14999999... | [
"brandoncarden12345@gmail.com"
] | brandoncarden12345@gmail.com |
bfe99fb243985b17460e1aa571a5d05a72641616 | 91049acdda426be9c8f22de19500a40e366fef81 | /Client/modules/code_execution/code_execution.py | 0f9142463a8563cdc1280343d2605234888597f3 | [] | no_license | VictorAlonsoCM/Project_RAT | f3e55e9525e05175fa8502fa23f5bfd31ec4957f | 01d3079586ab08a92c8e7c9d2d1053710cac7505 | refs/heads/master | 2020-09-30T02:00:23.395275 | 2019-12-10T17:01:45 | 2019-12-10T17:01:45 | 227,172,602 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,603 | py | import os
import re
import subprocess
from modules.sockets.socket import Network
class CodeExecution:
def __init__(self, nt):
self = self
self.nt = nt
def dir(self):
cmd = "dir"
stream = os.popen(cmd)
output = stream.readlines()
data = ''
data = ''
... | [
"vacontrerasmeza@gmail.com"
] | vacontrerasmeza@gmail.com |
87c7524501017490341a86012b5d7364f04aacde | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_54/78.py | 1e0afea1344679e1079ae74d8bb54a891e5ad167 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | def gcd(a,b):
while (b != 0):
c = a%b
a = b
b = c
return a
def get_gcd(line):
g = line[0]
cnt = len(line)
for i in range(1,cnt):
g = gcd(g,line[i])
return g
def solve(line):
N = int(line.pop(0))
for i in range(0,N):
line[i] = int... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
0a9382e84f0c116e1aed9e3976dd20cc21d50e62 | 47e447b0b8e422656d95e6f8707d8e24a4c6fda3 | /mainplot.py | 108f8dfbc08b9b6edc480e0db5e92ec1f43328bb | [] | no_license | HareshKarnan/TD3 | 92b2911bbdccda027da670d2854048907ccc2fee | 0bf5949f59d4865c685ec6113208a49c63ed455a | refs/heads/master | 2023-04-10T20:51:02.648579 | 2021-04-02T14:45:52 | 2021-04-02T14:45:52 | 212,244,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,073 | py | import glob
import csv
import numpy as np
import matplotlib.pyplot as plt
import random
# files = glob.glob('logs/lambda_expts/*')
# files = glob.glob('logs/model_free/*')
# files = glob.glob('logs/fwd_inv_model/*')
files = glob.glob('logs/fwd_model/*')
def extract_expt_data(files):
data = {}
for fileNameful... | [
"haresh.miriyala@gmail.com"
] | haresh.miriyala@gmail.com |
767c0f1bf81724fc490d700d2e61919694707e07 | 823dd69093200d01995c4067ed1ec87194246d40 | /tests/unit/gapic/bigquery_reservation_v1/test_reservation_service.py | 8d356f570ac7130a9f2e26e6ec371238fe0143bf | [
"Apache-2.0"
] | permissive | plamut/python-bigquery-reservation | 910c0a5bf70f82968f3db91f3ef1d18270a84548 | 27b256440b2565369c900cd4728e38676f82fcfe | refs/heads/master | 2023-07-15T05:17:15.137418 | 2021-08-13T15:28:12 | 2021-08-13T15:28:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238,549 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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... | [
"noreply@github.com"
] | plamut.noreply@github.com |
2ee64697c9d8f5517741bf4016974f37a4f9464d | 5e5ce8c5f2a2be7b707cf430198a7262b766c329 | /trunk/ufsi/src/ufsi/__init__.py | 7d0055a8034247d3f164fb59b60e2ef32ebddf6b | [
"MIT"
] | permissive | BackupTheBerlios/ufsi-svn | 53cdb8e6eb44dbb506dc2c9e3108912dfcb32123 | 5b9c8a0a05045cb5704d8f5f079a17176831e479 | refs/heads/master | 2020-03-26T20:34:39.596486 | 2007-04-24T06:40:00 | 2007-04-24T06:40:00 | 40,804,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,357 | py | """
The ufsi module and its various classes.
"""
# import required standard modules
import re
# import UFSI interfaces
from PathInterface import PathInterface
from FileInterface import FileInterface
from DirInterface import DirInterface
from AuthenticationInterface import AuthenticationInterface
# import UFSI error... | [
"thekooldude@2d384c08-25fb-0310-ab61-b5b2a23e79ab"
] | thekooldude@2d384c08-25fb-0310-ab61-b5b2a23e79ab |
9b041b73b4058ed94e12ca2a03153ad4b7767547 | 3f911aca38f91e56890f5034b31ed81edb31b000 | /protein/FDR 구현실습/test.py | 2f29ade236cf8f8f9d1525d161b6fe892a63d725 | [] | no_license | sochic2/kis | 5dd83fd474176981f49cde967f49763405ed27b3 | 3ab07710c987110224b3fad0cb1ce3a0d6df6d1a | refs/heads/master | 2022-11-07T00:58:37.427148 | 2020-06-18T14:37:01 | 2020-06-18T14:37:01 | 257,481,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33 | py | a = 'abcdefg'
b = a[0:3]
print(b) | [
"netzzang12@gmail.com"
] | netzzang12@gmail.com |
3fa07e5008b46020f7867d26769152465c99df3f | 07ffe8db66fbd50f87315df34074e20b3ce67f0e | /about/models.py | 80a8e89e5bba77662e330b6c74d3a6e0a8d8a48a | [] | no_license | jakiiii/jtro-ecommerce | 9acc6d37797e409a79921358958e50d66f20a0b4 | e6e5ae04c7756e99f862634ad21f1d3877b501ab | refs/heads/master | 2023-01-22T09:44:47.891286 | 2020-12-01T23:32:19 | 2020-12-01T23:32:19 | 316,202,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | from django.db import models
from ckeditor_uploader.fields import RichTextUploadingField
from jtro_ecommerce.utils import upload_image_path
class About(models.Model):
title = models.CharField(max_length=150)
image = models.ImageField(upload_to=upload_image_path, null=True, blank=True)
description = Rich... | [
"me.jaki@outlook.com"
] | me.jaki@outlook.com |
090f82f82fdc3d02c3bb17c3ee32ed6c85c8c08e | 0a25ea42bd8aff27c939b7de9d9a8ea036b0c66f | /thrift/thrift-utils/test/ezpz/__init__.py | 6b1fb9fe954c52e463b0d180312d8dccde9dae94 | [
"Apache-2.0"
] | permissive | ezbake/ezbake-common-python | 118a20e2f88aaa29f95459b6bb163d0a828407d0 | fc82fb71852750cc2cfcbd7af0cb6843fad13b89 | refs/heads/master | 2021-01-01T05:38:30.502302 | 2015-03-02T20:08:32 | 2015-03-02T20:08:32 | 31,560,413 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | # Copyright (C) 2013-2015 Computer Sciences Corporation
#
# 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 a... | [
"jhastings@42six.com"
] | jhastings@42six.com |
ed3c4924a869f8d4d77bcbdfcb1d637c1d9150bf | 40c94870c9bbc5d3ca5fccccbbe648f17167be3e | /additional script/Dodelson3.4.py | cf7e2638b65c9f8b9d65438aabcfea16f5d0a53b | [] | no_license | zsw6666/ASTRO_script | 62b9cfef756723a7a5ba3d16fb0205eb7c5eb725 | 89de215edb86b516781192b349eddf15a55114b1 | refs/heads/version1.0 | 2020-04-16T12:31:09.935061 | 2019-10-16T11:41:39 | 2019-10-16T11:41:39 | 165,577,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,150 | py | import numpy as np
import astropy.constants as const
import astropy.units as u
from matplotlib import pyplot as plt
def lamda(x):
s=(255/(886.7*(x**5)))*(12.+6.*x+x**2)
return s
def H(x):
Q=((1.293*u.MeV).to(u.J)).value
g_star=10.75
s=(2*np.pi/3)*np.sqrt((g_star*np.pi*const.G.value)/(5.))*((Q**2)/(... | [
"zsw18@mails.tsinghua.edu.cn"
] | zsw18@mails.tsinghua.edu.cn |
80b3358be81f5d974d6f594abfd81b0f94056eea | 6701eae4550c7cd3d8703565c7be3a5e26248676 | /test/functional/txn_clone.py | 960fbddca9ce3e61f1041d65c503eba4502734fa | [
"MIT"
] | permissive | stochastic-thread/bootstrapping-ellocash | 91de56a330090c004af31d861e6d4cfb8d8b9e36 | 9495f1e3741c7f893457e4f6602d6ef0d84b7b3d | refs/heads/master | 2021-09-05T05:00:19.403780 | 2018-01-24T08:09:44 | 2018-01-24T08:09:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,600 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the wallet accounts properly when there are cloned transactions with malleated scriptsigs."""
fro... | [
"arthurcolle@Arthurs-MacBook-Pro.local"
] | arthurcolle@Arthurs-MacBook-Pro.local |
31fdb70e09d27fcc19feed1b7e8b826a584a5fe3 | abf33d1b30906c35a700bb24478efd6eb3979692 | /interviewbit/count_number_of_duplicates_in_a_list.py | 11ba129d5f086da11bb6f1c030623dcc3d25d934 | [] | no_license | soniya-mi/python | ac57c7e3be6bc05241e8af4e8b074e5311390f7d | 2a87ceeebb0403468c4fc2522b59573478e10ea4 | refs/heads/master | 2023-06-26T12:51:53.882774 | 2023-06-21T04:45:35 | 2023-06-21T04:45:35 | 137,060,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | list = [10, 20, 30, 20, 20, 30, 40, 50, -20, 60, 60, -20, -20]
occur ={}
new_list=[]
for item in list:
count = 1
if item in occur.keys():
count=occur[item]
occur[item]=count +1
else:
occur[item] = count
for key in occur.keys():
if occur[key] > 1:
new_list.append(key)
p... | [
"noreply@github.com"
] | soniya-mi.noreply@github.com |
bab376dab409e28cbb1e3490bf25c95372117cd9 | 7a724badef6a881d63d7692de6a7b94daaf820be | /user.py | 133f826c760765de1c14e75acb3678cb4361f23d | [] | no_license | mirshahzad/python-basic | aa19641140e10e6be88944c81c927410ffc23759 | 1552be46b5890c9976fad43dba007410396ad92a | refs/heads/master | 2022-10-24T18:13:58.938338 | 2020-06-13T09:14:12 | 2020-06-13T09:14:12 | 255,885,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | user_0 = {
'username': 'efermi',
'first': 'enrico',
'last': 'fermi',
}
for key, value in user_0.items():
print(f"\nKey: {key}")
print(f"value: {value}") | [
"noreply@github.com"
] | mirshahzad.noreply@github.com |
3aee32793c6ba419d0594d5a9e2bcaa214a87ed3 | 9edfd50576323ab50517d2694efa7d970a5a487e | /bin/shotgun_pickTask.py | 4cd5957d581ff10f1cf674cd3f75846f41f45a3f | [] | no_license | agudmund/util | 136de9961c3f1cc86faf183bb5c576c55f73417c | 457c8471296de944252fa6f474fea3ac07376d51 | refs/heads/master | 2023-08-11T00:21:53.795855 | 2023-07-25T12:00:46 | 2023-07-25T12:00:46 | 79,660,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,435 | py | #!/usr/bin/env C:/Python27/python.exe
import os
import sys
import random
import json
import shotgun_api3
SERVER_PATH = os.getenv("SHOTGUN_SERVER_PATH")
SCRIPT_USER = os.getenv("SHOTGUN_SCRIPT_USER")
SCRIPT_KEY = os.getenv("SHOTGUN_SCRIPT_KEY")
sg = shotgun_api3.Shotgun(SERVER_PATH, SCRIPT_USER, SCRIPT_KEY)
proj = s... | [
"aevar.gudmundsson@gmail.com"
] | aevar.gudmundsson@gmail.com |
b3df07ddba1420150bae25cb281f8f6d17c8c060 | 49b66aad7e8888b8da532d66dac65c5a4e75ceb8 | /pickel/newssort_loader.py | 369b3997ccd4d712af714b4e2fe05bf84a5d977a | [] | no_license | praneetmehta/news_segregator | 7e606057b687dc97a69031e804c5704816b1c4bc | 3be70c007b85559af8c371b815d3122bc2f26ba9 | refs/heads/master | 2021-01-19T23:49:30.571651 | 2017-07-25T23:44:06 | 2017-07-25T23:44:06 | 83,790,066 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Fri Mar 3 20:07:49 2017
@author: praneet
"""
import pickle
import re
def correct(s):
s = re.sub('\s\W',' ',s)
s = re.sub('\W\s',' ',s)
s = re.sub("[^a-zA-Z']",' ', s)
s = re.sub('\s+',' ',s)
return s
vect... | [
"praneet.mehta@gmail.com"
] | praneet.mehta@gmail.com |
a28b2a3cf60f98bd998c8924c10a1f170376436f | 9bc228372e586a1f90bb0685c43e744be9638ecd | /18_정은서/session08/catproject/catproject/asgi.py | ff0fcedfade84d46b53bbf8fe87c19d61c08bf30 | [
"MIT"
] | permissive | LikeLionSCH/9th_ASSIGNMENT | 3e58862a76e3232aed7e19e8939da23330ff2e22 | c211995ad12f404833ffec7fd80e1229b82a3bfa | refs/heads/master | 2023-07-03T10:27:11.843177 | 2021-08-02T14:52:02 | 2021-08-02T14:52:02 | 379,633,279 | 7 | 18 | MIT | 2021-08-02T14:52:03 | 2021-06-23T14:36:59 | Python | UTF-8 | Python | false | false | 397 | py | """
ASGI config for catproject project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SE... | [
"em4784@gmail.com"
] | em4784@gmail.com |
039e3c3ed7b402181e322dec3cbb5fe416969706 | 486e486ffea2feb8601cad443d86854a77e1f390 | /todoapp/todos/feeds.py | aefdded24c2f6b902f1669d3f127f7e7a54d7e8d | [] | no_license | saikirananumalla/todoapp | ddfbea6b983d1d22e17f6ab2772e18ce26aa387a | 71aab46c277bdd1f72e0ec5c115f6656ff3a6551 | refs/heads/master | 2020-04-09T17:21:05.972821 | 2018-12-05T07:55:25 | 2018-12-05T07:55:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | from django.contrib.syndication.views import Feed
from django.core.urlresolvers import reverse
from .models import Users
from . import views
class LatestEntryField(Feed):
title = " Updates "
link = "/news-sites/"
description = "Updates on Users"
def items(self):
return Users.objects.order_by (... | [
"noreply@github.com"
] | saikirananumalla.noreply@github.com |
5f93b1e2b6d1ad818e179659e266a4b51598a5bb | 34092feef434547abc852dfa1802c5f2178fb9ca | /python/searchRange.py | ce594aefa0cd98115b600f4ad02ab2d054772517 | [] | no_license | achyudh/leetcode-solutions | c59535650cc42e3b629fa12627aec0768325d2b8 | 3997b8bfa90a27cf8ccda10cdd34e9db3afebd7a | refs/heads/master | 2021-06-26T01:25:38.691813 | 2020-10-26T00:03:48 | 2020-10-26T00:03:48 | 147,906,102 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | class Solution(object):
def searchRange(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: List[int]
"""
if len(nums) == 0:
return -1, -1
ptr_u = len(nums) - 1
ptr_l = 0
while ptr_u >= ptr_l:
... | [
"noreply@github.com"
] | achyudh.noreply@github.com |
bd4c1df790a65e3af952ca5f291241677dd3a7c6 | e02cdc2908ea54bfe1232ccb4c515bb355372320 | /eventex/urls.py | 451b393b79f77411e24635476b72ed952943c818 | [] | no_license | iveinbox/wttd | 3924a2f73ccee7f43edc44bcd3920d27c27404d2 | 0ad64a5814fa59ed9877123592a6b5fd65c64c69 | refs/heads/master | 2019-07-16T13:05:56.778667 | 2017-11-05T04:06:55 | 2017-11-05T04:06:55 | 93,279,371 | 0 | 1 | null | 2017-06-05T15:12:35 | 2017-06-03T23:35:15 | CSS | UTF-8 | Python | false | false | 847 | py | """eventex URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/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-bas... | [
"iveelaureane@gmail.com"
] | iveelaureane@gmail.com |
c66fb03d7a1a952c8183b3246618837ac0c1a7f5 | 9e0cec9c4a4d080dc41a3e1b2bdc92b45be56e15 | /legacy/autoMNIfilesAnalysis.py | bf308600d33f26f2cf111634a7db9c2426beb8e0 | [] | no_license | FabianRei/neuro_detect | 373e42cbcd0a6b53d06c23edd14ef51cc4d9ee7d | 2ea3558617d742d6f22f00256daf9220221589d2 | refs/heads/master | 2020-04-04T11:41:53.427101 | 2018-12-21T17:51:47 | 2018-12-21T17:51:47 | 155,901,128 | 0 | 1 | null | 2018-12-21T00:55:47 | 2018-11-02T17:38:34 | Python | UTF-8 | Python | false | false | 4,090 | py | import numpy as np
import pickle
import torch
from src.data.preprocess import getTensorList_general
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
from skimage.measure import block_reduce
from scipy.ndimage import zoom
from dipy.reconst.dti import fractional_anisotropy
clas... | [
"f.abi.an@gmx.de"
] | f.abi.an@gmx.de |
021379ed8268f90ad89ad129bff6fa13ecc6d24f | 7c131f19c3a3ae1ee8832ff68a8dd88e68e4d3d8 | /filter_mobilisations.py | 3827c8a12f9092a369e6a67bf2e36dffa856e3d6 | [] | no_license | isildirik/London_Fire_Station_Closures | 42abbaa94462144ac1ccbeba398d038bf51e1322 | bcce10265923fdfeca7fd293712c822e59a95f83 | refs/heads/master | 2021-07-12T19:25:38.210866 | 2020-06-24T07:17:35 | 2020-06-24T07:17:35 | 168,384,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | #!/usr/bin/env python3
# This script reads london fire brigade mobilisations data from original data spreadsheet.
# Filters out the unnecessary columns and subsets the dataset to 2013 and 2014 years and outputs a csv file for further use.
import pandas as pd
import time
xls_path = './original-dataset/LFB Mobilisation ... | [
"isildirik@gmail.com"
] | isildirik@gmail.com |
d165d12587bb3716d7a0ae23d765ebc98ee1ba39 | 7bcba33e06f1fff4b2639aed5c556a79b7a51269 | /plot_graph2.py | c98f32a462f19b57135d4b42d60cac094112522b | [] | no_license | guroosh/CS7IS2-AI-project | 3798d32c60754b27ab044d1a1096f6527660ec56 | aae851695a022d374c263bd666fa86a20c478887 | refs/heads/master | 2020-12-31T10:47:06.545624 | 2020-04-13T08:16:30 | 2020-04-13T08:16:30 | 239,007,884 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,764 | py | import matplotlib.pyplot as plt
from scipy.ndimage.filters import gaussian_filter1d
# x = [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35]
# y = [0.0, 0.0, 0.0, 0.0, 0.0, 0.10294117647058823, 0.6617647058823529, 0.59375, 2.6029411764705883, 4... | [
"csingh@tcd.ie"
] | csingh@tcd.ie |
046ae5d3523c40583815218388fe2c2f3b49b05b | df0903d95faa22bd37ea661ba706776d384ab0bd | /scripts/propagate/merger.py | 4892333b046c16ea3904661db9531c0ea8556cce | [] | no_license | tschmorleiz/simman | 50ce0cbf7f6695a09fa45a6dcd8c655ba9febb63 | c589b1a9fc429ee33e46e730253a42bd10fa95b3 | refs/heads/master | 2016-09-06T12:05:59.870641 | 2015-02-16T11:48:38 | 2015-02-16T11:48:38 | 30,798,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,625 | py |
#!/usr/bin/python -O
################################################################################
################################################################################
#
# State-Based Text Merging Algorithm
# For 6.033 Design Project 2
# TA: Katherine Fang
# 9 May 2012
#
# Stephan Boyer
# Ami Patel
# ... | [
"tschmorleiz@googlemail.com"
] | tschmorleiz@googlemail.com |
2953bbb2ca4922a469834aebbec2753d820c24e7 | 5aeaa94117ad5f3ac86f83795e05e9444dfce586 | /scratch.py | c2b0809c86ea77328bd0bb6ea65ee63610c849d8 | [] | no_license | rikkhill/sfcrime | debef1b232db35ad735c8badec360bc5e9f1ad95 | f21fe834da07f701f666198089425e59ed57e70d | refs/heads/master | 2021-01-21T03:31:05.410424 | 2016-08-23T13:38:49 | 2016-08-23T13:38:49 | 49,992,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 839 | py | # Rikk's exploratory gubbins
import pandas as pd
import helper.data as hd
import helper.plot as plot
import helper.constants as C
df = hd.get_training_data()
total = len(df)
# Filter for the top ~80%% of crimes
df = df[df.Category.isin([
#'LARCENY/THEFT', # 19.92%
... | [
"rikk@unashamedly.co.uk"
] | rikk@unashamedly.co.uk |
925f9662216aa18534707e210800d7309b084bd3 | dd1b9eaf9e996444f2995220df93f7213133490d | /account/migrations/0001_initial.py | de37dde6d2e51cd2b1f37b2e175d8169816a843f | [] | no_license | 4k45hv3rm4/login_system | 69961f0b81c1e315b2db69588af31eff9d7f6a43 | a07bd08a3cccd6231a253c69e920cbea528081af | refs/heads/master | 2023-01-10T02:26:50.021694 | 2020-11-16T13:34:27 | 2020-11-16T13:34:27 | 313,309,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,226 | py | # Generated by Django 3.0.8 on 2020-07-15 11:36
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Account',
fields=[
('id', models.AutoField(... | [
"4k45hr0ck5007@gmail.com"
] | 4k45hr0ck5007@gmail.com |
47c78acbdccd77b171655ae99a43265f89f41011 | 30898ff2de7b05412caf60a23c1f5b53ff35ffd9 | /Script.py | b5f7417f84d0251ff6028eb21361ea507a4a02fb | [] | no_license | niravshah2705/DynamoDB_to_Athena | f106b773dd92008e5e5288cdb49fe16cec97ed1a | 902d3d92b3a3c0c30b2c1630d024f98424977d4b | refs/heads/master | 2020-04-08T19:26:12.273525 | 2018-12-02T03:59:12 | 2018-12-02T03:59:12 | 159,655,315 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,925 | py | import sys
import ast
from awsglue.transforms import *
from awsglue.utils import getResolvedOptions
from pyspark.context import SparkContext
from awsglue.context import GlueContext
from awsglue.job import Job
## @params: [JOB_NAME]
args = getResolvedOptions(sys.argv, ['JOB_NAME','sourcedb','destinationdb','sourcetable... | [
"noreply@github.com"
] | niravshah2705.noreply@github.com |
09b2477e4532e1781c1726117b833d2dd74a2098 | c91a9f70e19c25bb8839172ba0733ae90a64c504 | /apps/core/urls.py | e8b4cf1ad85f022d8cdb6681eb2fbc03154d7733 | [] | no_license | barbarakap19/gestao_rh | 464ffb0fb031e91ffef9a40df448ff44998a5fb2 | e2ed295cba055759bd0a9325adf6da9106c58c06 | refs/heads/master | 2020-06-14T20:47:46.471310 | 2019-07-23T03:32:42 | 2019-07-23T03:32:42 | 195,121,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | from django.urls import path
from .views import home
urlpatterns = [
path('', home, name='home'),
] | [
"barbara.andrade1901@gmail.com"
] | barbara.andrade1901@gmail.com |
03668cd8657241fcab646595058f80c9f4125756 | c3aad901e32f735625f938b4c26cdfa307254a6b | /biothings_explorer/api_preprocess/reasoner.py | b89e427492a7a016d9355ed1ccfbe18fd59cd9d8 | [
"Apache-2.0"
] | permissive | andrewgcodes/biothings_explorer | 73c598fae2171e8b61687325fa1c1ee1a625fbe1 | b54aa195bbed19ff5be09ed24dee869b24bb3c16 | refs/heads/master | 2022-12-23T18:06:34.061346 | 2022-08-18T20:23:17 | 2022-08-18T20:23:17 | 279,000,723 | 0 | 0 | Apache-2.0 | 2020-07-12T05:49:16 | 2020-07-12T05:49:15 | null | UTF-8 | Python | false | false | 939 | py | from itertools import groupby
def restructure_reasoner_response(json_doc):
"""Restructure the API output from reasoner API.
:param: json_doc: json output from reasoner API
"""
edges = json_doc['knowledge_graph']['edges']
if not edges:
return {}
res = {}
edges = sorted(edges, key=la... | [
"kevinxin@scripps.edu"
] | kevinxin@scripps.edu |
f42908edf55755571fd62a4c3989c96f7da5a3b2 | 0def7d63d694908d4fa5422631d86b61a31b3e8b | /module/HaiGuan/Python_PJ/YDMPython3.py | 30a42ed3662dc6a1fa9512916af7ed9a4046d096 | [] | no_license | 921016124/Spiders | 45fffb5a48ecce2c2754187d2f9b6c9caf1f3eaf | e2a3f3f59657974940801de8bc2bbb1a416af55b | refs/heads/master | 2022-12-13T10:59:42.375979 | 2020-09-14T09:02:13 | 2020-09-14T09:02:13 | 191,732,013 | 0 | 1 | null | null | null | null | GB18030 | Python | false | false | 819 | py | # -*- coding: cp936 -*-
import os
import sys
from ctypes import *
class PJ:
def Po_Jie(self):
print('>>>正在初始化...')
YDMApi = windll.LoadLibrary('yundamaAPI-x64')
appId = 7931
appKey = b'07e97c69ff9cd82a854d636ae1c1cb5e'
print('软件ID:%d\r\n软件密钥:%s' % (appId, appKey))
username = b'machengguang'
password =... | [
"921016124@qq.com"
] | 921016124@qq.com |
351c87c5d812181e22737f15be126ece632a8f45 | 682b3381751b6178ea7217c723a46bf74b8ce07e | /experiments/fmeasure.py | 32298f834b052829b4760cf36c14c435f43a7686 | [] | no_license | jminyu/BackgroundSubtraction_by_GBRBM | 7170bb2c04328274a6e671592a7856e363438f7c | 6fada0925d674b66933a4440f157832b97ba3bab | refs/heads/master | 2021-01-10T20:59:06.938073 | 2014-07-26T03:00:23 | 2014-07-26T03:00:23 | 22,276,707 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,297 | py | from numpy import *
import os.path
import Image
import matplotlib.pylab as plt
def f_measure(f, fg,gt):
fg_pixgt = where(gt == 1)
bg_pixgt = where(gt == 0)
fg_pixfg = where(fg == 1)
bg_pixfg = where(fg == 0)
tp = (where(gt[fg_pixgt] == fg[fg_pixgt]))[0]
fp = (where(gt[fg_pixgt] != fg[fg_pix... | [
"jmyu@gist.ac.kr"
] | jmyu@gist.ac.kr |
4c0ca93db88c706bef26591396d38085e7953adf | 5e95f3cb251b0a4ed750ef37955f05854e1498eb | /test/python/index.py | c6de635a94fe7d39d9a1b1ac751279a719de0584 | [] | no_license | davidenq/prime | 48214b2fc0509c81a3ca026311652c17c95dac16 | d65e7048216fceb4221bcf07b062929ce3e91a72 | refs/heads/master | 2022-12-10T01:43:44.769602 | 2020-07-19T01:37:30 | 2020-07-19T01:37:30 | 280,770,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | from cffi import FFI
ffi = FFI()
lib = ffi.dlopn('../../build/libprime.so') | [
"david.nunez.dev@gmail.com"
] | david.nunez.dev@gmail.com |
a56f746654c8cc821dca0132fe96988a4192a627 | 83cf20e7d181eac59dd0c3b1d5b7e095807fb6e0 | /maintain/move/some_test.py | 8d8776898e0137851dba8f01d1e3de0bbd871b52 | [] | no_license | ys3721/release_update_tools | b96fb272103e245fdf4273763c5f9b29e75e1529 | 4fd76ce05e793c3163a208830eee18b5f986ac73 | refs/heads/master | 2022-06-27T05:12:07.158151 | 2021-11-30T08:36:53 | 2021-11-30T08:36:53 | 178,325,294 | 2 | 2 | null | 2021-04-26T20:35:39 | 2019-03-29T03:24:35 | Python | UTF-8 | Python | false | false | 328 | py | #! /usr/bin/python
# -*-coding=utf8-*-
# @Auther: Yao Shuai
import os
import subprocess
sql_name = os.system("sshpass -p 321 ssh root@10.10.6.14 ls /data0/src/s1145_*")
print "os.system.result=" + str(sql_name)
result = os.popen("sshpass -p 321 ssh root@10.10.6.14 ls /data0/src/s1145_*").readline()
print ... | [
"ys3721@hotmail.com"
] | ys3721@hotmail.com |
6c350abf42358535fd248b6ad5fdb1c201305ee1 | 1dcde4f75d6b5abb115924a8f3b5989b6fbe2dee | /app/game.py | 5b47ab94c64ce1b84557b462d71012b6190ae918 | [
"MIT"
] | permissive | skrolikowski/PyBox | 0561a0f9bdae70d7f110a92f5b928dbd14a8f779 | d79c5229df69f21767a4db15ebe05b91bba3dc8d | refs/heads/master | 2020-03-19T09:17:15.810828 | 2018-09-08T18:07:47 | 2018-09-08T18:07:47 | 136,274,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,979 | py | from .registry import Registry
from .window import GameWindow
class Game:
registry = Registry()
@classmethod
def load(cls, func):
cls.registry.add_command("load", func)
return func
@classmethod
def update(cls, func):
cls.registry.add_command("update", func)
return... | [
"skrolikowski@gmail.com"
] | skrolikowski@gmail.com |
a7a23ce0dca0223e330d4f53312a3a2dcdd5b5e2 | 00540adf5d4e1be80b3edca5f60f298497eddef0 | /expression_analysis.py | f767375bce05d8fe1368a3bff3ea33932a27efc0 | [] | no_license | smetroid/expression_analysis | 4fe274302f29a12689d97872dbc659d734c236f1 | 445a73b7fb2be0e153f6e25666f4be14cf1ae3a4 | refs/heads/master | 2020-03-27T11:02:57.525089 | 2018-11-09T04:19:53 | 2018-11-09T04:21:04 | 146,461,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,747 | py | #!/usr/bin/python
import sqlite3, csv, re
import sys
def createDBs(conn):
interproscan7_table = "create table interproscan7(trinity, random1, random2, sites, code1, description1, start, stop, evalue, random3, date, code2, description2, goterms, reactome)"
expression_counts_table = "create table expression... | [
"enriquegc1982@gmail.com"
] | enriquegc1982@gmail.com |
57839fbdaf39ce151f280eecf2ac06516ded4c83 | 0123229ac84c057b188f6b17c1131ec630ecaf25 | /stochastic_gradient_descent/test_sire_offset/offset_fix_phiandpsi/extract_frcmod.py | 4598f60b3d2efdd919bfb1c52e5dd461d50b8d9e | [] | no_license | michellab/paramfit-tests | 689851ab95406aad7160403c4a70d3ec6be91981 | 39598e93936beff48aefff1604483fd265a5f46a | refs/heads/master | 2021-01-13T05:47:23.287857 | 2017-04-24T10:58:21 | 2017-04-24T10:58:21 | 76,249,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | from parmed.amber import *
import parmed
import os
base = AmberParm("orig.prmtop", "fit.rst7")
parmed.tools.writeFrcmod(base,"test.frcmod").execute()
frcmod_file = open("test.frcmod","r").readlines()
for fr in frcmod_file:
if "C -N -CT-C " in fr: # this is phi
print("value of Phi")
print(fr)
... | [
"stefanobosisio1@gmail.com"
] | stefanobosisio1@gmail.com |
947031afacd28cc7dd21f3fba36625e6915693d7 | 15fa13fad9a05a51843c3ed6cf1f8afbb33aae66 | /examples/reference/arc/arc.pde | b443a2ddb54118463bb6c09c57edbe0b4a5eb328 | [] | no_license | kazimuth/python-mode-processing | 4ad39f18c9637206fa7c691ac328baae0fc21b1a | e6274f89e0464b771870327a56ce01bff629e0fb | refs/heads/master | 2021-01-22T05:27:44.912530 | 2014-04-22T17:20:15 | 2014-04-22T17:20:15 | 10,946,779 | 4 | 0 | null | 2013-12-31T01:23:52 | 2013-06-25T18:40:55 | Java | UTF-8 | Python | false | false | 149 | pde |
arc(50, 55, 50, 50, 0, PI/2)
noFill()
arc(50, 55, 60, 60, PI/2, PI)
arc(50, 55, 70, 70, PI, TWO_PI-PI/2)
arc(50, 55, 80, 80, TWO_PI-PI/2, TWO_PI)
| [
"martin_p@lineone.net"
] | martin_p@lineone.net |
bd98415fac9fcd5c2df10970fb49b10c06aabbdf | 125cd1609acc13b0f5d953b7ff0faed7c177eb81 | /core/middlewares.py | e44439059857b530dc2179ef7e71ce36ebb1e121 | [] | no_license | anibalvf/DjangoWeb | 6e0a7d356b691fec4a9200f2e645e66cbb57371a | 0aa3c6528e5d2bbc305b76faf0c2fca4b88801aa | refs/heads/main | 2023-02-06T19:25:39.520929 | 2020-12-30T05:16:50 | 2020-12-30T05:16:50 | 325,130,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | from django.core.exceptions import PermissionDenied
def simple_middleware(get_response):
# One-time configuration and initialization.
def middleware(request):
# Code to be executed for each request before
# the view (and later middleware) are called
if not request.user.is_superuser:
... | [
"33007157+anibalvf@users.noreply.github.com"
] | 33007157+anibalvf@users.noreply.github.com |
6f267f19b412e85da602cd830f9cae1e0f449d29 | c0990bc7a4fbc2875e2de8998d274b2e70b91ab3 | /lingvo/jax/layers/stochastics_test.py | 70ffe9917042bf183f1fc0e5792422d75cca1692 | [
"Apache-2.0"
] | permissive | Assimilationstheorie/lingvo | fa5159dd4201b4469398ff2ef004334773ed3642 | dd175517894f7ef541262603e1225341ec3fbb51 | refs/heads/master | 2023-08-27T18:41:31.691814 | 2021-10-24T21:47:29 | 2021-10-24T21:48:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,847 | py | # Lint as: python3
# Copyright 2021 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | [
"shafey@google.com"
] | shafey@google.com |
0b20a4b796a7b98a278b4bcbbc680c4308972641 | 35438635c64c8ec1066285f9849bb3634ee46644 | /weibo乃万/analyze.py | 11fbf4a9ad459c2d9824f995016c70746c68a6bb | [] | no_license | fancccc/code2021 | 8bbd6e68e1c2587e520daa18a147c48f431a5269 | 8e85a69bd30092e7337cbfade5c34ec62b7c2ad3 | refs/heads/main | 2023-04-26T06:27:06.812121 | 2021-05-13T15:10:22 | 2021-05-13T15:10:22 | 367,084,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,339 | py | # -*- coding: utf-8 -*-
"""
Created on Mon May 10 23:27:01 2021
@author: Mario
"""
import pandas as pd
from snownlp import SnowNLP
from snownlp import sentiment
import random
import jieba
import imageio
from wordcloud import WordCloud,ImageColorGenerator
import matplotlib.pyplot as plt
from PIL import Image
import nu... | [
"workfc@163.com"
] | workfc@163.com |
298e2aa7b8a6a78750a2be2b758d445d10b343ae | b4826ec1ca1f71401cad7dcfe4c7f7573223ffc5 | /assignment6/submission/solution.py | dda3cb4842026a8976b5fcc2a86a6f95531cd331 | [] | no_license | deepmodh1996/Artificial-Intelligence-Lab | 01d5240127198e85ddcd853379343c44ad0d481e | cf945095cf599e291116b61784b109f868418ae3 | refs/heads/master | 2021-01-11T18:25:53.871827 | 2017-06-17T05:22:10 | 2017-06-17T05:22:10 | 79,544,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | import sys
filename = sys.argv[1]
# print filename
f = open(filename,'r')
MDP = f.read().replace('\n','\t').split('\t')
MDP = [x for x in MDP if x]
# print MDP
S = int(MDP[0])
A = int(MDP[1])
# print S
# print A
r = 2
R = [[[0 for x in range(S)] for y in range(A)] for z in range(S)]
for i in range(0, S):
for j in r... | [
"deepmodh1996@gmail.com"
] | deepmodh1996@gmail.com |
1f0baac7e207e96a1df522f360dbc91a273ce68e | d4bad471feefc230441ff2bbb2c312b50c96d554 | /chapter_code/chapter32_Spark_AI/HorovodEstimator.py | 36243e6c0f91c166e37312e6b7640cb19d773c1b | [] | no_license | limiaoiao/code-of-spark-big-data-business-trilogy | 6d69b1c6cf4b91ec12c65b9e4c64b0034f679d79 | 6bb7aa6c0209c8e20c5c1d7a191162635ecd658b | refs/heads/master | 2022-12-29T05:47:53.133212 | 2020-08-16T12:38:34 | 2020-08-16T12:38:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,356 | py | # Databricks notebook source
import numpy as np
import tensorflow as tf
import horovod.tensorflow as hvd
from pyspark.sql.types import *
from pyspark.sql.functions import rand, when
from sparkdl.estimators.horovod_estimator.estimator import HorovodEstimator
# COMMAND ----------
# Load MNIST dataset, with images rep... | [
"noreply@github.com"
] | limiaoiao.noreply@github.com |
8941c5b291ec2762adfe11384e1d783e5e747927 | b5ff404bda572f32b8f3a28025c6e76ed381d504 | /Ali/forms.py | 79fbab94a165611df8f85ee32aac656c08c35a39 | [] | no_license | Daechulbae/56chul | d5366e4ea7a43e329435da082f98503dd1a7c0f2 | aef1028568057264c998a915240256065e776830 | refs/heads/master | 2018-10-29T18:30:47.901769 | 2018-08-23T07:12:25 | 2018-08-23T07:12:25 | 124,995,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | from django import forms
class actionForm(forms.Form):
texbox = forms.CharField(max_length=10) | [
"eocjf17@gmail.com"
] | eocjf17@gmail.com |
aafc7c42fc0bc0c36abc57d07eba7f7d396a0646 | 0db5a9cf6be1e08accb24151982fe297287af158 | /test2/main.py | 58a2620a0238e11ca745e00ea22d128bb975a8b8 | [] | no_license | Robinsondssantos/fastapi-test | a30a14bfaa93bbd6aef4c3758f1be5c426927d39 | 7bab2cdbef6344d4c9c817a33fe6e63fd0861d1e | refs/heads/master | 2022-12-16T12:20:11.359535 | 2020-09-29T19:20:39 | 2020-09-29T19:20:39 | 296,133,546 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,274 | py | # from sqlalchemy import create_engine
# from sqlalchemy.ext.declarative import declarative_base
# from sqlalchemy.orm import sessionmaker
import json
import psycopg2
from typing import Optional
from fastapi import FastAPI
# SQLALCHEMY_DATABASE_URL = 'postgresql://postgres:password@localhost:5432/books'
# engine =... | [
"robinsonsantos@localhost.localdomain"
] | robinsonsantos@localhost.localdomain |
48096466ced3cec7b5b5429e2b83fb56cd6edfd4 | a5b9ca98802358af0ad2698696cd0a145379c4dc | /python_俄罗斯方块/game/src/gameState.py | b4ba0d9cdda27a4e1c960b3834c2c69d3f73e197 | [] | no_license | young-yang/InitialTemptation | dea09f89007f50317b611568a784e0d524e3cfe2 | 79a6fad172076e412dde6a36527f1adf2132cffb | refs/heads/master | 2021-01-22T21:53:46.879485 | 2018-07-24T16:36:37 | 2018-07-24T16:36:37 | 85,488,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,131 | py | # -*- coding: UTF-8 -*-
import random
from settings import *
from piece import Piece
from gameWall import GameWall
import pygame
class GameState():
def __init__(self,screen):
self.screen = screen
self.wall = GameWall(screen)
self.piece = None
self.timer_interval = TIMER_INTERVAL
... | [
"314235034@qq.com"
] | 314235034@qq.com |
19f57d01e4d553b3bab39e996318902932a5bef7 | 19631688a8be0e390f25a915f634a76c9a3d4fa3 | /ABC108/B_rined_square.py | 1adcdf28210c801eb65f6cbd8748a2b5afd49091 | [] | no_license | tsurusekazuki/AtCoder-practice | 7141fd74f6a876c9f3e65a1dca400ef4c153bca8 | e9538157b6a63f43300c6693e9c5deadaa4d5d2a | refs/heads/master | 2020-05-02T02:57:14.180926 | 2019-04-28T10:00:49 | 2019-04-28T10:00:49 | 177,715,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | a, b, c, d = map(int, input().split())
x = c - a
y = d - b
print(c-y, d+x, a-y, b+x)
| [
"b1714935@planet.kanazawa-it.ac.jp"
] | b1714935@planet.kanazawa-it.ac.jp |
b27851062a7ab359e902306b8840e240f1c7031a | 2473096eef0a4c19d73494616562612e5fe8d85f | /chapters/04_machine_learning_basics/linear_regression_graph.py | ebf439242c9279c49239c3b3ccc6476a85c33556 | [] | no_license | barmi/tensorflowbook | 85e38fa6575efc0df08f4f62af5c6eff68d9860a | b2d8bd6c612786c89f7b94aefd545bfbe4943c8d | refs/heads/master | 2021-01-22T12:38:36.253253 | 2017-10-12T11:51:33 | 2017-10-12T11:51:33 | 102,354,484 | 0 | 0 | null | 2017-09-04T11:31:35 | 2017-09-04T11:31:35 | null | UTF-8 | Python | false | false | 2,124 | py | # Linear regression example in TF.
import tensorflow as tf
import numpy as np
def inference(X):
return tf.add(tf.matmul(X, W, name='W_mul_X'), b, name='inference')
def evaluate(sess):
print(sess.run(inference([[80., 25.]]))) # ~ 303
print(sess.run(inference([[65., 25.]]))) # ~ 256
# weight_age
x_data... | [
"skshin@nbreds.com"
] | skshin@nbreds.com |
35a457296554b87038a7ebfa03198c4b1c60e697 | ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f | /Sourcem8/pirates/effects/VoodooAura2.py | 852b91918310ef820ba576e0b80105d5ea24b395 | [] | no_license | BrandonAlex/Pirates-Online-Retribution | 7f881a64ec74e595aaf62e78a39375d2d51f4d2e | 980b7448f798e255eecfb6bd2ebb67b299b27dd7 | refs/heads/master | 2020-04-02T14:22:28.626453 | 2018-10-24T15:33:17 | 2018-10-24T15:33:17 | 154,521,816 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,226 | py | # File: V (Python 2.4)
from pandac.PandaModules import *
from direct.interval.IntervalGlobal import *
from direct.particles import ParticleEffect
from direct.particles import Particles
from direct.particles import ForceGroup
from otp.otpbase import OTPRender
from PooledEffect import PooledEffect
from EffectController ... | [
"brandoncarden12345@gmail.com"
] | brandoncarden12345@gmail.com |
0ca3fb72d679efdb72ddfcd757f6f86a4bc25998 | 3a4975bc5256d0c92e04b943d1eeb81b9ce89640 | /allPossibleCombination.py | 6bc8ffc2db7441bf1e57d244ff71f0f06abe4732 | [] | no_license | Priyankajoshipj/DataStructuresAndAlgorithms | edf6c09f4a994341dda2973aef3761c042df36cc | 513a78b95546b89c74acbcc6691e84c4f0bc4f20 | refs/heads/master | 2020-06-27T14:04:23.144829 | 2019-09-18T04:39:11 | 2019-09-18T04:39:11 | 199,972,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | def allPossibleCombination(s):
n = len(s)
if n <2:
return n
out = set()
def rec_comb_helper(s, i, out):
if i == len(s) - 1:
return ["", s[i]]
one = rec_comb_helper(s, i+1, out)
for com in one:
if s[i] not in com:
com1 = s[i] + com
out.add(com1)
out.add(com)
return list(out)
allp = re... | [
"33767244+Priyankajoshipj@users.noreply.github.com"
] | 33767244+Priyankajoshipj@users.noreply.github.com |
f67e1e6de3d56e55471bc879166edec1c32ba813 | 8da79aedfb20c9798de0f4db4c5d85929a32f82b | /boo/columns.py | 200ff1a19478b1dd373b0d3bbfd9b11bfc79fc79 | [
"MIT"
] | permissive | nasingfaund/boo | a94e941ca8d3251fbb320c2e2f63e439f7ef4d59 | 96d08857abd790bc44f48256e7be7da130543a84 | refs/heads/master | 2023-07-01T00:33:33.085311 | 2021-08-03T21:23:03 | 2021-08-03T21:23:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,429 | py | """Преобразование сырых названий столбцов в названия переменных.
Описания полей отчетности можно посмотреть например в:
http://info.avtovaz.ru/files/avtovaz_ras_fs_2012_rus_secured.pdf
Более подробно о публикуемой форме отчетности:
http://www.consultant.ru/document/cons_doc_LAW_103394/b990bf4a13bd23fda86e0bba50c462a1... | [
"e.pogrebnyak@gmail.com"
] | e.pogrebnyak@gmail.com |
f771322752f5feab04cb77f3b2f35d3026f3513f | 8aa3069cd4840fd216b917187a9c96bd7d3e2367 | /Exercícios/binomiofatorial.py | 424d1e4b8b3bb4389d4000032efe0357afec0102 | [] | no_license | rafaelsaidbc/USP | b10a28f958a1af5670fe48061f7b0c8b9db5d5d0 | 8c077f392fccd814380ea0e1b5ec228a54d4f779 | refs/heads/master | 2020-03-24T00:41:12.718523 | 2018-07-25T18:31:47 | 2018-07-25T18:31:47 | 142,302,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | def fatorial(n):
fat = 1 #variavel fat recebe o valor 1, porque 1 eh um valor nulo em uma multiplicacao
while(n > 1): #enquanto n for maior que 1, o laço (while) continua executando
fat = fat * n #multiplica fat por n
n = n - 1 #atualiza o n subtraindo 1
return fat #finalzia o while e atuali... | [
"rafaelsaidbc@yahoo.com.br"
] | rafaelsaidbc@yahoo.com.br |
14c5cd9b73325b3972cb62a0961b995040c5e757 | c36d980ba59de3a562a878f185bad628078ea279 | /Mundo_2_Python/estrutura_for/desafio_53.py | f00fb7eac2b231297a400abccb2d112bd91e8d87 | [
"MIT"
] | permissive | tamyrds/Exercicios-Python | d79f295acec4204293a076842598832f7d42e6c6 | 73bd8ea49e74db88b39c4f20dfe058a4805c0567 | refs/heads/main | 2023-04-11T21:40:15.446784 | 2021-05-11T02:12:34 | 2021-05-11T02:12:34 | 363,760,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | frase = str(input('Digite uma frase: '))
palavra = frase.split()
junto = ''.join(palavra)
inverso = ''
for letra in range(len(junto) - 1,-1,-1):
inverso += junto[letra]
print(junto,inverso)
if inverso == junto:
print('Temos um palindromo')
else:
print('A frase digitada não é um palindromo') | [
"78001437+tamyrds@users.noreply.github.com"
] | 78001437+tamyrds@users.noreply.github.com |
25e372cb14bdc5d7011802d05410d01a864a361a | 7f8d2288dc8d81275269bdb8e8f196339a52d30d | /code/1010_solution.py | c14133019520efb5a27564644e2a7e131773bfda | [] | no_license | ishaansharma/leetcode-3 | f9cab568c31322e2bf84768264f3c644182cd470 | 9081dd3ff86409d554b0298a8152ed40a6befa96 | refs/heads/master | 2023-03-25T15:36:04.235650 | 2021-03-30T20:15:45 | 2021-03-30T20:15:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | class Solution:
def numPairsDivisibleBy60(self, time: List[int]) -> int:
count = 0
seen = [0] * 60
for t in time:
count += seen[-t % 60]
seen[t % 60] += 1
return count
| [
"noreply@github.com"
] | ishaansharma.noreply@github.com |
cb840373802f4a2f053aa9b6db014d5a830284dd | 404cb0431675327a751f7a6f422f53288a92b85b | /chirp/library/order_test.py | 33fccabf573816f97b45246bff10199393e598bb | [
"Apache-2.0"
] | permissive | chirpradio/chirpradio-machine | ade94d7ac9ded65f91e1b3845be408723c0501da | 6fea6a87f2eb3cfac2a47831892c9ce02163b03b | refs/heads/master | 2023-09-01T02:57:07.749370 | 2023-08-28T23:57:46 | 2023-08-28T23:57:46 | 2,330,078 | 9 | 10 | Apache-2.0 | 2018-03-16T01:26:29 | 2011-09-05T19:10:48 | Python | UTF-8 | Python | false | false | 3,525 | py | #!/usr/bin/env python
import unittest
import mutagen.id3
from chirp.library import order
class OrderTest(unittest.TestCase):
def test_decode(self):
test_cases = (("1", 1, None),
(" 6", 6, None),
("006", 6, None),
("1/2", 1, 2),
... | [
"kumar.mcmillan@gmail.com"
] | kumar.mcmillan@gmail.com |
ed52f2978ed7fd109f6361a4a2a3228b37559c87 | 09f09b393b8c909a22bbb84a21a50e007e35556e | /control.py | d576303e30aa86b271f597b6d2cd13a0a71b4a5d | [] | no_license | Henry-Hwang/audio-tools | abd61a0cf865ebeba3c42c40493efc7d22e35ffe | b19aac94b94577ca1ef0951cbbd4f83ab08ab3d3 | refs/heads/master | 2020-03-22T21:58:54.831972 | 2018-08-19T15:48:47 | 2018-08-19T15:48:47 | 140,726,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | import os
import sys
import commands
import time
import argparse
import tparser
import tinycmd
from decimal import Decimal
class Codec(object):
name = ""
def __init__(self):
pass
def get_codecs(self):
cmdstr = "adb shell cat /d/asoc/codecs"
print cmdstr
result = os.popen(cmdstr)
ret = result.read()
co... | [
"henry.huang@cirrus.com"
] | henry.huang@cirrus.com |
d3bba560b1a63f14196f8ac1f02e0fc94bd6ac84 | c5873c616d60d51ddc0a2388dce3c69ee0332d96 | /poker_project/settings/base.py | 1ab88949cbc4e7687010c5a66291d865059adfc6 | [] | no_license | dmongey101/texas-hold-em | 4e915acc6326cd07463e7b5160e870556a69a689 | 9e3481d8fed77b0f80c8740f5946505e9ead4a6e | refs/heads/master | 2022-12-12T23:04:30.665901 | 2022-10-24T17:56:32 | 2022-10-24T17:56:32 | 158,427,569 | 3 | 1 | null | 2022-12-08T01:28:49 | 2018-11-20T17:30:48 | HTML | UTF-8 | Python | false | false | 3,459 | py | """
Django settings for ecommerce_project project.
Generated by 'django-admin startproject' using Django 2.0.8.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
im... | [
"donalmongey@gmail.com"
] | donalmongey@gmail.com |
bd8fcf8cfabbf0d617f23ee7dd8b9d937d3551d1 | 7be178ac527253028a5d3009bac33d2e7e9533cd | /alphabet.py | ed7eda8cf9f8a6508fa0fb5a336a328d5f56c609 | [] | no_license | mrajeshraj/guvi | 27f745ea7a24ba8ecb465d2cbc1373dedef7a776 | 275cf24f1f1fe11571cec88c12b64bb80ad4c93a | refs/heads/master | 2020-05-25T23:02:11.526682 | 2019-06-17T17:05:33 | 2019-06-17T17:05:33 | 188,025,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | ch=input()
if(ch=='a' or ch=='b' or ch=='c' or ch=='d'):
print("Alphabet")
else:
print("Not an Alphabet")
| [
"noreply@github.com"
] | mrajeshraj.noreply@github.com |
5a4e2fd6d664cb94196906be84cc66e9eb31eac7 | 95807bb74dd42332d094d4de5564f3b4f460adbb | /Python 101/indexing_and_slicing.py | 0b01b489434ada6e2e55ee779ab27e723d07c172 | [
"MIT"
] | permissive | projetosparalelos/The-Complete-Python-Course-including-Django-Web-Framework | 92442cfa16609016f714bbc4af91782859c7a646 | 402b35d4739ed91e50d6c3380cab6f085a46c52b | refs/heads/main | 2023-05-12T01:20:41.299572 | 2021-06-03T07:56:56 | 2021-06-03T07:56:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | lst = ['one', 'two', 'three', 'four', 'five']
# 0 1 2 3 4
print(lst[-2::])
# b = True
# print(b[0])
course = "Python 101"
print(course[5])
| [
"noreply@github.com"
] | projetosparalelos.noreply@github.com |
bda639d9da4402bab567f7414ee6b727da5e4aa0 | 2b7b5628f199bca51ff916b81140794ee2f79edd | /Array/array_reverse.py | 0bb4dd7f925eb88352441b11a1509c9346815905 | [] | no_license | Koilada-Rao-au16/DSA_Solver | 9d01cdc72bf8602926a1824ba8dc739924b62406 | 6db2d9b855b0bf7ee6dfb5e5bcf50f4969534fc6 | refs/heads/main | 2023-04-06T03:26:47.902446 | 2021-04-12T10:07:56 | 2021-04-12T10:07:56 | 348,692,423 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | # Iterative python program to reverse an array
def reverseList(self):
print(self[::-1])
self = [1,2,3,4,5]
print(self)
print("reverse list is ")
reverseList(self)
# method 2
def reverseList(A,start,end):
if start >= end:
return
A[start],A[end] = A[end],A[start]
reverseList(A, start+1 , end... | [
"bhaskar9.koilada@gmail.com"
] | bhaskar9.koilada@gmail.com |
3e637f3de409c402ebe0b44c9d3ce320ed721c64 | c7d39fd93d6c616cf6adc005bab9298947c305f6 | /library/sns_command.py | c8b876f261a3be3ad63b4cb3089ece8fd7da7cae | [
"Apache-2.0"
] | permissive | mareckis/SNS-tests | 810d80612ced7b0dabd7a907c8c5169ba24c0e72 | e939c5830067671a217bbf6d878b8ba3481bcd32 | refs/heads/master | 2023-01-22T04:49:05.179410 | 2020-12-02T19:55:22 | 2020-12-02T19:55:22 | 259,371,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,053 | py | #!/usr/bin/python
# Copyright: (c) 2018, Stormshield https://www.stormshield.com
#
# 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... | [
"remi.pauchet@stormshield.eu"
] | remi.pauchet@stormshield.eu |
17d4ac7a0625e913523b131d25040cd6fe5c1260 | 8b64dba83a0f1bedf713faa0dcd96a218c80af08 | /app/requirement/migrations/0001_initial.py | d8bd78c43fe4041130960411584382bf4142437c | [] | no_license | chrxr/studyplan-test | 818a669dd85e74dd92393c5d006e2446c16f83b1 | 791b9400302d61f65cc37e9f3912cbcc9d4c041f | refs/heads/main | 2023-02-27T02:45:55.565870 | 2021-01-29T13:35:21 | 2021-01-29T13:35:21 | 329,410,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | # Generated by Django 3.1.5 on 2021-01-13 19:33
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Requirement',
fields=[
('id', models.AutoFi... | [
"chrxr@outlook.com"
] | chrxr@outlook.com |
775d4e974bbace6a037417248f6885324aebea6a | 85764904e918310f9e4a209f64570dcdcf099818 | /loutilities/user/roles.py | 3df49ee5b5f5d63b1edda6261c2976dbd2e6b5e1 | [
"Apache-2.0"
] | permissive | louking/loutilities | 05bb20994ae06d2e68989cd6a779c350a9a430ad | aaf7410849d0167001cd5f06ab0dae6563e58ec7 | refs/heads/master | 2023-07-24T18:32:36.128102 | 2023-07-15T10:02:43 | 2023-07-15T10:02:43 | 5,824,315 | 2 | 2 | null | 2023-05-10T09:59:37 | 2012-09-15T21:29:29 | Python | UTF-8 | Python | false | false | 3,136 | py | ###########################################################################################
# roles - common location for xtility role declaration
#
# Date Author Reason
# ---- ------ ------
# 03/11/20 Lou King Create
#
# Copyright 2020 Lou King.... | [
"lking@pobox.com"
] | lking@pobox.com |
6db98282426351cd2e6b5f2fb0f62ec064600def | a0215172ddf6663916b15cea3879e5b0ebdfddd9 | /scripts/yum_pkglist_from_ks.py | 797dbaad45ebdaaae277b2bcf954298c6fd09579 | [
"Apache-2.0"
] | permissive | perfsonar/toolkit-building | fa502a9ec04ba951a75a82c5b02ae3db69651bca | aca87d58649d3bc95c5b6768bf307702331f2535 | refs/heads/master | 2022-06-14T03:36:20.681776 | 2020-10-30T20:05:29 | 2020-10-30T20:05:29 | 32,428,947 | 2 | 3 | null | 2016-07-22T12:59:48 | 2015-03-18T00:43:47 | Shell | UTF-8 | Python | false | false | 4,393 | py | #########################################################################################
# Name: yum_pkglist_from_ks.py
# Usage: python yum_pkglist_from_ks.py [options] kickstart outfile
# Description:
# This script takes a kickstart file, extracts the package list, and finds all the
# dependencies in the dependenc... | [
"andy@es.net"
] | andy@es.net |
efa8b8921a7754cc8ad6ddb8d8d7f7bae7ff52b6 | 4c9ea189dac171be81ef2d72c2bbc7541e93e0a4 | /credit_risk.py | b0cfd2a010acf81e76f5f09a18948982a7ac03d6 | [] | no_license | Ayush19443/Credit-risk | dc44a388afe2f378c8fe71df86aa216c42985149 | cbb2aed96e93217a11d9b379318f678e524fb809 | refs/heads/master | 2022-12-02T19:51:26.785161 | 2020-08-15T11:49:10 | 2020-08-15T11:49:10 | 287,735,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,582 | py | #%%
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score
import pandas as pd
import numpy as np
import warnings
import time
import sys
import os
DeprecationWarning('ignore')
warnings.filterwarnings('ignore',message="don't have warning")
#%%
from sklearn.tree ... | [
"noreply@github.com"
] | Ayush19443.noreply@github.com |
c4fb0116985e3ace94fc0fe7bbfb80ab7f53d331 | 7edb6f64afb9a9d5fd2b712faae9841d45c3a3b3 | /monkeyAndPerformance/allCode/performanceTest/traffic/traffic.py | 9edb99221fc8f0b920e0abebe9a4f074378baddb | [] | no_license | Hanlen520/AppSpecialTest | 413babbbecbeaa8e25dd1fd70dd349a1de07eb5e | 06f69f116245162220985ad2632fbff3af72450c | refs/heads/master | 2023-04-22T19:59:35.523780 | 2019-08-08T09:48:28 | 2019-08-08T09:48:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,398 | py | import csv,os,time
from config.config import *
from monkeyAndPerformance.allCode.util.gettimestr import GetTimeStr
gettimestr = GetTimeStr() #实例化GetTimeStr
#控制类
class Controller(object):
def __init__(self):
self.counter = RunTrafficCount # 定义测试的次数
#定义收集数据的数组
self.alldata = [("device... | [
"410287958@qq.com"
] | 410287958@qq.com |
6137faebb9a642e09f39a277fe0b98ca4709d399 | 8398421e297b61c345f81005940f01aa79e2bf53 | /subwindows/delete_orphans/delete_orphans_creator.py | f1e9c501371625d623e3f3f2f90533ab408fc85d | [] | no_license | fcunhaneto-test/mscollection_qt | e206a90eb8f3a80885d1067648c718f32a6d2057 | 3ccc26087d503aa833d0725e93f927a86800d7c0 | refs/heads/master | 2022-11-09T20:16:41.730677 | 2019-06-15T10:48:58 | 2019-06-15T10:48:58 | 166,302,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,376 | py | import os
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QColor, QFont
from PyQt5.QtWidgets import QMdiSubWindow, QTableWidget, QWidget, \
QTableWidgetItem, QVBoxLayout, QHBoxLayout, QCheckBox
import texts
from db.db_model import Creator, SeriesCreator
from db.db_settings import Database as DB
from lib.funct... | [
"fcunhaneto@gmail.com"
] | fcunhaneto@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.