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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
25b6583408b37a7b05b7b70cc04dc00c8f310c8a | b6d08d9241ee6c41a045b0500bbc1d7236a5b705 | /count-number-of-1s-in-sorted-binary-array.py | 6b2ec25c01eef0fafb6b3f836e7835e04457a16c | [] | no_license | goyalgaurav64/Arrays | bca7c84bc3d9cdf122a47118b76558eeb10fca23 | bb2f795b3a67585828d3c10fa5e6db326844ce99 | refs/heads/master | 2022-12-26T09:38:07.134709 | 2020-09-27T12:45:40 | 2020-09-27T12:45:40 | 285,988,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | def count1s(a,n,low,high):
if high>=low:
mid=low+(high-low)//2
if(a[mid]==1 and (mid==high or a[mid+1]==0)):
return mid+1
if a[mid]==1:
return count1s(a,n,mid+1,high)
return count1s(a,n,low,mid-1)
return 0
if __name__ == "__main__":
# a=[... | [
"noreply@github.com"
] | goyalgaurav64.noreply@github.com |
dd3305c78e04151d15b36a79266132df6c46604a | b23e51cf4770bd69e41fa9c3a868e074c6f735fd | /convert_from_ssa.py | 3ceb0ea6a6a60c7dbad13e07619fe3f487bb99da | [] | no_license | winniez/final-compiler | 08093ce1e22dca1ff85f43c629c2a2c03092d50d | 616436f83448ef94cbc85347ed0a657a7cbba9b3 | refs/heads/master | 2021-01-23T03:03:52.689846 | 2014-04-18T20:52:47 | 2014-04-18T20:52:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,242 | py | from vis import Visitor
from compiler.ast import *
from explicit import *
from compiler_utilities import *
from find_locals import FindLocalsVisitor
from phi import *
class RemoveSSAVisitor(Visitor):
#need to remove phis from Ifs and Whiles
def visitIf(self, n):
test = self.dispatch(n.tests[0][0])
... | [
"chris.bubernak@gmail.com"
] | chris.bubernak@gmail.com |
7590a822008ae275d29a72c9cc0693eaf2a6fa35 | e439fd12714bf0b59c68fc8027976ca8cd04ec43 | /0x06-python-classes/100-singly_linked_list.py | 926caff902e7b81c962406deab51b91d0a2933af | [] | no_license | martincorredor/holbertonschool-higher_level_programming | 95bf91ff993b3a48b64cd3b642aa48e59c19801c | 89fddeece2eaba87cda43c003bf40ad7d0c66b9a | refs/heads/main | 2023-05-04T13:32:08.188762 | 2021-05-13T03:14:16 | 2021-05-13T03:14:16 | 291,816,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,963 | py |
#!/usr/bin/python3
"""
Module 100-singly_linked_list
Defines class Node (with private data and next_node)
Defines class SinglyLinkedList (with private head and public sorted_insert)
"""
class Node:
"""
class Node definition
Args:
data (int): private
next_node : private; can be None or Nod... | [
"dev.martincorredor@gmail.com"
] | dev.martincorredor@gmail.com |
16ffec30ff35fe9c3e0c9763c7a430088738c46f | c9f67529e10eb85195126cfa9ada2e80a834d373 | /lib/python3.5/site-packages/cloudpickle/__init__.py | 35e5df340d353e27242a6b1bba4359a8c662f922 | [
"Apache-2.0"
] | permissive | chilung/dllab-5-1-ngraph | 10d6df73ea421bfaf998e73e514972d0cbe5be13 | 2af28db42d9dc2586396b6f38d02977cac0902a6 | refs/heads/master | 2022-12-17T19:14:46.848661 | 2019-01-14T12:27:07 | 2019-01-14T12:27:07 | 165,513,937 | 0 | 1 | Apache-2.0 | 2022-12-08T04:59:31 | 2019-01-13T14:19:16 | Python | UTF-8 | Python | false | false | 101 | py | from __future__ import absolute_import
from cloudpickle.cloudpickle import *
__version__ = '0.6.1'
| [
"chilung.cs06g@nctu.edu.tw"
] | chilung.cs06g@nctu.edu.tw |
fad508316f7c8af514e13695746f1d929139ecad | 6e3a8e94ae42cefaf68281e3531c05d348dd8033 | /7-5recursive.py | ad4aea737e383624ebd2ffe3f5c243cb04cb3ee2 | [] | no_license | aqutw/python_01_practice | 1b7cf00cae4694a0dccb14658a3409b32c434be1 | b96187d424e84d54bcfbd8037cb392eb0de5b5ec | refs/heads/master | 2016-09-06T09:32:20.908656 | 2015-03-22T08:33:26 | 2015-03-22T08:33:44 | 32,628,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | # -*- coding: utf-8 -*-
def fact(n):
if n==1:
return 1
return fact(n-1) * n
print fact(3)
print '-----do Task-----'
#汉诺塔
def move(n, a, b, c):
if n==1:
print a, '-->', c
return
move(n-1, a, c, b)
print a, '-->', c
move(n-1, b, a, c)
move(4, 'A', 'B', 'C')
| [
"aquarian.ex@gmail.com"
] | aquarian.ex@gmail.com |
f5b479e335963e856113cd228c818fae352dfc66 | ae6d307ea7b5609a9fec854a042b821716f14081 | /build/config.gypi | af346fdfd3cfe3de4ca21846d485b433269597bd | [] | no_license | icimence/express-html | 5ce0f450c71602ae4b606a1ee94836d257ba11e2 | 7026673953e3a52e82903fdec1b0fc5df48ab44b | refs/heads/main | 2023-02-09T17:18:09.151754 | 2021-01-02T04:38:52 | 2021-01-02T04:38:52 | 324,801,923 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,622 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": [],
"msbuild_toolset": "v142",
"msvs_windows_target_platform_version": "10.0.18362.0"
},
"variables"... | [
"icimence@outlook.com"
] | icimence@outlook.com |
349c5fca253e2c1e2137c8828c00c8274e70bb3f | eb7dbc0f737811c81dfe366de43d38ac5cab5d8e | /ChewUmoD_ML_notebooks/Dual_input_images_regression_for_upload.py | 59b71c75b16a498cc1031ba75b70933e7119de02 | [] | no_license | daninolab/proteus-mirabilis-engineered | 767a39a09483d9ca8e38fce3cbcf8eab19f71f84 | 0e0dea16a273bc5d49adefe7752379eb0ee95c4f | refs/heads/main | 2023-04-13T21:59:51.091094 | 2023-02-13T22:32:42 | 2023-02-13T22:32:42 | 601,348,090 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,944 | py | # -*- coding: utf-8 -*-
"""01_25_23_Dual Input Images Regression For Upload
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1E8xEIVUIZnADIoV6bCxWW4iPMu5-IkVo
"""
# NOTE: IN this notebook, you have to start, then restart runtime. Otherwise tensorflow is... | [
"anjali@Anjalis-MacBook-Pro.local"
] | anjali@Anjalis-MacBook-Pro.local |
acfaf5dda6e06b01dcb40a040a6fa2a14cf04e07 | 8a2cd06a24f65e41f4b38a5e6e2cf045a8ad15fd | /HabNet_MC/train.py | 0171ec9b858bcb637931605e176815baf0621c19 | [] | no_license | RingBDStack/HabNet | fffb3606aa7b0c515555219188619e6bdf6706ce | 208efe26d06c96390b4689404f936f91ee4775ee | refs/heads/main | 2023-03-07T01:52:02.355389 | 2021-02-23T05:59:31 | 2021-02-23T05:59:31 | 306,551,517 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 13,558 | py | import tensorflow as tf
from datetime import datetime
from data_reader import DataReader
from model import Model
from utils import read_vocab, count_parameters, load_glove, create_folder_if_not_exists
import sklearn.metrics
import utils_plots
import matplotlib
matplotlib.use('Agg') # http://stackoverflow.com/questions... | [
"noreply@github.com"
] | RingBDStack.noreply@github.com |
42bab51452a048ba617e3a805f0048d4492cbe4b | 6205a1a8c7fc27e23b69a2cfe0a4998ab1d9b01f | /LR/__init__.py | b6be70bf905e8e21b250a59546b2453719e560ae | [] | no_license | sliu1013/ML_Exercise | dbb6a8d081b7abc38b60790bb374f660d624de96 | a909e2290ba37261216ec3d8f8541601d5eec422 | refs/heads/master | 2020-04-17T07:34:04.395265 | 2019-01-18T09:10:41 | 2019-01-18T09:10:41 | 166,375,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | #!/usr/bin/env python
#coding=utf-8
# *******************************************************************
# Filename @ __init__.py.py
# Author @ LiuSong
# Create date @ 2019/1/8 18:09
# Email @
# Description @
# license @ (C) Copyright 2015-2018, DevOps Corporation Limited.
# ************... | [
"liusong@cmss.chinamobile.com"
] | liusong@cmss.chinamobile.com |
4f7ed658cf910265ba6d8203ffa1366e2069ff3f | 65d844f57c93b97459ba58a7f8d31fcddaef2c57 | /example/data_reader.py | d859e4febe7c2ef2c5f74ecb408e32e3ed809e36 | [
"Apache-2.0"
] | permissive | tonywenuon/keras_dialogue_generation_toolkit | 797411838e8213422cce4f5ac94f4e98e56cc912 | 75d82e7a281cd17a70bd9905fcebf2b906a6deec | refs/heads/master | 2023-04-04T14:39:10.117825 | 2021-03-29T11:25:23 | 2021-03-29T11:25:23 | 215,433,666 | 24 | 2 | null | 2023-03-24T22:45:14 | 2019-10-16T01:55:53 | Python | UTF-8 | Python | false | false | 23,866 | py |
import sys, os
project_path = os.path.sep.join(os.path.abspath(__file__).split(os.path.sep)[:-2])
if project_path not in sys.path:
sys.path.append(project_path)
import argparse
import numpy as np
from sklearn.utils import shuffle
from typing import Callable, Optional, Sequence, Iterable
from run_script.args_parse... | [
"you@example.com"
] | you@example.com |
0f01bd122aff616cc4566f5b04312038457abcf5 | 739371c6439e98007e223f469620a94f414335b7 | /contacts.py | bece8ba7b1bf11d081b9f966fd97fc12e13de887 | [] | no_license | SoftRaven/DevOpsCourse | ce45715cadeeff12bff38a6a1eabe5975f39e2e1 | 1487d72a7ed0a625a799dd0557e9a27fe2ee673d | refs/heads/master | 2023-01-11T07:14:10.018387 | 2020-11-13T07:16:48 | 2020-11-13T07:16:48 | 312,483,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | class Contacts:
def __init__(self):
self.contact_list = []
print("adding notes") | [
"arseniy.myak@gmail.com"
] | arseniy.myak@gmail.com |
efa40ee0e6b20a910e49d9e974fb84bb28db98a6 | 092a4ebf83943f2278fd2c4f447a8acac0960d2d | /tests/pages/mobile/user_albums_page.py | f29ca8d4db6f8855ca50bad8f6ab82866bd1bb4e | [] | no_license | akenoq/homework-4 | 3be9270a54aad2b5d1df45da106600f04e49afe6 | d54239092cf4540a6d63ed3615c3c4c3dbde6dd9 | refs/heads/master | 2020-03-19T15:06:16.270474 | 2018-05-25T16:15:24 | 2018-05-25T16:15:24 | 131,852,660 | 0 | 0 | null | 2018-05-02T13:13:47 | 2018-05-02T13:13:47 | null | UTF-8 | Python | false | false | 1,402 | py | from tests.pages.mobile.like_component import LikeComponent
from tests.pages.mobile.page import Page, Component
from tests.utils.waits import wait_until_url_changes
class UserAlbumsPage(Page):
PATH = '/dk?st.cmd=userAlbums'
@property
def albums_list(self):
return AlbumsList(self.driver)
@pro... | [
"kiryanenkoav@mail.ru"
] | kiryanenkoav@mail.ru |
7169b4896ba5fecee91e361b5cb2a4f7d43ca8fc | 98bce760b5a563d563ebea4a5fcebc0d6eb0272f | /Student_Management_System (1).py | 80d0faae94e6d5eb260c108f9cbfa6919eead79b | [] | no_license | vaishnavigavi/student-management-system | 126338d7e2ea59fdf1570797819517495f81a0d8 | b52a1e60afd7873bb065c9dd54e300753d9b0b11 | refs/heads/main | 2023-06-27T08:54:31.986973 | 2021-07-25T17:04:17 | 2021-07-25T17:04:17 | 389,399,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,234 | py | from tkinter import *
from tkinter.messagebox import *
from tkinter.scrolledtext import *
from sqlite3 import *
import matplotlib.pyplot as plt
import requests
from tkinter import ttk
import bs4
def add_btn():
root.withdraw()
add_window.deiconify()
def view_btn():
root.withdraw()
view_window.deiconif... | [
"noreply@github.com"
] | vaishnavigavi.noreply@github.com |
47608734e7a96721c677be5e5504dc4038801690 | d3d5b933fe0672ba141b3cfde0ad942438b38304 | /Exam-07may17/footbalLeague.py | 17357e9a1bca92ada008bf3e43797b8b5226a7c6 | [
"MIT"
] | permissive | wesenu/Python-3 | 065aa49b7978c6f0cc1ebdd364d7b02059ab4dc6 | 55163496dac452a7110b7f76edc6894ee195f1fe | refs/heads/master | 2023-03-15T11:52:54.877026 | 2018-08-20T11:56:34 | 2018-08-20T11:56:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | stadiumCapacity = int(input())
fansCount = int(input())
procentA = 0
procentB = 0
procentV = 0
procentG = 0
for i in range(fansCount):
n = input().upper()
if n == 'A':
procentA += 1
elif n == 'B':
procentB += 1
elif n == 'V':
procentV += 1
elif n == 'G':
procentG +=... | [
"nikolay.vutov.nv@gmail.com"
] | nikolay.vutov.nv@gmail.com |
a1e2778620208756f91bf8adc8a60a96acb8081a | e8051b081aceb54e23d518e75e61c8fa21b696d8 | /build/lib/feature_space_tree/attributes/filters_terms_config.py | 79d7dadc20c5afc6803faa6ad4eca31abaaba80a | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jesusmiguelgarcia/FSTmikes | b6d9377e761675db86b1dca0bfd241d9ae975cb4 | 34d68c979b0c019510db87793e5870eea8f9154f | refs/heads/master | 2021-01-20T22:19:03.381529 | 2016-07-08T17:08:04 | 2016-07-08T17:08:04 | 61,218,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,517 | py | #!/usr/local/bin/python
# coding: utf-8
# Copyright (C) 2011-2012 FeatureSpaceTree Project
#
# 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
... | [
"miguel@miguel-desktop"
] | miguel@miguel-desktop |
e89063f004ef56318689c8df2ebf442192e2aa44 | a39e95a0536d312311531a49dec90bcc8f7ab0c5 | /Lesson6_FunctionCompileRE/main.py | 46adef70714ec420ee43ff944b6b4cdcde1257cb | [] | no_license | Hadirback/python_part2 | 095010ca4866a4b6c9e5ca092602b43edbd344e8 | a4b00aeb30f88df55751d5f23e570c33face113d | refs/heads/master | 2020-08-11T09:13:03.793607 | 2019-11-04T23:10:45 | 2019-11-04T23:10:45 | 214,536,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,406 | py | # compile
# re compile - если нужно найти и изменить что то подходящее под
# шаблон в нескольких переменных
import re
text1 = """
Сбо́рная Франции по футбо́лу 34-я минута представляет Францию в международных
матчах и турнирах по футболу. """
text2 = """
Управляющая организация 56-й номер — Федерация футбола Франци... | [
"mail.evgeny.filippov@gmail.com"
] | mail.evgeny.filippov@gmail.com |
f9251076f87015000034cf64c9c76592c169b75f | 3f03f75f91ac3ed0ad5d86bad598a09c9e56fbfa | /Andy/lab1/indexer.py | db99a3591f40c4b62e488fabe8db00b962190b06 | [] | no_license | AndyT94/EDAN20-Language_Technology | 00722666d28adcae955d739cc1f8259a04c12c67 | bca876a90887b7323c5e026bcc4eccea28ee3396 | refs/heads/master | 2021-01-20T21:12:07.217167 | 2017-10-04T18:00:32 | 2017-10-04T18:00:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,807 | py | import sys
import pickle
import regex as re
import os
import math
def get_files(dir, suffix):
"""
__author__ = EDAN20
Returns all the files in a folder ending with suffix
:param dir:
:param suffix:
:return: the list of file names
"""
files = []
for file in os.listdi... | [
"Andy@DESKTOP-53TB5O7.localdomain"
] | Andy@DESKTOP-53TB5O7.localdomain |
b5201ac8ea345d410ca6aa25b78229ace84af6ab | 74edd5d32efc3d31f363c2a4205ec1a49f42c05e | /mygamev0.3.py | cf2c0623fff9f29778d581acd602ef6f3d133756 | [] | no_license | zjost/BrucePlatform | 0e4c1ec2a68dd7219a5450d79ee32d21937a7c86 | 127a99c1ea8bba7e2ea1c5d1a547684357af0cff | refs/heads/master | 2020-06-03T14:18:43.203258 | 2015-04-19T21:08:58 | 2015-04-19T21:08:58 | 34,224,107 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,989 | py | import pygame
import sys
from pygame.locals import *
from random import randint
class Player(pygame.sprite.Sprite):
'''The class that holds the main player, and controls how they jump. nb. The player doens't move left or right, the world moves around them'''
def __init__(self, start_x, start_y, width, height):... | [
"zjost85@gmail.com"
] | zjost85@gmail.com |
8e607fc4217dc65098282671cc9a5b511508ff7f | b9c3c2c8e1253f6af7e1b8153be958dade5f980b | /MyUtils/chrome/__init__.py | 642fd339d14cd821ffcde7330dc18e667cb1fb78 | [] | no_license | xuhao1108/NewEgg | 67e63e25d0ecf0b585446042e3c405f2335da5fc | 4ed5dd5e56c2ea1409b2cbe4fc64f27962aebd75 | refs/heads/master | 2023-07-30T22:43:24.744990 | 2021-09-24T12:39:26 | 2021-09-24T12:39:26 | 409,957,031 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2021/7/22 16:43
# @Author : 闫旭浩
# @Email : 874591940@qq.com
# @desc : ...
from .create_proxy_auth_extension import create_proxy_auth_extension
from .selenium_chrome import ChromeDriver
| [
"874591940@qq.com"
] | 874591940@qq.com |
20fe73cbf8d62e74ac7dab0a275c51edd56c00f0 | f5f5394e3278da1e33312c434f10e105cc0b5d5f | /paymentsos/charges.py | 8f24214f9d08ab268f14d96f4dcd77d8d645c620 | [
"MIT"
] | permissive | GearPlug/paymentsos-python | f3c7b213b416f888d575da7f0c853b58b76c7c80 | 2f32ba83ae890c96799b71d49fc6740bc1081f89 | refs/heads/master | 2020-04-08T14:03:57.664559 | 2019-01-23T01:49:56 | 2019-01-23T01:49:56 | 159,420,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,421 | py | class Charge(object):
def __init__(self, client):
self.client = client
def create_charge(self, *, payment_id, payment_method, reconciliation_id=None, provider_specific_data=None,
user_agent=None, ip_address=None, **kwargs):
headers = self.client._get_private_headers()
... | [
"ingferrermiguel@gmail.com"
] | ingferrermiguel@gmail.com |
8ab8402fffc166c8478085628e71a66de2a3b595 | 2b3f1cbe698ae0b23c0137f399bb6c08fcd94294 | /CTFlearn/GandalfTheWise/gandalf.py | 0abc41cd65817e9dd3c21dce0f49b8ac7f61b4c5 | [] | no_license | param373r/WriteUps | baa8c573a290b4d5db6d8ea16a09f41b3d770ee8 | 1225a0e92ae950b1ad0fa826622c2556e79cbbed | refs/heads/master | 2023-03-10T17:31:04.597888 | 2021-02-23T20:19:49 | 2021-02-23T20:19:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | x="xD6kfO2UrE5SnLQ6WgESK4kvD/Y/rDJPXNU45k/p"
y="h2riEIj13iAp29VUPmB+TadtZppdw3AuO7JRiDyU"
dumpx = x.decode('base64').encode('hex')
dumpy = y.decode('base64').encode('hex')
flag_dump = hex(int(dumpx,16) ^ int(dumpy,16)).rstrip("L").lstrip("0x")
print flag_dump.decode('hex')
| [
"noreply@github.com"
] | param373r.noreply@github.com |
f4237bacb70f0bf7b6208fb5ea7d30591d9f5aa4 | 1dfbc64569e7d1eff0eed6b6abfabc3d6c637cd0 | /doutu_document.py | 67ae6464d03079665fd25de6fb8093dc4665b318 | [] | no_license | Vrolist/ScriptPython-ImageSpider | 274ded7791b8c48ca931c524f7f08cbff4c76be6 | 61b67ac894c162069aa25e394a608cc03419f489 | refs/heads/master | 2020-04-03T18:58:04.131741 | 2018-10-31T05:42:51 | 2018-10-31T05:42:51 | 155,504,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,443 | py | import requests
from lxml import etree
from time import sleep
from concurrent import futures
url = 'http://www.doutula.com/article/list/?page=2'
headers = {
'Referer':'http://www.doutula.com/',
'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.92 Sa... | [
"kellyhu112@qq.com"
] | kellyhu112@qq.com |
c0f1e901dcca4adb401428c29867545733d2648e | 522c92cf2a7f06e7fa2243e6d8d284c81eff7da8 | /s_可视化/matplotlib_test/rw_visual.py | c6ca2106c3fd02ceafcf36d9ef8a0f47fa4989f9 | [] | no_license | qiuyunzhao/python_basis | 480323dda42f7a85dd1e0d7d693595bf1cce00e5 | cdf5622f1ac6dc8e6b206b13aa3ef4cd3a6654b0 | refs/heads/master | 2021-01-02T19:21:03.556686 | 2020-05-24T14:52:14 | 2020-05-24T14:52:14 | 239,762,702 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,130 | py | import matplotlib.pyplot as plt
from s_可视化.matplotlib_test.random_walk import RandomWalk
def draw_trace():
while True:
# 创建一个RandomWalk实例,并将其包含的点都绘制出来
rw = RandomWalk()
rw.fill_walk()
# 设置绘图窗口的尺寸
plt.figure(figsize=(10, 6))
# 突出路径,后绘制的颜色更深
# 参数:
# ... | [
"1102401880@qq.com"
] | 1102401880@qq.com |
062014beb87368f116bd692d7d5fe58a1ed81f7f | 83978433a5b78e99fdfb2cbf3e9eaac6d88240f9 | /tests/test_run.py | 4528252de70c7f5980000c068c714ef025705699 | [] | no_license | kbtony/my-teleprompt | b80ec5c7acaba5dce5c7e59b853f268ace7785c6 | 2cdfdc6322b422cdf3977c7b1722a07449d447e8 | refs/heads/master | 2023-03-18T18:13:08.808915 | 2021-03-16T00:14:01 | 2021-03-16T00:14:01 | 347,022,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,699 | py | from datetime import datetime
from teleprompter.run import CommandLine, utcoffset_to_seconds, Query, lookup
def test_command_line():
argv = ["run.py", "example.csv", "2021-06-19T15:27:30+10:00"]
user_input = CommandLine(argv)
assert user_input.filename == "example.csv"
assert user_input.query == "202... | [
"tony790511@yahoo.com.tw"
] | tony790511@yahoo.com.tw |
3961c786a9f3d1cbf6f062bda1b52c9befbbe95e | b144cb0c9e497136c99e608c1cf3cf0b2e0e3c2d | /D3Q/src/deep_dialog/dialog_system/dialog_manager.py | 968859f34f9ae6a60b666d5e409fffb0929876a4 | [] | no_license | loremdai/A2C_PPO | 924182d780836a4774bc304c0bb460a1ef22c143 | f8135e4f9e3109a8861166b05f2090a1389188a9 | refs/heads/master | 2023-06-02T10:52:34.839587 | 2021-06-30T09:56:54 | 2021-06-30T09:56:54 | 381,645,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,392 | py | """
Created on May 17, 2016
@author: xiul, t-zalipt
"""
import json
from . import StateTracker
from deep_dialog import dialog_config
class DialogManager:
""" A dialog manager to mediate the interaction between an agent and a customer """
def __init__(self, agent, user, user_planning, act_set, slot_set, mov... | [
"etienn3dai@gmail.com"
] | etienn3dai@gmail.com |
dc754f772d8f4ba92fad2186439121b62cc5581a | bbeb8f05519831e5ba0ec1a542be6970591e1cd5 | /Recursion/001_bisection_search.py | 1e36a69a4eed13daf085e03afa240235435e541b | [] | no_license | b1ck0/python_coding_problems | fdebb2390a26ed8f60530494dcfdc8cdf10c33ce | 93edeaf06d1d06fd211e60fc0181baf954355d14 | refs/heads/master | 2022-08-21T14:14:51.675278 | 2022-08-03T12:07:37 | 2022-08-03T12:07:37 | 253,064,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,348 | py | def search(element, array: list):
"""
:param element: some element
:param array: sorted list
:return: element in list
"""
if len(array) == 0 or element == '' or element is None:
return False
if len(array) == 1:
return element == array[0]
n = len(array)
mid = n // 2
... | [
"vasil.yordanov88@gmail.com"
] | vasil.yordanov88@gmail.com |
e3af78f714a605f48e356026f633369aabb2a7f4 | 6131ff2e3370b59a77b87ae619acd247d4cf537b | /_WEBPRINT/recepientsapp/migrations/0017_sentenvelop_registry.py | 90b7acd06d29dd90d4a44abc41359e7ac23e82bf | [] | no_license | d051a/webprint | 038ae54dedb20eea7adb5ab7c4a93d5d41aa0325 | 557238568b8bb3e905b080e9e7cad88fecb90eaa | refs/heads/master | 2020-03-19T12:35:28.727050 | 2019-12-11T13:03:47 | 2019-12-11T13:03:47 | 135,196,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-12-06 11:45
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('recepientsapp', '0016_registry'),
]
operations = [
... | [
"akargavin@gmail.com"
] | akargavin@gmail.com |
d0937d391db976cdd9ce380dfda1333e8c5e6cfd | 6ffc398b4a27c339f24938e8a0b9c565e33539ce | /site-packages-27/fpdf/__init__.py | e1f6d0ec86f11b94c27e9cf80fc511a1e065dabb | [] | no_license | zwlyn/awesome-pdf | 8f4483d717130a54545f2ba8b05313da99103039 | 8223929db5433c7b4ed61bceb4f5808c12e1ad85 | refs/heads/master | 2023-01-24T23:52:35.415117 | 2020-04-05T12:05:31 | 2020-04-05T12:05:31 | 253,162,782 | 2 | 0 | null | 2023-01-05T10:50:08 | 2020-04-05T05:31:20 | Python | UTF-8 | Python | false | false | 415 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"FPDF for python"
__license__ = "LGPL 3.0"
__version__ = "1.7.9"
from .fpdf import FPDF, FPDF_FONT_DIR, FPDF_VERSION, SYSTEM_TTFONTS, set_global, FPDF_CACHE_MODE, FPDF_CACHE_DIR
try:
from .html import HTMLMixin
except ImportError:
import warnings
warnings.war... | [
"1666013677@qq.com"
] | 1666013677@qq.com |
c8eb3aeda662891d7280421a60fa273f048c7670 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/stdlib-big-1496.py | c138c5f1b37ad1d5b8f878c60570148520f70029 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,999 | py | # ChocoPy library functions
def int_to_str(x: int) -> str:
digits:[str] = None
result:str = ""
# Set-up digit mapping
digits = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
# Write sign if necessary
if x < 0:
result = "-"
x = -x
# Write digits using a recursive call
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
3d2838a04450c37cd315fe937c37005bf75676ba | 2c18130c914a387dee1aea4e9aa375bd3aa9158d | /amazon/previous-greater-element.py | 0a9e268967bee0a1cc9956270a47f827440771fc | [] | no_license | rohitjain994/Leetcode | 5231360a5cb117d1ad15b90090fad60efaaedfc1 | 4f30284b18cc24e6bfeac88f3306c341b9b7cd31 | refs/heads/main | 2023-04-04T22:11:29.617809 | 2021-04-13T18:41:55 | 2021-04-13T18:41:55 | 341,184,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | # arr = [ 10, 4, 2, 20, 40, 12, 30 ]
# res = [ -1, 10, 4, -1, -1, 40, 40 ]
def previousGreaterElement(arr : List[int])-> List[int]:
stack = [arr[0]]
res = [-1]
for i in range(1,len(arr)):
while len(stack)>0 and stack[-1]<arr[i]:
stack.pop()
if len(stack)==0:
res.appen... | [
"rohitjain@Rohits-MacBook-Pro.local"
] | rohitjain@Rohits-MacBook-Pro.local |
7116d372dc82524a2a12f2f1ffeb890f02a621ab | 29998d8edc1a5b4ab71eb6c22797382bd01532cb | /Neural_networks.py | f09587e4f43cb1f6548dd860c996505dd90e9c70 | [] | no_license | arunadevikaruppasamy/Data-Science-from-Scratch-Python | 32d3979f9f3e15ccce5104f210ec9407a50bb1b6 | fa84a819777aca9d5affd8179b152726beb88f1b | refs/heads/master | 2022-04-07T15:00:53.667392 | 2020-02-25T23:31:23 | 2020-02-25T23:31:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,582 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Feb 13 16:55:24 2020
@author: Ruchika
"""
#####################################################################################################
## Neural Network
#####################################################################################################
f... | [
"noreply@github.com"
] | arunadevikaruppasamy.noreply@github.com |
3c7e0440225397cc5fbb7fc3eff1269632386e67 | 8653b096dbf744d75d6e85c3a9318f6aad938a86 | /python_learn/day_9/4 面向对象-类关系.py | 150343ad1dd6e95df9ddf4b5f1d83798f3bdbf01 | [] | no_license | shuipingyang-14/python_programer | 08400b0bc22d1acd305209ad88c9e85b50519f86 | 6bff2897cfd91ddad3b1cfb6d32004c32ca5d0bf | refs/heads/master | 2022-11-27T19:07:50.251316 | 2020-07-20T11:27:45 | 2020-07-20T11:27:45 | 256,217,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,319 | py | # -*- coding:utf-8
"""
@ author: ysp
@ time: 2020/7/13 10:31
@ file: 4 面向对象-类关系.py
@ IDE: PyCharm
@ version: python 3.8.3
"""
# 类与类之间的关系:
# 1. 依赖关系
class Elphant:
def __init__(self, name):
self.name = name
def open(self, obj):
"""开门"""
print('大象要开门了,默念三声,开')
obj.... | [
"xy_1521675822@163.com"
] | xy_1521675822@163.com |
f7a39c745bda8601750dba690274a4eff2008467 | 09a45530dfa6744281bbace4960b47d5d9f98432 | /froghopgame.py | db76fb497a89d377e5bf4b21a0ac949b86b7906f | [] | no_license | Murtaza-Kazmi/frog-hop-game | cc69ea729116b1395467bf1ce1fb1edf8461746c | 9e288060d2ff0cad554925cd8f48c5c843927668 | refs/heads/master | 2023-01-12T14:20:57.072121 | 2020-11-22T17:37:32 | 2020-11-22T17:37:32 | 289,695,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,141 | py | # Recursive Solution for the Frog Hopping Puzzle/Game
#this function resturns a boolean, telling whether a frog at
# index = frogindex can move or is stuck
def frogcanmove(frogindex, lst):
if lst[frogindex] == "":
return False
if lst[frogindex] == "LtR":
if frogindex == len(lst)-1:
... | [
"noreply@github.com"
] | Murtaza-Kazmi.noreply@github.com |
0230bff69699b5a0550cd2eb0957ea65a26a0e03 | c3f760355ccce2deee52b9a77ba07b7799e44134 | /icode/icode_logo.py | aaab203c961112d7de9a2a9782e7bd47b01454e3 | [] | no_license | lvandroid/Python | 8be142d197da5341cf304a77b7f85662a7fee213 | db3494eec21cc15080b6a3259f3deebafd47460e | refs/heads/master | 2020-04-07T08:09:24.566908 | 2018-11-22T08:54:29 | 2018-11-22T08:54:29 | 158,202,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | import random
import turtle
import math
pen = turtle.Turtle()
def my_goto(x, y):
pen.penup()
pen.goto(x, y)
pen.pendown()
def head():
a = 1
pen.seth(90)
for i in range(120):
if 0 <= i < 30 or 60 <= i < 90:
a += 0.5
pen.rt(3)
pen.fd(a)
else... | [
"lvandroid@outlook.com"
] | lvandroid@outlook.com |
07c91c10ae908df3e84a285449ef439ed298eb2d | e1a5c0f95bdcb4e3b89b8b2b0c061ad17ad8becc | /policy/lab/create_projects.py | 73311d367cb578b761411f10a1cb2537327f8c9d | [] | no_license | kamidzi/openstack-policy | 7a50fc0a202dddfec88903aebac7a138d1aa8e69 | dc47a35014f76982346337c23f128dac6696ed62 | refs/heads/master | 2022-12-13T21:48:48.212025 | 2018-05-15T21:04:54 | 2018-05-15T21:05:12 | 94,116,605 | 0 | 1 | null | 2022-12-08T00:00:43 | 2017-06-12T16:18:24 | Python | UTF-8 | Python | false | false | 878 | py | #!/usr/bin/env python
from ks_auth import ks
from pprint import pprint
import sys
import keystoneclient
try:
import config
except ImportError:
sys.exit('Place a config.py in project directory.')
domain = 'Default'
if __name__ == '__main__':
# add projects
projects = []
for name in config.project_na... | [
"kmidzi@bloomberg.net"
] | kmidzi@bloomberg.net |
b7f8be099faecc0c85b9d955313d797037d8ca2e | f232ee143db5e2d35a71299e373459c207ff0084 | /python_module/setup.py | 8276a94334b624d1a5721727a231b82f876c587c | [
"Apache-2.0",
"MIT"
] | permissive | mohdsanadzakirizvi/SuperGLU | 70a1efa8577b75f1964fbcfdde0923093d2aebc1 | 3150dbb33cd46e4a18cefd04a4130c37e5d412bc | refs/heads/master | 2020-03-28T02:36:16.657937 | 2018-09-05T19:39:04 | 2018-09-05T19:39:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,116 | py | from setuptools import setup, find_packages
# Note: Manifest.in not really used for anything (possibly being deprecated)
setup(
name = 'SuperGLU',
packages = find_packages(),
version = '0.1.7',
description = 'Base Generalized Learning Utilities (GLU) library for communicating data between different learning tec... | [
"benjamin.nye@gmail.com"
] | benjamin.nye@gmail.com |
11e285264dc4e9dfa59d3104016bb4dac7ca203d | 8a462163df6ab7655c69840900d59723c0b50e58 | /ocs_ci/ocs/couchbase.py | 1d1c4830510d532264e8b20feccadb23576efde3 | [
"MIT"
] | permissive | gobindadas/ocs-ci | 5adcd08433524d36f7b92378527f30c827cc770f | 68aa8370dde2bc630fa4bc4f8ef40bd8f47edb59 | refs/heads/master | 2022-11-22T06:02:04.984119 | 2020-07-07T18:47:58 | 2020-07-07T18:47:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,341 | py | """
Couchbase workload class
"""
import logging
from ocs_ci.ocs.resources.ocs import OCS
from ocs_ci.ocs.ocp import OCP, switch_to_project
from ocs_ci.utility import templating
from ocs_ci.utility.utils import TimeoutSampler
from ocs_ci.ocs.utils import get_pod_name_by_pattern
from ocs_ci.ocs import constants
from ocs... | [
"sshreeka@redhat.com"
] | sshreeka@redhat.com |
90fc9a11b36c7ec3937a286038d3b1c0a4812f9d | 3529ecaa44a53172094ba13498097057c8972723 | /Questiondir/520.detect-capital/520.detect-capital_93512141.py | 4b4f3fe2c57d6a464255034820308ab06b71b8df | [] | no_license | cczhong11/Leetcode-contest-code-downloader | 0681f0f8c9e8edd5371fd8d0a1d37dcc368566b6 | db64a67869aae4f0e55e78b65a7e04f5bc2e671c | refs/heads/master | 2021-09-07T15:36:38.892742 | 2018-02-25T04:15:17 | 2018-02-25T04:15:17 | 118,612,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | class Solution(object):
def detectCapitalUse(self, word):
"""
:type word: str
:rtype: bool
"""
if word == word.upper():
return True
if word == word.lower():
return True
if (word[:1] == word[:1].upper()) and (word[1:] == word[1:].lower()... | [
"tczhong24@gmail.com"
] | tczhong24@gmail.com |
8fe3e72a4fe1168fd5eb38c66f4f4aa526bd5ad0 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/100_Python_Exercises_Evaluate_and_Improve_Your_Skills/Exercise 12 - More Ranges NUKE.py | 7bb9127b558afdf2d3b6aa97628abdcdb2897719 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 163 | py | #Create a script that generates a list whose items are products of the original list items multiplied by 10
my_range r..(1, 21)
print([10 * x ___ x __ my_range])
| [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
0b27098a205541a2d26cb36a3e45250255628c2a | 6a0e979c5c644ef70b3fbda9692c9726aa53e2aa | /shapenet_utils/shapenet_synset_dict.py | f9eef7bfec68cce9751e56d024b9e2a9a1f61ec3 | [] | no_license | kosuke55/shapenet_utils | 1c7be42da0826b2016859b7e4388062c2d3ab020 | 92656a9a932fabf7cd8717c810157e352ea57238 | refs/heads/master | 2023-02-20T15:42:33.688884 | 2021-01-22T12:17:42 | 2021-01-22T12:17:42 | 302,083,235 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,572 | py | synset_to_label = {
'02691156': 'airplane',
'02747177': 'trash_bin',
'02773838': 'bag',
'02801938': 'basket',
'02808440': 'bathtub',
'02818832': 'bed',
'02828884': 'bench',
'02834778': 'bicycle',
'02843684': 'birdhouse',
'02871439': 'bookshelf',
'02876657': 'bottle',
'028... | [
"kosuke.tnp@gmail.com"
] | kosuke.tnp@gmail.com |
5ce16c87fcae922693b17176739c6d94acb13cce | 4a7ddf37f09fc9defc5b0de24218e6d412b3ffc9 | /data/RegisterForm.py | 61e36b033d16d0ea2d88ba2eb8302290082c9ca5 | [] | no_license | YLNN2/API2 | f1d27f6b079c4a627bc497ed20868a3497e8b002 | 6d745de973475f920f6c9fc59b8d2762a82c3df4 | refs/heads/master | 2021-05-17T15:06:00.744769 | 2020-03-28T15:58:03 | 2020-03-28T15:58:03 | 250,835,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | from flask_wtf import FlaskForm
from wtforms import PasswordField, StringField, TextAreaField, SubmitField
from wtforms.validators import DataRequired, Email
class RegisterForm(FlaskForm):
email = StringField("Email: ", validators=[Email()])
password = PasswordField('Пароль', validators=[DataRequired()])
p... | [
"lguseva87@gmail.com"
] | lguseva87@gmail.com |
788ed2e5916d24970d79524c60e182a03ad4ecfb | a884039e1a8b0ab516b80c2186e0e3bad28d5147 | /Livros/Introdução à Programação - 500 Algoritmos resolvidos/Capitulo 2/Exercicios 2a/Algoritmo36_lea9.py | a368507b3389f066630181aa6ff943bc3796ea6c | [
"MIT"
] | permissive | ramonvaleriano/python- | 6e744e8bcd58d07f05cd31d42a5092e58091e9f0 | ada70918e945e8f2d3b59555e9ccc35cf0178dbd | refs/heads/main | 2023-04-10T14:04:24.497256 | 2021-04-22T18:49:11 | 2021-04-22T18:49:11 | 340,360,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | # Program: Algoritmo36_lea9.py
# Author: Ramon R. Valeriano
# Description:
# Developed: 14/03/2020 - 19:55
# Updated:
number1 = int(input("Enter with firs number: "))
number2 = int(input("Enter with second number: "))
sum_ = number1 + number2
print("The sum: %d" %sum_)
| [
"rrvaleriano@gmail.com"
] | rrvaleriano@gmail.com |
fe7851112c97a05e45bf29f35a97bfe85e188722 | aa35e638ed7b73ab64681bb28011951c4ea1da4e | /request-3d-skeletons.py | 38970014865c6fe0b9f83cffaf785b8ec7b23515 | [] | no_license | felippe-mendonca/dataset-creator | be3fd6b3b6955e6ff32488af38be0c590b17789e | 2a57d200b550806a35f6f8abef83d74f856748c1 | refs/heads/master | 2023-06-23T11:46:21.790864 | 2019-06-18T18:16:33 | 2019-06-18T18:16:33 | 150,271,810 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 8,152 | py | import os
import re
import sys
import cv2
import json
import time
import socket
import datetime
import numpy as np
from collections import defaultdict
from enum import Enum
from is_wire.core import Channel, Subscription, Message, Logger, ContentType
from is_msgs.image_pb2 import ObjectAnnotations
from utils import load... | [
"mendonca.felippe@gmail.com"
] | mendonca.felippe@gmail.com |
421a0b4b3adb4a231c693a21ffb4d19b7fd44a5c | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/CTRON-AppleTalk-ROUTER-MIB.py | cd4f746fc5022649fc87c04124d71cea11af6658 | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 76,271 | py | #
# PySNMP MIB module CTRON-AppleTalk-ROUTER-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CTRON-AppleTalk-ROUTER-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:26:48 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version ... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
3a21a3002317189d4a3b56f50fc93790be543058 | 05e6fce4d597da471079a73ba474fd6998f054f5 | /Ene-Jun-2022/jesus-raul-alvarado-torres/práctica-2/capítulo-10/Verify User.py | 8d03538569308fdb2e62307ddfa79ca2a65a2a3a | [
"MIT"
] | permissive | AnhellO/DAS_Sistemas | ec6b9c06d58caf2b648a00dffa1777c4c5e02b24 | 97ceccf26dd45d6e947d2499919a4e4d5ad3d2a3 | refs/heads/ene-jun-2022 | 2023-06-01T04:40:37.350266 | 2022-06-15T01:52:33 | 2022-06-15T01:52:33 | 102,045,109 | 56 | 213 | MIT | 2023-05-23T02:49:44 | 2017-08-31T21:05:59 | Python | UTF-8 | Python | false | false | 906 | py | import json
def get_stored_username():
filename = 'username.json'
try:
with open(filename) as f_obj:
username = json.load(f_obj)
except FileNotFoundError:
return None
else:
return username
def get_new_username():
username = input("¿Como te llamas? "... | [
"noreply@github.com"
] | AnhellO.noreply@github.com |
f3376571e9de062e5692bbe67cff3a2378440502 | 55c0f1f73677511439e794baa699ef60cceaf4d6 | /reader.py | 9d5834526be10fc86594e5b24a81dd39ef4761f7 | [] | no_license | klejbroda/startech | fa81675b3652575789ac37a65823b9c23c8c1b1e | 1ef5d129db2cfccd73e254bbf4f1576611f6a485 | refs/heads/master | 2021-03-17T21:28:34.903945 | 2020-03-13T18:24:22 | 2020-03-13T18:24:22 | 247,019,343 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | class LogReader:
def __init__(self):
self.file = None
def create_dataset(self):
with open(self.file, "r") as self.file:
list_of_rows = []
contents = self.file.readlines()
contents.pop(0)
for row in contents:
split_rows ... | [
"noreply@github.com"
] | klejbroda.noreply@github.com |
05be3c6193f89bc5f3be46293ad8f4dda8d7aff8 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2551/60771/296110.py | 9c1d23a5339719691c0cae541b95c62c95ea2fb3 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | #15
ori = input().split(" ")
N = int(ori[0])
M = int(ori[1])
lights = [False]*N
for i in range(0,M):
ori = input().split(" ")
a = int(ori[1])
b = int(ori[2])
if ori[0] == "0":
for j in range(a-1,b):
lights[j] = not lights[j]
if ori[0] == "1":
res = 0
for j in ran... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
a16386f8932d6143a5ca5f588dba0a5af313b3e0 | 1ff5ea65ad64be5ee2756b22488de38aeb4c9506 | /numexpr/necompiler.py | dd0b5606cb1481f018735b36d2865013fb9b935e | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gdementen/numexpr-numba | b988f92d672fcd3828f4d12adabd08bf1916c554 | 6713b40c9d2ff3b24b1222e02d157583ba3fd29f | refs/heads/master | 2021-01-22T18:14:21.870541 | 2013-07-01T05:44:31 | 2013-07-01T05:44:31 | 10,475,590 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,099 | py | ###################################################################
# Numexpr - Fast numerical array expression evaluator for NumPy.
#
# License: MIT
# Author: See AUTHORS.txt
#
# See LICENSE.txt and LICENSES/*.txt for details about copyright and
# rights to use.
##########################################... | [
"gdementen@gmail.com"
] | gdementen@gmail.com |
1f5efb06eab8edbd3e09147a821a534f8f2d7483 | 1154fa5ae6fe517151e41f5f4746d1bada23e1a5 | /scenes/cup_generator/model.py | 7e8f6d5861759736d796c1fb6a1e135ab6258a3d | [] | no_license | joaomonteirof/SMART_COUSP_Reconstruction | 9f7aac2eb08bc67f3d8b7e786ff66a5c1c9dadf4 | 79ea702d75875bec399721b04cdaecf4fc6a6a0e | refs/heads/master | 2023-09-04T00:05:20.981615 | 2021-10-13T17:26:10 | 2021-10-13T17:26:10 | 106,738,046 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,485 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
class Generator(torch.nn.Module):
def __init__(self, input_dim=128, num_filters=[1024, 512, 256, 128, 64, 32], output_dim=1):
super(Generator, self).__init__()
# Hidden layers
self.hidden_layer = torch.nn.Sequential()
for i in range(len(num_... | [
"joaomonteirof@gmail.com"
] | joaomonteirof@gmail.com |
c12730826a6aa9d5f5d486adc9b4fbd73d3e312c | 87b4518e55c0e465aba39d86e65ba56f56502198 | /css/postprocess.py | 787db97ecfb72ae1d5d3a86a4fc9aaf218d47c28 | [
"MIT"
] | permissive | Serkan-devel/m.css | 302831008d8949a2fb7b91565621b47dd638e38f | 3c0e3d7875bc9ab63c93322cc02cab62239804d7 | refs/heads/master | 2020-04-01T02:00:17.005772 | 2019-01-12T11:36:33 | 2019-01-12T11:36:33 | 152,761,732 | 0 | 0 | MIT | 2019-01-12T11:36:34 | 2018-10-12T14:20:51 | Python | UTF-8 | Python | false | false | 7,550 | py | #!/usr/bin/env python
#
# This file is part of m.css.
#
# Copyright © 2017, 2018, 2019 Vladimír Vondruš <mosra@centrum.cz>
#
# 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... | [
"mosra@centrum.cz"
] | mosra@centrum.cz |
3073ee6cbe530e37a8ef22de9c4144d820e41f0d | 6cca2f3998cfe0a78f8ae0b10d5cad770737efc8 | /tools/cryptotools.py | f908250645bc24c4727d7e1f0c2b124c6e7ce90d | [] | no_license | snieradkiewicz/security-tools-wargames | 5e7c796b1de345957b48d986c482caa82734eac6 | 15a2fe48ee5ecb8357f1f1751a50bab08c7b3e05 | refs/heads/master | 2020-07-29T00:48:43.728490 | 2019-10-20T18:05:12 | 2019-10-20T18:05:12 | 209,603,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,899 | py | import base64
from tools import assets
from tools import aes
def evaluate_english_score(message, message_contains_words=False):
text = str(message.decode("utf-8", errors='ignore')).upper()
score = 0.0
# use proper dictionary depends if you expect to find whole words in message
if message_contains_words... | [
"nieradkiewicz@gmail.com"
] | nieradkiewicz@gmail.com |
5d6be64c33047c1f55721e5878a4fbbded441aec | 24f02ab32164114731c303767d61e068302bff51 | /HW4/plot.py | 97d3af9ffe20ef2e7e3c87abb028a6f0af6edd0c | [] | no_license | XueminLiu111/UCBerkeley_DRL_CS294-112 | 3ff54a2c7a0f4c8a9f14ccbe25716d2c06f42ee2 | acb5b12e9c5c7a2b4a3b12a040d1d523fff22cb7 | refs/heads/main | 2023-06-25T22:01:04.090348 | 2021-07-20T19:49:15 | 2021-07-20T19:49:15 | 387,898,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 946 | py | import os
import argparse
import matplotlib.pyplot as plt
import matplotlib.cm as cm
import pandas
parser = argparse.ArgumentParser()
parser.add_argument('--exps', nargs='+', type=str)
parser.add_argument('--save', type=str, default=None)
args = parser.parse_args()
f, ax = plt.subplots(1, 1)
for i, exp in enumerat... | [
"liuxuemin@xuemins-mbp.dhcp.nd.edu"
] | liuxuemin@xuemins-mbp.dhcp.nd.edu |
1eda220ebf78f8269181594eccd28bc02e85cb10 | 664ea23f1203ba31edb2ea3c21ba88cb14d8fdac | /hierarcicalClustering.py | b219d676a53128672e84fa0140da200e36f7f1a9 | [] | no_license | volkaankarakus/machineLearning | f5423fb88add14fe1869ecf96fc4b6cf2dd491cc | 7eb395ceb110488fd7cd39376a79652255d54155 | refs/heads/main | 2023-03-05T11:52:47.842975 | 2021-02-21T00:49:47 | 2021-02-21T00:49:47 | 338,939,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,278 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Feb 19 19:13:19 2021
@author: VolkanKarakuş
"""
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
#%% create dataset
# class 1
x1=np.random.normal(25,5,100) # normal demek Gaussian demek. 25 ortalamaya sahip, sigmasi 5 , 1000 tane deger u... | [
"noreply@github.com"
] | volkaankarakus.noreply@github.com |
062537f35efefd0a3cdffb6f4de890ff488c1948 | eb35d0d2293d8e998d001142b7d4c2e780557562 | /jd_spider/pipelines.py | 59c93f502dee0ecb37fe05de463016e0fe0a5c3d | [] | no_license | lhr0323/jdspider | b8d05917f88327c0b78b2a0215e74da1bd1d7779 | aea4c0cbf6bb80592cf7831dd1f673958c7d0a14 | refs/heads/master | 2020-04-25T09:31:48.239471 | 2019-02-26T09:22:56 | 2019-02-26T09:22:56 | 172,678,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,584 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
import MySQLdb.cursors
from twisted.enterprise import adbapi
from scrapy.xlib.pydispatch import dispatcher
from scrapy import s... | [
"lhr0323@126.com"
] | lhr0323@126.com |
47cf4c2ecce8403d5625bf20cbcfc02177da830a | f932637f162b34e06fc5b8b667b0eb0969ecec05 | /Progra (1).py | eff2f10c36b569af97adcb9996b684b0a7c460fc | [] | no_license | ElizabethCordoba/Proyecto-Programado-3-Lenguajes | 990fde86507e422c5fb709767b04f06e0897c2cf | 1e6ac99008153ae403b8f412103050ad298697a4 | refs/heads/master | 2020-12-13T20:55:19.256349 | 2013-11-07T12:00:08 | 2013-11-07T12:00:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121,739 | py | ## funcion que lee y archivo y mete en la lista las expresiones
def leer_archivo(archivo):
archivo=open(archivo,"r")
cont=-1
lista_var=[]
linea=(archivo.readline().strip("\n")).strip("\t")
aux=""
while linea!="":
if linea[0:3]!="val" and linea[0:3]!="let":
lista_var[cont]=li... | [
"elizabethcordoba.a.70@gmail.com"
] | elizabethcordoba.a.70@gmail.com |
100392ad1e0121031ceff449ca347b8017cd7778 | 8cd3fffebd2d91e22923ce83642348fd07169298 | /dpca_local.py | ade94095994215ba151707e0dcebe7bf55e60e5b | [] | no_license | trendscenter/dPCA | e5231bb8af10d59c993878a0ee57922ee9134b2b | 53267145d22b88aa83ca9e2f5a4fa92df0c34b12 | refs/heads/master | 2021-08-09T00:27:03.828445 | 2017-11-11T18:42:30 | 2017-11-11T18:42:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,527 | py | import json;
import argparse
from os import listdir
from os.path import isfile, join
import sys
import numpy as np
parser = argparse.ArgumentParser(description='help read in my data from my local machine!')
parser.add_argument('--run', type=str, help='grab coinstac args')
args = parser.parse_args()
args.run = json.l... | [
"hafizimtiaz@sarwate-imac-4.engr.rutgers.edu"
] | hafizimtiaz@sarwate-imac-4.engr.rutgers.edu |
fb80e471da8b7561971f88e437a7d2eb084ee749 | 2aff50ef8d9750b92c32a5b9da04f2bfc0c6cb3f | /accounts/admin.py | d8c0dd3e6ec16864b2f16859a0d0ec58c78049c2 | [] | no_license | boon-teck/food_que_be | e3992911baa88cc0aa1e65b55285c249f2bf6da5 | 92da67300b60881e71d1375c7cf9789988cdb918 | refs/heads/master | 2023-06-25T14:48:01.556516 | 2021-07-15T18:48:41 | 2021-07-15T18:48:41 | 387,481,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | from django.contrib import admin
# from django.contrib.auth.admin import UserAdmin
from accounts.models import User
# Register your models here.
admin.site.register(User)
| [
"boonteck.soh@hotmail.com"
] | boonteck.soh@hotmail.com |
013a365cc06741507c0e6c074be9b9af84751cc1 | 2a5682a3214f9270a23867b9ce2d4c4d1a3c0686 | /bookmarket/bookshop/models.py | 19ebcff3a2492f8e775240d2da8eef7355fb7b44 | [] | no_license | AGiribabu/book_seller | 14c682d5277249e20c94f3c67b0d8ac05dccd4bb | 1cdd270ccb2cb9bbed9eff5cb65e1f39eb83e232 | refs/heads/master | 2020-04-13T18:25:34.444855 | 2018-12-28T06:42:58 | 2018-12-28T06:42:58 | 163,373,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,627 | py | from django.db import models
class Genre(models.Model):
'''
Model for Genre
'''
name = models.CharField(max_length=20,blank=False)
genredetails = models.TextField(blank=False)
slug = models.CharField(max_length=20, blank=False)
MetaData = models.TextField(blank=True)
Objects = mod... | [
"AGiribabu@gmail.com"
] | AGiribabu@gmail.com |
85b2a652dca6bb5f8af37a384d5e096c49a696d6 | ca2c82aecbe9bf6ef8fe227c60bbcacf26ae4837 | /dataset_preparation/split_tfrecords_vgg2.py | b7da326ef564dc7a9b9933e92bdc4d2d20ca1c9f | [
"Apache-2.0",
"BSD-2-Clause"
] | permissive | vmelement/ALAE | fb7483ca9766c9ce958f3bd22f62459ae97145bc | 523c1bfaf2d6bbe5798b43fa547bec5c9cf68fa4 | refs/heads/master | 2022-12-03T07:16:45.480355 | 2020-08-12T18:48:25 | 2020-08-12T18:48:25 | 284,524,903 | 0 | 0 | null | 2020-08-02T19:10:40 | 2020-08-02T19:10:40 | null | UTF-8 | Python | false | false | 3,787 | py | # Copyright 2019-2020 Stanislav Pidhorskyi
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | [
"vm@discoverelement.com"
] | vm@discoverelement.com |
6726f4d241edca9a488fdffc69e739ecfe01af3e | d5f5cb6c35d551533dd37f89a7458c23a74ef3c8 | /semisup/test.py | 331cee0f3919d10526b8a47c3982a7fbcbd7cd4c | [
"Apache-2.0"
] | permissive | ahsanshahenshah/lba | 548b797d4786e8fe776df45a54db61b994cb778d | 551a9b6ebadeeb5dfdf465c1596ed5d6840899f3 | refs/heads/master | 2020-04-11T08:33:05.336763 | 2018-12-13T14:54:43 | 2018-12-13T14:54:43 | 161,647,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,139 | py | import tensorflow as tf
from time import time
import numpy as np
import tensorflow.contrib.eager as tfe
#tfe.enable_eager_execution()
#asd = tfe.Variable(1)
#n = #files = tf.data.Dataset.list_files(n)
#t = files.make_one_shot_iterator()
#dataset = tf.data.TFRecordDataset(files,num_parallel_reads=1)
#dataset = dataset... | [
"ahsan.shahensha@logivations.com"
] | ahsan.shahensha@logivations.com |
d081b498cb6178774bf8f35a2a67d72c12e3fec6 | 0ab6557072a2321b635d5c96042c4594ab055b57 | /mytopo.py | 3f9b59d1ecc636ab70aea3064a2bf368c76f1aed | [] | no_license | cccoca/Computer-Network | 4fdc0232a05d015ac3a9e26e6b05e33d0dde0f4a | 575e1847f3acc5ee3f15345ed87efe5c83695652 | refs/heads/master | 2020-03-19T14:14:56.206144 | 2018-06-08T12:29:16 | 2018-06-08T12:29:16 | 136,615,079 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,444 | py | from mininet.topo import Topo
class MyTopo( Topo ):
"Simple topology example."
def __init__( self ):
"Create custom topo."
# Initialize topology
Topo.__init__( self )
# Add hosts
Host1 = self.addHost( 'h1' )
Host2 = self.addHost( 'h2' )
Host3 = self.ad... | [
"947493464@qq.com"
] | 947493464@qq.com |
28a46aba01574e1c43d45eafd77186fa39ec2fa1 | 4298360a664170a54c4cac29c4e22da8f7447af3 | /setup.py | 2871c139c141e1922918fe9b7d37a2fc4c573c53 | [] | no_license | kpj/PySOFT | bf5beebd5029554994d6bdeed913c55581b75321 | ad96f7406ccacce6811f8a4d712e117ecfa44413 | refs/heads/master | 2021-01-25T08:32:24.877472 | 2018-03-05T17:24:49 | 2018-03-05T17:24:49 | 30,477,571 | 0 | 2 | null | 2018-03-05T17:24:50 | 2015-02-08T02:01:51 | Python | UTF-8 | Python | false | false | 484 | py | from setuptools import setup
def readme():
with open('README.md') as f:
return f.read()
setup(
name='PySOFT',
version='0.0.6',
description='SOFT (Simple Omnibus Format in Text) file parser',
long_description=readme(),
url='https://github.com/kpj/PySOFT',
author='kpj',
author_email='kpjkpjkpjkpjkpjkpj@gmail... | [
"kpjkpjkpjkpjkpjkpj@gmail.com"
] | kpjkpjkpjkpjkpjkpj@gmail.com |
664f09053f27f2b77899c5910bdf31676aa50d20 | 20a3cc1106fa86fc2d45cd1728cc87d5db97e1f7 | /boost/__init__.py | 5fcaf0454eb4a7d2110c8944fffced5eb4adc99e | [] | no_license | sarahboufelja54/galatea | f5664f0b3117629b2c5bbe078a1bd52bb5e359e6 | 002a9f2905868be25b71770190fb2d5eda11c861 | refs/heads/master | 2020-12-04T13:45:07.697189 | 2018-12-12T16:27:09 | 2018-12-12T16:27:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,999 | py | from collections import OrderedDict
import theano.tensor as T
from pylearn2.costs.cost import Cost
from theano.printing import Print
from pylearn2.expr.nnet import softmax_ratio
from pylearn2.models.mlp import MLP
from pylearn2.utils import block_gradient
from pylearn2.utils import safe_izip
from pylearn2.utils import ... | [
"goodfellow.ian@gmail.com"
] | goodfellow.ian@gmail.com |
4ee09b6d1e1b60ca98c62f82e745121f889643a0 | a667d0e196e2772f995aa125e466f8bacb0186e1 | /cortex/server/server.py | 17d73c31af025e3517b024f0f16b7b7830b48ad9 | [] | no_license | taufnast/cortex | 8c0bf0457084e575cc918eea290b4fd27cc8919c | 7bf8b9768f99b0c62a776ab57e3cae4a0b8ab763 | refs/heads/master | 2022-09-06T06:37:11.932084 | 2020-06-01T20:26:07 | 2020-06-01T20:26:07 | 245,861,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,181 | py | import numpy as np
import yaml
import json
import copy
from flask import Flask
from flask import request
from pika import BasicProperties
from cortex.msgbrokers import find_msg_broker
from cortex.reader import parse_from
from google.protobuf.json_format import MessageToDict, MessageToJson, ParseDict
from pathlib import... | [
"anastasia@certora.com"
] | anastasia@certora.com |
b3c81f15bd5f9eb552e420fac36517d1df4688d2 | 5e5516d7511fe88441c6f01c5881336b80afafc3 | /couchapy/decorators.py | c171af6f5298a1d1b16009195a09ede98903ac1b | [
"Apache-2.0"
] | permissive | aisenor/couchapy | 6e0ea006769024e83cca1a692e950719173de2f5 | 3431c606cea78b90db2bf2afc9e8a530966d18d6 | refs/heads/master | 2022-06-18T15:39:15.735704 | 2020-04-06T12:00:33 | 2020-04-06T12:00:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,182 | py | from functools import wraps
import requests
from re import sub
import couchapy.error
def _process_filter_format(filter_format, filter):
if (filter_format is not None):
for key in filter.keys():
if key not in filter_format:
raise couchapy.error.InvalidKeysException("The provid... | [
"lee@torusoft.com"
] | lee@torusoft.com |
ab6f3740bc734f29f73b2de48ec28c14cbb6e245 | 07929b2a3b0955a0b1aae938bc2afddc8cd2060a | /companies/migrations/0001_initial.py | 6f260c58c6ad6d0dcc77721c597d5d7d21847ec5 | [
"MIT"
] | permissive | Antman261/pdpdmeetup | fb70a7a08c1fd2eb983007b788f3ecce1de1e7cb | 25f7c8fc4092b7a3fa105a98c03185fe639bdd5b | refs/heads/master | 2021-01-18T07:42:44.791905 | 2016-06-29T10:39:13 | 2016-06-29T10:39:13 | 62,816,828 | 1 | 0 | null | 2016-07-07T15:14:51 | 2016-07-07T15:14:51 | null | UTF-8 | Python | false | false | 753 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-05-25 14:10
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Company... | [
"josemuar@hotmail.com"
] | josemuar@hotmail.com |
3aca5990393a22c05a881749cc4244289bd6ecee | b7affc938e20e21a351cfa1465b10137c6ca914c | /twoslug/model/__init__.py | 5cb775b69a012b8f302a060213fae58aaefa5320 | [
"Apache-2.0"
] | permissive | aliles-heroku/twoslug | 83009ac378dde937e14c0e26642361c4088b1629 | f129b4ca2f54ab4efc81e4ae395abc172a23e2dd | refs/heads/master | 2016-09-06T15:24:20.350575 | 2014-08-04T03:21:12 | 2014-08-04T03:21:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | from __future__ import absolute_import
from . import wordnet
from . import doge
from . import markov
| [
"aaron.iles@gmail.com"
] | aaron.iles@gmail.com |
7c0bf7ade1f8db725a4ef41dc22305288b4582ce | 2716d8e04c957aebc5137b3dbb719cbb31eaf013 | /user_extent/users/models.py | 74d53617f24544e6ce4de123d9e95b400466ebb0 | [] | no_license | anlaganlag/mini_proj_component | 01d5fdd641cbc2a5199865d64b21431603704bd1 | 1def0fc576bb422b6819bd2df56b8e7cd48d3368 | refs/heads/master | 2021-01-06T23:54:13.921612 | 2020-02-20T10:28:55 | 2020-02-20T10:28:55 | 241,518,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | from django.db import models
from django.contrib.auth.models import AbstractUser
# Create your models here.
class CustomUser(AbstractUser):
pass
def __str__(self):
return self.username
| [
"tanjhu@163.com"
] | tanjhu@163.com |
a825d645ab9c589d0f945d9e74f5db46b2e79929 | d5c989d018d7adac078e26bff63da4a636d2a88c | /hackerearth/migrations/0002_conversation_bot_context.py | 37f6b864a5e1a6fc0bc992ffea7c854f4984ca28 | [] | no_license | edufanelli/hackerearth2019 | 1b70d641f7dc223e38accb69eb68a7cfc28bae35 | bd5f80bbab0f7bbd9c274a325021e91e4f522494 | refs/heads/master | 2020-09-21T11:25:20.328159 | 2019-12-04T01:20:00 | 2019-12-04T01:20:00 | 224,774,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 949 | py | # Generated by Django 2.2.7 on 2019-12-01 21:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hackerearth', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Conversation_bot_context',
fields=[
... | [
"eduardofanelli@gmail.com"
] | eduardofanelli@gmail.com |
a2092c854e8742bccf19c23c9363f11036719fb6 | d50820254bac6ff547f5ffbf62297b5d3fe7328b | /seq_data_processing/nucleotide_processing/wormbase_api_querying_tests.py | 0b8b5448282679570d254f02751060174aaa9507 | [] | no_license | billsun9/PhenotypePrediction | 007ccc4ab4460dde9793e5e2a5d9d40b7f9dd250 | d02cd2b8a208f644b122654358fd70db88b219b9 | refs/heads/main | 2023-06-04T10:16:09.660514 | 2021-06-27T17:45:53 | 2021-06-27T17:45:53 | 361,290,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,262 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jun 27 11:43:40 2021
@author: Bill Sun
"""
# %%
import requests
from bs4 import BeautifulSoup
import numpy as np
import pandas as pd
import re
import pickle
# %%
base_url = 'https://wormbase.org/species/c_elegans/variation/'
variation = 'e1370'
url = base_url+variation
r... | [
"billsun9@gmail.com"
] | billsun9@gmail.com |
758845a98bd96b61545b99c95504cc4dd0519915 | 3a2118fa46f98a2ce0b1b6f8073ea4bd4b5c217d | /api/api/migrations/0028_remove_testeusuario_user.py | 3f587115685412197dee03bd57eb1b2d56f0a699 | [] | no_license | daviwesley/easy-chamadas | 46a1f258139701428c85bc02d2b60aae7644e051 | 691ce6c7b8559a8ca0b9638fdcf98e31e4f54384 | refs/heads/master | 2022-12-10T09:49:38.505005 | 2019-02-25T21:34:05 | 2019-02-25T21:34:05 | 150,799,314 | 0 | 1 | null | 2022-12-08T14:36:01 | 2018-09-28T22:10:26 | Python | UTF-8 | Python | false | false | 328 | py | # Generated by Django 2.1.2 on 2018-11-16 02:18
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('api', '0027_auto_20181111_0421'),
]
operations = [
migrations.RemoveField(
model_name='testeusuario',
name='user',
)... | [
"daviwesley@alu.ufc.br"
] | daviwesley@alu.ufc.br |
9a9235ab91d07c7b900e6f176a36438246f30741 | 8f1a28adba48a30898f3d3797822ff621f2ff9b2 | /utils.py | da800ba2939b8a687b364f7c7a3400d31bae9cbe | [] | no_license | lucmski/trendy-twitter-bot | e9d74b0f53618d2692b863e67eddd5e6beda9101 | 4b24196984e20fb4789880205a5cdc82a6d1264f | refs/heads/master | 2020-07-31T15:04:22.038804 | 2018-08-12T07:18:13 | 2018-08-12T07:18:13 | 210,646,398 | 1 | 0 | null | 2019-09-24T16:15:04 | 2019-09-24T16:15:03 | null | UTF-8 | Python | false | false | 2,250 | py | import re
import nltk
import markovify
import requests
import random
from credentials import GIPHY_API_KEY
class POSifiedNewlineText(markovify.NewlineText):
def word_split(self, sentence):
words = re.split(self.word_split_pattern, sentence)
words = [ "::".join(tag) for tag in nltk.pos_tag(words) ]... | [
"tim.shur@gmail.com"
] | tim.shur@gmail.com |
b14147fcf4d54a024e26e20ab40bdbe257953f51 | 5f6b48db5b402541caa089ef676e679bd4b21ef9 | /test/hlt_files/hlt_MuHad.py | 8450f70f8ffc20416d5c36af80bf5bb88283d908 | [] | no_license | halilg/openHLT | b4eda18bbed6cc05a1381e834458cf0ececdb692 | 49d6f43e14794f7c13c88de012a4009b68699e14 | refs/heads/master | 2020-04-24T08:08:29.923798 | 2013-08-09T09:59:50 | 2013-08-09T09:59:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549,075 | py | # /cdaq/physics/Run2012/8e33/v2.1/HLT/V7 (CMSSW_5_2_7_HLT3)
import FWCore.ParameterSet.Config as cms
process = cms.Process( "TEST" )
process.HLTConfigVersion = cms.PSet(
tableName = cms.string('/cdaq/physics/Run2012/8e33/v2.1/HLT/V7')
)
process.streams = cms.PSet(
A = cms.vstring( 'BJetPlusX',
'BTag',
... | [
"halil.gamsizkan@cern.ch"
] | halil.gamsizkan@cern.ch |
24364854b0efa09b1fd0ed72288c66064dfb1353 | a2e3f4944076a9d25fd6e7aa30d0cda55c47ff18 | /template_dynamicloader/views.py | 2f66be35ba8cae440020eeac4d89c162fbdf329c | [] | no_license | redatest/Shakal-NG | fb62b58b3d4c7a6a236beed8efd98712425621f2 | d2a38df9910ec11b237912eefe1c1259203675ee | refs/heads/master | 2021-01-18T02:21:44.654598 | 2015-03-21T14:09:56 | 2015-03-21T14:09:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | # -*- coding: utf-8 -*-
from django.core.urlresolvers import reverse
from django.http import HttpResponseRedirect
from django.views.decorators.http import require_POST
from template_dynamicloader.forms import ChangeTemplateHiddenForm
from template_dynamicloader.utils import switch_template
@require_POST
def change(r... | [
"miroslav.bendik@gmail.com"
] | miroslav.bendik@gmail.com |
b4189e2890cf1a95e9133a85b4a520a56542c3a0 | 8a9f09c7048f79043280a3552a4f9b4ea950d167 | /service_venv/adserver/bin/easy_install | 72e7259f2b8cb09231c4d61f8f1525cc19696c94 | [] | no_license | ajinkyapathak/adservice | 6688e7216292f30574b2a673ab3bbeff40d0ae5c | 073cc35667e9afe0b0577ad8c906d7c29edc2185 | refs/heads/main | 2023-05-11T04:29:00.619932 | 2022-07-25T05:12:26 | 2022-07-25T05:12:26 | 229,237,294 | 0 | 1 | null | 2023-05-01T21:19:22 | 2019-12-20T09:51:58 | Python | UTF-8 | Python | false | false | 253 | #!/home/ajinkya/adserver/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ajinkya.pathak@agrostar.in"
] | ajinkya.pathak@agrostar.in | |
fbb590e9d0e3c97035b80b0a45b1ebc1aac74239 | 69b6f6b14c75c53da54c4c907bb02a77a7d0230d | /.ycm_extra_conf.py | c3a96c119fd1423139405fa9fe8329f7a2457a70 | [] | no_license | cerveka2/rir | 009aae4bc2ee24f406bb58b9fad0f0ab7a2b59df | 25c18f00c7cbd690f3d4450aa1441eecb8fa2a47 | refs/heads/master | 2020-03-26T15:25:13.708942 | 2018-08-16T08:49:08 | 2018-08-16T08:49:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,834 | py | # Generated by YCM Generator at 2016-11-01 15:50:59.501081
# This file is NOT licensed under the GPLv3, which is the license for the rest
# of YouCompleteMe.
#
# Here's the license text for this file:
#
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publis... | [
"o@o1o.ch"
] | o@o1o.ch |
0b113dbee95e60808131df07d4c7d8ad9f011301 | 763b72993beb04681a28949d2ebcdc205d497bf6 | /parseex.py | 636b074ab13f13a5c185a3ab9564832f94d73b49 | [] | no_license | hamza07-w/img_type_converter | a7e1bf368f91309d3d8b80dec8447ad9386edab4 | 761b451729ea7c537cc1ac33a9da69e718df7a1d | refs/heads/main | 2023-08-15T14:01:49.706146 | 2021-09-16T19:09:24 | 2021-09-16T19:09:24 | 345,197,895 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 625 | py | #!/usr/bin/env python
import optparse
import requests
parser = optparse.OptionParser()
parser.add_option("-u", "--url", dest="url", type="str", help="here you need to past url of img")
parser.add_option("-i", "--img", dest="img", type="str", help="here you need to penter type of img you want to convert to")
(opt,... | [
"noreply@github.com"
] | hamza07-w.noreply@github.com |
4e727091b2fd22fb5add4c9b86864a3a44c97895 | 5459616d34a368031aa04ad437f5e87ae53d7d51 | /Fundamentals of supervised learning.py | 5d77cec8c7f604cc5f1f74faeb10c84b6f1ac4d0 | [] | no_license | eltonlanders/Supervised-Learning-Algorithms | 48fd924aadc161c32e3c7075326b3b8961a649ca | f027a4c79b2d149c9548388cfe34fd7eaf01aa84 | refs/heads/main | 2023-03-18T18:08:10.495039 | 2021-03-08T07:18:41 | 2021-03-08T07:18:41 | 345,564,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,776 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Feb 27 08:27:48 2021
@author: elton
"""
import pandas as pd
import numpy as np
#Loading and Summarizing the Titanic Dataset
df = pd.read_csv(r'C:/Users/elton/Documents/Books/Packt workshops/The Supervised Learning Workshop/The-Supervised-Learning-Workshop-master/... | [
"noreply@github.com"
] | eltonlanders.noreply@github.com |
21294b9a0632585a5d552d1ca8c0526639089b9a | 675ea71974e73d01c01972ae1211dab6c3273864 | /twisted_client_for_nimbusio/rest_api.py | 25a1b3b5e0003002032f0ba2577a112b826288ff | [] | no_license | SpiderOak/twisted_client_for_nimbusio | 1e8880a24b6852428d6d13c59d78e0df8a21386a | 8c70a46112f809780f725f778dce24f6ff08aaea | refs/heads/master | 2021-01-10T20:44:49.912621 | 2013-03-07T21:02:57 | 2013-03-07T21:02:57 | 7,900,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,436 | py | # -*- coding: utf-8 -*-
"""
rest_api.py
support the nimbus.io REST API
"""
from lumberyard.http_util import compute_uri as compute_uri_path
def compute_archive_path(key, *args, **kwargs):
"""
compute a path to archive the key
"""
return compute_uri_path("data", key, *args, **kwargs)
def compute_head... | [
"dougfort@spideroak.com"
] | dougfort@spideroak.com |
6a138ba973cb0c3445c9e304eb69802cea8a51f1 | 34b76d94ff323e65e76be9bef71379e73046ad1f | /sacred_runs_final/_sources/run_sacred_926b2f1738101acc8665dff2324ae499.py | 44541df559402ca43e56054e8681d454cc6dacc7 | [
"MIT"
] | permissive | lorelupo/baselines | 5324e3f05615789608e6119ae7395b77973cbe8c | 8b6df664ecb714e77703f8fd9c7ea3841048bb28 | refs/heads/master | 2020-04-29T20:19:34.256241 | 2019-02-28T19:18:21 | 2019-02-28T19:18:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,135 | py | #!/usr/bin/env python3
# noinspection PyUnresolvedReferences
'''
This script runs rllab or gym environments. To run RLLAB, use the format
rllab.<env_name> as env name, otherwise gym will be used.
export SACRED_RUNS_DIRECTORY to log sacred to a directory
export SACRED_SLACK_CONFIG to use a slack plugin
... | [
"nico.montali24@gmail.com"
] | nico.montali24@gmail.com |
67686cd35abc399e2bafd17dc1e5472c07dd21ea | b71a22a01e55b098ddbe08b7a4d9b1d423f6445e | /app/app/settings.py | 16f68180b087e3213abeb937b5eef4dcaecdea6a | [
"MIT"
] | permissive | DmitryBovsunovskyi/django-training-app | 4f26a8cb2b128066e0c612973e6739bcac6e7023 | 90b32a9572b6b6827a6b4622af3776c9cef0b0dc | refs/heads/main | 2023-03-29T22:09:18.164711 | 2021-03-29T12:47:39 | 2021-03-29T12:47:39 | 346,772,915 | 0 | 0 | MIT | 2021-03-31T10:51:31 | 2021-03-11T16:51:30 | Python | UTF-8 | Python | false | false | 4,323 | py | """
From new branch
Django settings for app project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
... | [
"dmitrybovsunovskyi@gmail.com"
] | dmitrybovsunovskyi@gmail.com |
642f6e0e9b192453ad9d2a8d58de8557d8ad0ab5 | 7192a6e3e2debd26919390941f1a7bc05255f861 | /Code_fast/test_sdA.py | f6566f98913d299b22aaaf27a11c154d358f9da2 | [] | no_license | digirak/TIFR-code | bfff28bb8f85aebb0fb122c52cefe1c8a6be8985 | 5961828397e713f2a46b172d20b0cb0187f97a68 | refs/heads/master | 2021-01-10T12:06:20.992655 | 2016-02-29T07:47:33 | 2016-02-29T07:47:33 | 50,757,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,913 | py | from test_sdA import *
from stacked_dA import Stacked_dA
import theano.tensor as T
import numpy
from theano import function,pp
import timeit
import os
import sys
def test_dA(learning_rate, training_epochs,
sig,sig_noise,chunks,batch_size=20,n_ins=441,n_hidden=1000):
"""
This demo is tested on MNIS... | [
"raknath@gmail.com"
] | raknath@gmail.com |
b25ce7f623ec6fdde3d149c689911c96dd5e5206 | 471763d760e57f0487d5f032d261674c6fb732c8 | /pymoo/experimental/my_test.py | c374176b5538cd3516ee40931e823ed8ac6f23c1 | [
"Apache-2.0"
] | permissive | s-m-amin-ghasemi/pymoo | 7b583834d2f6dea26592001eb59e45472dadd490 | 74123484b0f72d601823bcda56f9526ad12e751a | refs/heads/master | 2020-05-02T09:55:31.641675 | 2019-03-04T19:24:37 | 2019-03-04T19:24:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | from pymoo.operators.crossover.simulated_binary_crossover import SimulatedBinaryCrossover
from pymoo.operators.mutation.polynomial_mutation import PolynomialMutation
from pymoo.optimize import minimize
from pymoo.util import plotting
from pymoo.util.reference_direction import UniformReferenceDirectionFactory
from pymop... | [
"jules89@arcor.de"
] | jules89@arcor.de |
fe89fc03e568e8325052551c739aedd539b5192b | af5a0681e651207ac7d6f1f03d7c49c1905fe47c | /src/outputs/TimelineAnimation.py | 8186101f5fe3aff2e82071bd51d5e290d4320395 | [] | no_license | rlui1/robo_blender | f03e8bfec5dc8cd6bc2eea661f026f9a400079a8 | 87072eea3810f099505061983c3cd75582d96203 | refs/heads/master | 2020-04-16T03:32:15.482466 | 2015-02-23T20:50:23 | 2015-02-23T20:50:23 | 165,235,053 | 0 | 0 | null | 2019-01-11T11:44:52 | 2019-01-11T11:44:52 | null | UTF-8 | Python | false | false | 1,523 | py | import rospy
import Utils
class FrameMap:
""" Represents the position of an animation in the timeline. """
def __iter__(self):
return iter(range(self.frame_start, self.frame_end))
def set_duration(self, val):
self.duration = val
def get_frame_duration(self):
return float(self.frame_start - self.... | [
"gabrielius.m@gmail.com"
] | gabrielius.m@gmail.com |
3a1962855bf806f40e9e9f6b4bdb7b6754e65897 | fe2c4709aec40e2d6da8ff732d91b93fc172d2c6 | /setup.py | 09182f0e2ac6f7cd00d690640499fb82c7d115c5 | [
"MIT",
"CC-BY-NC-4.0",
"CC-BY-NC-SA-4.0"
] | permissive | swarmer/depchecker | 5c4ab3761d27e62956fbc44b79fc9269c4052a68 | 9b0daf8f2052d69da9496125db523449d0f1756b | refs/heads/master | 2023-08-31T07:05:23.591299 | 2018-11-17T15:37:22 | 2018-11-17T15:37:22 | 104,056,102 | 1 | 1 | MIT | 2023-09-11T20:51:15 | 2017-09-19T09:39:31 | Python | UTF-8 | Python | false | false | 2,182 | py | import codecs
import os
import re
from setuptools import find_packages, setup
# utility functions
def slurp(path):
with codecs.open(path, 'rb', 'utf-8') as f:
return f.read()
def find_meta(field):
meta_match = re.search(
r'^__{field}__ = [\'"]([^\'"]*)[\'"]'.format(field=field),
MET... | [
"anton@swarmer.me"
] | anton@swarmer.me |
5252e557a96623c7eb1aedce2f90affb3e6db048 | c6fa53212eb03017f9e72fad36dbf705b27cc797 | /RecoLocalTracker/SiPixelRecHits/test/readRecHits_cfg.py | 6de508131e53ef816856fae2633ab4039bcb12eb | [] | no_license | gem-sw/cmssw | a31fc4ef2233b2157e1e7cbe9a0d9e6c2795b608 | 5893ef29c12b2718b3c1385e821170f91afb5446 | refs/heads/CMSSW_6_2_X_SLHC | 2022-04-29T04:43:51.786496 | 2015-12-16T16:09:31 | 2015-12-16T16:09:31 | 12,892,177 | 2 | 4 | null | 2018-11-22T13:40:31 | 2013-09-17T10:10:26 | C++ | UTF-8 | Python | false | false | 1,987 | py | #
# rechits are not persisent anymore, so one should run one of the CPEs
# on clusters ot do the track fitting. 11/08 d.k.
#
import FWCore.ParameterSet.Config as cms
process = cms.Process("recHitsTest")
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(10)
)
process.MessageLogger = cms.Service(... | [
"sha1-3a033e6407e48eb9fbe364eec828608ee1ba03ae@cern.ch"
] | sha1-3a033e6407e48eb9fbe364eec828608ee1ba03ae@cern.ch |
0e6876a1e8d88576b12e5ceb833274c7a9211072 | 2ce25c675171837f4fae787e3247310649449e75 | /scripts/pullcraftingdata.py | 4286aaa1f82fa27da52fca400b86ee11ad4c1b87 | [] | no_license | brandonwstiles/AlbionMarketOptimizer | 29767d630a3095cf98b5260fbe41dfb5db852b3e | 841ea18346030c1841b68bd370d9ac9174fd8c85 | refs/heads/master | 2020-12-02T23:23:10.797868 | 2020-01-20T06:05:38 | 2020-01-20T06:05:38 | 231,148,219 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 875 | py | from bs4 import BeautifulSoup
from flask import Flask
import json
import requests
with open('../json/TestItems.json') as jsonFile:
items = json.load(jsonFile)
for item in items['items']:
url = 'https://www.albion-online-data.com/api/v1/stats/Prices/' + item['name'] + '?'
response = requests.g... | [
"brandonwstiles@gmail.com"
] | brandonwstiles@gmail.com |
b68497fb4af46419ef3b81b78945f50158b80c22 | bf3b6607700a9eed936f043397ddb97f801c4339 | /RuleBasedControl/control_rules.py | 364b00639dc5534a3f065af28ee26ca1d7975b9c | [] | no_license | DavidChoi76/swmm_rl | 4548055f4542ec40acf3156d0a90d8a5ec8b2b8a | c260024fcd4d843d0e12a95d385de78096f25c35 | refs/heads/master | 2023-03-15T12:38:54.539578 | 2020-11-10T20:13:57 | 2020-11-10T20:13:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,300 | py | """
Written by Benjamin Bowes, 02-26-2020
This script contains functions to implement Rule-based Control (RBC) of SWMM simulations
"""
import numpy as np
import math
def find_nonzero_runs(a):
# Create an array that is 1 where a is nonzero, and pad each end with an extra 0.
isnonzero = np.concatenate(([0], ... | [
"noreply@github.com"
] | DavidChoi76.noreply@github.com |
bfef3942212fd8787ff9a982dc557466875180f2 | 18c0f7dc356db08027472243ab19ed5ab98f5dcc | /script.module.placenta/lib/resources/lib/modules/unjuice.py | 9bd6d75cf13480440c43b5f5d3c66d523db1b25b | [
"Beerware"
] | permissive | parser4life/tantrumrepo | 8656ac06f18aa3e76b4c279de61ec11ee6a88d60 | 3b37145f4772409e538cbddb0b7aa23be525772a | refs/heads/master | 2020-03-08T04:48:30.025644 | 2018-04-01T02:21:16 | 2018-04-01T02:21:16 | 127,931,630 | 1 | 2 | null | 2018-04-03T15:46:42 | 2018-04-03T15:46:42 | null | UTF-8 | Python | false | false | 4,541 | py | # -*- coding: UTF-8 -*-
#######################################################################
# ----------------------------------------------------------------------------
# "THE BEER-WARE LICENSE" (Revision 42):
# @tantrumdev wrote this file. As long as you retain this notice you
# can do whatever you want wit... | [
"31803191+muaddibttv@users.noreply.github.com"
] | 31803191+muaddibttv@users.noreply.github.com |
192816a0aa4248471ba63ca120bc57733699c6ee | 4852046aed2588c7a359c4b805251fa953399b23 | /web/urls.py | bd18502d943190273fbe1e27349abd18c0f82e9d | [] | no_license | enasmohmed/Mobily-WebSite | 8cc11cc0e31d78da85029e8885c56b4ecc4d1e33 | dbab598ca36ccbadb15e37199b719b618b5c11f9 | refs/heads/master | 2020-08-08T12:08:23.169066 | 2019-10-26T20:24:51 | 2019-10-26T20:24:51 | 213,828,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,532 | py | """web 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-b... | [
"enasm2477@gmail.com"
] | enasm2477@gmail.com |
1f4373cda3a1ff3ad29f59e43a73da09a5d9e4b8 | 49b4caa1dba9e0d692fa3af3992b79703224fc8b | /manage.py | f2d2f7cd212c9123f06a72cfe20e70db191780e2 | [] | no_license | Runpls/django_ITjobs | 8471b1239fc03956e8c5611db90007950b5d1979 | 1ea6e548d8cbf29725a6793f3e0db197bf97cebf | refs/heads/master | 2023-04-28T02:23:55.931387 | 2019-06-09T04:59:34 | 2019-06-09T04:59:34 | 190,504,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'getjobs.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Import... | [
"ngay292.5@gmail.com"
] | ngay292.5@gmail.com |
64e8e62c068ed15b021a558af13afb773d1d4574 | eb99e2e9eda8ed769bf9d27d0e1ece2f4df98302 | /nb classifier/Classifier_Star_Apply.py | dc6161463c7df1f705c079f0360b0553f029a078 | [] | no_license | AmbarDudhane/Hotel-Search-Engine | b33990d59d445ebcade0e212bc9b41a7ddf8f1ab | 8744a51461c67aec748815981be93f32d150aa34 | refs/heads/master | 2020-08-09T11:20:03.930810 | 2019-12-04T05:25:42 | 2019-12-04T05:25:42 | 214,076,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,722 | py | from sklearn.metrics import mean_squared_error
from sklearn.metrics import accuracy_score
from sklearn.metrics import confusion_matrix
from sklearn.metrics import classification_report
from nltk.tokenize import RegexpTokenizer
from nltk.corpus import stopwords
import os
import pickle
import pandas as pd
import... | [
"noreply@github.com"
] | AmbarDudhane.noreply@github.com |
a33f00ae4c2d0a44e8d884798cff5199cbd63b9e | b4914b08ce57707a4f663403566b4e8e9b68d9a0 | /hofvideos/settings.py | cd8023eb92ad11c2702bd1d251e7218271c4a589 | [] | no_license | Harshvartak/halloffamevids | 9d47521ac9cafbcc1bbb8f049e64765d300bbf6c | 89bd7d3890feecd67ba293b0ab8d62ced491d025 | refs/heads/master | 2022-12-09T10:57:47.856072 | 2019-09-26T19:31:56 | 2019-09-26T19:31:56 | 211,171,960 | 0 | 0 | null | 2022-12-08T06:38:36 | 2019-09-26T20:02:38 | JavaScript | UTF-8 | Python | false | false | 3,326 | py | """
Django settings for hofvideos project.
Generated by 'django-admin startproject' using Django 2.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
... | [
"vartak.harsh@gmail.com"
] | vartak.harsh@gmail.com |
825e5b112be413802be4e582a733b67f276cf6ad | 1ceb35da7b1106a4da4e8a3a5620d23a326a68e4 | /corticalmapping/scripts/post_recording/00_old/movie_multi_plane_single_channel_deepscope/within_plane_folder/090_get_neuropil_subtracted_traces.py | 551768f06dbf818c36c61b57bb1068b0fc1d1578 | [] | no_license | zhuangjun1981/corticalmapping | c3870a3f31ed064d77f209a08e71f44c375676a3 | 0ddd261b3993f5ce5608adfbd98a588afc56d20c | refs/heads/master | 2022-11-14T03:24:53.443659 | 2020-07-13T23:48:50 | 2020-07-13T23:48:50 | 84,975,797 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,204 | py | import sys
import os
import h5py
import numpy as np
import corticalmapping.HighLevel as hl
import corticalmapping.core.FileTools as ft
import matplotlib.pyplot as plt
lam = 1. # 100.
plot_chunk_size = 5000
def plot_traces_chunks(traces, labels, chunk_size, roi_ind):
"""
:param traces: np.array, shape=[trac... | [
"junz@alleninstitute.org"
] | junz@alleninstitute.org |
cba1f174f5c9d6f085d1d2144a177cac7730448a | 7034f75d6047be61cbd07a2854304a611ef53cee | /linear_regression/LinearReg/linear_reg.py | 460e393171ae3306923e707a526695b1447fad0c | [] | no_license | cjackie/machine_learning | c72e0fc8201bf74755e50c3f0b9933b863dc4195 | c78f8de693043eaf247399d0cb95c782329e2fd7 | refs/heads/master | 2021-01-01T16:21:11.875039 | 2016-12-27T03:50:57 | 2016-12-27T03:50:57 | 28,286,760 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,653 | py | import numpy as np
import matplotlib.pyplot as plt
class LinReg:
"""
self.names: an array of names for each feature
self.theta: np.matrix of linear coefficients, a vector
"""
def __init__(self, data_path):
names, y, X = self.parse(data_path)
X = self.__transform(X)
self.name... | [
"chaojie.keepgoing@gmail.com"
] | chaojie.keepgoing@gmail.com |
9b78264da22d980cf740f09fc3b9061cb67d48b2 | 5ae4d7a8d395feb3db091e978a12b645373fd0f4 | /project/com/controller/__init__.py | c8e71226661d4370e040a87a5a1e4771c8c33d87 | [] | no_license | Achyut4/intelligence_emp_engagement | e6b994b52ea29fba2b989c8ed0bfec00542b9e95 | 36deaa85f8e5fccb008441efe12d62d3d1964e7f | refs/heads/master | 2020-04-25T17:05:07.248007 | 2019-04-20T18:05:30 | 2019-04-20T18:05:30 | 172,934,146 | 0 | 0 | null | 2019-04-20T18:07:17 | 2019-02-27T14:50:34 | CSS | UTF-8 | Python | false | false | 563 | py | import project.com.controller.RegisterController
import project.com.controller.LoginController
import project.com.controller.DepartmentController
import project.com.controller.RoleController
import project.com.controller.DatasetController
import project.com.controller.StaffController
import project.co... | [
"noreply@github.com"
] | Achyut4.noreply@github.com |
bf50004145bd6d307ec066d1ad0794c4877ad04b | 849f05421d6becc6c9da70cb077dc356c3b4af0b | /addphoto/migrations/0002_auto_20200301_1602.py | 1aa115012e6672cc5efaab5d54635095ea376dff | [] | no_license | microStationCorp/faceshot | 63d632ff07b71c24b65577c926a28beb0e6ebd89 | 451e1a19f56a0da84f6290b2d6d15c0d8e60cb92 | refs/heads/master | 2021-02-06T20:08:35.427105 | 2020-03-03T07:16:25 | 2020-03-03T07:16:25 | 243,944,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | # Generated by Django 3.0.3 on 2020-03-01 10:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('addphoto', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='uploadedphoto',
name='image',
... | [
"sujanmondal916@gmail.com"
] | sujanmondal916@gmail.com |
7d503436d2d772f337fa170b88ce13e1e6d851f4 | d87483a2c0b50ed97c1515d49d62c6e9feaddbe0 | /.history/buy_top_fc_smart_20210204001749.py | e28c6f69964eb4311396f03581510b45098e4b0e | [
"MIT"
] | permissive | HopperKremer/hoptrader | 0d36b6e33922414003cf689fb81f924da076a54b | 406793c10bc888648290fd15c7c2af62cf8c6c67 | refs/heads/main | 2023-06-12T15:51:00.910310 | 2021-07-06T16:15:41 | 2021-07-06T16:15:41 | 334,754,936 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,730 | py | # Buy top tickers from Financhill
import requests
from tda import auth, client
from tda.orders.equities import equity_buy_market, equity_buy_limit
from tda.orders.common import Duration, Session
import tda
import os, sys
import time
from selenium import webdriver
import json
currentdir = os.path.dirname(os.path.realpa... | [
"hopperkremer@gmail.com"
] | hopperkremer@gmail.com |
2daad19369a486f1df1d13c62a3551ce498e6cfe | a17c00f7ff2481cc08cd75d90a17d38cded8fde6 | /16.py | 7e84fff6a574c27cd7e4ae28439204142c178618 | [] | no_license | robinspollak/ProjectEuler | c5013b9676d3e0a976f1f29fffbc5e48755aac26 | 41298d11ec3587c261e5c9c93494829e9b13716b | refs/heads/master | 2021-01-21T13:25:46.952417 | 2016-05-31T21:33:04 | 2016-05-31T21:33:04 | 44,571,945 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | bignumber = 2**1000
list_of_digits = map(lambda x:int(x),list(str(bignumber)))
print sum(list_of_digits)
| [
"rpollak96@gmail.com"
] | rpollak96@gmail.com |
027bb69c50ae03f62d4973b82b01570ef3170e9b | 9892312f5543eafffbd86a084daf90c8b4628a59 | /DataAnalyticsWithPython-Training/student_files/ch05_more_pandas/03_imputing.py | bbc64526e612666f822e0943770906f5eca04588 | [] | no_license | jigarshah2811/Data_Analytics_ML | 1718a79f8f569a4946b56cc499b17546beb9c67d | 107197cfd3e258c1a73c6930951463392159c3ed | refs/heads/master | 2022-01-19T19:42:14.746580 | 2019-07-21T20:21:07 | 2019-07-21T20:21:07 | 197,888,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,226 | py | """
03_imputing.py
Use fillna() to impute missing values.
Use drop() to remove columns.
Each of these is shown below...
"""
import pandas as pd
sat_temps = pd.DataFrame(data=[(78, 50), (82, 52), (83, 53)],
index=['Colorado Springs', 'Canon City', ... | [
"jigasha2@cisco.com"
] | jigasha2@cisco.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.