blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
43bfa04fb5ece9338f738dd4e6846bcad4faa6b6 | 317c4c6563f551450e530d4c4d1fa1061dba8834 | /config/settings.py | 448e9866150e5ed1daa360da7b39886eb59fbef9 | [] | no_license | qudcks0703/Coronamap | 1baa0b7134d61522a689adf4eab03f5ded518bca | 586e53c683d5132d252e51e6315d75589183e0b6 | refs/heads/master | 2021-03-25T19:54:49.348431 | 2020-04-22T16:00:10 | 2020-04-22T16:00:10 | 247,642,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,558 | py | """
Django settings for config project.
Generated by 'django-admin startproject' using Django 3.0.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# ... | [
"qudcks0703@naver.com"
] | qudcks0703@naver.com |
dd746b74e43acf7d47b6ac1e5af311e62ab6dd16 | ae12996324ff89489ded4c10163f7ff9919d080b | /LeetCodePython/BasicCalculator.py | c2378b22e407db140bf364ae250e27a2830a46bc | [] | no_license | DeanHe/Practice | 31f1f2522f3e7a35dc57f6c1ae74487ad044e2df | 3230cda09ad345f71bb1537cb66124ec051de3a5 | refs/heads/master | 2023-07-05T20:31:33.033409 | 2023-07-01T18:02:32 | 2023-07-01T18:02:32 | 149,399,927 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,610 | py | """
Given a string s representing a valid expression, implement a basic calculator to evaluate it, and return the result of the evaluation.
Note: You are not allowed to use any built-in function which evaluates strings as mathematical expressions, such as eval().
Example 1:
Input: s = "1 + 1"
Output: 2
Example 2:
... | [
"tengda.he@gmail.com"
] | tengda.he@gmail.com |
68e5b4ce8d27c031b4815be6d870268a38d0e844 | 77d2276457369e0c6d7e3c52569a7c4bc52dcae7 | /settingsWidget.py | 37779cc5521f8d906acb00cb5a65a63c7a47269a | [] | no_license | lm30/repairconsole | c537dd3edf15af96fbdef14807dd0cebe70c67a0 | d30488900c8ea5f575769a82f0498057d2a5aa21 | refs/heads/main | 2023-02-10T08:07:10.126932 | 2021-01-08T16:09:46 | 2021-01-08T16:09:46 | 313,378,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,382 | py | from tkinter import *
import tkinter as tk
from overdueTable import OverdueTable
class SettingsWidget(object):
def __init__(self, root=None, **kwargs):
self.root = root
self.settings = {}
self.settingsFile = kwargs.pop("settingFile")
self.readFromFile()
# self.createSettingsFrame()
def readFromFile(se... | [
"lm3081@columbia.edu"
] | lm3081@columbia.edu |
2ab9c5759e332a8b4f1f8690e8e843b4b2547ec2 | 675fee420fd6d95022158ab15ae99451bf1ed94e | /exercises_p2/ex_1.py | 0e673143f405e1a227c913ed19875b9e2a2610f1 | [] | no_license | ogabriel/python_CS | 4e9b305896b6b0ca4bc68eb0b3e32ee73c032fa8 | ca59abe5dfdff3b935a5e3a06dae32517543cefb | refs/heads/master | 2020-07-31T20:37:47.870742 | 2019-11-14T04:13:06 | 2019-11-14T04:13:06 | 210,746,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | # 1. Crie uma classe livro em python que possua os atributos nome, autor, sinopse e editora, seus dados precisam ser privados e populados no método construtor.
class Book:
def __init__(self, name, author, sinopsis, publisher):
self.__name = name
self.__author = author
self.__sinopsis = sin... | [
"gabrieloliver8991@gmail.com"
] | gabrieloliver8991@gmail.com |
5ec1afa9ae4cf5f61aea9e5fe0789a36c651733c | 09b988e143a20470a2383568371a7f6d11db0590 | /WriteBoundary.py | b2da7a386bc16a33f17adb2678996cb9ef8b3e29 | [] | no_license | mflattery/CharUtils | 17949c11252e587db29128cbf662f8950922b9fc | e32a7f7d2981dd33a3139c665f0773d94cc09b05 | refs/heads/master | 2020-08-19T03:01:45.228036 | 2019-10-17T19:26:54 | 2019-10-17T19:26:54 | 215,869,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,849 | py | #!/usr/bin/python
def WriteBoundary(currentshape, charbcfile= 'CHAR/Boundary/Working.sideset.1.bc',conefile='CHAR/Boundary/aero.bc' ):
coords=[]
coords.append('variables = film_coeff h_rec P degree_of_turbulence')
times=currentshape.t.unique()
DFi=currentshape[currentshape['t']==times[0... | [
"noreply@github.com"
] | noreply@github.com |
b8c181b7036db86385ac19a47e29672fc5271787 | 5fb9a3bad36829007c55e026c57a622f929c9862 | /MyFirstSite/webexample/views.py | c603c42b36a15c813f0242b3e10e897bcfed5bda | [] | no_license | max-krai/FirstSite | 3ad35455692a9a8b6faa0c2b098af40a2e29eb72 | dccd77c1f94b92c4b67e2985655839c4a7700e53 | refs/heads/main | 2023-07-28T11:28:32.912703 | 2021-09-11T08:08:10 | 2021-09-11T08:08:10 | 400,777,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | from django.shortcuts import render, redirect
from .models import Task
from .forms import TaskForm
def index(request):
tasks = Task.objects.all()
return render(request,'webexample/index.html', {'title': 'Главная страница сайта', 'tasks': tasks})
def about(request):
return render(request,'webexample/abou... | [
"max-krai2014@yandex.ru"
] | max-krai2014@yandex.ru |
64545c0ee250c3ac77e43944cc077ea100d12e62 | 4411221e8ff141f2aba6e5f446126249c613fc5c | /tcdm/TCDM1_2/tcdm1_2.py | 81aa9f1b23a652308b40e8cd82945633b183911f | [] | no_license | jimlyall-q/test-gen | 15e6319e9646719768cae7cc5175eda274833001 | 7da7b986dd0049fc7d05cb869b45ca408e3bf05b | refs/heads/main | 2023-05-26T23:55:14.624502 | 2021-06-17T08:58:46 | 2021-06-17T08:58:46 | 377,731,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,854 | py |
from asyncio import sleep
from app.test_engine.logger import test_engine_logger as logger
from app.test_engine.models import TestCase, TestStep
from app.user_prompt_support.prompt_request import PromptRequest
from app.user_prompt_support.user_prompt_manager import (
PromptExchange,
user_prompt_manager,
)
cla... | [
"jim.lyall@qorvo.com"
] | jim.lyall@qorvo.com |
158b82911d79e6df1f08c7004ba7d66956b546a2 | 122b69168f02ea27d6e3fae8a3cbd374c505467e | /djangoAelz/aelz/aelz/views.py | 008d38a970d7c11494510a13ba5af09579b6baaf | [] | no_license | elizarius/backendSamples | 2f05352214bbbbee5c0fba2ab04e7c8025d44182 | 04392612924ac54755e87c450102cc4698e87b8e | refs/heads/master | 2023-08-05T19:34:50.774223 | 2023-07-27T08:44:41 | 2023-07-27T08:50:35 | 136,711,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | from django.http import HttpResponse
def index(request):
return HttpResponse('Hello ***AELZ*** world') | [
"alexander.elizarov@ericsson.com"
] | alexander.elizarov@ericsson.com |
108f8469a44320ab72aeef7321914bf7aacec776 | 0d415744dd0987949184e6da98a8c5023d104ef3 | /parse/A5ChuangYeParse.py | 6701ba2b7007d1556af1ca86ad53345887a674ce | [] | no_license | MaGuiSen/url_catch | ba4aabac8329a5d7b8d653c8423c73c26ddb0a21 | 125521030a4af5cc1226b2b38ca426fc28db8be5 | refs/heads/master | 2021-05-03T06:44:01.282452 | 2018-02-09T10:00:16 | 2018-02-09T10:00:16 | 120,601,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,889 | py | # -*- coding: utf-8 -*-
from scrapy import Selector
from util import DateUtil
# A5创业网 详情解析
def parse(html):
response = Selector(text=html)
# 处理内容区
content_html = response.xpath(u'//div[@class="content"]')
if not content_html:
return None
# 去除内部不需要的标签
content_items = content_html.xpat... | [
"1059876295@qq.com"
] | 1059876295@qq.com |
e43a859a330d69b5393baa2c5770ed5bbb2c5619 | 6b15f5cab9091792024f8756e2cf0bab554bcfe2 | /Tedwebsite/speakers/migrations/0003_auto_20201004_2200.py | 225063aa75660068629ad9684916dcf5325faf3f | [] | no_license | Jaikishan30/Website | df1f4e853af99099bc4de70dd61ee50c3df6bfe0 | bb3467dc4283de02592c80836b001308d77f2172 | refs/heads/master | 2023-08-29T07:23:02.276495 | 2021-10-25T18:32:47 | 2021-10-25T18:32:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,531 | py | # Generated by Django 2.2.6 on 2020-10-04 16:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('speakers', '0002_auto_20200908_1359'),
]
operations = [
migrations.RenameField(
model_name='speaker',
old_name='comm... | [
"ireneholmes221999@gmail.com"
] | ireneholmes221999@gmail.com |
c4f8026e28db67ae6e7ad6f1d7d31c16fda41a3a | f1caec328a46a3b9cd5cf732f97b5cf358c06b07 | /tests/test_codetools.py | b56e3c358fc6c50c159546c355644c1673967758 | [
"MIT"
] | permissive | gc-ss/jurigged | 878a4a815e618f47b6c459cfa434962fd81754bb | 5de42f013ea07c31fdfba20fe923d86936e089ec | refs/heads/master | 2023-04-04T20:52:17.105961 | 2021-04-20T22:18:07 | 2021-04-20T22:18:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,957 | py | import math
import os
from types import SimpleNamespace as NS
import pytest
from jurigged.codetools import CodeFile, StaleException
from jurigged.utils import locate
from .common import TemporaryModule
from .snippets import apple
class CodeCollection:
def __init__(self, tmod, basename):
self.tmod = tmo... | [
"breuleux@gmail.com"
] | breuleux@gmail.com |
8233376cc2e372ec234ab3f707c4847c1250f2c1 | 5b4eca59f344a1a21c7a44d4913611f663f983b1 | /superset/dashboards/api.py | bca033431067798192a3c5eeef22dd508d65c3a8 | [
"Apache-2.0",
"OFL-1.1"
] | permissive | guannie/synapse-superset-public | 3e78d382570c70d69fefa2ee2d4512bbad19bb29 | 5e64d65a8b8202b57b7a98275d4d50416211d49b | refs/heads/master | 2023-08-10T04:28:02.984446 | 2021-08-10T20:38:13 | 2021-08-10T20:38:13 | 203,940,387 | 0 | 0 | Apache-2.0 | 2022-12-19T09:07:00 | 2019-08-23T06:45:49 | Python | UTF-8 | Python | false | false | 33,091 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | noreply@github.com |
2ded6d1331e6c08a950ed3425fae0dc00936f50f | ed842d4a85d16e9248fe54a018fde1e781b885d5 | /view_masks.py | b5e84dc0a6e433f9a42587e8ea54ae9c165f953b | [] | no_license | jmargieh/kaggle_dstl_satellite | cd0cede9978014d7743a38d6c2884494b6b720ca | 9e60ea20d2edd861c8585f149d1b6ebca2bb891a | refs/heads/master | 2020-03-27T00:09:00.809288 | 2017-04-28T00:52:51 | 2017-04-28T00:52:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,948 | py | import logging
import os
import numpy as np
import cv2
from config import IMAGES_METADATA_FILENAME, IMAGES_PREDICTION_MASK_DIR, \
IMAGES_MASKS_FILENAME, IMAGES_NORMALIZED_DATA_DIR, IMAGES_NORMALIZED_M_FILENAME, \
IMAGES_NORMALIZED_SHARPENED_FILENAME, IMAGES_MEANS_STDS_FILENAME, CLASSES_NAMES
from config impor... | [
"jgc128@outlook.com"
] | jgc128@outlook.com |
223e90ab575e13cd7f3190006ae7286362be3c1c | 8da91c26d423bacbeee1163ac7e969904c7e4338 | /pyvisdk/enums/filter_spec_logical_operator.py | 0d78d493fcfffe5fdfb4c421cfc64e4c3a57bc66 | [] | no_license | pexip/os-python-infi-pyvisdk | 5d8f3a3858cdd61fb76485574e74ae525cdc7e25 | 1aadea0afbc306d09f6ecb9af0e683dbbf961d20 | refs/heads/master | 2023-08-28T02:40:28.789786 | 2020-07-16T04:00:53 | 2020-07-16T04:00:53 | 10,032,240 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 234 | py |
########################################
# Automatically generated, do not edit.
########################################
from pyvisdk.thirdparty import Enum
FilterSpecLogicalOperator = Enum(
'logicalAnd',
'logicalOr',
)
| [
"jmb@pexip.com"
] | jmb@pexip.com |
2502f33983700130044447aab3dee9dd8f4027a0 | ae7aa9a720738ca15c3c8d676d840c175b9a35f2 | /GNN/Dataset/buildnet_dataset.py | 3255d673869a94cc04f874484460ee74cdb24cae | [] | no_license | jhzhang2077/buildingnet_dataset | b96693fba45983d92db7c4897e220537b5c627b2 | 45d8cae3c117087eb5d4e55b8b72e0cb395fee21 | refs/heads/main | 2023-08-23T09:22:29.662312 | 2021-10-13T19:12:34 | 2021-10-13T19:12:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,031 | py | import os
import torch
import json
import numpy as np
import GNN.utils.util as util
from torch_geometric.data import Data, InMemoryDataset
from itertools import product
#from torch_geometric.utils import add_self_loops
class BuildnetDataSet(InMemoryDataset):
def __init__(self, root, typeofdata, typeofedge, node... | [
"pselvaraju@umass.edu"
] | pselvaraju@umass.edu |
e9a9824fb106bf2e8694b80bc0b009312ea0855d | 9392e0b7d08ba3c3d3021dc79f4efba964330fb6 | /all_functions.py | 597adb53bf2fa8cd344ffa91421f494217fb49dd | [] | no_license | mapzen-data/wikipedia-notebooks | 10bd611602c11d95b0400c408af6d2c7697aa134 | 308a9c63c446ee6e61e6784957717a3d6e1a9d57 | refs/heads/master | 2020-12-25T14:39:05.202357 | 2016-08-03T22:42:39 | 2016-08-03T22:42:39 | 61,059,553 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 15,914 | py | import csv
import pandas as pd
import requests
import json
import numpy as np
import io
import time
def read_data(path):
data=pd.read_csv(path, header=0, sep=',')
return data
def split_into_groups(data):
no_data = data[data['wk:page'].isnull()&data['wd:id'].isnull()]
only_wp = data[data['wk:page'].n... | [
"Olga Kavvada"
] | Olga Kavvada |
0627dc44488b0cb662ac6134c35bb17478c0fece | 47b4d76e9c87e6c45bab38e348ae12a60a60f94c | /Mutation_Modules/More_Backup/THR_HCY.py | 4a4ce8698134116f04127cebda9e92d3ca02eea6 | [] | no_license | PietroAronica/Parasol.py | 9bc17fd8e177e432bbc5ce4e7ee2d721341b2707 | 238abcdc2caee7bbfea6cfcdda1ca705766db204 | refs/heads/master | 2021-01-10T23:57:40.225140 | 2020-10-14T02:21:15 | 2020-10-14T02:21:15 | 70,791,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,357 | py | # THR to HCY Mutation
import Frcmod_creator
import PDBHandler
import Leapy
from ParmedTools.ParmedActions import *
from chemistry.amber.readparm import *
def parmed_command(vxi='VXI'):
bc = {}
with open('Param_files/AminoAcid/THR.param', 'r') as b:
data = b.readlines()[1:]
for line in... | [
"pietro.ga.aronica@gmail.com"
] | pietro.ga.aronica@gmail.com |
d1d241c2add6e0159fa0e8179c3b05ab3525eba9 | f95619ec6b6e48ccb4924cfd470db93e90018d64 | /natas24.py | a9db1478a15b10a57bf373717624f1f84cf11e7f | [] | no_license | kbjoon1011/trying_natas | 06b4d41178fba9f000851836aaecdff3185bbdfc | 89405e37a59ffd44197b05dff1eb2f2076a16e7d | refs/heads/master | 2021-07-12T18:10:48.202416 | 2020-06-30T07:41:35 | 2020-06-30T07:41:35 | 173,212,073 | 0 | 0 | null | 2019-09-06T06:40:18 | 2019-03-01T01:08:21 | Python | UTF-8 | Python | false | false | 709 | py | # Import Library
import requests
import re
from string import *
# Setting variables needed
username = 'natas24'
password = 'OsRmXFguozKpTZZ5X14zNO43379LZveg'
url=f'http://{username}.natas.labs.overthewire.org/'
pw = []
characters = ascii_letters + digits
# Connect to natas
session = requests.session()
#"strcmp()" re... | [
"noreply@github.com"
] | noreply@github.com |
7021279142a071fc08445c2a8ea30618db6c0aa1 | dc3fa1df498b45b28715e0db60ebed77cff4b41d | /my_dataset.py | 1f6ec36146f1d2344b8a346f2ee9695a00be4523 | [] | no_license | xqy0211/faster_rcnn | 5c1c87f938bed5f26fb22dd48e47d0f8651f0e74 | 328c894c04a6272e3387100248fbce4fd2feb6ac | refs/heads/master | 2023-01-25T01:19:41.353164 | 2020-12-12T07:21:20 | 2020-12-12T07:21:20 | 318,783,087 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,309 | py | from torch.utils.data import Dataset
import os
import torch
import json
from PIL import Image
from lxml import etree
class VOC2012DataSet(Dataset):
"""读取解析PASCAL VOC2012数据集"""
def __init__(self, voc_root, transforms, train_set=True):
# self.root = os.path.join(voc_root, "VOCdevkit", "VOC2012")
... | [
"470400752@qq.com"
] | 470400752@qq.com |
846bdb08818dce817fd9f23868a5458ba0eb8d00 | 654bbd11f1ef5f3d18286d2fb75ea5c19ad47c3b | /CurrencyCoverter/manage.py | 6e7763b6056a56916ee101048a5046fc163ed4b2 | [] | no_license | skrishna87/Akamai | aade53be37795d7151565d2aeb6d298f3162df41 | 72e371b0f00561607827c8ba504851c3f65ca6e5 | refs/heads/master | 2020-03-31T19:20:15.761288 | 2018-10-10T21:43:25 | 2018-10-10T21:43:25 | 152,493,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "CurrencyCoverter.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure ... | [
"ravi.saikrishna487@gmail.com"
] | ravi.saikrishna487@gmail.com |
9d037d0f654b7e5df4a3bf99fa9ed431c77c6f26 | 3600cfce9f2a36cb47f4bd6e163db5cd2bac5a79 | /lstmOffsets.py | d7f821ef0207c7125d8b8eff149fb2a5b4459423 | [] | no_license | posegae/Classical-Piano-Composer | 30940c1881ae5346c98c51699e9903a987bbb73d | 3058ffcb3c2510839527cca86b97faa53bee4d97 | refs/heads/master | 2021-09-09T09:49:31.592500 | 2018-03-14T21:38:10 | 2018-03-14T21:38:10 | 124,789,316 | 0 | 0 | null | 2018-03-11T19:10:39 | 2018-03-11T19:10:39 | null | UTF-8 | Python | false | false | 4,787 | py | """ This module prepares midi file data and feeds it to the neural
network for training """
import glob
import pickle
import numpy
from music21 import converter, instrument, note, chord, corpus
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import Dropout
from keras.layers impo... | [
"kimj4@carleton.edu"
] | kimj4@carleton.edu |
23deb704af1f8cd1bc2715d88d529d49ae767199 | d59ff5567a8256fc880de3502d285afbfeb1ef69 | /week 5/5.3.23/5.3.py | 6a39f72e47e5fcdaff0ea5b247f0287ecc13bfe8 | [] | no_license | allertjan/LearningCommunityBasicTrack | a87628c84cbefdf844a43cf0f395588da0a97acd | efd6cc816bff9298438567b3eb7113a0e665c4e1 | refs/heads/master | 2023-01-23T21:40:40.250138 | 2020-11-28T13:03:35 | 2020-11-28T13:03:35 | 296,364,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | a = [1, 2, 3]
b = a[:] # b takes the same values as a.
b[0] = 5 # 1 becomes 5 in b, a does not change
print(a, b)
| [
"allertjandillema@hotmail.com"
] | allertjandillema@hotmail.com |
76f56b2e1147da2cc1383c9b0f44b4455a284784 | 9e236f93f5f4d55af0e98dac56866c976899ee1d | /.c9/metadata/workspace/Unused/NotUseful/simple_minimax.py | ba320906d26f7aa4d90441253fd5b1a7230f5521 | [] | no_license | willyao99/botterthanyouAI | 965f13dea2437aa4d65301701415ba8977b5640e | 95792d842c654b6593fe7a895a6ba1266aa01cb7 | refs/heads/master | 2021-05-02T06:34:55.721476 | 2017-12-07T14:47:13 | 2017-12-07T14:47:13 | 120,860,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | {"filter":false,"title":"simple_minimax.py","tooltip":"/Unused/NotUseful/simple_minimax.py","undoManager":{"mark":-1,"position":-1,"stack":[]},"ace":{"folds":[],"scrolltop":205.5,"scrollleft":0,"selection":{"start":{"row":30,"column":90},"end":{"row":30,"column":90},"isBackwards":false},"options":{"guessTabSize":true,"... | [
"willyao99@users.noreply.github.com"
] | willyao99@users.noreply.github.com |
de097aeaaba5ac51a54c7c99814d12be1d0fa4e7 | da9f629b113d11b72f7d9f704be98bc9ec5a132c | /project/opencv/face recg/adhoc_ML_june4th11-master/sML_example.py | 9d139eafa3b3e4265ea08e1110b0de8e38148f40 | [
"Apache-2.0"
] | permissive | 19ANDY/major_project | 23f942f380bc899bf68e1fd57f717b38673dc547 | bddefd8e966c40d5fea609b9a474891b66397c86 | refs/heads/master | 2020-04-27T07:35:26.128175 | 2019-03-06T13:17:12 | 2019-03-06T13:17:12 | 174,140,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | #!/usr/bin/python3
from sklearn import tree
# features about apple and orange
# where 0 means smooth and 1 means bumpy
data=[[100,0],[130,0],[135,1],[150,1]]
output=["apple","apple","orange","orange"]
# decision tree algo call
algo=tree.DecisionTreeClassifier()
# train data
trained_algo=algo.fit(... | [
"geniusrishabhanand@gmail.com"
] | geniusrishabhanand@gmail.com |
80d6c362bd2064ec7c636917764eb9a719bdfc76 | d84218df20950c0b80cc5c5cb8d32ec0e5c59882 | /QuantileCalibrator.py | 267af139d1e8e0ffaaf5b030eaab83d875546ae8 | [
"MIT"
] | permissive | weirichd/quantile-calibration | 74bbab53416a853909f090009e3521a42324f1a9 | 55c4bee99b34ba6661d86287d24fb3cd2edd8736 | refs/heads/master | 2020-03-11T17:23:43.696123 | 2019-10-07T15:29:17 | 2019-10-07T15:29:17 | 130,145,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,604 | py | from sklearn.base import BaseEstimator, TransformerMixin, RegressorMixin
import pandas as pd
import numpy as np
from scipy.optimize import minimize
class QuantileCalibrator(BaseEstimator, TransformerMixin, RegressorMixin):
"""
A
"""
def __init__(self, quantile=10, isotonic_fit=True, isotonic_lambda=1)... | [
"weirich.david@gmail.com"
] | weirich.david@gmail.com |
1525e2e2d2e715d3f640e003e5a1000e87c91931 | 37707f88f230090102bf39170ae15fffeb190a34 | /add_two_digits.py | ee51482b3659e0f7845117d01bb6991d906319e0 | [] | no_license | georgericardo26/python_algorithm | aee12c19d525c4f69056ea65aebeb5a31e680edf | fb2db3f96ad4ef223d7724c93303e4fece728bb3 | refs/heads/main | 2023-02-20T04:34:47.449899 | 2021-01-22T21:19:01 | 2021-01-22T21:19:01 | 332,064,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | def addTwoDigits(n):
num_str = str(n)
convert_to_list = [int(n) for n in num_str]
return sum(convert_to_list)
if __name__ == '__main__':
print(addTwoDigits(295)) | [
"george@MacBook-Pro-de-George.local"
] | george@MacBook-Pro-de-George.local |
c6af5696f5ea39b3401dc74c5a8163a11ed4ec24 | f7c4b0ee7cfb02f7ba7e4f58931df86b3ae3f2ce | /myEnvironments/djangoEnv/bin/python-config | e9e2009525ae5126801f82f94856ae3f173c56ca | [
"MIT"
] | permissive | hravnaas/python_lessons | 85f14d07a68a103bf7e1c99cb71fe72e3e79ac2c | bd9215c279a02eb4e42c4a6af347430ed8bad1cd | refs/heads/master | 2020-04-21T01:05:40.293643 | 2016-09-24T14:56:47 | 2016-09-24T14:56:47 | 67,646,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,380 | #!/Users/hravnaas/Documents/dojo/python/myEnvironments/djangoEnv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.appen... | [
"hravnaas@hotmail.com"
] | hravnaas@hotmail.com | |
a076b97fb70a2d662c6b848e799fc44bb094a6f7 | c142423081636186bdeb128d2a0d160ba982c6e1 | /models/v6.py | 54b8e11f841da677f5fafaba6bd318a5c97ee961 | [] | no_license | IQbrod/NeuralNetwork2 | 61da9a407aea86289f59cb6259e9d25ec5fa7075 | e32fcef670025a43655b3b14351895f82b6c781d | refs/heads/master | 2020-04-19T16:43:42.245450 | 2019-03-27T12:50:44 | 2019-03-27T12:50:44 | 168,312,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | import torch.nn as nn
import torch.nn.functional as F
#Creation du réseau
class Net(nn.Module):
def __init__(self):
super(Net, self).__init__()
self.conv1 = nn.Conv2d(3, 5, 3)
self.conv2 = nn.Conv2d(5, 8, 3)
self.pool = nn.MaxPool2d(2, 2)
self.conv3 = nn.Conv2d(8, 14, 3)
... | [
"iqbrod@outlook.fr"
] | iqbrod@outlook.fr |
ddc63c6224b12cab076c57a1befe90aa8086f5d6 | a95ee3b0d45a57de839be2191fb05ca050c68e10 | /benchmark/paddle/image/resnet.py | 6ae1857642e8df4b3859eec68a3a5227d1c4fcb3 | [
"Apache-2.0"
] | permissive | shiyazhou121/Paddle | 3ea1f5a4f4792e227cce74d074b73212db74c490 | 4adc8a7aa1d78e9c37d285007eb9e2a6e2e1e180 | refs/heads/develop | 2021-08-12T03:46:01.899369 | 2017-11-14T10:37:06 | 2017-11-14T10:37:06 | 110,681,390 | 1 | 0 | null | 2017-11-14T11:24:05 | 2017-11-14T11:24:05 | null | UTF-8 | Python | false | false | 6,115 | py | #!/usr/bin/env python
from paddle.trainer_config_helpers import *
height = 224
width = 224
num_class = 1000
batch_size = get_config_arg('batch_size', int, 64)
layer_num = get_config_arg("layer_num", int, 50)
is_test = get_config_arg("is_test", bool, False)
args = {'height': height, 'width': width, 'color': True, 'num... | [
"jian.j.tang@intel.com"
] | jian.j.tang@intel.com |
ce46eec32d87007d1dcf2f556f4da75ab3f504e9 | 99db137874d1db5852520dffe9d5a7da7de54550 | /foodapp/BL/UserRolesBL.py | ba843f0ca73cdb8102861215dc33073bb0cd3148 | [] | no_license | smrgillani/python-foodapp-rest-api | 54c9fe228f1c515a8e9fc4c4d64e1e25bff7a9b5 | fc4657f596db5f0e36e08082065b9cd5ebefd00c | refs/heads/main | 2022-12-27T03:45:14.221411 | 2020-10-11T22:42:04 | 2020-10-11T22:42:04 | 303,225,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | from ..DAL.UserRolesDAL import UserRolesDAL as ur
from ..Models.UserRole import UserRole
class UserRolesBL():
def allUserRoles():
aur = ur.allUserRoles()
UserRoles = list()
for i in aur:
UsrRl = UserRole()
UsrRl.Id = i.id
UsrRl.fullName = i.fullName
UsrRl.isActive = i.isActive
UserRoles.append(U... | [
"smr.gillani@yahoo.com"
] | smr.gillani@yahoo.com |
a846af1cc3a145f901b0a75f0a502e9ec7adeeae | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2962/60632/270581.py | d1a1be0da2216513a1f443faa1f9127222fcc49e | [] | 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 | 558 | py | n, p = map(int, input().split(' '))
key = list(map(str, input().split(' ')))
nnn = key[:]
for i in range(n):
tmp = key[i][-3:]
key[i] = [ord(tmp[j])-ord('A') for j in range(3)]
val = 0
for j in range(3):
val += key[i][2-j] * int(pow(32, j))
key[i] = val
arr = [0 for i in range(p)]
for i in r... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
37eded9279cf1a076677aac79f89e0b47921a9de | 24054e714721bc6100cb08d069c4b6ec56c0e88f | /cogs/reload.py | a4202613c99118dcc65c05799adcc65a0f5a5f3e | [
"MIT"
] | permissive | Huyu2239/Mochi | f7f34caa19c3e085e566dfcad9f5b205c3dbb7bc | 5102f89fa6b09ccb2bb06ae56acdf50c9e7b31b6 | refs/heads/master | 2023-03-21T04:05:52.976266 | 2021-03-18T16:39:18 | 2021-03-18T16:39:18 | 274,383,161 | 1 | 0 | MIT | 2020-08-27T14:43:19 | 2020-06-23T11:02:34 | Python | UTF-8 | Python | false | false | 934 | py | from discord.ext import commands
import json
import os
class Reload(commands.Cog):
def __init__(self, bot):
self.bot = bot
async def cog_check(self, ctx):
return await self.bot.is_owner(ctx.author)
@commands.command()
async def reload(self, ctx):
msg = await ctx.send('更新中')
... | [
"noreply@github.com"
] | noreply@github.com |
70791fc2e3d44c6ff4bed887c3e9fa0be009bd21 | 93dc4953db0a35847d294c55b39e1b492e9ef418 | /animation.py | b1d4eadc1bfe9c02118ed3cc9b2f10e7f9548afb | [] | no_license | Valian/IGK2015 | 5b66c60eef94dc8d6cf65e023b6754799bcbee64 | a73df0c1083b5d13b5464db346978daee7eb743c | refs/heads/master | 2020-07-26T22:57:20.208796 | 2015-04-12T15:59:49 | 2015-04-12T15:59:49 | 33,807,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,207 | py | import sfml as sf
class Animation:
def __init__(self):
self.texture = None
self.frames = []
def add_frame(self, rect):
self.frames.append(rect)
class AnimatedSprite(sf.TransformableDrawable):
def __init__(self, frametime=sf.seconds(0.2), paused=False, looped=True):
super... | [
"jakub.skalecki@gmail.com"
] | jakub.skalecki@gmail.com |
405f1519d4d062556dc3435538651f03b18d3b8a | b62a68b8099b85cbc5ec31b2e3da464e36a43b9d | /Python/spiders/furla_cn.py | 6329d3e9951c890e6f5c3bd42024b58091163825 | [] | no_license | Houtian17/Learn | 6edc58b9de811facf9e1161d1a1bf4d49e72db61 | cdd762084723286a60f81a724b5f2567363eda8c | refs/heads/master | 2021-06-22T04:08:00.377530 | 2020-11-27T04:41:30 | 2020-11-27T04:41:30 | 140,955,676 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,458 | py | from scrapy import Request
from scrapy.http import Response
from scrapy.spiders import CrawlSpider, Rule
from scrapy.linkextractors import LinkExtractor
from copy import deepcopy
from ..libs import utils
from ..items import SKU
class CrawlTemplateSpider(CrawlSpider):
name = 'furla_cn'
brand_name = '芙拉'
a... | [
"1033893991@qq.com"
] | 1033893991@qq.com |
4a999ba026a0e0fcc2661656b9e99c406a3e802c | 227d980f55ce6772c94118c7a5df9074c386bfc2 | /in-toto/fundamentals/1.7.1.6/sample.py | a85cb19e3e2ba65c06dd70b4587b6253e65c7604 | [] | no_license | controlplaneio/secure-k8s-delivery-workshop | 240e6c73f6761565b37bebf4ae6298a1efad4a64 | c4e28f0be8f952560311a639d8f86b8989c2310f | refs/heads/master | 2020-03-26T12:51:48.223862 | 2018-08-21T15:42:03 | 2018-08-21T15:42:03 | 144,910,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | #!/usr/bin/python
from in_toto.models.layout import Layout, Step
from in_toto.models.metadata import Metablock
from in_toto.util import generate_and_write_rsa_keypair, import_rsa_key_from_file
layout = Layout()
build = Step(name="build")
analyze = Step(name="analyze")
layout.steps.append(build)
layout.steps... | [
"luke.n.bond@gmail.com"
] | luke.n.bond@gmail.com |
56aba3e53681b66d43e1efcf1fa270ea568bd988 | 566d849335592c348b642fbbddfc610c630a6479 | /custom_user_model_Example/base/models.py | 7aae5180841d9171cbd0146099fe228f3fbf4533 | [] | no_license | markpackham/DjangoDiscordClone | 1067278c1bd12be71e7a54c12a7ae31da4894407 | 3e34369c55da021934c44737d27fa742dcbec87b | refs/heads/master | 2023-08-16T06:27:03.387505 | 2021-10-14T16:13:59 | 2021-10-14T16:13:59 | 412,732,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | from django.db import models
from django.contrib.auth.models import AbstractUser
class User(AbstractUser):
name = models.CharField(max_length=255, null=True)
email = models.EmailField(unique=True)
bio = models.TextField(null=True)
USERNAME_FIELD = 'email'
REQUIRED_FIELDS = [] | [
"markpackham1@gmail.com"
] | markpackham1@gmail.com |
53cad8638861d7fa92d08025c7e2417ff6e4d9d6 | c71a7ea09fcfea74f99acc05ce86f693dc965a36 | /2day/6-石头剪刀布面向对象.py | 769b9479be98a4306976bc56467ee3a5212ac1ec | [] | no_license | fengshuai1/1807-2 | fe7a00ef2ae313d62ed3839d78024d3b19cbe29d | 1324e8816069fce347bb2d3b86eb28707f361752 | refs/heads/master | 2018-10-31T22:04:47.907942 | 2018-08-24T09:19:47 | 2018-08-24T09:19:47 | 143,669,019 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | class cai():
def quan(self):
i = 0
while i < 5:
import random
computer = random.randint(1,3)#电脑玩家
player = int(input("请输入1:石头 2:剪子 3:布"))
if player <= 3 and player > 0:
if (player ==1 and computer == 2) or (player == 2 and computer == 3) or(player == 3 and computer ==1):
print("你赢了")
elif ... | [
"1329008013@qq.com"
] | 1329008013@qq.com |
c7504158f4edfcfc872c347ef1008a5dd2785a0e | 58fa446d96123c0b4215e837f3d65edb047796b7 | /authors/apps/notifications/views.py | 5829a33f6cf737b6af43a5c47084b597caafccd8 | [
"BSD-3-Clause"
] | permissive | andela/ah-the-jedi-backend | 36eddbb39c02e65690a58a4c9e3aa232e13d3faa | ba429dfcec577bd6d52052673c1c413835f65988 | refs/heads/develop | 2022-12-09T04:32:10.162632 | 2019-06-19T07:48:16 | 2019-06-19T07:48:16 | 180,952,374 | 1 | 8 | BSD-3-Clause | 2022-12-08T05:01:29 | 2019-04-12T07:16:19 | Python | UTF-8 | Python | false | false | 4,239 | py | from rest_framework import status
from rest_framework.response import Response
from rest_framework.exceptions import NotFound
from rest_framework.generics import (
RetrieveAPIView, RetrieveUpdateAPIView, UpdateAPIView)
from rest_framework.permissions import IsAuthenticated
from . import utils
from .serializers imp... | [
"leewelkarani@gmail.com"
] | leewelkarani@gmail.com |
de1665592aca7a34f328a8dca62e4afadb4b1ada | e385a3bd278fc6add76c430038fdd6000b6ea715 | /B_Search_Algorithms/A_Algorithms/search_linear.py | f61b22b596672b534837c5bc13c1038131e9113f | [
"MIT"
] | permissive | Oscar-Oliveira/Data-Structures-and-Algorithms | e781bcc34abe2a05113b457c48e836072d67100e | 4f75a5aa1e525a5b59944a2cc15f670f0b216a80 | refs/heads/master | 2021-09-26T08:43:51.711847 | 2018-10-28T08:40:10 | 2018-10-28T08:40:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | """
LinearSearch
"""
from A_Algorithms.search_adt import Search
class LinearSearch(Search):
"""Linear search"""
def search(self):
self.comparisons = 0
for pos, value in enumerate(self.list):
self.comparisons += 1
if value == self.item:
ret... | [
"oscar.m.oliveira@gmail.com"
] | oscar.m.oliveira@gmail.com |
39d20c713a81720831c70ea072ce908e1050a6fa | b1bb668c24f4d31e454077742a75087af0bf5403 | /apps/clock/urls.py | d90bbdb916dae368e201e90413174873a67508fd | [] | no_license | ricopineda/Time-Display | 61ab5801b91b2eb96166594a13199407c0df7474 | d75137a88c2d47637254fc47094981c2550ad7bc | refs/heads/master | 2021-01-16T19:56:59.588346 | 2017-08-13T16:30:01 | 2017-08-13T16:30:01 | 100,189,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index),
] | [
"ricopineda@me.com"
] | ricopineda@me.com |
b1bfc2f65f85da0da1fe9ff036a267abd7d4db0a | 285d617fdeeaab2e117b89713965dc7ccbefea08 | /Bees1 - Image Loading and Processing/notebook.py | 7f035469bfc3081e45bf43e622b0c7e3ee825afd | [] | no_license | fbremer/datacamp_bees | c4c83358361dcdcd6911b188388b0772ddcc023d | daf0b2851b876fad04cf43b97a6fdbf656bc1677 | refs/heads/master | 2020-05-18T15:41:51.674328 | 2019-05-20T23:08:10 | 2019-05-20T23:08:10 | 184,507,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,799 | py | # ---
# jupyter:
# jupytext:
# formats: ipynb,py:light
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.4'
# jupytext_version: 1.1.1
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
# + {"run_control": {"fro... | [
"forest.bremer@gmail.com"
] | forest.bremer@gmail.com |
4faf46f2328117f85bdcc81f35b2d0f81520a0e9 | b01646abacbef23719926477e9e1dfb42ac0f6a9 | /Rebrov/training/673K/673K_O088N0066_all_Pt111_libraries/input.py | 374655bca2c3f8ed6678fb4189e6d56c8b754ea8 | [] | no_license | Tingchenlee/Test | 41b0fd782f4f611d2b93fda6b63e70956881db33 | 37313c3f594f94cdc64c35e17afed4ae32d3e4e6 | refs/heads/master | 2023-06-02T05:38:32.884356 | 2021-06-10T11:59:02 | 2021-06-10T11:59:02 | 349,764,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,496 | py | # Microkinetic model for ammonia oxidation
# E.V. Rebrov, M.H.J.M. de Croon, J.C. Schouten
# Development of the kinetic model of platinum catalyzed ammonia oxidation in a microreactor
# Chemical Engineering Journal 90 (2002) 61–76
database(
thermoLibraries=['surfaceThermoPt111', 'surfaceThermoNi111', 'primaryTherm... | [
"lee.ting@northeastern.edu"
] | lee.ting@northeastern.edu |
7d388507f08839af659b2f4775cbb45398f53517 | d28d5234b0256e54affcabc5a49a63c9c86cc3dc | /__main__.py | b0a27982f5300f2732c7ce0092e8b52a340afe23 | [] | no_license | somabc/kubernetes-nginx | 352191aa30407f107e15ad30f8e9a45942e32f60 | 0efd7a2065ef457d79878bd5a84f143ec6a3d8e5 | refs/heads/master | 2020-08-03T10:35:01.232045 | 2019-09-29T21:58:49 | 2019-09-29T21:58:49 | 211,721,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,355 | py | import pulumi
from pulumi_kubernetes.apps.v1 import Deployment
from pulumi_kubernetes.core.v1 import Service
# Minikube does not implement services of type `LoadBalancer`; require the user to specify if we're
# running on minikube, and if so, create only services of type ClusterIP.
config = pulumi.Config()
is_minikube... | [
"bryan@MacBook-Air.lan"
] | bryan@MacBook-Air.lan |
e2fd657eab66f4cff6903e8c631365e830e32956 | f4fbd41b0272c6161e9a2ffd793fb96631c3f20d | /aries_cloudagent/config/injector.py | 03fbe9195388cd861602f0b2e8e9012fd0eb92b9 | [
"Apache-2.0",
"LicenseRef-scancode-dco-1.1"
] | permissive | The-Insight-Token/aries-cloudagent-python | 946d8b7a2b0aa7a50be1a5a93c8c9caecadf6280 | c84c2615d6513a7ce30e71ae31f632ba112a2b1f | refs/heads/main | 2023-03-19T11:54:51.837163 | 2021-03-10T02:07:07 | 2021-03-10T02:07:07 | 346,390,951 | 1 | 0 | Apache-2.0 | 2021-03-10T14:53:52 | 2021-03-10T14:53:51 | null | UTF-8 | Python | false | false | 3,658 | py | """Standard Injector implementation."""
from typing import Mapping, Optional, Type
from .base import BaseProvider, BaseInjector, InjectionError, InjectType
from .provider import InstanceProvider, CachedProvider
from .settings import Settings
class Injector(BaseInjector):
"""Injector implementation with static a... | [
"cywolf@gmail.com"
] | cywolf@gmail.com |
48b280c792bb3a5a48559a9809391800e32ec0a0 | af15b129708491741c7487dee671821fb9b4656b | /Python/2014/Euclides_con_combinacion_lineal.py | 580f2ea89ce0da07e18b204dd7012845f44571ff | [] | no_license | pdenapo/programitas-algebraI | ccfe67c44e9bc454704cc261a5f01e5f5d1b68fb | addb0f66f56fd6deebcb96226e489ba23c46993f | refs/heads/master | 2021-01-10T05:30:27.114128 | 2020-11-28T00:34:09 | 2020-11-28T00:34:09 | 53,788,303 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,761 | py | #!/usr/bin/env python3
# Programa en Python 3 que calcula el máximo común divisor
# usando el algoritmo de Euclides, y los coeficientes que permiten
# escribirlo como combinación lineal
# Este programa tiene solamente propósitos didácticos
# (es para mis alumnos de Algebra I).
# (C) 20014-2016 Pablo De Nápoli <p... | [
"pdenapo@gmail.com"
] | pdenapo@gmail.com |
190f9f2f9798cb06301f039f6a63c347cd66d097 | f3ee39e1b9ffd2c51795757111adbaa87b4c7e43 | /index/migrations/0003_auto_20151226_1046.py | 08562129d38d555344e1bd7730161dbbc24ca7ca | [] | no_license | BJChen990/hygiene | 8c2b20cb1c58355f97f947dad21fe9206c2bc8bf | 59b1463beed41529c5c4dc69cba722f6d93fbd09 | refs/heads/master | 2016-09-01T09:01:11.918958 | 2016-01-14T14:10:00 | 2016-01-14T14:10:00 | 48,559,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2015-12-26 10:46
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('index', '0002_auto_20151226_1022'),
]
operations = [
migrations.AlterField(
... | [
"bengjing@gmail.com"
] | bengjing@gmail.com |
e04368a99906c0e1b506b2c4d9fa8333b1f36969 | d6022256f47ba67b5ef82bb6d29572841ac47121 | /hw1d/CompareParetoFronts.py | 00c6f7df59ca07dbf11b507b9decbbaa798e3722 | [] | no_license | Jmgiacone/CS5401 | 7633ff15e8c835a733295ae9a0ba1a4451a90773 | 2c280fff54c16122032ed9211358b207c3747d7c | refs/heads/master | 2020-05-20T17:13:36.330555 | 2017-03-09T22:23:49 | 2017-03-09T22:23:49 | 84,492,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,935 | py | import sys
class Genome:
def __init__(self, id, wall_time=0, memory_usage=0, decisions=0):
self.objectives = {"wall_time": wall_time, "memory_usage": memory_usage, "decisions": decisions}
self.id = id
def dominates(self, other_item):
if self != other_item and self.objectives["wall_tim... | [
"Jmgiacone@gmail.com"
] | Jmgiacone@gmail.com |
5c39f86e48d1800b1cb52805192385f0e3cf3fc5 | 9df1784a03e1a29ce280234c85b4cdb9074bb5ce | /uglyFinish/slaveMain.py | 3ea82e27be98fea8f567af493a2ea06c0e0475b5 | [] | no_license | haakoneh/TTK4145_Project | 1542b8b92645ff647e838072de4134635ffb3c8c | 541e67f40b567588aeae81a995cd2fadf83d7ba8 | refs/heads/master | 2021-01-10T11:00:50.398997 | 2017-03-07T11:57:47 | 2017-03-07T11:57:47 | 55,074,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,031 | py | from elev import Elevator
import request_list
from request_list import Request_List
from channels import INPUT, OUTPUT
from elevator_panel import Elevator_Panel
from timer import *
import time
import slaveNetwork
from globalFunctions import *
from MessageFormatHandler import *
from colors import *
networkAliveFlag = ... | [
"sales@scrapeitout.com"
] | sales@scrapeitout.com |
e61eef63934fe5ca612a7bc8d66138ff90376fc9 | c689b1e632ed1e53dcdaa24a8e4e9c8128fb12f3 | /functions/countPercentage.py | 63c0e2cdda048a2a84de1ed57e4c27a42f359f7f | [] | no_license | ngowilliam1/anom_detection | d7f64a3e37e5db04fdc66765666322a51d0e6fdb | 854bfef4204888b4c50d9d3d0506c20dcb4de506 | refs/heads/master | 2022-07-17T08:52:10.564469 | 2020-05-14T15:27:11 | 2020-05-14T15:27:11 | 263,951,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,345 | py | import numpy as np
import pandas as pd
import pickle
datasets = ['credit','kdd','mammography','seismic']
for dataset_name in datasets:
print(f"Currently DS: {dataset_name}")
if dataset_name == 'credit':
name_of_label_var = "Class"
elif dataset_name == 'kdd':
name_of_label_var = "label"
... | [
"wingo@deloitte.ca"
] | wingo@deloitte.ca |
693a6b56c1dcfa2ea9662fb36b4be998ad33ad48 | b0c391ecf351e2317ac61c257dd6bfa5b10d4015 | /pymotifs/utils/discrepancy.py | ba46d3fcda401c9febc9bcd011eeb1154a72c7ae | [] | no_license | BGSU-RNA/RNA-3D-Hub-core | 57db94bfff9b338b3a751f545699f4117150b921 | 1982e10a56885e56d79aac69365b9ff78c0e3d92 | refs/heads/master | 2023-05-26T09:41:38.397152 | 2023-05-23T05:50:10 | 2023-05-23T05:50:10 | 6,049,336 | 3 | 1 | null | 2022-06-21T21:27:52 | 2012-10-02T18:26:11 | Python | UTF-8 | Python | false | false | 1,617 | py | """This contains some utility functions for dealing with discrepancies.
"""
from pymotifs.constants import MAX_RESOLUTION_DISCREPANCY
from pymotifs.constants import MIN_NT_DISCREPANCY
def should_compare_chain_discrepancy(chain):
"""Check if we can compared discrepancies using this chain.
Parameters
----... | [
"blakes.85@gmail.com"
] | blakes.85@gmail.com |
34fd7d5569b9eb07704a2126debed9f16454d87f | bfd4274c3cee5e43f348b24167cc5d294c1a3ae0 | /main.py | 61aa29e83328f3be3728db61002abdb21c2c0ed1 | [] | no_license | GustavoLeao2018/grafos | 43afb51ab67a69af8cd8240d07e9c067b05a2909 | d12af8c5a6cbaff7468cbe96c834fdb0dca03f90 | refs/heads/master | 2020-06-13T15:26:35.527328 | 2019-07-01T14:59:12 | 2019-07-01T14:59:12 | 194,694,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | from grafo import *
from desenha import *
from random import *
grafo = Grafo()
desenha = Desenha()
for i in range(1, 6):
coordenada = (randint(-300,300), randint(-300, 300))
grafo.addVertice(i, coordenada)
for item in grafo.vertices:
if item == 0:
print(item)
print("*"*10)
desenha.desenha(grafo.v... | [
"181510004@fspoa.br"
] | 181510004@fspoa.br |
fcd5aea4bef58a9882687de20878935c3a53ac39 | 5d26b8eb8b5c8f6ea61f5b5d09d77985dbba154b | /qlearning/Qlearning_python/qlearning/old/generate_bittrex_histo.py | e761636ea3a35ba2e08a2cc4e454e6f15da8b09a | [] | no_license | atthom/ml_misc | 5d89d333c415d256ad9f274251a7fd1fdb1c547c | 5a0dafdd54e70c57edc2fc4b319eca3d512b1a2f | refs/heads/master | 2021-08-14T20:47:15.644590 | 2017-11-16T18:29:58 | 2017-11-16T18:29:58 | 110,398,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | import urllib.request
import shutil
import os
import logging
from datetime import datetime
from datetime import timezone
# https://bittrex.com/Api/v2.0/pub/market/GetTicks?marketName=BTC-WAVES&tickInterval=thirtyMin&_=1499100220008
DOWLOAD_MARKETS = ["BTC-ETH", "BTC-LTC", "BTC-SC", "BTC-DGB", "BTC-DASH", "BTC-STRAT... | [
"thom.jalabert@gmail.com"
] | thom.jalabert@gmail.com |
807ee32c8630c2047e131faea4a067aa048c1f9f | ae4ec15127a34cfd060b2ba9b93f05a074748121 | /projectSubmission/code/toPytorch.py | 585c3d1c41c4513d0011bbae12cb73009fb8306a | [] | no_license | famishedrover/MCMC-NAS | 4f246a81b996515d503fcb6f29a3e9a5b6fb9c1f | a512e4c186c35028c4aa5de7978ac14800d09c86 | refs/heads/master | 2020-09-13T17:25:43.207382 | 2019-11-23T05:24:28 | 2019-11-23T05:24:28 | 222,853,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,230 | py | from graphGeneration import getFullArch, topsort
from graphPlot import plotUndirected, plotDirected
from neuralnet import unit , runNetwork
# extra imports as backup
import torch
import torch.nn as nn
import torch.nn.functional as F
# To convert the graph to pytorch version :
# 1. Get topsort of the graph from n... | [
"mudit.verma2014@gmail.com"
] | mudit.verma2014@gmail.com |
a6143cc944275c501610621c02d363694a678572 | b55ebd8d25e2d063c8b758cb8286f2c5b32f2c6e | /contact/urls.py | b8ca20d3701115a380c4390100b65bd300becc31 | [] | no_license | bellarej/django-job-board | ceaedc37b7d4e9d457485d38410023f4aa2c31b5 | 195bfea5e0170191e17d41ea630b0d6bc90f6c7c | refs/heads/master | 2022-12-20T09:48:17.204571 | 2020-09-17T13:53:43 | 2020-09-17T13:53:43 | 293,544,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | from django.urls import path, include
from . import views
app_name='contact'
urlpatterns = [
path('', views.send_message, name = 'contact'),
] | [
"bellarej.tarek@gmail.com"
] | bellarej.tarek@gmail.com |
73c443f1b481cf4018913268a23157a8d463c438 | 6a4958b6748f7e3f9382ce106c0f1ed21d4db698 | /alien_invasion.py | 0eda42ba580ca94d65591ad24c9934b37e4c3a46 | [] | no_license | eharbers/Alien_Invasion | 8aa36879681c8bfdc4134734f8e0f0a4f13fe222 | 440277701af476d84c0ab2910e37fd81a59cb6b2 | refs/heads/master | 2016-08-11T08:31:23.387368 | 2016-01-25T19:43:34 | 2016-01-25T19:43:34 | 49,975,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | import pygame
from pygame.sprite import Group
from settings import Settings
from ship import Ship
import game_functions as gf
def run_game():
# Initialize game, settings and screen object.
pygame.init()
ai_settings = Settings()
screen = pygame.display.set_mode(
(ai_settings.screen_width, ai_... | [
"erik.harbers64@gmail.com"
] | erik.harbers64@gmail.com |
a55ec19d3abd4ee61e6b58d78eafa94e90652191 | c10049fe227dce368e9f7138b972cd8141caf77b | /booking/booking/wsgi.py | 6c18fdb09869185ba59ffd0a86846e1747b81bc9 | [] | no_license | mathiasflaatt/booking-project | 0e9cb9ce8b09fd9bc4255a9ab93748755f958c36 | 73548dff229343d75d690b9b65455adc1635ef38 | refs/heads/master | 2022-10-31T10:11:22.514883 | 2016-09-19T13:22:27 | 2016-09-19T13:22:27 | 67,606,885 | 0 | 1 | null | 2022-10-20T22:03:09 | 2016-09-07T13:02:11 | Python | UTF-8 | Python | false | false | 391 | py | """
WSGI config for booking project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTI... | [
"Mathiasflaatt@gmail.com"
] | Mathiasflaatt@gmail.com |
6425948003272e8b7845b8b2a02bb4d2ab44b0b5 | e9de2e778bebc8c9d9da4826a6372a462831fb62 | /fcmscriptdb.py | 0a17591b4da1fe06e935cdf1ee6939b98d8a75f6 | [] | no_license | rahulgoyal911/FCMScript | 2c698bb41012fce3e015598c5ded7f7de8033114 | 2f8c21823e4849f0c5f1844b58c48ae8b9b9e7f2 | refs/heads/master | 2020-04-21T23:41:18.961515 | 2019-02-10T14:22:55 | 2019-02-10T14:22:55 | 169,954,334 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | # Send to single device.
from pyfcm import FCMNotification
import psycopg2
conn = psycopg2.connect(database = "testdb2", user = "postgresql", password = "namespace1", host = "sample-database.czgprnseypbr.us-east-1.rds.amazonaws.com", port = "5432")
print ('Opened database successfully')
cur = conn.cursor()
cur.execut... | [
"rahulgoyal0.rg@gmail.com"
] | rahulgoyal0.rg@gmail.com |
872a1c04e4e3be70b6fb3ffad70aed3ecf9ae066 | 2bad2905a23258f3bb4150b9e12e6718ed95f2b0 | /demo5/app/models.py | 31b29bc96ceb3265f32837c9466a99a6576f02d2 | [] | no_license | arar456456/django | 7f859232f387301344dbd60cea41528629ef4abb | 58814c587ff0202d57a132f4423de2b70afd792a | refs/heads/master | 2022-11-26T12:29:12.879068 | 2020-08-02T11:02:51 | 2020-08-02T11:04:03 | 284,438,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | from django.db import models
from mongoengine import *
# Create your models here.
class Inmassage(Document):
uid = SequenceField()
name = StringField(max_length=30, required=True)
habit = StringField(max_length=30)
| [
"489303532@qq.com"
] | 489303532@qq.com |
2db5c1354b70d24e121f034a8a8dbae8033e8a58 | cbdd47c42a3a0d1fe3a8f3480e9a07fd166ecd8b | /2018/assignment1/cs231n/classifiers/softmax.py | 6a579093f89e2ce113a65d9e63200ca975c42a0a | [] | no_license | RuisongZhou/CS231N_2018 | beb8aa526a4f1744b2473584c4306924b9df7a48 | 9e1bfa1aedc0146ccb3a20c65d312f629ae4bdce | refs/heads/master | 2020-04-13T19:53:06.963490 | 2018-12-28T13:49:32 | 2018-12-28T13:49:32 | 163,414,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,956 | py | import numpy as np
from random import shuffle
def softmax_loss_naive(W, X, y, reg):
"""
Softmax loss function, naive implementation (with loops)
Inputs have dimension D, there are C classes, and we operate on minibatches
of N examples.
Inputs:
- W: A numpy array of shape (D, C) containing weights.
- X:... | [
"811437508@qq,com"
] | 811437508@qq,com |
ceadd39f58e3cdd2956e37c2b347fd9cdd1e0a75 | cdc91518212d84f3f9a8cd3516a9a7d6a1ef8268 | /python/eve_number_sum.py | 02fbfe2554068c956fce71f67dc342dbab849094 | [] | no_license | paulfranco/code | 1a1a316fdbe697107396b98f4dfe8250b74b3d25 | 10a5b60c44934d5d2788d9898f46886b99bd32eb | refs/heads/master | 2021-09-20T14:00:35.213810 | 2018-08-10T06:38:40 | 2018-08-10T06:38:40 | 112,060,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | # write a function that adds all of of the even numbers from 0 - 26
def my_func():
my_sum = 0
for x in range(0, 25):
if x % 2 == 0:
my_sum = my_sum + x
print(my_sum)
my_func() | [
"paulfranco@me.com"
] | paulfranco@me.com |
f79071c1101882953d6653f2c695c93cb32e2ba8 | 40e8e2e7a31357ecc2c5b53c4b32c9642b9dac4e | /gui/lekar/zahtev_za_pregled_lop.py | c8176fbd3984e59081878828bba19ab13dd5ffbe | [] | no_license | Raffayet/HospitalApplication | ef7c6f9dddd3826d47500bf92839d3d47305b37e | a119537b33407f7f1b50446f87ebbc27e67ade8b | refs/heads/master | 2023-08-24T00:09:05.636769 | 2021-10-09T12:08:46 | 2021-10-09T12:08:46 | 415,380,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,642 | py | from model.dto.dogadjaji_dto.zakazivanje_pregleda_kod_spec_dto import ZakazivanjePregledaKodSpecijalisteDTO
from servis.kalendar.kalendar_servis import KalendarServis
from servis.korisnik.korisnik_servis import KorisnikServis
from model.enum.tip_lekara import TipLekara
from tkinter import ttk, messagebox
from tkinter i... | [
"soviljnikola3@gmail.com"
] | soviljnikola3@gmail.com |
5d8f24ea66b58048348f8f8f95f24941eae56322 | 86cac85def7eaca88c2a8b87136bd8c7811d2f06 | /graffiti/legacy/core.py | 39ee9248285cd54a67a972d8efe05226fc522a35 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | suimong/graffiti | 54bce6c6038a622cb62bfc5daa3f15cceffe52eb | 54a1b950d8b1181b407c3c2675bbfac45436a525 | refs/heads/master | 2021-05-27T19:04:34.069028 | 2014-06-10T02:56:27 | 2014-06-10T02:56:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,399 | py | #!/usr/bin/env python
# Copyright (c) 2014 Michael-Keith Bernard
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation the rights to
# use, copy,... | [
"mkbernard.dev@gmail.com"
] | mkbernard.dev@gmail.com |
088fac80d39437e75d6fcde58165b95188fc7a81 | c5fb0f108dc0a99adf772b075a3f3fc487a92a40 | /Homeworks/hw1/hw1_part3.py | a0e9b3bf6aea63168967d36c0932c8dfa206f84d | [] | no_license | ujjwalrehani/Various-Python-Projects | 7e86eed01eb4716f1946d6082b9c319d0021c7ba | 00950d669f3536fab061c167918bd8755c694b8f | refs/heads/master | 2021-09-04T03:06:20.605344 | 2018-01-15T02:17:17 | 2018-01-15T02:17:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | # File: hw1_part3.py
# Author: Ujjwal Rehani
# Date: 2/9/2017
# Section: 21
# E-mail: urehani1@umbc.edu
# Description:
# Prints out the name of a dog
def main():
dogName = input("What is the name of your dog? ")
print(dogName,"is a good dog!")
main() | [
"noreply@github.com"
] | noreply@github.com |
a2c60ae4eba6bb1bd7bc7d9d5bb25bc5a6ea9707 | 4f875744ccae8fa9225318ce16fc483b7bf2735e | /google/thief.py | 784a8691a8ab6fa23fd45c46215f40a55bbe01b8 | [] | no_license | nguyenngochuy91/companyQuestions | 62c0821174bb3cb33c7af2c5a1e83a60e4a29977 | c937fe19be665ba7ac345e1729ff531f370f30e8 | refs/heads/master | 2020-07-27T05:58:36.794033 | 2020-04-10T20:57:15 | 2020-04-10T20:57:15 | 208,893,527 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Dec 11 02:40:47 2019
@author: huyn
"""
#House thief
def findMax(array):
def dfs(index,currentSum):
if index>=len(array):
return currentSum
else:
val = array[index]
first = dfs(index+1,currentSum)
second = df... | [
"huyn@cvm6h4zv52.cvm.iastate.edu"
] | huyn@cvm6h4zv52.cvm.iastate.edu |
2b21fb9ae2fb93f790d20b26464fd232360fec12 | 609e436525e2edde0c72a90f49c49adf23ec7771 | /bin/git-credential-mvl | 3d0fc421d5ae518820fc531163428b2af5fcffcb | [] | no_license | MontaVista-OpenSourceTechnology/opencgx-qemu-4.14-2.4 | 78ed77440969c160cf474d6d02f9e718c5a9d4ff | d4fcc7ab1e5f653dce84475621f6bc6bf907460f | refs/heads/master | 2021-04-09T15:20:18.731769 | 2019-09-20T04:21:30 | 2019-09-20T04:21:30 | 125,580,162 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,699 | #!/usr/bin/env python
#
# Copyright (c) 2009-2018 MontaVista Software, LLC. All rights reserved.
#
# This file is licensed under the terms of the GNU General Public License
# version 2. This program is licensed "as is" without any warranty of any
# kind, whether express or implied.
#
from optparse import OptionPars... | [
"jpuhlman@mvista.com"
] | jpuhlman@mvista.com | |
75255d7bcc26d834bc28fb695b7bbfa7b76cdbd3 | 3f2cdb121443859eb029b348ca1493b196c12732 | /basic-mathematical-operations.py | 93182d0818aad204834859bc0a03b80ddbe9ed76 | [] | no_license | c0ns0le/coding-puzzles | ef31d78dc7b5df72415930be55b555c888a5e790 | e15aec28a679f3298a30fd64ee6cf4c2d27350f1 | refs/heads/master | 2020-04-04T17:49:47.445579 | 2018-10-01T01:05:23 | 2018-10-01T01:05:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | # Basic Mathematical Operations: 8 KYU
# Your task is to create a function that does four basic mathematical operations.
# The function should take three arguments - operation(string/char), value1(number), value2(number).
# The function should return result of numbers after applying the chosen operation.
def basic_o... | [
"ali07cat07@gmail.com"
] | ali07cat07@gmail.com |
0bc2774a6e2cb8b814c0c550dee7cc21c4f335d3 | 9a4fbcc3736521bc4f5d9e483f8c8a996044e31c | /bss_crm_phonenumbers/models/crm_lead.py | 12cfd7787b66716d85ce36686e825e6bd0b4f6b3 | [] | no_license | bluestar-solutions/openerp-bss-phonenumbers-addons | 353cd82c5a97e9447cab6d8a3479814a69d4718a | b9eeff666063f1d269ed50de6bfe0e3882b4f2f5 | refs/heads/master | 2020-05-19T16:32:11.052093 | 2019-10-02T13:41:02 | 2019-10-02T13:41:02 | 35,479,882 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | # -*- coding: utf-8 -*-
# Part of CRM Phone Numbers.
# See LICENSE file for full copyright and licensing details.
from odoo import models
from odoo.addons.bss_phonenumbers import fields # @UnresolvedImport
class Lead(models.Model):
_inherit = 'crm.lead'
phone = fields.Phone("Phone")
mobile = fields.Pho... | [
"herve.martinet@bluestar.solutions"
] | herve.martinet@bluestar.solutions |
b51cd3b37da09322d7f9b8aafe925465055d0aec | 3090557f9979c7c36490949b27012e245c65ff67 | /advanced_routing/server.py | b77caaa0255cf2c82b665936632272349eda3fae | [] | no_license | Biniamguchi/Flask | 859113d8dd3a664180cd2ad5ac39d7efec48a7ed | c932ab8aafd217508a393cfbc4c93737e9de1820 | refs/heads/master | 2021-08-24T07:56:17.475002 | 2017-12-08T18:40:58 | 2017-12-08T18:40:58 | 109,214,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def index():
return render_template("user.html", phrase="hello", times=10)
app.run(debug=True)
# from flask import Flask, render_template, request, redirect
# app = Flask(__name__)
# @app.route('/users/<jay>')
# def show_user_profile(jay)... | [
"biniam22@gmail.com"
] | biniam22@gmail.com |
253bd22eeac212547fe5cd4922cf478d51db7277 | f41bdcf118ce9c4ba374a33475fd9626bf3db905 | /klasa 1/sql/fake_apps/fake_apps.py | 52604f726248f8628828457684969c3287274991 | [] | no_license | nikolaCh6/nikolaCh6 | 376005812dc49b5c41af95ef0c1b8d3caed7a21d | 5c60aa63bd37c8594ce09b60d32f8cd1b0941e9b | refs/heads/master | 2021-06-16T11:30:21.837301 | 2019-10-18T10:53:59 | 2019-10-18T10:53:59 | 105,507,076 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,345 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sqlite3
import csv
def dane_z_pliku(nazwa_pliku):
dane = [] # pusta lista na dane
with open(nazwa_pliku, 'r', newline='', encoding='utf-8') as plik:
tresc = csv.reader(plik, delimiter='\t')
for rekord in tresc:
rekord = [x.stri... | [
"nikolachmiel6@gmail.com"
] | nikolachmiel6@gmail.com |
99fe4cfdf0cb813cd50858f019141ceab71fce96 | 6dca81c7387ec92144dd1908855589e1c92c4057 | /IutyLib/database/dbbase.py | ae083623aeb6a563ee9698c015d896406a823d3a | [
"MIT"
] | permissive | Iuty/iutylib | bf2010712e3c9d31f00b3ed1bd0d16ec9c5f6350 | 763972642c536aeec352001e649a884784d19a40 | refs/heads/master | 2023-01-23T13:51:01.365025 | 2020-11-19T06:43:43 | 2020-11-19T06:43:43 | 218,896,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,176 | py | from IutyLib.database.exceptions import *
from abc import abstractmethod
import datetime
class DataBaseParam:
host = None
user = None
password = None
dbname = None
def __init__(self,host,user,password,dbname,port=3306):
self.host = host
self.user = user
self.port = port... | [
"dfdfggg@126.com"
] | dfdfggg@126.com |
457c90bdeecb80fe725ae8d148b6a12d7552e0b7 | 9e6f5a9db0dda137d80e57106c50ede468f70196 | /SCADA.py | ca54c1037107ea1609ddec8a250da982d674ac91 | [] | no_license | lucazanrosso/Python-Scada | ee07b339d53fb84f54169fe3c3be87ca9331e88b | fbaa970d838860dddc068c6528e6170ae1447be0 | refs/heads/main | 2023-04-24T05:31:38.907605 | 2021-05-13T18:38:26 | 2021-05-13T18:38:26 | 304,403,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,352 | py | import tkinter as tk
from pymodbus.client.sync import ModbusTcpClient
import OpenOPC
import pywintypes
pywintypes.datetime = pywintypes.TimeType
root = tk.Tk()
root.title("SCADA Interface")
def scan_abb():
label_abb_server["text"] = "ABB Server: " + opc_client.servers()[0]
def connect_abb():
opc_client.con... | [
"lucazanrosso94@gmail.com"
] | lucazanrosso94@gmail.com |
1260bf85376667fd2991ee2aa31c34beadda002a | 7872ca984d8e5809fee3868810febdd3273c8787 | /BOJ/dynamic_programming/11057-오르막_수.py | 39063cd46ab976b7293b76bc1013fb3ddfbb90f9 | [] | no_license | hwamoc/Algorithm | dcc99252b3a444aecf62544fdc5282c8a1a8de3d | 4b9c086b0807736e80ce0e8da8415865cb555921 | refs/heads/master | 2022-12-24T05:11:10.044203 | 2020-10-05T09:43:43 | 2020-10-05T09:43:43 | 277,570,498 | 0 | 0 | null | 2020-10-05T09:43:44 | 2020-07-06T14:51:39 | Python | UTF-8 | Python | false | false | 864 | py | '''
# 예제 입력 1
1
# 예제 입력 2
2
# 예제 입력 3
3
'''
from sys import stdin
input = stdin.readline
# 끝자리가 0~9인 개수를 모두 따져본다.
# nc[i][j]는 i자리 수에서 j로 끝나는 수들의 총 개수
# nc[i][j] = nc[i-1][j] + nc[i][j-1] 라는 점화식을 가진다.
N = int(input())
nc = [[1]*10 for _ in range(N+1)]
mod = 10007
print(nc)
for i in range(2, N+1):
for j in range(1, 1... | [
"hwamok222@naver.com"
] | hwamok222@naver.com |
856646a13abfa675fe8af4f6c9cf65e07f64f447 | 6d5a5c731f89933c7086ecd7d26999b79bc7217a | /Inflearn/stringPrac.py | 33b9bd610fc6fd0e93387a7b9f24ecaa77075782 | [] | no_license | minhyeonlee/python-basic | 7fbb9ff3816ac72c19d2cb2192c324a379082b16 | 007d1fc455927e83188e345bf3fc5cd8d5753b49 | refs/heads/master | 2022-04-13T09:57:39.270863 | 2020-03-28T07:25:14 | 2020-03-28T07:25:14 | 247,428,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,306 | py | '''
Inflearn, 파이썬 무료 강의 (기본편) - 6시간 뒤면 나도 개발자
Section3. 문자열 처리
'''
# 1강. 문자열
# ''와 ""은 모두 문자열이다.
sentence = '나는 소년입니다.'
print(sentence)
sentence2 = "파이썬은 쉬워요"
print(sentence2)
#여러줄을 저장해서 출력할 수 있다.
sentence3 = '''
나는 소년이고,
파이썬은 쉬워요
'''
print(sentence3)
# 2강. 슬라이싱
idnumber = "990120-1234567"
print("성별: " + idnumber[7]... | [
"minhyeonlee1@gmail.com"
] | minhyeonlee1@gmail.com |
1d8f707d85637cff428c5a8591200c9101f5dd02 | 7347e21b270b67bcc5820e5c285921f6edafbcb4 | /src/tests/resources/test_app_server.py | 52528296068fab3dc158d3765da69c139aa10c23 | [] | no_license | taller2fiuba/chotuve-auth-server | 21b2db4ae034883033ea8aa860347567ab9b8473 | 882ac7cb52a6c4cf81ed3bd4d59b643a73078054 | refs/heads/master | 2023-04-18T21:15:34.085832 | 2020-07-31T00:51:09 | 2020-07-31T00:51:09 | 257,125,839 | 0 | 0 | null | 2021-05-06T20:14:23 | 2020-04-19T23:45:26 | Python | UTF-8 | Python | false | false | 3,844 | py | import unittest
import mock
from app import app
from tests.base import BaseTestCase
class AppServerTestCase(BaseTestCase):
def setUp(self):
super().setUp()
patcher = mock.patch('app.autenticacion.validar_admin_token')
mock_validar_admin_token = patcher.start()
mock_validar_admin_to... | [
"sportelliluciano@gmail.com"
] | sportelliluciano@gmail.com |
cb42037c53fdb36811de199c77965b36a6d8534e | 65f98765b5e9ebe971c494af0b37a230757a00f1 | /HW4/coco_utils.py | 9cd8c99290b72619099b46c5a1c792bd22cec088 | [] | no_license | BingqianY/EECS-545-Machine-Learning | 01112686a8c6eb4a60a2454018708a96a37b7caa | 7a511b3936b34b7c130368241577b282edb5e8a7 | refs/heads/master | 2022-12-09T15:40:13.807210 | 2020-09-07T17:18:08 | 2020-09-07T17:18:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,923 | py | from builtins import range
import os, json
import numpy as np
import h5py
BASE_DIR = 'coco_captioning'
def load_coco_data(base_dir=BASE_DIR,
max_train=None,
pca_features=True):
data = {}
caption_file = os.path.join(base_dir, 'coco2014_captions.h5')
with h5py.File(capt... | [
"noreply@github.com"
] | noreply@github.com |
037e7c688589c6f62e908de38bbd66aa0d06136a | affe5181dc52444c81b0ed353b4d02dadb4fb9f5 | /logictensornetworks_library.py | 2623e17ac3dfcb97d06ea025f6e2e85c7df4e675 | [
"MIT"
] | permissive | gilbeckers/logictensornetworks | d52ae9e856bd35508139e26cb45397be9824cc2c | c4cc3628db91030230c78d3b964c26304a3b452b | refs/heads/master | 2021-01-02T17:40:28.714759 | 2020-02-13T09:36:21 | 2020-02-13T09:36:21 | 239,727,377 | 0 | 0 | MIT | 2020-02-11T09:49:24 | 2020-02-11T09:49:23 | null | UTF-8 | Python | false | false | 334 | py | import tensorflow as tf
def equal_simple(x,y):
return tf.exp(-tf.reduce_sum(tf.abs(x-y),1,keepdims=True))
default_equal_diameter = 1.0
def equal_euclidian(t_1,t_2,diameter=default_equal_diameter):
delta = tf.sqrt(tf.reduce_sum(tf.square(tf.subtract(t_1,t_2)),1,keepdims=True))
return tf.exp(-tf.divide(del... | [
"spranger@nova"
] | spranger@nova |
671c07d1bae3bbeba7c5b48667c2e1e16124ad39 | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /third_party/icu/icu.gyp | 4e3c0063727072f7e4a288d3da375b851154b2a4 | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unicode",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"NAIST-2003",
"ICU"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | Python | false | false | 23,500 | gyp | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'includes': [
'icu.gypi',
],
'variables': {
'use_system_icu%': 0,
'icu_use_data_file_flag%': 0,
'want_separate_host_toolset%': 1,... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
682db18a260da2b35963901c8f7ef28ba10bc1d1 | 4adab98ffdcb6bc99474b119cb7a80427f36271a | /test/test_cal_new.py | 9f0f4c7c0fa1b4af9bb864ec2e3a20293b425373 | [] | no_license | yangyq-github/hgwz_course | 4dde4470edf6ae4a9fff58a253c182a6905d0e79 | 0282da6bd8001dac184fc43415b82532b20b8a69 | refs/heads/master | 2023-04-23T12:06:56.900039 | 2021-04-25T11:15:45 | 2021-04-25T11:15:45 | 347,267,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,461 | py | #!/usr/bin/python3
# coding : utf-8
# @Time : 2021/3/24 17:32
# @File : test_cal_new.py
__author__ = 'yangyanqin'
# 测试计算器--数据驱动方式
import pytest, sys, yaml
sys.path.append("../")
from Chapter_Pytest_Actual_Combat.calc import Calculator
with open("datas/cal_data.yml", encoding='utf-8') as f:
datas = yaml.safe_lo... | [
"yangbitmex@163.com"
] | yangbitmex@163.com |
53d552270fd2e4c5fce0a339f00a4a44899b6b65 | d483d0ad0f46df24ff247ee87e81bb8adc5df575 | /plugin/mvr_plugin/automation/regular1.py | 45e35735381f54720b4e849908249150aa664d75 | [
"MIT"
] | permissive | S3Infosoft/mvr-automation | 302090ec9cec45ff45d98e76375fc420fa9de746 | 75f582765f39919bf2c3a35997bed242bede788b | refs/heads/master | 2020-05-26T02:29:31.069682 | 2020-05-19T08:46:51 | 2020-05-19T08:46:51 | 188,076,198 | 0 | 0 | MIT | 2019-06-02T10:16:03 | 2019-05-22T16:30:56 | Python | UTF-8 | Python | false | false | 11,445 | py | from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.keys import Keys
from .local1 import *
import requests
# from Common ... | [
"ssaannskra@gmail.com"
] | ssaannskra@gmail.com |
9b4de1d3e5726b763267418ceb084d36565e00af | e6a8793b1b12d47e57f00485350d122946618245 | /parents/admin.py | 6a80e0c0a7836d80d23fab02e3781a4109d89613 | [] | no_license | Fabricourt/school | 70b2eba2c0b8ff9b9290eb0f68d730698a6d3a63 | dad80c36be34b432dfadef195eb9e867f82cafff | refs/heads/main | 2023-01-01T15:48:43.760288 | 2020-10-26T11:15:32 | 2020-10-26T11:15:32 | 305,829,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | from django.contrib import admin
from .models import Parent
class ParentAdmin(admin.ModelAdmin):
list_display = ( 'name', 'account_date')
list_display_links = ( 'name',)
search_fields = ('name',)
list_per_page = 25
admin.site.register(Parent, ParentAdmin) | [
"mfalme2030@gmail.com"
] | mfalme2030@gmail.com |
50d9bcb586a1faed7b58e48723a78679a98837d8 | 279ed7207ac2c407487416b595e12f573049dd72 | /pybvk/apps/bvkdos.py | 13cba733f4b05f59814d552d8b8aa8f9f4c231a3 | [] | no_license | danse-inelastic/pybvk | 30388455e211fec69130930f2925fe16abe455bd | 922c8c0a8c50a9fabd619fa06e005cacc2d13a15 | refs/heads/master | 2016-09-15T22:21:13.131688 | 2014-06-25T17:12:34 | 2014-06-25T17:12:34 | 34,995,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,211 | py | #!/usr/bin/env python
# given the python module to create "system", calculate dos
# the python module is optional. if it is not given, then "system" file must exist already.
import os
def run(systempy, system, df, N, Vecs):
# if neither systempy nor system is specified, it is assumed that we have a "system" file... | [
"linjiao@caltech.edu"
] | linjiao@caltech.edu |
c2fdd9630eb7926aa146154e2e47cdea62cb82b4 | 89bfd26dc9cc8eb90adbb6bfc9aef0fa34705e9c | /migrations/versions/9baecab3227c_.py | 5421ebdbd8b81b4858ef5887505a52f2b0fc3a81 | [] | no_license | MaksTresh/forum-flask | c1d2d4615bb18e00e55b839be23c8f8b76b30f3e | 8b0da4bc3a0ac2789fd3988118b7f680f2f69fc8 | refs/heads/master | 2021-08-18T22:51:00.681691 | 2020-04-15T09:03:50 | 2020-04-15T09:03:50 | 162,621,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py | """empty message
Revision ID: 9baecab3227c
Revises: 54bd0f7227e0
Create Date: 2018-11-18 20:07:44.124918
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '9baecab3227c'
down_revision = '54bd0f7227e0'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"mmakstresh@gmail.com"
] | mmakstresh@gmail.com |
eb9acff83caf6b18ce66a9e805bdb61b22b2f7ad | 1bbf2f808f15a1320c02498230919b8bb3b83dc3 | /Trabalho 3 - Chat completo/protocol.py | 7cc5f22e647a5961358da35889f424526128dbbd | [] | no_license | ddrc1/Redes-2 | 58b05448462d50546ce67f077b9d86b095cac11d | 9ece988e4707103ad743f29817571c16290a22f7 | refs/heads/master | 2021-03-09T23:38:29.616072 | 2020-03-13T02:29:02 | 2020-03-13T02:29:02 | 246,394,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,964 | py | import struct
from enum import Enum
from abc import ABC, abstractmethod
# Definições do protocolo
PROTOCOL_VERSION = 1
PROTOCOL_HEADER_FORMAT = '!BHB'
PROTOCOL_HEADER_LENGTH = struct.calcsize(PROTOCOL_HEADER_FORMAT)
# Tipos de Mensagem
NICKNAME_MESSAGE_TYPE = 1
CHAT_MESSAGE_TYPE = 2
CLIENT_CONNECTION_TYPE = 3
CLIENT... | [
"danielrotheia@gmail.com"
] | danielrotheia@gmail.com |
9e3d7a39f03e12281ca6a9bc758c4adbf7873c01 | eee7b11df02e30b023532b73c015fd6eedef8998 | /mysite/urls.py | dadab4c98f9305a601c28ba055d1d2b9f9be6c7a | [] | no_license | soymelisa/my-first-django-blog | 679cdee3b197c24fc0e3a63f2f348eb274b826ad | cb21cadd9177810dfd695183a33228e9a360fa6b | refs/heads/master | 2020-06-25T03:39:18.584302 | 2019-07-29T18:24:47 | 2019-07-29T18:24:47 | 199,188,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"soymelisa@yahoo.com"
] | soymelisa@yahoo.com |
63cfbd9c8ad9930ad2a5cbaf21d054591384d6bb | 1ee963824666f3bf987d5aff861d9697ba42a78e | /app/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/config.gypi | a8a1c681f9e3233d3948a5301339c9bd917d66da | [
"Apache-2.0",
"MIT"
] | permissive | Darkninja/blog | bf03599c605ab606f8585ec5aeedf42d2d8e45a1 | cb3120f06ccf745692aec37fd170bf81ba34cc77 | refs/heads/master | 2021-01-18T08:41:42.125237 | 2013-03-13T10:15:23 | 2013-03-13T10:15:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,737 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 0,
"gcc_version": 46,
"host_arch": "x64",
"node_install_npm": ... | [
"me@andrewsking.com"
] | me@andrewsking.com |
5d41e4fc84e6338c49bce2a6c1a44559d4fcac24 | 809d126d0785687f20e14fd71a529dbf73dd1f5e | /store/main/routes.py | 3c637972167fc1698bd695e3862fc7b6ee1b6714 | [
"MIT"
] | permissive | isaacrivas10/fb_chatbot | 1aa129e32919167d68d71cac9895c491e73d3086 | 01a78e690e698609a5b89dc8f04c216b248f5047 | refs/heads/master | 2022-12-10T23:48:51.002548 | 2020-03-10T02:36:01 | 2020-03-10T02:36:01 | 229,897,442 | 0 | 0 | MIT | 2022-12-08T03:20:59 | 2019-12-24T07:52:05 | CSS | UTF-8 | Python | false | false | 560 | py |
from flask import Blueprint, render_template
from flask_login import current_user
main= Blueprint('main', __name__)
@main.route("/")
@main.route("/home")
def home():
if current_user.is_authenticated:
return render_template('index.html', show=True, isauth=True)
return render_template('soon.html')
... | [
"idrc74@hotmail.com"
] | idrc74@hotmail.com |
031ac86eb737e0cb3cf325efa6c5fc736ac1dd8d | 96721286424fa257d6b969ddd4e823e22fe2bcda | /venv/lib/python3.5/site-packages/easy_thumbnails/source_generators.py | c8969b7241ded68ee56568a0cdb623a0e48ebc29 | [
"MIT"
] | permissive | Deepanjalli/job_portal6 | 6a44482c8a3c89e8babae259a5390ec89e73e580 | 2869de5dca16a88f840ce0e4a26fe2edba3e9cae | refs/heads/master | 2021-09-10T09:00:21.791857 | 2020-02-24T07:13:04 | 2020-02-24T07:13:04 | 242,659,782 | 0 | 0 | MIT | 2021-09-08T01:50:58 | 2020-02-24T06:08:25 | Python | UTF-8 | Python | false | false | 1,057 | py | from io import BytesIO
from PIL import Image, ImageFile
from easy_thumbnails import utils
def pil_image(source, exif_orientation=True, **options):
"""
Try to open the source file directly using PIL, ignoring any errors.
exif_orientation
If EXIF orientation data is present, perform any required ... | [
"deepz9733@gmail.com"
] | deepz9733@gmail.com |
a7fb3e98a1693472240d1701c60eabe016e852f8 | 44b7bdb64f90d5d6628ffa81e4fcccdaac8aad51 | /metall0id/pilfer/samsung/gsii/minidiary.py | 39e15def420aad692f2c96a8e6a5edf1df2e46c9 | [] | no_license | LogicalTrust/drozer-modules | 65005ac30d860693e178bba81eeb00075755f2f8 | d39fceba96f7f885c015ab79c6d3dd7cd1d9e8b9 | refs/heads/master | 2021-01-01T19:40:47.371947 | 2018-03-10T08:35:43 | 2018-03-10T08:35:43 | 98,646,524 | 2 | 0 | null | 2017-08-02T07:37:56 | 2017-07-28T12:15:50 | Python | UTF-8 | Python | false | false | 1,220 | py | from drozer.modules import common, Module
class MiniDiary(Module, common.Provider, common.TableFormatter, common.Vulnerability):
name = "Tests for Content Provider vulnerability in com.sec.android.app.minidiary."
description = "Tests for Content Provider vulnerability in com.sec.android.app.minidiary."
ex... | [
"daniel.bradberry@mwrinfosecurity.com"
] | daniel.bradberry@mwrinfosecurity.com |
35c2f0858f1e0b8ebe8a568c171b19c24fd7c125 | 8111fe5c304b7d0c9c3c8eba5813cf380db7f29e | /test7.py | 6ff5bf46c16cde9a6b65f64619530596eb5f2648 | [] | no_license | poonamsl/JenkinsTests | 2c978689bdcdc728fe672245483498526af675a2 | 2432c5cea356908d7ed4b5ba2f672a28d43d0532 | refs/heads/master | 2023-05-02T16:11:20.660451 | 2023-04-24T20:57:33 | 2023-04-24T20:57:33 | 61,320,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,433 | py | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
#import sauceclient
import os
import json
# Retrieving environment variables
SAUCE_USERNAME = os.environ.get('SAUCE_USERNAME')
SAUCE_ACCESS_KEY = os.environ.get(... | [
"noreply@github.com"
] | noreply@github.com |
25069dd9e77118a997038dcb2d699948baacf6b6 | d38d988114f8487e4c0d1674191b6f2865eac70d | /gru.py | 7b20014606ce44db1d77d34a341bc6b2b10aa40b | [
"MIT"
] | permissive | dizcza/ujipen | 71cc1612fcc8247a7cae1a2da9ea13cb2fca38e8 | 4e7d2ff1bd6d659743fdf68e49894236cd559b84 | refs/heads/master | 2021-07-05T19:03:00.701898 | 2020-09-11T18:48:57 | 2020-09-11T18:48:57 | 171,858,288 | 1 | 1 | MIT | 2019-10-30T09:28:42 | 2019-02-21T11:19:50 | Python | UTF-8 | Python | false | false | 2,371 | py | from typing import List, Dict
import numpy as np
from keras import layers, models
from constants import *
from helper import check_unique_patterns
from preprocess import equally_spaced_points_patterns, is_inside_box
from ujipen.ujipen_class import UJIPen
def concat_samples(samples: Dict[str, List[List[np.ndarray]]]... | [
"dizcza@gmail.com"
] | dizcza@gmail.com |
c5938159509a69c4d911d0b67d9fe2ccb67844f4 | 70b339d0b2638a7914d0d56c5edf8a2637c9f4b0 | /countUnivalSubtrees.py | debb8570ebae08b08bd35f2a07e56136d4acbf9a | [] | no_license | pflun/advancedAlgorithms | 9991da7514024e18ba08de8688966b9220e12571 | 5520dbcd26999b98e1229bf03c2f62dd690a2ddc | refs/heads/master | 2023-02-19T12:05:26.902535 | 2023-02-14T06:08:54 | 2023-02-14T06:08:54 | 189,055,701 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,234 | py | # -*- coding: utf-8 -*-
# 分别看左右子树返回值是否与根相等,分情况讨论
# https://mnmunknown.gitbooks.io/algorithm-notes/content/61_tree.html
# Definition for a binary tree node.
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution(object):
def countUni... | [
"zgao@gwu.edu"
] | zgao@gwu.edu |
7b731c6f011fa87393d4ce9b59e7a664722cbc56 | 30150c7f6ed7a10ac50eee3f40101bc3165ebf9e | /src/coghq/FactoryEntityCreatorAI.py | f46ac38d6fdd0fa9403d61345de5892119f286e3 | [] | no_license | toontown-restoration-project/toontown | c2ad0d552cb9d5d3232ae6941e28f00c11ca3aa8 | 9bef6d9f823b2c12a176b33518eaa51ddbe3fd2f | refs/heads/master | 2022-12-23T19:46:16.697036 | 2020-10-02T20:17:09 | 2020-10-02T20:17:09 | 300,672,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,100 | py | """FactoryEntityCreatorAI module: contains the FactoryEntityCreatorAI class"""
from otp.level import EntityCreatorAI
from direct.showbase.PythonUtil import Functor
from . import DistributedBeanBarrelAI
from . import DistributedButtonAI
from . import DistributedCrateAI
from . import DistributedLiftAI
from . import Dist... | [
"brianlach72@gmail.com"
] | brianlach72@gmail.com |
81e3fd66b95ae9164e10826cf96b469c11dc802c | 69885b865879678a1b70214bf1a0c7c742eb989d | /Vehicles_detection/tiny_YOLO/tiny_train.py | 579e8dd6bdf55cc81f5da5471b0958f331553506 | [] | no_license | Key1994/Course_of_self-driving_car_Udacity | 5c794811845007dca424dac70dce2c56fb475f38 | 83e34a68a9a4fb21cb9e8d738770c203780a845e | refs/heads/master | 2022-12-08T05:23:10.225984 | 2020-09-04T06:31:39 | 2020-09-04T06:31:39 | 291,411,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,377 | py |
import numpy as np
import keras.backend as K
from keras.layers import Input, Lambda
from keras.models import Model
from keras.callbacks import TensorBoard, ModelCheckpoint
from yolo3.tinymodel import preprocess_true_boxes, tiny_yolo_body, yolo_loss
from yolo3.utils import get_random_data
def _main():
... | [
"noreply@github.com"
] | noreply@github.com |
7783d9c426e2ee2332c1ba6930383030038a5c3e | ad6f20ca36dc65e34b43c69db66f383554718fed | /already_asked_questions/bridged/V0/webscrapping_selenium.py | 4f072b6e3aeb36b938b5851bd533e9e9e98a6b03 | [] | no_license | atulanandnitt/questionsBank | 3df734c7389959801ab6447c0959c85f1013dfb8 | 477accc02366b5c4507e14d2d54850a56947c91b | refs/heads/master | 2021-06-11T21:39:24.682159 | 2021-05-06T17:54:18 | 2021-05-06T17:54:18 | 175,861,522 | 0 | 1 | null | 2020-05-02T09:26:25 | 2019-03-15T17:10:06 | Python | UTF-8 | Python | false | false | 470 | py | from selenium import webdriver
from selenium.webdriver.chrome.options import Options
chrome_options = Options()
chrome_options.add_argument("--headless")
url ="https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:A/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L"
d = webdriver.Chrome(chrome_options=chrome_options)
d... | [
"atul.anand.nitt"
] | atul.anand.nitt |
1a0d279e90e4a7293faf975c284a15a6bfa3eb66 | f93e413230460cf86f35cd0bc5db74fed9539efb | /fkd-specials.py | 6acadf53b1e0f238195f4046d3b76d49b61d8f1a | [] | no_license | danielevian/facial-keypoints-detection-keras | 34045eb66092fd003ad10fc964956d0958db2296 | 2ec2ae4b31a0c588db0d85a50085d7546c105930 | refs/heads/master | 2021-01-12T09:30:08.002992 | 2016-12-13T15:41:06 | 2016-12-13T15:41:06 | 76,171,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,966 | py | from __future__ import print_function
import numpy as np
from keras.models import Sequential, load_model
from keras.layers import Dense, Activation, Dropout, Convolution2D, MaxPooling2D, Flatten
from keras.optimizers import Adam
import h5py
import matplotlib.pyplot as plt
from pandas import read_csv
import pandas as pd... | [
"daniele@misiedo.com"
] | daniele@misiedo.com |
b757933424dbae9f916e93a4298ec35fe9220b03 | a2c3eb07ed4ed7beba217e61bece352881c0bef6 | /projeto2/antlr4-python3-runtime-4.7.2/src/autogen/GrammarCheckerVisitor.py | ffbec44629ea4f004820cfe0b7c143a88c44fa77 | [] | no_license | samuelbrasileiro/compiladores | d47a044e84e70f9f991e991cfed9b108dc25aa6a | 7408ebfde130b7114a7d0f2d60f0480ad0e0f03c | refs/heads/master | 2023-05-03T18:29:08.948046 | 2021-05-17T13:44:21 | 2021-05-17T13:44:21 | 349,994,460 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 33 | py | ../../../GrammarCheckerVisitor.py | [
"samuelbsantosn@gmail.com"
] | samuelbsantosn@gmail.com |
be44df7fee11dfc53e80ffa6769c71965ba34ccc | 864312a2184d0c9ac73b6b5d962bd0f34bf9ee42 | /redisdemo.py | 20eec91d23270d4cda098c80785514edd50fbd3d | [] | no_license | erikdejonge/redisdemo | e1250f1829ed042638d64409c2426469006f40f1 | 5ded8ab6cf986a19f46010b934abe9a5142f7d9b | refs/heads/master | 2020-04-20T09:24:41.420048 | 2019-02-25T16:13:32 | 2019-02-25T16:13:32 | 168,764,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,524 | py | # coding=utf-8
"""
Testscript for redis
"""
import unittest
import random
import time
import redis
from multiprocessing import Pool, Process
REDISHOST = '127.0.0.1'
# noinspection PyUnusedLocal
def return_redis_mylist(counter):
"""
pop one item from the beginning of the list
"""
global REDISHOST
... | [
"rabshakeh@xanthos-2.local"
] | rabshakeh@xanthos-2.local |
b9447235a9f1441e7e0f13347182a735b12dbb79 | e29c9744a714da2705d76047e56b8d9ae3607ec8 | /api/apps/pokemons/api/v1/tests.py | ef7f958d7ab3aeb45d8f009e4b694894e095b0b2 | [] | no_license | medinan/ixpandit-tests | d27c0c815b0cde345bd99a0896b2d2a5bab524dd | bd7a6fd02efc33f6c057983d866af205ba2d6f26 | refs/heads/main | 2023-09-03T20:12:00.759333 | 2021-11-01T20:52:43 | 2021-11-01T20:52:43 | 421,535,190 | 0 | 0 | null | 2021-11-01T20:52:44 | 2021-10-26T18:11:37 | CSS | UTF-8 | Python | false | false | 2,369 | py | from rest_framework import status
from rest_framework.test import APITestCase
from utils.tests.mixins.factories import UserFactory
from utils.tests.mixins.simple_api import SimpleAPITestCaseMixin
from ...tests.factories import PokemonFactory
class PokemonAnonymousUserAPITestCase(SimpleAPITestCaseMixin, APITestCase)... | [
"noreply@github.com"
] | noreply@github.com |
50ae2b79f3722abd6f8e9deec39e107c7e331cb3 | 6ae36417415bfe9aafa4daa98c00ee7407f88f01 | /golabs/gocloud/gumball/nodejs/gumball_v6/node_modules/kerberos/build/config.gypi | 47735b99ef72a8cd4c4a8f9faeea2812627d6210 | [
"Apache-2.0"
] | permissive | pkouda/cmpe281 | 9992f7ec725dad9afc0c9144d677018f8077cddd | 8ef8133b4e69b8e3fdb5ad392d6f101edbadb8ce | refs/heads/master | 2021-05-08T15:45:10.712851 | 2018-02-03T06:05:19 | 2018-02-03T06:05:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,980 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"debug_devtools": "node",
"debug_http2"... | [
"paul.nguyen@sjsu.edu"
] | paul.nguyen@sjsu.edu |
b1e7bc2ea6a672534d6f1fe70f55d35439a84b1f | cd40b7cc395f36740000ed4a4144b1c0666ab0fd | /tests/test_hstrat/test_stratum_retention_strategy/test_stratum_retention_algorithms/test_recency_proportional_resolution_algo/test_IterRetainedRanks.py | e25d30f8fbb8105935530e3c749ac1f26bb0365f | [
"MIT"
] | permissive | mmore500/hstrat | 94fd22c86a87a5707590b9398ef679444ed82d6d | b2d2caded1db5e2dc681d9f171d7c74b322c55c3 | refs/heads/master | 2023-08-31T03:36:44.457576 | 2023-08-25T14:39:29 | 2023-08-25T14:39:29 | 464,531,144 | 5 | 2 | NOASSERTION | 2023-08-25T13:07:52 | 2022-02-28T15:11:45 | Python | UTF-8 | Python | false | false | 7,230 | py | import itertools as it
import numbers
from iterpop import iterpop as ip
import numpy as np
import pytest
from hstrat._auxiliary_lib import all_same, pairwise
from hstrat.hstrat import recency_proportional_resolution_algo
@pytest.mark.parametrize(
"recency_proportional_resolution",
[
0,
1,
... | [
"mmore500.login+gpg@gmail.com"
] | mmore500.login+gpg@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.