blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M โ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5199d29b7a9766ad46f93f5207fb801319b2a68f | 1676ac24240138302dfe0ce03d00478dde138491 | /aahil.py | 6180fe1b1260548f0dd9037e52c751f56f7c5a3a | [] | no_license | Blacktiger786/mr | fc550246d06ecd54204433f85ec66b37142d2e60 | 3b8d227ab7761f47e8bdca3831602a74569e5909 | refs/heads/master | 2022-04-20T20:35:32.752537 | 2020-04-18T06:31:28 | 2020-04-18T06:31:28 | 256,677,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,886 | py | ๏ปฟ#!/usr/bin/python2
#coding=utf-8
import os,sys,time,datetime,random,hashlib,re,threading,json,urllib,cookielib,requests,mechanize
from multiprocessing.pool import ThreadPool
from requests.exceptions import ConnectionError
from mechanize import Browser
reload(sys)
sys.setdefaultencoding('utf8')
br = mechanize.Brows... | [
"noreply@github.com"
] | noreply@github.com |
eb0b852d2a658bb922774b066101a08867293196 | 48098932f49ae05c4528f5d79385e2d8bb1731ec | /mpikat/sidecars/igui_sidecar.py | e7f0d7b57e1a5119625f95baf849a63eb3f1c8c4 | [
"MIT"
] | permissive | ewanbarr/mpikat | 80fcb29dcc4d00b52a5c49609d9ca35cf0964da5 | 1c9a7376f9e79dfeec5a151d8f483d6fdf3e7cc9 | refs/heads/master | 2022-09-25T14:51:30.885196 | 2020-10-20T14:05:50 | 2020-10-20T14:05:50 | 237,917,037 | 0 | 0 | MIT | 2020-03-13T14:35:50 | 2020-02-03T08:22:04 | null | UTF-8 | Python | false | false | 30,256 | py | import signal
import logging
import tornado
import requests
import types
import pprint
import json
from abc import ABCMeta, abstractmethod
from optparse import OptionParser
from katcp import KATCPClientResource
log = logging.getLogger("mpikat.katcp_to_igui_sidecar")
class IGUILoginException(Exception):
pass
cl... | [
"ewan.d.barr@googlemail.com"
] | ewan.d.barr@googlemail.com |
e1051bcce1faa00602bf7d2638fa6b85801899e9 | fc08261383797c4581cc6df05bfcfa0b57e52701 | /util/opentitan/topgen.py | 6870c743e59719fca3d377582ae1609ad370ddb0 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | waleeds1/azadi-new | a4c68508206003215f860c0dbc9f4c7b0ef5cac0 | c2e42438bf3ebe9cf747e3b1902eb555afcade3a | refs/heads/main | 2023-08-15T21:21:50.756003 | 2021-10-14T07:03:08 | 2021-10-14T07:03:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46,449 | py | #!/usr/bin/env python3
# Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
r"""Top Module Generator
"""
import argparse
import logging as log
import random
import subprocess
import sys
from collections import OrderedDict
from... | [
"zeeshanrafique23@gmail.com"
] | zeeshanrafique23@gmail.com |
831e178ff2a8ab2c7dd55b4d194946bb9836bc8d | b97dac0fdd497e5feadedc0ec89f167294c9ef25 | /Ch03/finding phrase anagrams/phrase_anagrams.py | 2e6c490c2e4f42d7bbdee61bac30d872908d7739 | [] | no_license | djotaku/impracticalpython | 4f6c2cd26ab12cb16eeefb1316a1f91db8666b64 | 5c8c86e80144c88ea6aa97b8326542ea50878f21 | refs/heads/master | 2021-10-08T05:51:07.353428 | 2021-09-30T23:37:04 | 2021-09-30T23:37:04 | 208,647,244 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,859 | py | import sys
from collections import Counter
import load_dictionary
dict_file = load_dictionary.load('words.txt')
# ensure "a" & "I" (both lowercase) are included
dict_file.append('a')
dict_file.append('I')
dict_file = sorted(dict_file) # makes it into list of lists with letters from each words
ini_name = input("enter ... | [
"ericsbinaryworld@gmail.com"
] | ericsbinaryworld@gmail.com |
67a8cf830caa53586b330191c8b6886df0bca681 | b7865b9f01e6f373f1bf1d49f40d6bbba11e655c | /classification.py | 40483720be8b9f79f8eca0a67fb2056d7f48b6f1 | [] | no_license | andreeabea/AMDForecastingSystem | d6beeaa2d83af4f5d0581ab95e91e1ad403621f1 | 48138bfc9389835503fae8b4c066b2665ad6605b | refs/heads/master | 2023-06-10T19:42:21.775291 | 2021-07-06T18:14:07 | 2021-07-06T18:14:07 | 328,631,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,102 | py | import numpy as np
import pandas as pd
from sklearn.ensemble import GradientBoostingClassifier
from sklearn.model_selection import KFold, cross_val_score, cross_val_predict
from tslearn.neighbors import KNeighborsTimeSeriesClassifier
from tslearn.svm import TimeSeriesSVC
from tslearn.utils import to_time_series_dataset... | [
"andreea.beatrice2@yahoo.com"
] | andreea.beatrice2@yahoo.com |
6f300349b1f81d04440306a3d5f6a00f49504e6f | f25b416baae4865aba91e6764ebfa3b3d893218e | /blog/migrations/0001_initial.py | a1fee9040dd9536bbf07861bdefbaf176cb695de | [] | no_license | Avemik/my-first-blog | 5901b7800298d6c1867dca1f1d6e2036de4fe6bb | 21260c3554b8d8891b43f2a40221608b8783ed46 | refs/heads/master | 2020-07-21T20:59:58.371875 | 2019-09-12T15:23:32 | 2019-09-12T15:23:32 | 206,974,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | # Generated by Django 2.2.5 on 2019-09-07 13:24
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"avemikm@gmail.com"
] | avemikm@gmail.com |
a841d28195099567f9a6575466096684a0c9dcf7 | 133f458094272d1ff88ff52aedeaa5a600a180b7 | /products/views.py | f6d7bdb7bd6c887ee8a5fc427afb7fae84afba7c | [] | no_license | ndirpaya/pyshop | b0a3a442079ca0750e72c80d032b11203dd26c3b | abaa6636c2e573965707eb2def00fd90ef810aab | refs/heads/master | 2022-03-29T23:21:31.364678 | 2020-01-29T21:11:29 | 2020-01-29T21:11:29 | 236,195,037 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | from django.http import HttpResponse
from django.shortcuts import render
from .models import Product
def index(request):
products = Product.objects.all()
return render(request, 'index.html',
{'products': products})
def new(request):
return HttpResponse('New Products')
| [
"ndirpaya@gmail.com"
] | ndirpaya@gmail.com |
c07a195b56a6430ae1cd12cc7690551ff48e05c1 | e57d7785276053332c633b57f6925c90ad660580 | /sdk/videoanalyzer/azure-media-videoanalyzer-edge/samples/sample_lva.py | 2ab1f294951a6235a5ce114d5aa78abe8004273d | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | adriananeci/azure-sdk-for-python | 0d560308497616a563b6afecbb494a88535da4c5 | b2bdfe659210998d6d479e73b133b6c51eb2c009 | refs/heads/main | 2023-08-18T11:12:21.271042 | 2021-09-10T18:48:44 | 2021-09-10T18:48:44 | 405,684,423 | 1 | 0 | MIT | 2021-09-12T15:51:51 | 2021-09-12T15:51:50 | null | UTF-8 | Python | false | false | 4,234 | py |
import json
import os
from azure.media.videoanalyzeredge import *
from azure.iot.hub import IoTHubRegistryManager #run pip install azure-iot-hub to get this package
from azure.iot.hub.models import CloudToDeviceMethod, CloudToDeviceMethodResult
from datetime import time
device_id = "lva-sample-device"
module_d = "me... | [
"noreply@github.com"
] | noreply@github.com |
8f253823d68500299a603d2766f6c38e76567c4a | 6b97da799cb9b72d711a5e1d6321e4e11f3cbe51 | /lib/python2.7/site-packages/oslo_messaging/notify/notifier.py | 2d58a9adf314f7cf2d6dd2a9def9c8524c365517 | [] | no_license | dx-entity/env_parabola | 3531120d213ade533052161ec70f3a511f2fc90a | f830d5f05a578b1ed2b16f6898fb226e27de6b52 | refs/heads/master | 2021-01-09T20:22:51.509076 | 2016-07-22T06:55:49 | 2016-07-22T06:55:49 | 63,930,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,822 | py |
# Copyright 2011 OpenStack Foundation.
# All Rights Reserved.
# Copyright 2013 Red Hat, Inc.
#
# 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/licens... | [
"dengxin@iie.ac.cn"
] | dengxin@iie.ac.cn |
1eeb2cafad0029b077786f0561a90d2e74ca20f8 | a560269290749e10466b1a29584f06a2b8385a47 | /Notebooks/py/marcmolina/titanic-a-pragmatic-approach/titanic-a-pragmatic-approach.py | e735644bf36485ff4e1e74d831e507fa1c5f1817 | [] | no_license | nischalshrestha/automatic_wat_discovery | c71befad1aa358ae876d5494a67b0f4aa1266f23 | 982e700d8e4698a501afffd6c3a2f35346c34f95 | refs/heads/master | 2022-04-07T12:40:24.376871 | 2020-03-15T22:27:39 | 2020-03-15T22:27:39 | 208,379,586 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 71,349 | py | #!/usr/bin/env python
# coding: utf-8
# # Titanic: A Pragmatic Approach
# > Not intended to be read by the absolute beginner.
#
# Overview of the problem: https://www.kaggle.com/c/titanic
#
# 
#
# ### Acknowledgments
# This notebook has been ... | [
"bitsorific@gmail.com"
] | bitsorific@gmail.com |
7a9afdf64f2cd4a6b567ec1cf52e36b3070f9b44 | 22be59b7203b4efbfdfce10b08be232f45864973 | /stm32pio/gui/app.py | 02383b2a6b40b3ba927e17d8cf539c832ac61255 | [] | no_license | OS-Q/S48 | 1507d5ad40e27ced354f617eb389a3005e9f3c91 | 8819cf772e7f090c407f48789793952d59a13a16 | refs/heads/master | 2023-02-03T16:43:14.181130 | 2020-12-25T12:32:03 | 2020-12-25T12:32:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37,637 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import argparse
import collections
import inspect
import logging
import pathlib
import platform
import sys
import threading
import time
import weakref
from typing import List, Callable, Optional, Any, Mapping, MutableMapping, Iterator, Union
try:
from PySide2.QtCore ... | [
"qitas@qitas.cn"
] | qitas@qitas.cn |
6f1679a486350368d7e4ec61e40ca834617f7468 | a62bb1b90a1cd206ef1485132400a60a222357f8 | /cubes.py | 82928421e9f6d010c2ce0e631fcb22b0e4f21379 | [] | no_license | palfrey/cube_generator | d5b40cfdaace87bba49d6caf43b183ba109f40b1 | 36a97c6796ec7154bb9fdc9c9ec16920fb32c4fc | refs/heads/master | 2021-01-10T21:27:02.370544 | 2012-03-04T12:54:32 | 2012-03-04T12:54:32 | 1,470,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,274 | py | import sdxf
from enum import Enum
import random
import operator
from optparse import OptionParser, OptionValueError
import math
class Direction(Enum):
POS_X = 1
POS_Y = 2
POS_Z = 3
NEG_X = 4
NEG_Y = 5
NEG_Z = 6
class Space:
def __init__(self, size, dimensions):
assert len(size) == 3, size
self.grid = [[[[]... | [
"palfrey@tevp.net"
] | palfrey@tevp.net |
358012077eb4c068106c8c7644d79efd8d5017d8 | 54d6109c8fc0aa4167eeee513163f05fc0d68775 | /vsgb/ppu.py | f810b1c269fca9778f74a01dc1c064ea0517446a | [] | no_license | AdrianoAzuos/vsgb | 2421dccb95c84250e782102ca0b0b1e05a653f5a | f9dc9a13c4dc91d42127a9f2aeaaee6cb152a9a2 | refs/heads/master | 2020-08-15T22:37:27.760549 | 2019-10-15T14:17:34 | 2019-10-15T14:17:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,428 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Documentation source:
# - https://gbdev.gg8.se/wiki/articles/Video_Display
from vsgb.byte_operations import signed_value
from vsgb.interrupt_manager import Interrupt, InterruptManager
from vsgb.io_registers import IO_Registers
from vsgb.mmu import MMU
from vsgb.window i... | [
"vitor.silverio.rodrigues@gmail.com"
] | vitor.silverio.rodrigues@gmail.com |
4aa34266c685f2f11224712c0c307105ac9c88c8 | 9a4394a6f6f186722121de02852f05d201c85ddb | /test.py | 484c8172ca949c84ec1c2c03e778c1fe035b02e5 | [] | no_license | narendramishra91/Loan-Prediction | e2aa231bad534578dbe5c5306b0da2e28894f031 | 8cdb680470a3ca3ab266f026e9ed7399f14928bf | refs/heads/master | 2023-01-11T12:21:02.749773 | 2020-11-16T19:46:28 | 2020-11-16T19:46:28 | 282,413,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,014 | py | import pandas as pd
def dataFunction():
data = pd.read_csv("loan_dataset.csv")
data.dropna(subset=['Credit_History','Married', 'Gender', 'LoanAmount', 'Dependents' ], axis=0, inplace = True)
data['Loan_Amount_Term'].fillna(360, inplace = True)
data['Self_Employed'].fillna('No', inplace = True)
data... | [
"noreply@github.com"
] | noreply@github.com |
981d0b7d42384fb91e0a4dbc2b3e07ad6d587524 | 52a1cadbb76531065fadbfc29d8e8faa644f38ce | /day 3_8.py | 6d1191cb39b1864bbb7086cd349442fab19c90d7 | [] | no_license | Harshil-Madaan/PythonCourse | d602eb6f4b031e2477eb21c47e79308e3ade9862 | 8590703cda1d6bdbe9bbe730d376a585a4437562 | refs/heads/master | 2022-12-04T22:00:34.727481 | 2022-11-16T03:57:56 | 2022-11-16T03:57:56 | 231,540,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | food=input("what is your favourite food?")
if(food=='pizza'):
print("the answer is correct")
| [
"noreply@github.com"
] | noreply@github.com |
a709c958c12a1c8bfdb511004e2eeaa5e8856efe | 6400d27c98dc94171132ce56782bfd750f5eacee | /runarrange.py | 84153e5b17686222efc992550b8dd7fffac04bb2 | [
"MIT"
] | permissive | SutirthaChakraborty/LeaderSTeM | a0e3cb038d7fbbd489884dc3f8e312c82689309f | 25dfbb14d4d62444d5ebe7721644a250b3024e5d | refs/heads/master | 2023-01-13T14:35:05.343219 | 2020-11-14T10:12:37 | 2020-11-14T10:12:37 | 282,326,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | import os
txt="list2.txt"
with open(txt) as f:
lines=f.read().splitlines()
for i in lines:
print(i)
os.system("python ArrangeDataset.py "+i) | [
"sutirtha.chakraborty.2019@mumail.ie"
] | sutirtha.chakraborty.2019@mumail.ie |
f746c7225f80a100d3823d8f0ba8896ce614b991 | 602f1d5ce6610cce4053f6b1b5bb5a5e8d87df4c | /Robin/DataStructures/Wrappers/__init__.py | 28e49b230b113efa603f0d75a8a8678971234a34 | [] | no_license | Robin-Dillen/gas | 082bbfad7777171bce18e7f426924eee1a17424e | 5ef22f5b6323e6b25dee91ecfac6fa450d27a7c9 | refs/heads/main | 2023-04-25T09:53:46.726081 | 2021-05-10T10:35:53 | 2021-05-10T10:35:53 | 327,727,013 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | from .BSTTable import BSTTable
from .LinkedChainTable import LinkedChainTable
from .RBTTable import RedBlackTreeTable
| [
"Robin.Dillen@student.uantwerpen.be"
] | Robin.Dillen@student.uantwerpen.be |
4327c210401985604466939fc38f10691eaa2bd7 | e92209e1e8916ca9fbf44dcc11dd3093d47a77f6 | /homework/views.py | 78d8410d6bf9589cd7b70f95ed039a18b5351313 | [] | no_license | zhangwei725/django_model | 2a7bce0c86464604a06377932e0db92703a1a719 | 1bfd12dd11f3ac501131fd6751a70c753e711d01 | refs/heads/master | 2020-04-06T13:59:08.694788 | 2018-11-14T09:19:33 | 2018-11-14T09:19:33 | 157,522,750 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | from django.shortcuts import render
from model02.models import Goods
def shops(request):
goods = Goods.objects.all()
return render(request, 'shops.html', context={'goods': goods})
def emp_list(request):
return render(request, 'emp_list.html')
| [
"1112@163.com"
] | 1112@163.com |
0d90aed2abf8631bd27350edf155dbaa887357d0 | 0435f7790fa66b6263d1b9ccbf255892321eb205 | /guess_colors.py | 33607b8bacf9a3197ca7a0a517c178fb15b8e757 | [] | no_license | cryingmiso/Deep-Auto-Coloring | 698d1252f2a676306a1bc2a2427dab33286d4882 | 0e2c31a33b2f34db7a5199712a4932b8e3c421ef | refs/heads/master | 2020-03-12T19:21:58.073487 | 2018-06-29T04:42:16 | 2018-06-29T04:42:16 | 130,783,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,899 | py | import tensorflow as tf
import numpy as np
import os
from glob import glob
import sys
import math
from random import randint
from utils import *
import utils
class Palette():
def __init__(self, imgsize=256, batchsize=4):
print("Loading Palatte")
self.batch_size = batchsize
self.batch_siz... | [
"cryingmiso@hotmail.com"
] | cryingmiso@hotmail.com |
68faa6edb58189ee11752aad38f554cb7cf99844 | d79978e32325bedb0ea9eba911d92c04e490ea2b | /pocket/image.py | 7a702a7a6a4a8f26481bd4a3c4553176e0620577 | [] | no_license | hypan599/mr_jack | b3e7f74c66a1472773ce51cff4c2b8b766aa6f08 | e767a6fc999707abcf66187b544961898c6070a8 | refs/heads/master | 2023-03-10T09:18:35.532169 | 2019-09-21T20:23:58 | 2019-09-21T20:23:58 | 112,902,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,668 | py | # -*- coding:utf-8 -*-
import pygame
import os
pygame.init()
screen = pygame.display.set_mode((1560, 920), 0, 32)
font = pygame.font.Font("msyh.ttf", 30)
# color
yellow = 128, 128, 0
grey = 128, 128, 128
white = 255, 255, 255
black = 0, 0, 0
root_path = "images" + os.sep
hourglass = pygame.image.load(root_path + "h... | [
"450096325@qq.com"
] | 450096325@qq.com |
cf0a90367e21ba85660810a07515523155104fb6 | f0a2d759e2fa0c6f2484b3859d8c97ae90168578 | /ffl/setup.py | 92220ec627a4bd835d731c7c807b7d0901f4a418 | [] | no_license | cjsantucci/fantasyTool | 9e817f2f8d129a008940b3df1ad7afaa94f62ea2 | 77e41c2f9b8c05165aefc4b38f3dd1d97dbe7063 | refs/heads/master | 2021-01-19T13:33:33.956244 | 2017-09-09T03:20:54 | 2017-09-09T03:20:54 | 82,398,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | from setuptools import setup
setup(
name = 'ffl',
version = '1.0',
description = "XML data parser for fantasy sports",
author = 'Chris Sandy and Ken Kohler',
author_email = 'cjsantucci@gmail.com',
license = 'MIT',
url = 'https://github.com/cjsantucci/fantasyTool/',
packages = [ "ffl", "... | [
"cjsantucci@gmail.com"
] | cjsantucci@gmail.com |
99fa4242ead8dd989e34feaa87b6080746b5a648 | d98d39282ab35e1556cce25ac706ba607b34b0e5 | /Greedy Algorithms/Maximum Number of Prizes/maximum_number_of_prizes_unit_tests.py | 150769f066900b1f02fa317deba12a4e2d583544 | [] | no_license | grommy/algorithmic_toolbox | e2129ade8bb2a69d34bf8ad9693090b96dadaef3 | bd39a7753c54ce0831381c180f96b7500d506c3e | refs/heads/master | 2023-09-05T19:02:37.397238 | 2021-11-19T14:59:41 | 2021-11-19T14:59:41 | 429,762,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | import unittest
from maximum_number_of_prizes import compute_optimal_summands
class MaximumNumberOfPrizes(unittest.TestCase):
def test(self):
for (n, answer) in [(1, 1), (6, 3), (100, 13), (4, 2)]:
summands = compute_optimal_summands(n)
self.assertEqual(len(summands), answer)
... | [
"kondratyev.n@gmail.com"
] | kondratyev.n@gmail.com |
629734b25037a9e9e3d1c41b2b77b21995f923c2 | d9be5e5cc6c302d27fe0e61dbb04b33eec89c94a | /interviewAssigner/Assigner/migrations/0003_auto_20190927_2008.py | 8096ccdaee19b6b2ddd1b2b7bca390253ea45e3e | [] | no_license | aswanthkoleri/interviewbit-interview-question-solution | c79ea670f70359373e334f4418b1b2a27278854e | e2a2315b609b0cf954cec72a339aad543a09b163 | refs/heads/master | 2020-08-02T11:56:09.777168 | 2019-09-27T20:34:01 | 2019-09-27T20:34:01 | 211,343,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | # Generated by Django 2.1.7 on 2019-09-27 20:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Assigner', '0002_auto_20190927_1942'),
]
operations = [
migrations.AlterField(
model_name='interview',
name='dateTim... | [
"aswanth9495@gmail.com"
] | aswanth9495@gmail.com |
1eeff8a6c9c7b758a4cd159661176f269703c660 | 357432c4126ed339a52eea6b74b013e26b168f35 | /custom_user/migrations/0001_initial.py | 928dc47adcd55099bb13c0e6a194059bce10e411 | [] | no_license | CAPCHIK/trytoimpress | e5fcf04be7281a0d589d8f2df9d912602366e6bc | 0fb0b93d3f72b02009f45d37cbf669e7dabf6c3f | refs/heads/master | 2023-04-07T03:59:53.229006 | 2021-04-14T17:22:11 | 2021-04-14T17:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | # Generated by Django 3.2 on 2021-04-12 19:32
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='CustomUser',
fields=[
('id', models.BigAutoFi... | [
"sk.schooldude@gmail.com"
] | sk.schooldude@gmail.com |
f80575a2cf3deabe40265f47e2b9abf084531b37 | 46357db3b1c1af699384d9cba1ffbc3c732117ad | /pytest_tutorial/basics/test_sample2.py | b47c62dc8c09358391bad0cc064fbefd13dd00fa | [] | permissive | khanhdodang/automation-training-python | 28fbd70ca4bc84e47cf17d1e4702513863e38c44 | b16143961cee869c7555b449e2a05abeae2dc3b5 | refs/heads/master | 2023-07-11T05:21:34.495851 | 2021-08-18T01:29:37 | 2021-08-18T01:29:37 | 285,208,030 | 0 | 8 | MIT | 2020-09-29T07:01:15 | 2020-08-05T07:01:46 | Python | UTF-8 | Python | false | false | 216 | py | import pytest
def test_file2_method1():
x=5
y=6
assert x+1 == y,"test failed"
assert x == y,"test failed because x=" + str(x) + " y=" + str(y)
def test_file2_method2():
x=5
y=6
assert x+1 == y,"test failed"
| [
"khanhdo.pmp@gmail.com"
] | khanhdo.pmp@gmail.com |
1aa6b1f6e602ea484a6118bb577a879a60aa4068 | 99848dc3b916ca104690be7e9b43b9ed3ead1100 | /eboard/clients/apps.py | 74c29bd24dfd60cde3bbca81a9c82c8b6bf4aa8b | [] | no_license | Sammra-22/CS-Eboard | 45e24714d0320dcb29b595fe9d49d46ed340547b | d45f4b3149607b58389b3d32cd60dc514826ff58 | refs/heads/master | 2022-02-23T17:46:38.469113 | 2019-10-13T12:35:00 | 2019-10-13T12:35:00 | 214,808,712 | 0 | 0 | null | 2022-01-21T20:03:52 | 2019-10-13T11:33:16 | Python | UTF-8 | Python | false | false | 96 | py | from django.apps import AppConfig
class ClientsConfig(AppConfig):
name = 'eboard.clients'
| [
"samir.boufatah@gmail.com"
] | samir.boufatah@gmail.com |
ac07756fec1c7a9602729712f74185d4631e88a2 | 9b021fc76be68b3a9fd886102bfda94b4899f583 | /sequential_search.py | 6fa797d988c949fdd59854c450543475096cc646 | [] | no_license | bhsaurabh/python-practice | 93f89446f0ecd9fc62b4a300bd0db029d948062b | 177b027820ef8504198852cc168268eab34d1447 | refs/heads/master | 2020-06-07T04:34:06.269652 | 2014-06-22T15:55:16 | 2014-06-22T15:55:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 930 | py | #!/usr/bin/python
def search(a_list, item):
"""
Search for an item in a list
O(N)
Args:
a_list: List to search in
item: Item to search for
Returns:
True, if item is found; False otherwise
"""
for el in a_list:
if el == item:
return True
... | [
"saurabh.bhatia@me.com"
] | saurabh.bhatia@me.com |
9a0921bfc0b020a52319468a4533f51f8849f0d0 | ebb950e622e70c3b014d927ad017e42b78df2559 | /string_to_int.py | ff28e4648fa024a0029bf061065bb8ce785d4c04 | [] | no_license | KathaVachhani/Coding | 285525fc95992f20c14877764a187067d613f390 | 8130f91f1129405af381085285ea555c166c3e91 | refs/heads/master | 2022-12-29T00:22:42.791505 | 2020-10-16T10:34:15 | 2020-10-16T10:34:15 | 292,222,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | l=[('Tom', '12/04/1999', '65kg'), ('Ab de', '17/02/1990', '63kg'), ('Kholi', '16/02/1985', '62kg'), ('Chahal', '25/09/1985', '61kg')]
# print(len(l))
s_n=[]
s_b=[]
s_w=[]
for i in l:
s_n.append(i[0])
s_b.append(i[1])
l=len(i[2])-2
s_w.append(int(i[2][0:l]))
print('Student name: ',s_n)
print... | [
"noreply@github.com"
] | noreply@github.com |
4a3eaaaf6f9d8d3ecbb972131f7739edc3fa88b9 | 2749f9ac3c4bace174f171873775181f2e09ebfa | /strings/ex6_string_validators.py | b2a6c158d56f2b91958a415dcd34f6ee4bef9ef5 | [] | no_license | 0xhappy33/hackerrank_python | 82eb38573058ad13c24aebd049fec75ee5d1769f | 0c5c20a4c1763f31b9eb9fd96c5f754269699229 | refs/heads/master | 2023-05-25T22:07:16.317166 | 2018-02-06T08:50:28 | 2018-02-06T08:50:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | if __name__ == '__main__':
s = input()
# for method in [s.isalnum(), s.isalpha(), s.isdigit(), s.islower(), s.isupper()] :
# print(any(method(c) for c in s))
for test in ('isalnum', 'isalpha', 'isdigit', 'islower', 'isupper'):
print(any(eval("c." + test + "()") for c in s))
| [
"hachange.sgroup@gmail.com"
] | hachange.sgroup@gmail.com |
4090f3954d79fa95b3147542ae914954ce50ced1 | c066e22a14eb4bfaceeced7d1d9ced751b881862 | /tests/test_flask.py | fa1c00d487473b6897c28232c3b96aadc801353e | [] | no_license | mkobar/flaskleap | 10eed89fdf02e466f654bbcf268ae5eaa9e0c50f | a185e74bd6a1798481be99825eb2e9767a28d783 | refs/heads/master | 2023-03-20T18:45:28.438145 | 2017-08-09T05:50:22 | 2017-08-09T05:50:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,310 | py | from __future__ import absolute_import
from codegen.parser import Swagger
from codegen.flask import (
_swagger_to_flask_url,
_path_to_endpoint,
_path_to_resource_name,
FlaskGenerator
)
def test_swagger_to_flask_url():
cases = [
{
'url': '/users/{id}',
'data': {
... | [
"swarvanu.sengupta@cdnetworks.co.kr"
] | swarvanu.sengupta@cdnetworks.co.kr |
da518403dfa304abfd8ff3784a3ce7d274b22794 | 8e9150fd18c5f6a1aee81d27f383fcab04945221 | /ENCODN/FRAMES/RADIOACTIVITY.py | e5e6401d50f2898c60ce86062702be9890b44fe7 | [
"MIT"
] | permissive | akshitadixit/ENCODN | 04e3297722e77bba92d1dcb4d9947663514ce110 | 7b4ecaba10314f9f59f53e9b479016b21f8b632b | refs/heads/main | 2023-03-07T02:30:46.313429 | 2021-01-22T07:13:30 | 2021-01-22T07:13:30 | 340,953,231 | 0 | 1 | MIT | 2021-02-21T16:54:37 | 2021-02-21T16:54:36 | null | UTF-8 | Python | false | false | 713 | py | from tkinter import *
from tkinter import ttk
t_names = ["RADIOACTIVITY"]
frames = []
fr_names = []
def RADIOACTIVITY(master=None):
s = ttk.Style(master)
s.configure('lefttab.TNotebook',padding=[20,20], tabposition='wn')
nb = ttk.Notebook(master, s='lefttab.TNotebook', width=800, height=570)
nb.gri... | [
"noreply@github.com"
] | noreply@github.com |
9732fd344954ff4e88a31303d0349104261cfd94 | 3f8999a077b4e9ca50241eddc5cd0f86284f4466 | /asn-to-ipv4.py | 26cb91f520e9925d4252bc316f59b58719d5b282 | [] | no_license | kendokan/pfSense-enhancements | 1a8abfa8e7f34341e51e3b3fed66c721d5230a77 | d4627818c436d766c3879dce58401300276e0341 | refs/heads/master | 2021-09-05T14:14:35.986805 | 2018-01-28T17:44:01 | 2018-01-28T17:44:01 | 112,949,055 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py | #!/usr/bin/env python2
import socket
import re
## https://tools.ietf.org/html/rfc3912
def whois_request(domain, server, port=43):
_sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
_sock.connect((server, port))
_sock.send("%s\r\n" % domain)
_result = ""
while True:
_data = _sock.rec... | [
"noreply@github.com"
] | noreply@github.com |
8bc6d88dd78f78b098e64d97469a50334292230d | 4037275bc34cada84ab026cba27f175d60441816 | /Search/src/problem_417.py | 052dd2ab14b2c82be145449df0f3f6327a546f7b | [
"Apache-2.0"
] | permissive | LihaoWang1991/LeetCode | fe524f0705eb740b0f252cdad33c722c1fbfc9c7 | 391b3beeefe1d32c8a4935a66175ab94445a1160 | refs/heads/master | 2022-11-08T02:25:28.824880 | 2020-06-14T21:18:53 | 2020-06-14T21:18:53 | 271,296,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,424 | py | # problem link: https://leetcode.com/problems/pacific-atlantic-water-flow/
class Solution:
def pacificAtlantic(self, matrix: List[List[int]]) -> List[List[int]]:
ans = []
dirs = [[-1,0], [0,-1], [1,0],[0,1]]
num_r = len(matrix)
num_c = len(matrix[0]) if num_r > 0 else 0
... | [
"noreply@github.com"
] | noreply@github.com |
f90bba74f734eb145a741d2c8e820622f35afabf | ebbfc604cb11337996517c00fc877426b5c2474f | /py/testread.py | be4643ba572e82fae8b83561dc937a79e421aae6 | [] | no_license | SeeTheEveryCornerOfTheWorld/Github_C | d1a689765f81d6d3589bb5f9a4aef79bf841c39e | 3b3713adf45442a1174e4c7cee77c38bacf69ab1 | refs/heads/master | 2022-03-08T20:50:28.570023 | 2022-02-21T05:49:07 | 2022-02-21T05:49:07 | 217,028,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | #!/usr/bin/env python
import os
import subprocess
#rf =open("/mnt/sharefile-sync/00005_40_172.168.0.175_SMB2/File6.txt",mode='r')
rf = open("/root/readspeed.txt",mode = 'r')
command = "date"
command_ret = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE,stderr=subprocess.PIPE).communicate()
size =0
while(... | [
"940725248@qq.com"
] | 940725248@qq.com |
25ec7d108b0205b53350fb5e8dad55b960ec5a57 | 462178257804e3be5603b7cf4d2f7ca872730e04 | /rescue_me/urls.py | da494ee2861cd71511da3af03ca401e42511664d | [] | no_license | davincikab/dqrf | ac62a243dd2fb812efbac19e3b2af872032a9214 | b051748b864d75b5fc58f289a4c2a1f17ab4aa81 | refs/heads/master | 2023-03-08T12:35:37.089047 | 2021-02-13T08:19:25 | 2021-02-13T08:19:25 | 318,788,271 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('chat/', include('chat.urls')),
path('', include('alerts.urls')),
path('accounts/', include('accounts.urls')),
path('api/v1/', include('api.urls')),
path('api-auth/', inc... | [
"davidnganganjeri079@gmail.com"
] | davidnganganjeri079@gmail.com |
42990fc2ef621390f648cebe4f0d3b18aee7ffdb | a6b5156e5445d3eef4c772da47dadf3a0b1d2457 | /api/settings.py | e54d76a0f2189de200dc7681c2ae0df8a12c3696 | [] | no_license | dev-frog/Django_api_ | fff4cecc5b6f26fc6ea23ab6536105ae21580be7 | 1a4b5beda504aef3494709f474ed40340aa9006c | refs/heads/master | 2020-07-22T08:49:46.106808 | 2019-10-14T16:04:47 | 2019-10-14T16:04:47 | 207,138,412 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,347 | py | """
Django settings for api project.
Generated by 'django-admin startproject' using Django 2.1.12.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
impor... | [
"kali.nisga@gmail.com"
] | kali.nisga@gmail.com |
f3aaf829e4a6a9dcfe32371652f033a8319a6c55 | 31063e125fdd4f3987ba4580eb2089a99e5f2fcc | /Components/Widgets/StylizedButton.py | f910e7570605171679ceaf9bd8d8fddcba82813b | [
"MIT"
] | permissive | shell-done/Spongo | 70b2397867837f6bcfac531948cd519d91d119ff | 3492c889b1d60cf50b4b2625b496fd6958309a8e | refs/heads/main | 2023-04-16T07:19:26.483522 | 2021-04-30T23:51:32 | 2021-04-30T23:51:32 | 346,677,492 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | from PySide2.QtCore import Qt
from PySide2.QtGui import QColor
from PySide2.QtWidgets import QGraphicsDropShadowEffect, QPushButton
class StylizedButton(QPushButton):
def __init__(self, text: str, object_name: str = "blue"):
super().__init__(text)
self.setCursor(Qt.PointingHandCursor)
... | [
"alex1999.thomas@orange.fr"
] | alex1999.thomas@orange.fr |
2cc24c8667384b5e9a629eab52a21b76df49b0ce | 38766965a5c6b1e7747ead9495becb1ef3cf5f0f | /Colab_Functions/access_drive.py | 33008795ee8cf63b89e405a370cef30ba348e552 | [] | no_license | mpcrlab/DeepLearningFall2018 | 596c5216e7cfd7263dd59f69badb3a3fd5a0429c | ca2343749fe76f5752f39ca3becd1be9c212c306 | refs/heads/master | 2020-03-26T22:38:29.826402 | 2018-12-12T05:19:54 | 2018-12-12T05:19:54 | 145,475,999 | 7 | 4 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | #Load drive helper and mount
from google.colab import drive
#autherization prompt
drive.mount('/content/drive')
| [
"noreply@github.com"
] | noreply@github.com |
cf514d8bc867ed8c8a0425190fd1809d38f1caaa | 3a59a9e0fe6014b04dd3ab7e352803f8ec112818 | /src/UniTopicModel.py | 26b5d998ac82264ff4e20bf5f879423f43004603 | [] | no_license | owengbs/TopicModel | 05adfe598980c6028431835dd88d028c6390b591 | d9aae7fe95a78c13b177823f349a9dae39e20d97 | refs/heads/master | 2021-01-10T20:30:16.924284 | 2015-07-06T06:09:51 | 2015-07-06T06:09:51 | 38,486,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,380 | py | #-*- coding:utf-8 -*-
import math, numpy
import CommonWords
"""
@author: macxin
@contact: macxin@tencent.com
@license: GPL
@summary:
ๅไธป้ขๆจกๅ็ฎๆณ๏ผๅ่https://d396qusza40orc.cloudfront.net/textanalytics/lecture_notes/wk2/TM-16-one-topic.pdf
UniTopic็ฎๆณ่่ไธคไธชไธป้ขๅๅธ๏ผ็ฎๆ ไธป้ขๅ่ๆฏไธป้ข
่ๆฏไธป้ข๏ผไธป้ข่ฏๆฅ่ชๅจ็บฟ่ฏญๆๅบ็็ฐไปฃๆฑ่ฏญ่ฏๅ
ธ่ฏ้ข็ป่ฎก๏ผhttp://www.cncorpus.org/Resou... | [
"XinYuan49@gmail.com"
] | XinYuan49@gmail.com |
737e686106e62f1541294acb60cd72b3fa44be73 | 2b7a3e8797a5c5bedd9efeae6c6378eac92f6534 | /tests/tests_my_primitive_cover.sage.py | 50f89886f94007d650a3f68d5378857a51bb5ca2 | [] | no_license | madamelo/ParkingFunctions | 5be8b81c63082acafc3ec94a6a9939061c6e7e0b | aa79acea33d7e9b6cf73ec84fccf3724566bba59 | refs/heads/master | 2022-12-19T12:31:01.448137 | 2020-09-06T16:56:10 | 2020-09-06T16:56:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,746 | py |
# This file was *autogenerated* from the file ../tests/tests_my_primitive_cover.sage
from sage.all_cmdline import * # import sage library
_sage_const_1 = Integer(1); _sage_const_3 = Integer(3); _sage_const_4 = Integer(4); _sage_const_5 = Integer(5); _sage_const_7 = Integer(7); _sage_const_6 = Integer(6); _sage_con... | [
"tessa.lelievre@gmail.com"
] | tessa.lelievre@gmail.com |
974f1cd94b2f2eb114c6c64c01378ca3c1e007ce | 10d98fecb882d4c84595364f715f4e8b8309a66f | /kws_streaming/models/lstm.py | d459369e48cccd4f93ece10dc9de15a260f6b60a | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | afcarl/google-research | 51c7b70d176c0d70a5ee31ea1d87590f3d6c6f42 | 320a49f768cea27200044c0d12f394aa6c795feb | refs/heads/master | 2021-12-02T18:36:03.760434 | 2021-09-30T20:59:01 | 2021-09-30T21:07:02 | 156,725,548 | 1 | 0 | Apache-2.0 | 2018-11-08T15:13:53 | 2018-11-08T15:13:52 | null | UTF-8 | Python | false | false | 3,941 | py | # coding=utf-8
# Copyright 2021 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... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
5d729490511e978dc60397debea6f54853c658cc | ae50e3c7577169550d2e27a8c22301114e32e7a3 | /tests/test_setup_name.py | dd8b3e3f97fed71f8fb402b536332791930764b5 | [
"MIT"
] | permissive | carver/ens.py | 7535607588ddbff97e592881cf710137a395e229 | 5f2f70281e19fdd16879427553fa07d451fbc152 | refs/heads/master | 2022-03-09T04:10:38.061362 | 2018-09-17T18:16:10 | 2018-09-17T18:16:10 | 98,133,934 | 41 | 10 | null | 2017-10-03T17:36:34 | 2017-07-24T00:27:34 | Python | UTF-8 | Python | false | false | 3,383 | py |
import pytest
from unittest.mock import Mock
from ens.main import UnauthorizedError, AddressMismatch, UnownedName
'''
API at: https://github.com/carver/ens.py/issues/2
'''
@pytest.fixture
def ens2(ens, mocker, addr1, addr9, hash9):
mocker.patch.object(ens, '_setup_reverse')
mocker.patch.object(ens, 'addres... | [
"ut96caarrs@snkmail.com"
] | ut96caarrs@snkmail.com |
c6774283e7dc5b2af73cfe173f9f654e0741ff3f | a5a6fb8850c75a49a78cf7d0601a4423e6c251df | /dev/src/pyscripts/loan_model.py | 30224132555fe1f4a33e402b34cb9a6a8761cf7c | [] | no_license | 4theKnowledge/retirement_simulation | b9d4b2371cb4f879d4fddee23181f98e732c8a87 | 104d3fbc3eac458cc7661eba8e9a2ed3befa4e7a | refs/heads/master | 2023-04-15T01:07:17.206956 | 2021-04-18T00:55:19 | 2021-04-18T00:55:19 | 222,358,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,334 | py | """
"""
import pandas as pd
from datetime import date
import numpy as np
from collections import OrderedDict
from dateutil.relativedelta import *
from datetime import datetime, timedelta
import matplotlib.pyplot as plt
from absl import flags
from absl import app
FLAGS = flags.FLAGS
flags.DEFINE_float('loan_amt', 50... | [
"15507130@student.curtin.edu.au"
] | 15507130@student.curtin.edu.au |
d3865afb9c7300e8cc858ad93c1718ce8a5add80 | 2bbc523c1d75d0fca4956030d95402b78f41413e | /maskrcnn_test/maskrcnn_benchmark/data/build.py | ab04e590bf319467a99c17ac561e5758dbcecdc2 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ivalab/grasp_primitiveShape | 30d66ac05db07d0b840012154b1653e4f0b00131 | 1d5ce48084e431944fed1239622f3cba97a9edf9 | refs/heads/master | 2022-01-18T21:46:24.276050 | 2021-10-27T22:17:07 | 2021-10-27T22:17:07 | 232,348,859 | 14 | 4 | null | null | null | null | UTF-8 | Python | false | false | 6,781 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import bisect
import copy
import logging
import torch.utils.data
from maskrcnn_benchmark.utils.comm import get_world_size
from maskrcnn_benchmark.utils.imports import import_file
from . import datasets as D
from . import samplers
from .collate_b... | [
"yunzhi.lin@gatech.edu"
] | yunzhi.lin@gatech.edu |
0485cdb57fedae3455ec6f17d4568e7e9d1c1f45 | 8908e53525bec8f9a0c9c627be81fa1790c161b2 | /post/migrations/0005_auto_20201031_1114.py | 6776158e7f138adf6b0540695b603daf391bd2fe | [] | no_license | rajni04/farmery | e4033d0f4abc6b4ab086c261ca7d6898d9b5b63d | 3a4a30dab3d614cd4a25b1e5de3e0f5d35bf80b1 | refs/heads/master | 2023-01-08T00:15:20.467363 | 2020-11-01T14:36:45 | 2020-11-01T14:36:45 | 290,197,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | # Generated by Django 3.1 on 2020-10-31 05:44
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('post', '0004_post_content'),
]
operations = [
migrations.AddField(
model_name='post',
... | [
"rajni04Kumari95@gmail.com"
] | rajni04Kumari95@gmail.com |
27ee3f82f144919b6a6735616610891dbef90858 | 6046c74ff04da073523cb3b843977fd48acbdc0c | /htsint/stats/SpectralClusterResults.py | cbc8a7cb32bccbfdbfaf26c8c31d50c83e69a707 | [
"BSD-3-Clause",
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | apex-omontgomery/htsint | 24d1c346fd345e2bb56f53e07624615fc36e01a2 | 5f4408c5427db176dc131a1fdab05ba3405aa904 | refs/heads/master | 2022-12-24T08:30:41.108365 | 2016-05-23T04:11:32 | 2016-05-23T04:11:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,361 | py | #!/usr/bin/env python
"""
A generic template
"""
import os,csv
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
__author__ = "Adam Richards"
class SpectralClusterResults(object):
"""
A class to handle spectral clustering results
"""
def __init__(self,silvalsFile,clustersFi... | [
"adamricha@gmail.com"
] | adamricha@gmail.com |
41ae2604c48a9730f3d33ab619376565bf36e041 | a0410af9159861d466a055d8f66cc06fc151f0fd | /GenAlgorithm.py | c4b1f774eda891d506a59482d8d8565d70bf33f8 | [] | no_license | ArgaMelvern/GeneticAlgorithm | f8580cdfa085cfb14b897e84439b7c2adaf7b605 | e36989b0625578b86d0909fa53a82d61a8f8b7ef | refs/heads/main | 2023-04-04T22:09:25.226797 | 2021-04-21T11:23:10 | 2021-04-21T11:23:10 | 360,138,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,365 | py | # -*- coding: utf-8 -*-
"""GA Kel 8.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1vMvWFQ0GWGaW3TqwS53j5FeWpNFy9Fbv
h(x,y) = (x^2 * sin y^2) + (x + y)
-1 โค x โค 2 dan -1 โค y โค 1
"""
import random
import math
import pandas as pd
"""# Fungsi Ba... | [
"noreply@github.com"
] | noreply@github.com |
86e26bb2ee53eacf2538f4609492b9edef7c6ffc | 6a69c5c22877c5eefd64302e17bef821ad384100 | /compute_galaxy_bias_perturbative.py | 5213c09c982799cbed8d4bbf6c339b6c9221171f | [] | no_license | BenWibking/FAST-PT | bf37e78b31714a8bae7d77424d3413cb93cef164 | 945827ae747e03c6a7041faf3a684b5c4859d28d | refs/heads/master | 2021-04-25T06:59:35.130595 | 2018-02-20T18:51:01 | 2018-02-20T18:51:01 | 122,223,749 | 0 | 0 | null | 2018-02-20T16:26:19 | 2018-02-20T16:26:19 | null | UTF-8 | Python | false | false | 6,212 | py | '''
Compute perturbative galaxy bias model.
Based on 'fastpt_example_plot.py' included in FAST-PT (commit 19472bf)
Ben Wibking, Feb. 2018
'''
import numpy as np
import scipy.integrate as integrate
from scipy.interpolate import interp1d
import FASTPT
import HT
def j0(x):
return ( np.sin(x) / x )
def j1(x):
... | [
"ben@wibking.com"
] | ben@wibking.com |
655211170d6d0d6bfb67500f2af458a29613249a | 617d3e94e2a30024cd4570ee4f7eec89914d9e47 | /data_analysis_byPro/Day10-05.py | 8cceeeea2f20a129d48b1928155cefb91176a813 | [
"MIT"
] | permissive | yunjung-lee/class_python_data | 5d29fdbc20926de84340ca88c7677c1f3ac03b7c | 67ceab73e67ec63d408894a6ab016a8d25a4e30b | refs/heads/master | 2020-04-02T09:44:59.674102 | 2018-11-09T10:02:21 | 2018-11-09T10:02:21 | 154,307,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | # Raw --> CSV
import os
import math
import csv
input_file = 'D:\\images\\Pet_RAW\\Pet_RAW(64x64)\\cat02_64.raw'
output_file = 'D:\\images\\csv\\cat02_64.csv'
header = ['Column', 'Row', 'Value']
with open(input_file, 'rb') as filereader :
with open(output_file, 'w', newline='') as filewriter :
csvWriter =... | [
"python966@gmail.com"
] | python966@gmail.com |
ed41098c79405444ae759362688d2c5fc651be15 | 187e868f562315dd512059a2a582d75311b048d9 | /realeaccounting/models.py | ffd751eae946db4b306c8d505243645ab50ae1b9 | [] | no_license | praveenchouhan411/realeaccounting_repo | 9738133e2fb7ce103b260af952969cff3ffb2bd4 | 206c0985e8cd2d9b860088d8c1f679bd7c80e53c | refs/heads/master | 2021-08-28T10:48:36.084283 | 2017-12-12T01:32:26 | 2017-12-12T01:32:26 | 113,926,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
# Create your models here.
# Create your models here.
#from django.db import models
#from django import forms
"""
class EmailForm(forms.Form):
firstname = forms.CharField(max_length=255)
lastname = forms.CharFi... | [
"praveenchouhan411@gmail.com"
] | praveenchouhan411@gmail.com |
4d55ef499a5b486d7757c607457efe537ae426e1 | e50d5d22ba46f17097d5dc86d12ec9d247929468 | /python/kwiver/arrows/core/__init__.py | ef15bfd25ed58f26153ecceff0b3af1098131b32 | [
"BSD-3-Clause"
] | permissive | nrsyed/kwiver | 488a0495b8c3b523f6639669aff73931373d4ca4 | 990a93b637af06129a842be38b88908df358761b | refs/heads/master | 2023-02-25T20:22:10.813154 | 2021-01-21T16:51:23 | 2021-01-21T16:51:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33 | py | from kwiver.arrows.core import *
| [
"john.parent@kitware.com"
] | john.parent@kitware.com |
b9d3d1bb617ba001b6cd6d980b8eb69d8968f7a6 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_125/ch131_2020_04_01_17_27_45_688490.py | 1747626a11ca0c61d555ae4650a131458602343e | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | import random
a=int(input('me diga um nรบmero '))
b=int(input('me diga outro nรบmero'))
soma1= a+b
dado1 =random.randint(1,10)
dado2 = random.randint(1,10)
soma2= dado1+dado2
dinheiros = 10
if soma2<a:
print= ('Soma maior')
elif soma2>b:
print= ('Soma menor')
elif soma2==soma1:
print= ('Soma no meio')
prin... | [
"you@example.com"
] | you@example.com |
ee41c189f6e2744c2bda1052b1c5c459b8f1b904 | d9b9169f26e2af20498551d78532550e2ed8996c | /script.py | 7880e4a3cd251e4ea6c1941c552abce067d80ff1 | [
"MIT"
] | permissive | SenayYakut/The-Fender | d64d11f17fc8f29aa06ad807668f4fe5e30767c8 | 73eef831f794da8f9476a61b46cf2122255d3300 | refs/heads/main | 2023-02-13T02:40:39.931220 | 2021-01-04T21:22:37 | 2021-01-04T21:22:37 | 326,808,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,292 | py | import csv
import json
compromised_users = []
with open("passwords.csv") as password_file:
password_csv = csv.DictReader(password_file)
for password_row in password_csv:
compromised_users.append(password_row["Username"])
with open("compromised_users.txt", "w") as compromised_user_file:
for compromised_user in... | [
"senaykt@gmail.com"
] | senaykt@gmail.com |
8566fa992f8319c8dafcaf3b9d186e200769bc79 | bb2bd493a268e3ebfbb23167d5f38a1281bbf3b0 | /venv/lib/python3.7/site-packages/aiogrpc/utils.py | 36644ade5638b98ba20860e9c2374bdf0888b9bb | [] | no_license | EDD-Phoenix-Technologies/EDDMAVLink | ba33182c953628d620cf4dde1f81b430b2c3dcd8 | 55f3882b21c282324986f28315e4b37bbacee2ea | refs/heads/master | 2020-08-29T18:46:44.866677 | 2019-12-18T21:09:49 | 2019-12-18T21:09:49 | 218,134,620 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,467 | py | '''
Created on 2017/8/14
:author: hubo
'''
import asyncio
import functools
import queue
from asyncio.futures import CancelledError
def wrap_callback(callback, loop):
@functools.wraps(callback)
def _callback(*args, **kwargs):
if not loop.is_closed():
loop.call_soon_threadsafe(functools.par... | [
"d.barva5402@gmail.com"
] | d.barva5402@gmail.com |
f9d41f245e77585a9706f05b7d71b832f102caea | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/binarySearchTree_20200615162637.py | a9977b630993eb4c07314b2e1ce2897670babb9a | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23 | py | def search(list):
| [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
438b13034d8746638556d5557ff9f5143b7c96a6 | 32d67615b646b5917618abcb2efc93fea222fb76 | /day01_vscode/gui/numberGameGuiVersion.py | 48a6d4bd91e575fe45ac7aa9a80fd01a2b3effb5 | [] | no_license | jihazard/python | 449ef551a42e4874d1b9d82f27ba759122ae11a3 | 0991d7e1299aea6a77edb59a765bc13ced915864 | refs/heads/master | 2020-05-24T13:44:10.475777 | 2019-06-08T09:05:23 | 2019-06-08T09:05:23 | 187,295,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | import easygui
import random
num = 0
times = 6
answer = random.randint(1,100)
while num != answer and times > 0 :
num = easygui.integerbox("1~100 ์ฌ์ด ์ซ์๋ฅผ ์
๋ ฅํ์ธ์ . ๋์ ๊ธฐํ = " + str(times))
if num < answer :
easygui.msgbox(str(num) + " ์ ์ ๋ต๋ณด๋ค ํฝ์ต๋๋ค.")
else :
easygui.msgbox(str(num) + " ์ ์ ๋ต๋ณด๋ค ... | [
"yoonjh238@gmail.com"
] | yoonjh238@gmail.com |
7624925bba586dba65beb5197b61c0b90b99d6c7 | 8e6c2a485a86cbb5978f2976295223f1e04f8385 | /src/search/views.py | 45b79959e1891c6a5620bdbf49e368791fa69a98 | [] | no_license | sergiopassos/ecommerce_django | a97d6061a555b86205a713fd3ccb220633925be3 | 2c1a9e028f06fedf77723dc6efd518ed7163f912 | refs/heads/master | 2020-05-03T12:27:36.406835 | 2019-06-01T00:23:29 | 2019-06-01T00:23:29 | 178,626,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | from django.shortcuts import render
from django.views.generic import ListView
from products.models import Product
class SearchProductView(ListView):
template_name = "search/view.html"
def get_context_data(self, *args, **kwargs):
context = super(SearchProductView, self).get_context_data(*args, **kwargs)
query ... | [
"sergio.passos02@gmail.com"
] | sergio.passos02@gmail.com |
9eed5071f02d5d89a6660a17d90a867d9199273d | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/21/usersdata/134/8920/submittedfiles/exercicio24.py | 71f81edc38a08d14b4e3846712511d689d38c81c | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
a = input('Digite o valor de a:')
b = input('Digite o valor de b:')
if a>b:
i=a
elif b>a:
i=b
while i>0:
if a%i==0 and b%i==0:
print ('%i')
break
i= i - 1
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
4e75c82e10fbb1fea6eade40fef334197dc7c816 | ccc6350955af98c02207e070d2a8c3f861d8c8f6 | /src/Spider.py | 6417e9eaf147ba2ec24a6ec22607ebcd20194a5d | [
"MIT"
] | permissive | harry363/Crawler | 0fc8ba40e4605ee301dc8b2b494fc990f74fabe1 | 90f42cf5fe3a8df52d2e0106fbae3dbc70b316f8 | refs/heads/master | 2020-08-27T11:56:34.639229 | 2019-10-24T13:30:22 | 2019-10-24T13:30:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,322 | py | from urllib.request import urlopen
from link_finder import LinkFinder
from general import *
class Spider:
# class variables (shared among all instances)
project_name = ''
base_url = ''
domain_name = ''
queue_file = ''
crawled_file = ''
queue = set()
crawled = set()
def __init... | [
"gsingh0719@gmail.com"
] | gsingh0719@gmail.com |
de3288081330c0008e1d1259e27e28d6408fa959 | 34570e32855109a3e0dd41ac760098bd230dc65e | /mmmvi/lib/load_data.py | 135da604afa46a0b46c1c394d93493973af8455a | [
"MIT"
] | permissive | melohar/voc-identify | 55520cb291d1faa8ffb19f98970609b9dd01f0de | f98ec3b2f1c6ce687953cca9cb9ccdaea20ac3a5 | refs/heads/main | 2023-08-04T15:48:27.205038 | 2021-09-09T17:08:19 | 2021-09-09T17:08:19 | 404,818,227 | 1 | 0 | MIT | 2021-09-09T17:49:54 | 2021-09-09T17:49:54 | null | UTF-8 | Python | false | false | 9,009 | py | import itertools
import logging
import re
import string
import yaml
from pathlib import Path
from typing import List, Tuple
import pandas as pd
import pysam
from mmmvi.lib.types import VoCs, Reads, Mutations
def load_mutations(
mutations_path: Path,
reference_path: Path,
voc_col: str,
mut_col: str,
... | [
"dor.barker@gmail.com"
] | dor.barker@gmail.com |
bb19b100daf84b032c032f56af6dcd1dd83acbe3 | 3fce3e0706e7ccac209aaa924365f14eaf90d632 | /trs_pdf-txt.py | af0409e933e8ead5c5af2aaeb99271c97e26fed5 | [] | no_license | lwx-hnu/elervise | ccb545cc905d7c4523e5f9352afe8ec3fa8bf40b | aeed17158ec62fdee881181a90e5e2928a7b8d53 | refs/heads/main | 2023-01-31T15:21:43.461001 | 2020-12-18T09:35:31 | 2020-12-18T09:35:31 | 321,296,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,304 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: wugang
@software: PyCharm
@file: prase_pdf.py
@time: 2017/3/3 0003 11:16
"""
import sys
import importlib
import os
import time
importlib.reload(sys)
from pdfminer.pdfparser import PDFParser,PDFDocument
from pdfminer.pdfinterp import PDFResourceManager, PDFPageInte... | [
"noreply@github.com"
] | noreply@github.com |
a3cf65f973774762a7b991821f94923a6700c945 | 543ded96b4a146371453680d032aada2a6788430 | /home/views.py | 09f0ef663ba7fe2552d4172b2673c248f36ef172 | [] | no_license | mat0ccdeekk/cooabit_temp | 638c1ad739d1510ac90524273651fd8c8d7dd5ac | 18ff42eeb86c593686e120e724512840df555403 | refs/heads/master | 2023-01-01T15:46:50.787501 | 2020-10-26T22:11:51 | 2020-10-26T22:11:51 | 297,378,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,539 | py | from django.shortcuts import render, get_object_or_404, HttpResponseRedirect, HttpResponse, redirect
from django.views.generic.edit import CreateView
from .forms import CasaForm
from .mixins import StaffMixing
from .models import Casa
import time
import os
def CreaCasa(request, pk):
print("siamo ancora qua")
... | [
"mattia.lavecchia@gmail.com"
] | mattia.lavecchia@gmail.com |
94b54af84eb8299af883d3194845985ab5a23e94 | 804e6c5df909db32b31679c11b0044c4cb9a1590 | /synapse/rest/client/v1/profile.py | 5fc365e04783b6b3277398d14828b2d56da9c665 | [] | no_license | Jd8111997/ChatClub | f50d6ec417ee68b3e4b5b3fc4cf42a74c94c9fc0 | 9e226325ea12e8c0c5a2f1db264642763e56b1c4 | refs/heads/master | 2020-07-30T11:15:08.677684 | 2019-09-22T14:56:22 | 2019-09-22T14:56:22 | 210,209,834 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,634 | py | # -*- coding: utf-8 -*-
# Copyright 2014-2016 OpenMarket Ltd
#
# 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... | [
"jaydeept126@gmail.com"
] | jaydeept126@gmail.com |
b3410046e6683bae3734e6383a0fea492bc46cbb | 3cefe15ca5f86c8ee805074200e73036e032c4da | /xonsh/completion_parser_table.py | 2175c647fefc98891803626c904bb93f259dba36 | [
"BSD-2-Clause"
] | permissive | ryanhuanli/xonsh | 3a61e447521e144471d3e76b893478a9fcfd0f92 | 1845fa007cb8f3ecb02a4fb17c15a44f11ebe6a3 | refs/heads/main | 2023-05-09T16:26:19.147372 | 2021-06-15T04:31:12 | 2021-06-15T04:31:12 | 375,830,694 | 0 | 0 | NOASSERTION | 2021-06-10T21:07:35 | 2021-06-10T21:07:34 | null | UTF-8 | Python | false | false | 9,170 | py |
# completion_parser_table.py
# This file is automatically generated. Do not edit.
# pylint: disable=W,C,R
_tabversion = '3.10'
_lr_method = 'LALR'
_lr_signature = 'AND ANY ATDOLLAR_LPAREN AT_LPAREN BANG_LBRACKET BANG_LPAREN DOLLAR_LBRACKET DOLLAR_LPAREN NEWLINE OR PIPE RBRACKET RPAREN SEMI STRINGcontext : command\n ... | [
"ryan.huan.li@gmail.com"
] | ryan.huan.li@gmail.com |
00809145f82c17507b7b70177cd32aff00ea4b01 | bd3c44a811a270e81c5b1d48e0f0172f3ab90054 | /simple_functions.py | 957667ebf53c0267f4f88660bbdf309d5b9de187 | [] | no_license | ycai01/open_source_proj | 6816e3eb49525f6218d0c7be299e4d09ed224617 | 342f459eaf03992711358bb3166870dfbf76635c | refs/heads/master | 2023-03-23T09:46:20.578910 | 2021-03-21T22:10:14 | 2021-03-21T22:10:14 | 350,093,881 | 0 | 1 | null | 2021-03-21T22:48:58 | 2021-03-21T19:08:53 | Python | UTF-8 | Python | false | false | 70 | py | def main():
print("Hello")
if __name__ == '__main__':
main()
| [
"caiyuchen93@gmail.com"
] | caiyuchen93@gmail.com |
893f3e005d90c7bf5010bd6b58490fe895f6c0cc | a0a7a6e62daa59a819665482f8b48b19fcb93d4d | /leetcode_415.py | a1a1dd875479afa9f5300664e1172e3fc0fe8368 | [] | no_license | boboalex/LeetcodeExercise | 1934bc190c7dda55e0e5a9ff6a7523535186fb75 | c29d217605cfcc8294855e3948acf744c941bf27 | refs/heads/master | 2023-04-19T10:13:30.261039 | 2021-04-23T06:33:38 | 2021-04-23T06:37:35 | 360,785,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | class Solution:
def addStrings(self, num1: str, num2: str) -> str:
i, j = len(num1) - 1, len(num2) - 1
carry = 0
res = ""
while i >= 0 or j >= 0:
a = int(num1[i]) if i >= 0 else 0
b = int(num2[j]) if j >= 0 else 0
sum = a + b + carry
re... | [
"bo.zhang@kyligence.io"
] | bo.zhang@kyligence.io |
58ed71a22e4d7afc540b77b127a637084478af10 | a481439449a1f299f22eeeb384ad1a542ac3280f | /app/__init__.py | bed4e90c71a19966fa7a18fe2322716ab0fa1774 | [] | no_license | FranH20/EmpresasTacna | 945bc20aa9a6ff34ab2ee3d23234607015f2d752 | d1916dbe81577a6e77e5ef4e4d27f74f9eab6a8d | refs/heads/master | 2023-07-18T01:57:06.044866 | 2021-08-24T23:43:55 | 2021-08-24T23:43:55 | 397,488,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | from flask import Flask, app
from .config import MONGO_URI
def create_app():
app = Flask(__name__)
app.config["MONGO_URI"] = MONGO_URI
return app
| [
"carloshuichi@gmail.com"
] | carloshuichi@gmail.com |
4149b8e5289cf89b858d9f0f30c0cbccdc5efe87 | 8364e4d23191ee535c163debffafa8418d705843 | /test/test_v1_endpoint_port.py | 691643b0d17b6094b4f7d7bd22cac4482b2aa588 | [
"Apache-2.0"
] | permissive | olitheolix/aiokubernetes | 2bb6499030e2e6e9b7ca0db63c4441293d70a09b | 266718b210dff2a9b2212183261ea89adf89115e | refs/heads/master | 2020-03-21T23:02:30.484410 | 2018-10-20T19:33:01 | 2018-10-22T05:52:42 | 139,162,905 | 28 | 3 | Apache-2.0 | 2018-10-22T05:52:51 | 2018-06-29T15:02:59 | Python | UTF-8 | Python | false | false | 932 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v1.10.6
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import u... | [
"olitheolix@gmail.com"
] | olitheolix@gmail.com |
7e908057e33cd135999895049c04d6dabc1c721c | 91b0b09d2c05e44f40e570a6323801d1f41bc60a | /graphs/largest_distance_between_nodes.py | 5bfaf511a46532c5d5d932c0a0f0297801d5faa3 | [] | no_license | shiveshsky/datastructures | 170243edbdaf1b206713bd3b53a029f32063d4ce | 22fb94983846c4e7906a22f91ef7c0886c74a6b6 | refs/heads/master | 2021-05-21T16:46:43.852404 | 2020-07-17T02:29:48 | 2020-07-17T02:29:48 | 252,722,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,127 | py | import heapq
class Solution:
# @param A : list of integers
# @return an integer
def solve(self, A):
children = {}
root = None
for i, x in enumerate(A):
if x == -1:
root = i
else:
if x in children:
children[... | [
"shivesh@anlyz.io"
] | shivesh@anlyz.io |
f3bd71eae8ad16a999273e80931b3fa668954546 | 9785b5c8b997bc0241e8520b77bc7078d4c29029 | /wargames/ropemporium/x64/ret2csu/exp.py | 2bb340a347e37a7b64c6c89e4027cfb4510717dc | [] | no_license | lucyoa/ctfs | 4619571201bece8d7a6545f0cdc8291c153b6ef2 | 0726ee26052eabc5ee854fd976d0905d40668e8d | refs/heads/master | 2020-07-31T01:49:00.736206 | 2020-06-25T19:46:53 | 2020-06-25T19:46:53 | 210,439,562 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from pwn import *
exe = context.binary = ELF('./ret2csu')
def start(argv=[], *a, **kw):
'''Start the exploit against the target.'''
if args.GDB:
return gdb.debug([exe.path] + argv, gdbscript=gdbscript, *a, **kw)
else:
return process([exe.pat... | [
"marcin@threat9.com"
] | marcin@threat9.com |
4e44d40a6908298df40e0b8a96bd8682f578f45c | 76f996b26221344213c099db096c60316f9b45c2 | /supervised_learning/0x0C-neural_style_transfer/5-neural_style.py | 7e7339795a277b66a18f783374aa45da1838e270 | [] | no_license | Nzparra/holbertonschool-machine_learning | 8c61e40c3a6471d52bdf2bbcf4e7ae3c029d3c8b | 9ff78818c132d1233c11b8fc8fd469878b23b14e | refs/heads/master | 2023-04-06T10:48:01.263608 | 2021-04-20T17:34:33 | 2021-04-20T17:34:33 | 279,482,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,709 | py | #!/usr/bin/env python3
"""contains the NST class"""
import numpy as np
import tensorflow as tf
class NST:
"""
NST class performs tasks for neural style transfer
"""
style_layers = ['block1_conv1', 'block2_conv1',
'block3_conv1', 'block4_conv1', 'block5_conv1']
content_layer = ... | [
"nzparra@gmail.com"
] | nzparra@gmail.com |
ba4699fe8998ae1ce46d88e29cc15d35f408be1a | 77139a58311a1c729b0d16f591e695e9d92c3dbd | /gfx.py | 344f361cdef414e3cd10d1a5526816b0ee616192 | [] | no_license | funnybr0ther/python_evolution | 727471f36a53c90e683329345a56dde59e5c653f | d139f3db786fb20f3385218573e44c28295bd8ec | refs/heads/master | 2020-06-11T18:56:16.269804 | 2019-10-15T17:54:22 | 2019-10-15T17:54:22 | 194,053,809 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,317 | py | from numpy import *
import pygame as pg
import os
import sys
def background():
filename=input("Map?")
try:
file=open(os.path.join(sys.path[0], filename), "r")
lines=[]
for line in file:
lines.append(line)
terrainSize=len(lines)
terrain = empty((terrainSize,ter... | [
"guillaumevdrest@gmail.com"
] | guillaumevdrest@gmail.com |
20068a2762fb02a1ceafe32e239741bcab2ae28d | 28b9adc46eb9bb7616c4f74fe29f9a3417f2f963 | /10/SIM_PKL/forum/views.py | 3e95a455633ea9ca9db03dd67f0faa36865d7972 | [] | no_license | mohamad1213/SIMPKL | ca0a6dafb97b494e5edf9276e358f800eee808e1 | e6ef5d6b8a5c18c85067314a3664bf43959a0370 | refs/heads/master | 2023-01-04T18:27:06.306534 | 2020-11-03T06:53:50 | 2020-11-03T06:53:50 | 297,674,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,716 | py | from django.shortcuts import render, redirect
from django.contrib.auth.models import User
from mahasiswa.models import Pkl
from . import models, forms
from django.contrib import messages
def index_dosen(req):
tasks = models.Forum.objects.all()
form_input = forms.ForumForm()
if req.POST:
form_input... | [
"hatami391998@gmail.com"
] | hatami391998@gmail.com |
cac71e3ed2732220d743d9ceb68cf58d88e39b17 | dea22cf0de22eb7a5574c3ebe9cc239026fcd479 | /core/admin.py | 626df3be91a31a7eb1d1557b4d2c7a0c79bcdc38 | [] | no_license | Vadim4ik1/iswork | b816125978c8029a80b76b07ce5a60c07ebcdb6c | 9dbf8bd0dadb8de607f89438dc997797f03faf5e | refs/heads/master | 2022-06-09T05:22:25.741647 | 2020-05-08T20:18:04 | 2020-05-08T20:18:04 | 262,420,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | from django.contrib import admin
from core.models import Articles
# Register your models here.
admin.site.register(Articles) | [
"Partyhard329@gmail.com"
] | Partyhard329@gmail.com |
a496431f62a75c583cfcf11cd8f506b10c9e08f1 | cebc274c288b463a864fa000ab48d444cd48c12b | /assign4/sensor/migrations/0001_initial.py | 19c25a41ccb7bb15e7b17ca2f8e09c192475d50c | [] | no_license | sejin-k/np_TeamProject7 | f1e6ca0249a0e0d436305b1309ef803ecd2f92d8 | 5941e279f7c59176cc03ef97b799eca34a0291b8 | refs/heads/master | 2020-05-30T22:55:33.933508 | 2019-06-03T13:48:44 | 2019-06-03T13:48:44 | 190,004,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | # Generated by Django 2.0.13 on 2019-06-03 08:40
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Distance',
fields=[
('id', models.AutoFiel... | [
"saejin7649@gmail.com"
] | saejin7649@gmail.com |
2a1914cd41a70291178f9256cf0eac382fbb518c | 388043c361e9eb791eda2d647d9b1ea90666f66e | /loopneverend.py | 3edb5f238e6dff6f5aa5a3dbf0787130403fddbf | [] | no_license | tmuhimbisemoses/doingmathwithpython | ace1c6a1aeea7fa6f723d23c41ac57fe93594faf | 1b09586e9ea4309f0f180262ed53fa5fb5232398 | refs/heads/master | 2021-01-22T09:32:23.581631 | 2017-02-14T22:32:18 | 2017-02-14T22:32:18 | 81,964,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | def fun():
print('Endless loop')
if __name__ == '__main__':
while True:
fun()
answer=input('Do you want to exit (y)')
if answer == 'y':
break | [
"tumuhimbise.moses@gmail.com"
] | tumuhimbise.moses@gmail.com |
a746d64fc4c527f821d092db87462b4d23a89402 | 70df66a1951ee04cd2f601e5ba006c39f25afdf3 | /unique_path2.py | 6ace1a03ffa07bf67082adf1f4f032b79d91c2aa | [] | no_license | ddyuewang/LeetCode_PYTHON | 7293e5401a57987c8b837d04845a4317e392ce7b | 991532d7707abd8ea65314078494f1afb023a55c | refs/heads/master | 2021-06-12T19:44:15.306947 | 2017-01-12T17:56:18 | 2017-01-12T17:56:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,287 | py | class Solution(object):
def uniquePathsWithObstacles(self, obstacleGrid):
"""
:type obstacleGrid: List[List[int]]
:rtype: int
"""
##### v1. solution that save the results
# # get the dimension
# m = len(obstacleGrid)
# n = len(obstacleGrid[0])
# ... | [
"ywang@arc-investments.com"
] | ywang@arc-investments.com |
76ddb0b846e4b5fe0b12d67b9a390c063bd234f4 | 28e65c98809fddd70ade446c4291961369be9253 | /emrnew/doctor/urls.py | 00dbfc35a4e5bc7c349334177a0068639a4027b8 | [] | no_license | RohiniVasudev/emrnew--2- | d42213f08cc33e40d0f848e4a8d1243e508e6a4d | c2200e9a8cede3939e7b04b767ca97cdd5536cd2 | refs/heads/master | 2023-01-31T21:10:28.288420 | 2020-12-14T22:14:06 | 2020-12-14T22:14:06 | 321,486,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 988 | py | from django.urls import path
from . import views
urlpatterns = [
path('',views.home,name='home'),
path('login',views.login,name="login"),
path('register',views.register,name="register"),
path('login2',views.login2,name="login2"),
path('rcomplete',views.rcomplete,name="rcomplete"),
path('copd'... | [
"rohini.honeysingh@gmail.com"
] | rohini.honeysingh@gmail.com |
b4f552e81b2541b391b1576e28ec3cc293d2726a | 81add62c05ebf1970babc14856d2284b60b95d24 | /artikli.py | 52ef1d50faa3753373dfb00312b7f4227d0b13e4 | [] | no_license | B4ch0/BP2 | 3c8b7bb0a4d82b35b6884447a78c77041a353a5a | 8a9725b6bd2bcc92452c6a6bcdeccdd600a8ae96 | refs/heads/master | 2022-04-02T03:19:08.226806 | 2020-01-07T19:11:34 | 2020-01-07T19:11:34 | 232,393,343 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49,727 | py |
from artui import *
import os
import datetime
import artiklidb as ad
import init_db
from PyQt5.QtWidgets import QTabWidget
from PyQt5.QtWidgets import QTableWidget
from PyQt5.QtWidgets import QTableWidgetItem
from PyQt5.QtWidgets import QVBoxLayout
from PyQt5.QtGui import QIcon
from PyQt5.QtWidgets import QFormLayout... | [
"noreply@github.com"
] | noreply@github.com |
ac2140d66e608e2720d3249c509e35216dae3be1 | 4757bfab7c7dc2e4949352b697d71c2dd42e12df | /datasets/image_folder.py | a8a20b987cba659bc6cc62e33e3cb956b1112711 | [] | no_license | rwightman/tensorflow-models-slim | bfb85b5725c6f7a73764af6d65f131eb72c716f0 | c4e4729e36d4c596df5f5d952474537792fff131 | refs/heads/master | 2021-08-14T15:23:53.313910 | 2017-11-16T03:48:12 | 2017-11-16T03:48:12 | 110,747,821 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,596 | py | # Copyright 2017 Ross Wightman. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"rwightman@gmail.com"
] | rwightman@gmail.com |
56cfc69b4f0df71f263ce973542e8d0957a0ec87 | 79d2d6388831714560082f44bcb1e029d76a60cb | /ๅๆ/็ฎๆณไบคไบ/health/three_model_rms/utils/model_util.py | 3a4391846dccc45ce1c1542af54be8703e7127d2 | [] | no_license | fishishappyandfree/project_shenzhen | a82393a775b5f91f23ea71538c034ce02420dc7f | 5663416142a64c00f5532f852f72a47986787382 | refs/heads/master | 2020-08-10T11:27:29.855142 | 2019-10-17T07:01:46 | 2019-10-17T07:01:46 | 214,322,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,331 | py | # coding=utf-8
from models.MT1_x_feed.run_model_gpu import Model as mt1_x_feed_model
from models.MT2_ae_raw.run_model_gpu import Model as mt2_ae_raw_model
from models.MT2_ae_rms.run_model_gpu import Model as mt2_ae_rms_model
from models.MT2_micphone.run_model_gpu import Model as mt2_micphone_model
from models.MT2_spind... | [
"2505438573@qq.com"
] | 2505438573@qq.com |
9871d6ba47aae3ea6f9505b0039828e21640b9bf | 2a2a8f2b3530bcd73f8d982078a8c6b56634cfb3 | /Recognition/venv/Scripts/pasteurize-script.py | 969d0821a08bd6675ef27efc426b96a92941685f | [] | no_license | donghkim714/Smart-Face-Recognition-DoorLock | b7c4a832060c20fd83fe4472e412b0aea8ffeefa | 719d10a19ab651e6b91affb0625acae9eb90fe1a | refs/heads/master | 2022-12-22T01:56:59.467400 | 2020-05-29T07:10:00 | 2020-05-29T07:10:00 | 234,720,732 | 0 | 0 | null | 2022-12-15T23:56:07 | 2020-01-18T10:54:37 | Python | UTF-8 | Python | false | false | 426 | py | #!D:\Document\Phyton\Recognition\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'future==0.18.2','console_scripts','pasteurize'
__requires__ = 'future==0.18.2'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.a... | [
"rlaehdgud714@naver.com"
] | rlaehdgud714@naver.com |
aef65d16f2d1a8b3d741801733609eb9fe8b4197 | 88356c3d62d7b9f88107572592899ebb10dc0469 | /tatega.py | 79eda284c5dfcaea1f26f26cd6cdc6a06193db96 | [
"MIT"
] | permissive | p1scescom/tategapy | 7206e7d4ea30c90a85d95ec6d8cc5de5e832d611 | 529cc4f35161ff22c26fcc70a2e9711e815949f2 | refs/heads/master | 2020-12-10T03:25:23.242227 | 2017-06-27T08:16:12 | 2017-06-27T08:16:12 | 95,531,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,540 | py | #!/usr/bin/env python
#coding: utf-8
import argparse
import sys
import unicodedata
def zen_han(char):
res = unicodedata.east_asian_width(char)
if res == 'F' or res == 'W':
return True
else:
return False
def make_tategaki(sents, return_len, gyo_h=0):
tategaki_script = []
for i in... | [
"piscesuoza0317@gmail.com"
] | piscesuoza0317@gmail.com |
554ff26433d1e3de8eb9d3d3bc3f4ce6c947a2c7 | bcd4ceb019f605fecafb6b392f025e8f7a3b4874 | /SIFT_app.py | f77c475aceb28dff0da3a10deea4a76371c63342 | [] | no_license | ChristianMalherbe/ENPH353_LAB4 | 08c8db93f53ebe53f1920d037d2d43ffb62bb7ec | 45dcee7a3e0bbb33d20a3fce15ccc9e917a89cfa | refs/heads/master | 2022-12-21T02:32:36.319721 | 2020-10-06T03:34:17 | 2020-10-06T03:34:17 | 301,603,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,479 | py | #!/usr/bin/env python
from PyQt5 import QtCore, QtGui, QtWidgets
from python_qt_binding import loadUi
import cv2
import sys
import numpy as np
import time
"""
Author: Christian Malherbe
App for showing homography for an image, and a video feed. I don't have a webcam, so I recorded
a video and am using that recordi... | [
"cdmalherbe2000@gmail.com"
] | cdmalherbe2000@gmail.com |
aa550b9d70afa052455b756486553b52339601ec | 7c73569deb98d61728139893d3cb08496b667fc6 | /manage.py | 44b6a2ce62816229580a063df9273b4e6b391f6d | [] | no_license | creationyun/CrawlingRules | b9969699614d40bd5372bbd9f92bdb5740d3aeaa | 79ff145d291f07986445cedb0bc17240155d6576 | refs/heads/master | 2021-01-13T22:10:43.737755 | 2020-10-11T17:12:26 | 2020-10-11T17:12:26 | 242,510,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | 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', 'CrawlingRules.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ... | [
"creationyun@gmail.com"
] | creationyun@gmail.com |
87dcadbf061948de9f9af6d8d77364e0cfe6eaad | e22aed3aebfcb02801b854585a7327f33a94aa28 | /tests/storage/test_id_generators.py | f0a8e32f1eaf3de7b0791d5fc27b5e79c7cf49a3 | [
"Apache-2.0"
] | permissive | sea87321/synapse | 769fff0f893cf662878afe3f85ade089578512d5 | ab903e7337f6c2c7cfcdac69b13dedf67e56d801 | refs/heads/master | 2022-12-28T21:21:40.988005 | 2020-09-24T15:35:31 | 2020-09-24T15:35:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,050 | py | # -*- coding: utf-8 -*-
# Copyright 2020 The Matrix.org Foundation C.I.C.
#
# 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 require... | [
"noreply@github.com"
] | noreply@github.com |
4e272faf6e60d70565198c3dde769e3ee4de92da | 86a84cf4c1e285d92c084d6eaf0e0219e5b997fe | /join function.py | 5c9826f36ecb9c6cbea254e0cc861d8c3a1d01ef | [] | no_license | Ayush181005/Intermediate-and-Advance-Python | 225e2b0d9f4643351e256c1fad3840bab08f0e61 | 93e352c5fc04513c4f5e65d773d33ffccf5b146b | refs/heads/master | 2023-08-05T23:51:19.274574 | 2021-09-26T10:47:58 | 2021-09-26T10:47:58 | 410,524,129 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | sampleList = ['chalk', 'duster', 'board', 'pen']
# => chalk and duster and board and pen
for item in sampleList:
if item != 'pen':
print(item + " and ", end="")
else:
print(item)
print(' and '.join(sampleList)) | [
"ayush.singh18@outlook.com"
] | ayush.singh18@outlook.com |
b578b6bd112d8de72c4bfad24d739dfeea7db7e6 | 91a7fad1c423c57dc04084820c91d29e2013848c | /blog/migrations/0022_resumedocument.py | 351f11fa81361e786e03d7fb3ad4cf058bc6d213 | [] | no_license | connorgillis/ProjectsPortfolio | d9c317e4663a3bff48fe5879b5d2189c1ea3712f | d599b22fac7bad93fc3434e393ec866ce61b6fff | refs/heads/master | 2022-12-12T10:32:35.624564 | 2020-09-10T19:43:23 | 2020-09-10T19:43:23 | 294,500,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,116 | py | # Generated by Django 2.2.9 on 2020-02-08 00:09
from django.db import migrations, models
import django.db.models.deletion
import modelcluster.fields
class Migration(migrations.Migration):
dependencies = [
('wagtaildocs', '0010_document_file_hash'),
('wagtailcore', '0041_group_collection_permissi... | [
"connor.gillis1@marist.edu"
] | connor.gillis1@marist.edu |
5ef91587ec64fa984660640df2ba412f8602d443 | b8eb666c8b6fe4610d87bff8048f4a95a1c5b549 | /ๆต่ฏ/UI่ชๅจๅ/ๆต่ฏๅทฅๅ
ท__Appium/Project/bin/case_generate.py | 14e7209b8c867671ecf5c98ccdcb17f472a73948 | [] | no_license | cainiaosun/study | 1e983e404005e537410b205634a27cee974faba0 | 91df9b63cda1839b7fc60de3b5f1eb19ccc33a1f | refs/heads/master | 2020-05-30T09:59:19.749099 | 2019-11-22T10:39:12 | 2019-11-22T10:39:12 | 189,641,828 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | #ๅๅปบๅฏๆง่ก็unittestๆกไพ
import sys
sys.path.append("..")
from util.case_excel_deal import DataTable
def GenerateCase(path):
file=path+"/autocase.py"
with open(file,"w") as fp:
fp.write("""
import sys
sys.path.append("../")
from util.case_excel_deal import DataTable
from util.write_log import Log
import unittest_main
cla... | [
"1551577567@qq.com"
] | 1551577567@qq.com |
dcbe08a694faaa04b472a28a23fa0a38a1b0ef93 | a903599d1b2e570a19ac2caffffa1445f17a44c4 | /app/cms/migrations/0002_auto_20181009_1455.py | f2622cc7403e7752e1aefd9b4b2ba17ba04c2643 | [
"MIT"
] | permissive | wdr-data/wdrforyou-cms | d1d482e41fd5ed2d75ae3b96abb49aa6f56be7f5 | 1260ef30ad17669caccb0f3b2aade984facef4b2 | refs/heads/master | 2022-12-12T14:52:23.106496 | 2020-06-06T17:21:42 | 2020-06-06T17:21:42 | 152,069,052 | 0 | 0 | MIT | 2022-12-08T03:12:57 | 2018-10-08T11:30:40 | Python | UTF-8 | Python | false | false | 1,579 | py | # Generated by Django 2.1.2 on 2018-10-09 14:55
from enum import Enum
import cms.models.translations
from django.db import migrations, models
import django.db.models.deletion
class Language(Enum):
ARABIC = 'arabic'
PERSIAN = 'persian'
ENGLISH = 'english'
class Migration(migrations.Migration):
depen... | [
"lisachenbach@gmx.de"
] | lisachenbach@gmx.de |
aaa1540d356a3b522b1acfaeb7f18be71bbefcdf | 7c96ece477ef41d7108cf818a530c56e1cfc4b6d | /funcshell/utils.py | 14e38c0b956e418d8cfb3bcd2874bc86dc35cbfb | [
"MIT"
] | permissive | hien/funcshell | 3d25cd295c1c09dd0486a5fac968fda98dd64b7e | ddcaad425e44fc9a56acaf26c6496a99358d0482 | refs/heads/master | 2020-12-25T14:08:49.778448 | 2010-12-25T07:00:40 | 2010-12-25T07:00:40 | 1,808,310 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | import cmd
class EasyShell(cmd.Cmd):
def __init__(self, callback, prompt='> '):
cmd.Cmd.__init__(self)
self.callback = callback
self.prompt = prompt
self.use_rawinput = True
def default(self, line):
if line == 'EOF':
print ''
return self.do_exit... | [
"silas@sewell.ch"
] | silas@sewell.ch |
78f177a75a2e1238ecb60c88659a2e09df68f922 | 83129b26063ddbf0fd0bbabd929659499ad59eb9 | /ann.py | 4851ff7e3046bb20e8511a8b7bc955e56a516c25 | [] | no_license | baxton-sg/test | ae5d09412c3d4f62b36cd616541ad0c0c09622e0 | ae09b1858c468a0d81c91da0c69028a5ced89d3d | refs/heads/master | 2021-01-01T16:30:22.464937 | 2016-02-04T09:01:08 | 2016-02-04T09:01:08 | 38,250,505 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,680 | py |
import os
import sys
import numpy as np
import scipy as sp
from sklearn.ensemble import RandomForestClassifier
import matplotlib.pyplot as plt
import ctypes
#import ann_py
#ANN_DLL = ctypes.cdll.LoadLibrary(r"/home/maxim/kaggle/ann/libann.so")
ANN_DLL = ctypes.cdll.LoadLibrary(r"c:\\temp\\test_python\\ann\\ann2.dl... | [
"baxton-sg@users.noreply.github.com"
] | baxton-sg@users.noreply.github.com |
9a4b038c518a883a5160c78780c32010eb158b30 | 6b31e416b23ffba2e2269588d767783d1806190c | /classifier.py | c8c953a66afe03ea0a4bfdf20cc4cc40e8e81485 | [] | no_license | fatemehYP/Decision_support_system | 6decea4fc9e4c9cd041376eb25c961ef6ab90292 | 40ef3d2f4bdd90fd91e331542fb9cd8a70b3a398 | refs/heads/master | 2023-03-04T19:46:34.866756 | 2021-02-18T14:44:18 | 2021-02-18T14:44:18 | 335,388,144 | 0 | 1 | null | 2021-02-18T14:44:19 | 2021-02-02T18:39:14 | Python | UTF-8 | Python | false | false | 1,489 | py | from sklearn.datasets import make_classification
from sklearn.linear_model import LogisticRegression
from sklearn.multiclass import OneVsRestClassifier
from sklearn.cluster import KMeans
from sklearn.metrics import classification_report, confusion_matrix
import numpy as np
from matplotlib import style
import matplotlib... | [
"Fatemeh@Fatemehs-MacBook-Pro.local"
] | Fatemeh@Fatemehs-MacBook-Pro.local |
cbc4a539ea136c64e60d55784fbf7e3e82802e68 | 0418e5bed489056a6c39e08aa6346dbd4ded52ea | /ARCHIVES/sujet_etude_1_operations_binaires_correction.py | 08a19f25122f949f597d7b741bced96a0dd5fa5e | [
"CC-BY-4.0"
] | permissive | michaelguedj/ens__prog_sci_python | a14110e6357c3b14025744beb61c78db4f661f51 | bb4c323ee90e94d15cbb21898ca7591f5fc28bbd | refs/heads/master | 2022-05-14T02:57:51.723191 | 2022-05-09T08:03:13 | 2022-05-09T08:03:13 | 220,700,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,762 | py | # coding: utf-8
import math
# Opรฉrations binaires
# Fonctions
""" Rรฉalisez la fonction not() qui prend en argument un bit et
retourne sa nรฉgation. """
def non(b):
if b == 0:
return 1
if b == 1:
return 0
""" Rรฉalisez la fonction or() qui prend en argument deux bits et
retourne le... | [
"noreply@github.com"
] | noreply@github.com |
e606513f2ccc7192a823d3fe94ad4e3c38c0ee03 | 82fac45e29297da3431bcc0c5732b8341daf700a | /python_software/Beamprofiler_Autocorrelator_v0.9.py | 6120f7586e74b398897ffd28174a14b45225a358 | [] | no_license | kgfrog/beamprofiler | a9584fd49920e0836656b82c375d7acc9ff9bd7d | bd66509431e4e66de9fbd76f4367bf1ce932d092 | refs/heads/master | 2022-11-26T08:05:41.948663 | 2020-07-25T07:45:01 | 2020-07-25T07:45:01 | 250,818,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53,824 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Jul 15 09:10:12 2019
@author: frog
"""
import tkinter as tk
import tkinter.ttk as ttk
import tkinter.filedialog as tkfd
#import tkinter.messagebox as tkmsg
#import os
#import glob
import cv2
#import sys
import matplotlib.pyplot as plt
import numpy as n... | [
"keigo67@gmail.com"
] | keigo67@gmail.com |
da6a6a82023d8bd6df509fa28f82aa169fdb69c2 | c1b31aa113c626f3cbb5264fac9e4c9cad83b8b9 | /process_logs/parse.py | 033a954b70d04c783f9a7d9f2a881513fff78cdf | [
"Apache-2.0"
] | permissive | JustinDrake/LigeroRSA | cff724a5da387bd7ac9093007cb1b7897e496fca | 5d6d05788d7d4b44f0ddb01b8221f79b4851653a | refs/heads/master | 2022-09-10T08:18:03.902128 | 2020-06-01T23:32:37 | 2020-06-01T23:32:37 | 268,911,316 | 1 | 2 | NOASSERTION | 2020-06-02T21:21:15 | 2020-06-02T21:21:14 | null | UTF-8 | Python | false | false | 13,642 | py | #!/usr/local/bin/python3.7
from os import path
from datetime import datetime
import re
import glob
from statistics import mean, stdev
### REGULAR EXPRESSIONS FOR PARSING PARTS OF LOGS
logts = re.compile('([0-9]{2}):([0-9]{2}):([0-9]{2}).([0-9]{3})')
# 21:12:23.981 โน ,1.a. Overall speed, , ,374.32 MB,374.32 MB,06:21... | [
"triviere74@gmail.com"
] | triviere74@gmail.com |
2bc5d18f4cc871157c8bcaf56cb4a04dc1338d76 | 0758ddc73ff870a965ad217d56dcd12d88342172 | /classroom/classroomapp/views.py | 12569fa577c5514231614de2d7a0ade727be3ec9 | [] | no_license | konetipavan/POC | 21938393e1d4923b7c866ac2ba67abdebf49b09d | cb37d25adccb5dc2f250a78103a9a4d4a9867cda | refs/heads/master | 2023-08-06T00:01:36.359724 | 2020-09-23T11:25:39 | 2020-09-23T11:25:39 | 297,954,684 | 0 | 0 | null | 2021-09-22T19:35:28 | 2020-09-23T11:56:16 | Python | UTF-8 | Python | false | false | 188 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def class_room(request):
return HttpResponse ("Welcome to Class Room Application")
| [
"dvenkata@corp.ojas-it.com"
] | dvenkata@corp.ojas-it.com |
fbe04a89847a36e905a6e4af83f79bc43ca90cda | 21d1e5c00e4597aae8e0e496c2e6c4382e1b66c5 | /Peuler3.py | 6beedbba97a636e4f0c02271d5bb562548122e36 | [] | no_license | nishanksp9/Hello | 2fc98435b133795a63569b66a708f822812ed596 | f1a62f074b62f41ae8f695b221cae19309e314f9 | refs/heads/master | 2021-05-10T21:12:32.634280 | 2018-01-20T16:47:23 | 2018-01-20T16:47:23 | 118,221,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
The prime factors of 13195 are 5, 7, 13 and 29.
What is the largest prime factor of the number 600851475143 ?
"""
#q=2
#count=0
n=int(input("Enter a number:"))
for i in range (2, n+1, 1):
count=0
if n%i==0:
#print(i)
for q in range (2, i+1, 1):... | [
"noreply@github.com"
] | noreply@github.com |
a41512cc7687985b9362c8642eeb177b34b65643 | 49301355240895072ab07752986769a8fd94efed | /ch02/name_cases.py | d15faab5d1bbc0f16a6dffc393b1732f6e893658 | [] | no_license | patrickbucher/python-crash-course | 507fff579df27df3802defdca9eac4170372e5c1 | fbadfb013ce2dabd71ef642f7e90fb4b8f0df86e | refs/heads/master | 2021-05-23T08:32:05.453001 | 2020-04-05T22:11:42 | 2020-04-05T22:11:42 | 253,200,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | name = 'pAtRiCk bUcHeR'
print(name.lower())
print(name.upper())
print(name.title())
| [
"patrick.bucher@seantis.ch"
] | patrick.bucher@seantis.ch |
09a6fdd19a950370a84cd3865f9055226f763661 | 1adaa02f6329dee3245059a21aeef42568fb98ce | /hackerrank/Greedy/05-sherlockAndTheBeast.py | d7e5d1ca67a21d227897a5c2ef69742323033dbe | [
"MIT"
] | permissive | Suraj-Upadhyay/ProblemSolving | 6954c63a10d5bccab1a6d104d8c44459a2a177e1 | 309160f6a2fb43ae7673210b01957ffca9247d0d | refs/heads/master | 2023-01-22T15:38:49.155431 | 2020-11-23T14:56:25 | 2020-11-23T14:56:25 | 287,932,091 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 735 | py | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the decentNumber function below.
def decentNumber(n):
fives = threes = 0
if n % 3 == 0:
fives = n // 3
threes = 0
elif n % 3 == 2:
fives = n // 3 - 1
threes = 1
else:
fives = n //... | [
"usuraj35@gmail.com"
] | usuraj35@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.