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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
abbe4d307e95c88b0c158b90f6938b955a4f29bd | 081783216592962d59cb0d7d9831785762bf510f | /data_mining_toolbox/plot_helper.py | cc83e7f1d9e87c70e16e7ae4e27a1fdbc463f81c | [] | no_license | AnchoretY/DGA_Detection | 1b49960e4933de6f2ffb7aab420b8d39c24429ce | 806fbac5e4b0d02f965626a54c4fce3918f8e95b | refs/heads/master | 2021-04-19T15:31:00.259188 | 2020-09-21T10:40:42 | 2020-09-21T10:40:42 | 249,616,611 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,386 | py | import numpy as np
import matplotlib.pyplot as plt
def plot_curve(x,y,label,title,xlabel,ylabel,figsize=(8,6),ylim=None,\
grid=True,title_size=20,xylabel_size=15,legend_size=12,save_name=""):
"""
画折线图
Parameters:
----------
x: 横坐标值,两种可选形式,:
optional 画单条折线横坐标... | [
"752083104@qq.com"
] | 752083104@qq.com |
8605a7a4b7b988126d769356c2b3ee9a2da0e7a4 | b67bcd341f942538d4d55b9946bcace0eb824d51 | /Parser.py | 671992f73d9d8a5eadaf16cce3cd4ecbe2661b18 | [] | no_license | HaraldurShoshan/Fmal-Compiler_python | 8fcfea44d6ba932b92e8aa3d9097d7c275c98fc7 | 4c1f259be7f77bc056cde1063a9a8829f1617f36 | refs/heads/master | 2021-01-22T04:33:37.533334 | 2017-02-11T16:32:19 | 2017-02-11T16:32:19 | 81,555,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,742 | py | from Lexer import Lexer
import re
from Token import *
class Parser(object):
def __init__(self, myLexer):
self.Lexer = myLexer
self.nextT = ""
self.opList = []
def parse(self):
self.nextT = self.lex()
self.statements()
def statements(self):
if(se... | [
"haraldurshoshan@gmail.com"
] | haraldurshoshan@gmail.com |
ce2019dbe50bac7bd952c2f44e623b786085c078 | d71edb3616b137b1107dd55f1c1c8a3edf90bb17 | /LOG REG Model.py | 56ece35f6e30bbaff5811f3d233e7d9423f0d8b3 | [] | no_license | Emanuel600/Diabetes-disease-progression---Models | 2da0048d5b27d0baf7dcc7fd4191a2bc83120f1e | 66ca4d9edccdcc39fafb35aeeb27d9683fd7af63 | refs/heads/main | 2023-03-02T21:57:58.361302 | 2021-02-02T22:08:54 | 2021-02-02T22:08:54 | 335,418,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | #! /usr/bin/python3
# remeber to make file executable
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.linear_model import LogisticRegression as lor
from sklearn.metrics import ConfusionMatrixDisplay as cmd
from sklearn.metrics import confusion_matrix as cm
from sklearn.datasets imp... | [
"noreply@github.com"
] | noreply@github.com |
dcf71ee1082f20b11c686ad9ed9d87c549416a0d | adbbeeae023ffd1f4932210efd9bd0e1e326e501 | /flair/datasets.py | 178937afd07955c6b1bf78cc94045bea054311fa | [
"MIT"
] | permissive | sidney1994/CLNER | 504747882587d030532e03c1d15bffae8552c84b | 7340566c3f10d8b532f357d1d3fcfad6348b02fa | refs/heads/main | 2023-06-28T20:30:09.914547 | 2021-08-03T09:40:22 | 2021-08-03T09:40:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185,662 | py | import os, csv
import json
from abc import abstractmethod
from torch.utils.data import Dataset, random_split
from typing import List, Dict, Union
import re
import logging
from pathlib import Path
import torch.utils.data.dataloader
from torch.utils.data.dataset import Subset, ConcatDataset
import flair
from flair.data... | [
"wangxy1@shanghaitech.edu.cn"
] | wangxy1@shanghaitech.edu.cn |
a4f689fe36c7a68e9b2bc43b0b59eaf957f6aedc | aad6b08ee56c2760b207d562f16be0a5bb8e3e2a | /tags/Pukapuka1.0/WebKitTools/Scripts/modules/buildbot.py | 4478429a5d2940b52818177df7cc7c2bedb7a1e3 | [] | no_license | Chengjian-Tang/owb-mirror | 5ffd127685d06f2c8e00832c63cd235bec63f753 | b48392a07a2f760bfc273d8d8b80e8d3f43b6b55 | refs/heads/master | 2021-05-27T02:09:03.654458 | 2010-06-23T11:10:12 | 2010-06-23T11:10:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,920 | py | # Copyright (c) 2009, Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and t... | [
"mbensi@a3cd4a6d-042f-0410-9b26-d8d12826d3fb"
] | mbensi@a3cd4a6d-042f-0410-9b26-d8d12826d3fb |
6dc88829539ae460a6c73eebb0ef7601a7593b35 | e5486861d7467e17bf13b6ade8075887afce76a0 | /spider.py | 192d5a45bfcab90128759886255464ddeb82f114 | [] | no_license | spades-k/obj-detection | 4b7c0c23becbd0b0c7e3c355973ea377ceb55b66 | a3f94234e7246d078a11e8848467a5bf78626010 | refs/heads/master | 2021-01-20T07:43:23.610822 | 2017-05-03T03:22:40 | 2017-05-03T03:22:40 | 90,035,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 686 | py | #-*- coding:utf-8 -*-
import re
import requests
word = input("Input key word: ")
url = 'http://image.baidu.com/search/flip?tn=baiduimage&ie=utf-8&word=' + word + '&ct=201326592&v=flip'
result = requests.get(url)
html = requests.get(url).text
pic_url = re.findall('"objURL":"(.*?)",', html, re.S)
i = 0
for each in pi... | [
"294130021@qq.com"
] | 294130021@qq.com |
d360f406e4e83ad61f765f38b25b91b19ee2015a | c1631329d605c04269357db500610468bb5a03e1 | /net2.py | 9323dd0aef0a9afe49fd3f24cc4bb695e3eafa0f | [] | no_license | andygom/bestInd | e164f77d68c5988c8636a377fd3f1cecf443f8c3 | 9fada18de0533b81390850f5d76526d8e3e0f2c4 | refs/heads/main | 2023-03-21T23:11:21.761657 | 2021-03-19T03:46:57 | 2021-03-19T03:46:57 | 349,291,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,813 | py | import numpy as np
from numpy import random
import time
from adafruit_servokit import ServoKit
kit = ServoKit channels=16
# INDIVIDUO CON experimento p100 g800 m0.5 / 5 ----- F I T N E S S D E 41.59513354301453
# weightsIH = np.random.random 14, 14 * 2 - 1
weightsIH = [-1.54777539e-01, 3.97567849e-02,... | [
"you@example.com"
] | you@example.com |
435be08ca703d6b2caec7e9f678a9be907b52d14 | 25e378bb6b9be65ba5745dcd1fe63a7cb4b62ab5 | /PPP2.py | 9026d59c1396f8b07949f947a4edbc7453cd72f0 | [] | no_license | jerrytope/price | 4a6f1db251611a3ddc24a183541e6f93f9717476 | 5e0a47b842d7e83bb672914d1ac370eeb99d7a9c | refs/heads/main | 2023-03-31T03:33:16.411210 | 2021-04-03T16:55:34 | 2021-04-03T16:55:34 | 307,666,373 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,637 | py | import pandas as pd
import numpy as np
import matplotlib
#matplotlib.rcParams["figure.figsize"] = (20,10)
df = pd.read_csv("C:/Users/DELL/Desktop/Videos/totorial/machine leaning/"
"py-master/ML/14_naive_bayes/Bengaluru_House_Data.csv")
pop = df.groupby("area_type")["area_type"].agg("count")
... | [
"noreply@github.com"
] | noreply@github.com |
4f872c0b06702838fd0288d6dcc363e5aa3b0c8a | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-2/4c735f24ea954a5ced87bd0bd1573fa3eb914c18-<save_inference_model>-fix.py | f762eaaca815726528bd1b1c9533f60f924fc3cf | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py |
def save_inference_model(self, executor, dirname, feeded_var_names, target_vars, main_program=None, export_for_deployment=True):
'\n Prune the given `main_program` to build a new program especially for inference,\n and then save it and all related parameters to given `dirname` by the `executor`.\n ... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
72ff5bbdbeb31e8f5ba9414cd400968b68e74eaf | a590cf3293c9d5f83a880a706e1686f8aede1377 | /AugustDailyChallenge/10_ExcelSheetColumnNumber.py | 7b62d98c6f42f732f0396111f7a04ea6ddbe5ea7 | [] | no_license | pushker-git/LeetCodeTopInterviewQuestions | 168b9f8fc1054807eeba9ee444745dd2b1a74a29 | 43c605e6353575fdef5fcdb20b83c047e284534d | refs/heads/master | 2023-06-16T21:26:11.614311 | 2021-07-10T14:12:34 | 2021-07-10T14:12:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 616 | py | Given a column title as appear in an Excel sheet, return its corresponding column number.
For example:
A -> 1
B -> 2
C -> 3
...
Z -> 26
AA -> 27
AB -> 28
...
Example 1:
Input: "A"
Output: 1
Example 2:
Input: "AB"
Output: 28
Example 3:
Input: "ZY"
Output: 701
Constraints:
1 <= s... | [
"rohithv63@gmail.com"
] | rohithv63@gmail.com |
34120897c98e29660b0174648f1962ae1d662eb0 | 8a39ea969b0cd97df2643faf9ab544ada76f68df | /tests/test_core_client.py | c8c6a81578e275fa03e3a4abd769dcf320f0f0f7 | [
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-hdf5",
"BSD-2-Clause"
] | permissive | materialsproject/api | 37467be05def832e5d98bc5148f1840df2c94f14 | 7109a4464b0192d5b63419ff6abeb2bac3f60b8c | refs/heads/main | 2023-08-31T03:58:16.070530 | 2023-08-24T22:51:43 | 2023-08-24T22:51:43 | 236,587,469 | 71 | 29 | NOASSERTION | 2023-09-12T21:05:37 | 2020-01-27T20:28:21 | Python | UTF-8 | Python | false | false | 1,531 | py | import os
import pytest
from mp_api.client import MPRester
from mp_api.client.core import BaseRester
@pytest.fixture
def rester():
rester = BaseRester()
yield rester
rester.session.close()
@pytest.fixture()
def mpr():
rester = MPRester()
yield rester
rester.session.close()
@pytest.mark.s... | [
"noreply@github.com"
] | noreply@github.com |
2fe555b6af3c3d831513a8ffda964277ea934d81 | 474484b3b7c5a5ebd11166d8d948871cedd4eff6 | /upload_app/views.py | 739ab8a84871228872b3ea4a2def6db62136892c | [] | no_license | GalvinCn/fileupload1 | fc481558dabb67e3469af27f2cbf4106bfb060dc | 3f1a45468c65ce1f3c62cfd37bfebc6e6dd2810a | refs/heads/master | 2020-03-09T00:07:58.506592 | 2018-04-06T03:52:07 | 2018-04-06T03:52:07 | 128,480,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | from django.http import HttpResponse
from django.shortcuts import render
from upload_app.forms import FileUploadForm
from upload_app.models import FileSimpleModel
def upload_file(request):
"""
文件接收 view
:param request: 请求
:return:
"""
if request.method == 'POST':
my_form = FileUploadFor... | [
"12732801@qq.com"
] | 12732801@qq.com |
a98e027199b62a2f9bd8ebbdf3a61b5cf2e3131a | 0772f774df4be6526e450a34f6b9a82220ac0175 | /train.py | a675d2d11c6fafc5117499ee4daa9af388e22149 | [
"MIT"
] | permissive | giangnt/GraphSynergy | a090d37caf405894913cc992c34300e347710597 | e2e69e9b55c09ec62af1e51f01988b7d7c46c616 | refs/heads/master | 2023-05-07T05:58:25.834644 | 2021-06-02T14:33:51 | 2021-06-02T14:33:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,197 | py | import argparse
import collections
import torch
import numpy as np
import data_loader.data_loaders as module_data
import model.loss as module_loss
import model.metric as module_metric
from model.GraphSynergy import GraphSynergy as module_arch
from parse_config import ConfigParser
from trainer.trainer import Trainer
# ... | [
"jason-j-yang@outlook.com"
] | jason-j-yang@outlook.com |
9b48c9385f3523743bd3f869ee21796c098b6f19 | 728871b962f2a5ec8d8ec7d5b607def074fb8864 | /W261/HW13-Questions/PageRank.py | e2a57722c38f075390050316f7fe32acfb01088f | [] | no_license | leiyang-mids/MIDS | 0191ffbaf9f7f6ec0e77522241c3e76d012850f1 | 918b0d8afc395840626eb31c451ad6c4b2f3bc39 | refs/heads/master | 2020-05-25T15:46:56.480467 | 2019-03-28T16:16:17 | 2019-03-28T16:16:17 | 35,463,263 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | from time import time
from datetime import datetime
def initialize(line):
# parse line
nid, adj = line.strip().split('\t', 1)
exec 'adj = %s' %adj
# initialize node struct
node = {'a':adj.keys(), 'p':0}
rankMass = 1.0/len(adj)
# emit pageRank mass and node
return [(m, rankMass) for m in... | [
"ynglei@gmail.com"
] | ynglei@gmail.com |
276413737c57b3c74b11ccee0d0df56f0c65692a | d802a0793a4a4af0336912932c35499edac16845 | /Python/Python/Regex and Parsing/regex_substitution.py | c7a8c4e9aca66eb624f877498c6606e23f9b07fa | [] | no_license | butterflylady/hackerrank | fb1ca6801855b3956bbfb72a2f7a95db4513aca4 | c42e2c80c41a95eb10d9a061eb8e7132e52a71ac | refs/heads/master | 2021-08-27T21:02:50.512292 | 2021-08-05T08:40:37 | 2021-08-05T08:40:37 | 167,610,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | import re
def change_symb(match):
symb = match.group(0)
if symb == "&&":
return "and"
elif symb == "||":
return "or"
n = int(input())
for i in range(n):
line = input()
pattern = '(?<= )(&&|\|\|)(?= )' # Ex. s="A && && && && && && B"
print(re.sub(pattern, change_symb, line)... | [
"mpaluyanava@gmail.com"
] | mpaluyanava@gmail.com |
80b3def3345e608e8f51501194c5d23249ed50dc | 634fb5fe10e8f944da44ab31896acc8471ec5f18 | /hq_env/bin/sphinx-autogen | 42f0972c1ff3e67f0b39e10ebd4c8b542116b016 | [] | no_license | dimagi/commcarehq-venv | 277d0b6fada24f2edd54f74850267201153412a7 | 2c52e3fb0f974cae5c5feaea1d5de851fe530c80 | refs/heads/master | 2021-01-18T14:05:47.931306 | 2015-07-20T10:10:41 | 2015-07-20T10:10:41 | 11,513,855 | 1 | 1 | null | 2015-07-20T10:10:41 | 2013-07-18T21:09:22 | Python | UTF-8 | Python | false | false | 331 | #!/home/travis/virtualenv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'Sphinx==1.2b1','console_scripts','sphinx-autogen'
__requires__ = 'Sphinx==1.2b1'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('Sphinx==1.2b1', 'console_scripts', 'sphinx-autogen... | [
"droberts@dimagi.com"
] | droberts@dimagi.com | |
6e449db79b295e63923a8ae18f43cac639aa74f8 | 6e803a0076a72dd1b5f753e139f69532319636be | /search/views.py | 590b5f0f8d9128f29dc862ed554d429ab97fcfa0 | [
"MIT"
] | permissive | Utlak88/Search-App | a5f7f7f34a33cd86672afd550a857129ddd3fb6f | 7d4165c491f93fd1cb80401509a40ec41d5c265b | refs/heads/main | 2023-06-11T03:07:18.018689 | 2021-06-17T01:33:51 | 2021-06-17T01:33:51 | 374,505,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,530 | py | import distutils.util
from django.shortcuts import render
from search.forms import QueryForm
from search.main import SearchUsers, SearchOrganizations, SearchTickets
def searchpage(request):
users_fields = SearchUsers().all_search_fields()
orgs_fields = SearchOrganizations().all_search_fields()
tickets_fie... | [
"62985312+Utlak88@users.noreply.github.com"
] | 62985312+Utlak88@users.noreply.github.com |
860f1791698bd78cf19dfd6b510dded8bfc3d7e6 | ccbfc7818c0b75929a1dfae41dc061d5e0b78519 | /aliyun-openapi-python-sdk-master/aliyun-python-sdk-dds/aliyunsdkdds/request/v20151201/ModifyDBInstanceSSLRequest.py | fa202b9965c36683da32f4164ac33488935281df | [
"Apache-2.0"
] | permissive | P79N6A/dysms_python | 44b634ffb2856b81d5f79f65889bfd5232a9b546 | f44877b35817e103eed469a637813efffa1be3e4 | refs/heads/master | 2020-04-28T15:25:00.368913 | 2019-03-13T07:52:34 | 2019-03-13T07:52:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,252 | 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... | [
"1478458905@qq.com"
] | 1478458905@qq.com |
a48cc5f99932ad1cb65d9cf20b449ded9b64ec57 | 12972f4d9e7de2c38e79ae911f2e7b125965cac9 | /virtual/lib/python3.6/site-packages/setuptools/_vendor/six.py | f8340b1e3743bbbdaf6b43684502ae46bda8f54b | [
"MIT"
] | permissive | Michellemukami/pitch | b33d0de81cc2a0dfe70ddc1e91affc88af63ff2b | aebb7736d18766343a5a295de0782aa175245c35 | refs/heads/master | 2022-10-22T03:55:33.364628 | 2019-08-07T10:15:10 | 2019-08-07T10:15:10 | 200,673,234 | 0 | 0 | null | 2022-09-16T18:07:53 | 2019-08-05T14:38:26 | Python | UTF-8 | Python | false | false | 30,094 | py | """Utilities for writing code that runs on Python 2 and 3"""
# Copyright (c) 2010-2015 Benjamin Peterson
#
# 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 with... | [
"you@example.com"
] | you@example.com |
5af5ab80a62e583b0de448c937dfdd044832e73d | 3b2fea21fc8f5da188e5d340c5054847f54fd118 | /keeper/admin.py | 6aa583b198ba87b413d62288e3bf3a71075f4929 | [
"MIT"
] | permissive | avrilmaomao/lunakeeper | c97fe16bd6c96b940a21fae039b2b2032993b400 | 95c55007e703edea0bc39455b4bf0ff60d4914d8 | refs/heads/master | 2023-07-30T05:50:20.632253 | 2021-09-15T06:59:03 | 2021-09-15T06:59:03 | 397,909,388 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | from django.contrib import admin
from .models import Pony, History
# Register your models here.
admin.site.register(Pony)
admin.site.register(History) | [
"zhiilang@pmcaff.com"
] | zhiilang@pmcaff.com |
07fb742a3154e4c2d48b95cdd0de4b5caa6e4ef6 | 649bd422025e421d86025743eac324c9b882a2e8 | /exam/1_three-dimensional_atomic_system/dump/phasetrans/temp221_6000.py | c3d96f9d609326fe4bc4a6ffcbb094569ea52cb6 | [] | no_license | scheuclu/atom_class | 36ddee1f6a5995872e858add151c5942c109847c | 0c9a8c63d9b38898c1869fe8983126cef17662cd | refs/heads/master | 2021-01-21T10:52:28.448221 | 2017-03-07T23:04:41 | 2017-03-07T23:04:41 | 83,489,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68,781 | py | ITEM: TIMESTEP
6000
ITEM: NUMBER OF ATOMS
2048
ITEM: BOX BOUNDS pp pp pp
-1.7251793543927784e+02 2.1971793543932216e+02
-1.7251793543927784e+02 2.1971793543932216e+02
-1.7251793543927784e+02 2.1971793543932216e+02
ITEM: ATOMS id type xs ys zs
1781 1 0.166858 0.0483895 0.47982
2019 1 0.667454 0.0408147 0.327508
1402 1 0... | [
"scheuclu@gmail.com"
] | scheuclu@gmail.com |
55340e6faac1c5014b387c237c09e8efb4f223ca | 41a20700b5bb351d20562ac23ec4db06bc96f0d7 | /src/plum/plumr.py | 184a7d811a8acaa3a4afc138963e0ce6e0c62ab0 | [] | no_license | kedz/noiseylg | ee0c54634767e8d3789b4ffb93727988c29c6979 | 17266e1a41e33aecb95dc1c3aca68f6bccee86d5 | refs/heads/master | 2020-07-30T11:22:08.351759 | 2019-10-30T21:33:11 | 2019-10-30T21:33:11 | 210,212,253 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 10,551 | py | import argparse
from pathlib import Path
import os
import random
from pprint import pprint
import json
from collections import OrderedDict
def handle_debug_opts(args, plum_pointers, checkpoints):
if args.pprint_ds_sample is not None:
pprint_sample_datasource(args.pprint_ds_sample,
... | [
"kedzie@cs.columbia.edu"
] | kedzie@cs.columbia.edu |
3df929b6a508a9d626634464b85f4d50299530ae | e88c152d699cef4af64fa5aa4b9c61631c03c8b6 | /Solutions/0949.Largest-Time-for-Given-Digits.py | 816118cebc673cecb74253fdf254dfeec22a97db | [] | no_license | arnabs542/Leetcode-3 | 062af047b1f828b9def2a6e2a4d906e77090b569 | 7e10ff62981db88053b511c3ef8bd284d728d2fc | refs/heads/master | 2023-02-26T19:21:05.037170 | 2021-01-20T07:04:48 | 2021-01-20T07:04:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,939 | py | """
949. Largest Time for Given Digits
Given an array arr of 4 digits, find the latest 24-hour time that can be made using each digit exactly once.
24-hour times are formatted as "HH:MM", where HH is between 00 and 23, and MM is between 00 and 59.
The earliest 24-hour time is 00:00, and the latest is 23:59.
Return ... | [
"noreply@github.com"
] | noreply@github.com |
55c5ca51a9b8e831a0816f94a84a6d3da29c93ed | 13a87810390b540aaadda80f7ca7dd4edcade764 | /ble-test.py | 0adcfefb665c87793720f6d1f993e13eb13060f1 | [
"MIT"
] | permissive | arraypan/MakerFaire-NerfTurret | e0578decda8ab64cd8f0987f05b5d9e138df6f8b | 72c3168bde2d1f200908c6c2f0e26791d0126714 | refs/heads/master | 2022-01-26T10:52:25.617293 | 2019-07-16T05:14:45 | 2019-07-16T05:14:45 | 196,765,417 | 1 | 2 | MIT | 2022-01-22T00:54:23 | 2019-07-13T20:52:06 | Python | UTF-8 | Python | false | false | 652 | py | #!/usr/bin/python
from evdev import InputDevice, categorize, ecodes, KeyEvent
from select import select
gamepad = InputDevice('/dev/input/event2')
for event in gamepad.read_loop():
if event.type == ecodes.EV_KEY:
keyevent = categorize(event)
if keyevent.keystate == KeyEvent.key_down:
... | [
"jonathan.fiscus@accenture.com"
] | jonathan.fiscus@accenture.com |
3849c50dd2a871c88e2a8569a389837ead061f1d | 03f14d7a7f3e29b603be0116bf1fc5b8ffb9316f | /subastasIS2_django/manage.py | 700d4b12f20583173fef72a5fcc8923ae59a109f | [] | no_license | Garinoth/subastasIS2 | 05b69debe59aa54941573e25ce1670bf5c704885 | fc9fba35ba97c83fa86c7bcb13b7e62bacac2fc5 | HEAD | 2016-09-05T13:18:34.133982 | 2013-12-19T13:16:05 | 2013-12-19T13:16:05 | 14,012,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "subastasIS2_django.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"cdavidrp@gmail.com"
] | cdavidrp@gmail.com |
d839256a8d0dfd778bd501e3df9f2c3f253c6d65 | e23512edf95ea66640eab85adb8ca0c24ae6e3f7 | /tensorflow/contrib/cluster_resolver/python/training/tpu_cluster_resolver.py | 2e75ac226ea74e879edda5e03dff3d53c8a76569 | [
"Apache-2.0"
] | permissive | snuspl/tensorflow | 755ac46c3163adb119de0755ed706b1c960991fb | 212d4e9e5f4093ecb90e5b7837d4e02da7506228 | refs/heads/r1.6 | 2021-06-25T18:03:17.625202 | 2018-12-30T09:35:50 | 2018-12-30T09:35:50 | 134,066,972 | 1 | 3 | Apache-2.0 | 2020-06-10T06:12:19 | 2018-05-19T14:02:25 | C++ | UTF-8 | Python | false | false | 5,508 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
70e3ea01aca468d440c1dbfa13b939fad9364327 | 67bdebd561b19af9bf759b6ed5de8556b93ea91f | /lower_priority.py | ba5a00b47b30c1d9e0248d2c3e339ba751417911 | [] | no_license | rlowrance/re-avm | 91371ec79f6b6f48e17643da4dfb7a4894d0a0ca | d4cfa62e9f65d325e8ac98caa61d3fb666b8a6a2 | refs/heads/master | 2021-01-17T07:34:16.876133 | 2017-02-06T21:04:59 | 2017-02-06T21:04:59 | 42,865,972 | 31 | 10 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | 'lower priority of current process'
import os
import pdb
def lower_priority():
# ref: http://stackoverflow.com/questions/1023038/change-process-priority-in-python-cross-platform
assert os.name in ('nt', 'posix'), os.name
if os.name == 'nt':
import win32api
import win32process
impor... | [
"roy.lowrance@gmail.com"
] | roy.lowrance@gmail.com |
22a2dea61f62bece4c5210fff9e979377f55dd53 | 3da0200ba583bb7d65be4b01562a9064656cfbb6 | /models/research/gan/mnist/infogan_eval.py | 21fe2611e0fe857569277f5239a26f42c97314ce | [
"Apache-2.0"
] | permissive | Leftddr/smart_cashier | 1cec489c1fe41cbd086ce761e2179705dcd888b1 | 1d544fffe4ddeee4b04f5882266be62902b23f00 | refs/heads/master | 2023-01-08T00:27:14.750462 | 2020-11-03T06:11:42 | 2020-11-03T06:11:42 | 295,792,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,167 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"kernel@DESKTOP-A0AO4P6.localdomain"
] | kernel@DESKTOP-A0AO4P6.localdomain |
71ab281235aa718f249a62d73cf53395bf5e90c4 | fb9fcee3befb9d8c64df77f13fb64b0c1f067f93 | /fastq_to_vcf/pipeline_scripts/02_dedup_gather_metrics.py | cdabece4abf1346eccaf2b39310dd59c78c801d0 | [] | no_license | ajshultz/comp-pop-gen | 0e7a816fd5f0f794b6b26cd2850f32bf0ce855d6 | f916dc01e114a420b3d89e082f81710106fcbd0b | refs/heads/master | 2023-06-01T00:26:37.510541 | 2020-04-20T19:12:27 | 2020-04-20T19:12:27 | 113,904,465 | 5 | 5 | null | 2019-03-04T19:24:33 | 2017-12-11T20:20:27 | Python | UTF-8 | Python | false | false | 28,006 | py | #!/usr/bin/env python
#For use with Python 3.
import re
import sys
import os
import argparse
from subprocess import Popen,PIPE
from time import sleep
import shutil
import datetime
import numpy as np
import matplotlib.pyplot as plt
plt.switch_backend('agg') #Added to get working on the cluster
from matplotlib.backends... | [
"allisonjshultz@gmail.com"
] | allisonjshultz@gmail.com |
e7f81bf2f5dc6794f9746a37178f26bc21aadde5 | fd15b8bd71f0d0391a6b0a38b2ad19ce74f79453 | /todo/todo/urls.py | 7b67b588a5e5d69a599f15dd02d9895a10303fcd | [] | no_license | chang12/django-todo | c7caab9cfe9608b0a50f7b103f69625211c025d8 | f2c942dc07e455e775c2b05457af18194a7da86e | refs/heads/master | 2021-01-24T08:09:20.637204 | 2016-12-25T11:57:08 | 2016-12-25T11:57:08 | 69,148,228 | 0 | 0 | null | 2016-12-08T15:59:58 | 2016-09-25T06:41:51 | HTML | UTF-8 | Python | false | false | 885 | py | """todo URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based... | [
"chang12@snu.ac.kr"
] | chang12@snu.ac.kr |
007f81ee7e141ef2ae7f6380f493d54a6b6ff948 | 5afb9a3f47013dc48e7ea17043dcf736aed73a36 | /gui.py | 30fb471837755a1b905e11478f3a5432bcc1ce89 | [] | no_license | cannontwo/FreeForm | f4ad3f0b56543bb3f59f99499f1a522add94f29f | 25e745e47fb4bf9a70c29e4698dc5e851a57e53d | refs/heads/master | 2021-05-27T15:41:22.041580 | 2014-06-14T16:57:20 | 2014-06-14T16:57:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,358 | py | import pygame
class Gui():
"""Class to handle state and rendering of gui"""
def __init__(self, width, height):
self.menu = pygame.Surface((width*.05, height*.4))
self.menu_color = (192, 192, 192)
self.menu.fill(self.menu_color)
pygame.draw.rect(self.menu, (0, 0, 0), pygame.Rec... | [
"cannon10100@gmail.com"
] | cannon10100@gmail.com |
7cd798e1edfa658bcc09b1ff1e6068905155adce | d87517916f075f59f0472bcd09ab8c9e2efa8a5f | /natural.py | 5197ee590d2ce8448426afcc1f7bb84d55f6ee6f | [] | no_license | Rajeshkanna12345/Rajeshkanna | e5935599b1aa2a135a0d7a4a5928319c5513df6e | 14e7b3aa92b7bc1915fbc5fd8aca3172f11614dd | refs/heads/master | 2020-04-25T02:49:47.885249 | 2019-02-25T18:43:27 | 2019-02-25T18:43:27 | 172,454,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | num = int(input("Enter a number: "))
def sum(n):
return (n*(n+1)//2)
n=num
print (sum(n))
| [
"noreply@github.com"
] | noreply@github.com |
49de933b088b5782f28cb1a4cf8951cf0b947a90 | b59bc650ae07b18757b455e1b5cb7cfde91714a4 | /.env/local/lib/python3.5/site-packages/pip/_vendor/urllib3/util/response.py | 4dc7a11092cdd6afe3b1da5a4c197e42dfea15ff | [] | no_license | jhashubham28/BE_Project_SpeakerRecognition | d07c584359a5ebc6b524b3b4617b072c58724d17 | ede8fd53e79973e4116030e5a36f9deaa61dcc63 | refs/heads/master | 2020-05-29T20:42:15.055659 | 2019-05-30T20:17:30 | 2019-05-30T20:17:30 | 189,354,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | /home/pi/Downloads/BE_Project-SpeakerRecognition-master/.env/lib/python3.5/site-packages/pip/_vendor/urllib3/util/response.py | [
"jhashubham28@gmail.com"
] | jhashubham28@gmail.com |
b4953e59c00cf1fc599ad996732323ac140e73e0 | 841568312f777b373c662e4d42609696e06968c2 | /pre_processing.py | d52bb3053b2cd07e9e5904f23a91cd2fa9dff793 | [] | no_license | Bee-HN/Spooky_Authors_Classification- | e573ec906b820480b990d074581e029a632a71e7 | 279fa113310a0e2d0f103645cb08eed2bb34bf58 | refs/heads/master | 2021-08-20T00:17:40.503831 | 2017-11-27T19:29:10 | 2017-11-27T19:29:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,433 | py | import pandas as pd
import plotly
import plotly.plotly as py
import plotly.graph_objs as go
from wordcloud import WordCloud, STOPWORDS
from nltk.stem import WordNetLemmatizer
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn import svm
f... | [
"hng100289@gmail.com"
] | hng100289@gmail.com |
52f86b764cd6ecc8c8cb6297570255ff3915d6be | 529aa8b2515b762f175d38820e9db259dceb329f | /blog/views_cbv.py | 33713d6c4328b39f91dc7f3455cb677448a4a31c | [] | no_license | MiJooJeong/askdjango | b59e179143ec6527c275be9d583aed4c58c614fc | 4fe67c1fbf2729eea49320dc2e5c2bad32662dba | refs/heads/master | 2020-03-25T17:23:03.167704 | 2018-10-08T03:30:46 | 2018-10-08T03:30:46 | 143,975,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | from django.core.urlresolvers import reverse_lazy
from django.views.generic import CreateView
from django.views.generic import DeleteView
from django.views.generic import DetailView
from django.views.generic import ListView
from django.views.generic import UpdateView
from .models import Post
class PostListView(ListV... | [
"uuuio1224@gmail.com"
] | uuuio1224@gmail.com |
23d627ec0997959cf1212df3ad37627b2530ced6 | c8abf01fb77b526a0a6af1f7ed5b740d8aec65ba | /user_profile/migrations/0001_initial.py | 486a7471308c7ad448471795d084c1ecd6dd824b | [] | no_license | bitapardaz/diabet | f1cc6e039792c91bfb67754f5c7e18141f2573cc | 8a9b38d81c512148be43ea9cf4d09acbd07c3af0 | refs/heads/master | 2021-07-16T17:08:24.502219 | 2017-10-23T21:56:27 | 2017-10-23T21:56:27 | 108,029,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 880 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='UserProfile',
fields=[
('id', models.AutoField(... | [
"pourranjbar.ar@gmail.com"
] | pourranjbar.ar@gmail.com |
5b70922e82eeaae4530fd8c27decec2bffca6f9e | e538e170f1d302a0b1b84e4cdc66da2303956e17 | /commando/recording/formatters.py | 4864831cc5518cc73958a5d0a85c86a586b2e50b | [] | no_license | RyanFrantz/commando | 513c8a467d0842cb20d9caa0843a7923e67d1d6a | 95275e1508031021ea8f15edef42337898070146 | refs/heads/main | 2023-07-20T13:27:03.059389 | 2020-09-24T16:32:29 | 2020-09-24T16:32:29 | 266,552,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,771 | py | import logging, socket
"""
Return a logging.Formatter with a base format we can build on.
The base format will be a JSON string that includes a timestamp and severity
level. If an optional format (fmt) is passed to the constructor it will be
concatenated with the base format.
"""
class BaseFormatter(logging.Formatter)... | [
"ryanleefrantz@gmail.com"
] | ryanleefrantz@gmail.com |
c19b67aa9150a4986f3a157ac1bccf2b29470845 | 2e380ed6fbed3d85457e0317aabcd028a6a9481c | /lib/mail.py | 723f099b35239f94978fb3b1ec4e018abd83c7c2 | [] | no_license | tengelisconsulting/build | cf954ecaa2e3590faa5b8b86ceafc3633a51d9d0 | d68efe94e6c3e107cd8fd330fc69b5733f34534b | refs/heads/master | 2022-12-24T19:25:18.530681 | 2020-09-28T20:09:19 | 2020-09-28T20:09:19 | 294,456,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,682 | py | import base64
from email.mime.text import MIMEText
import logging
from queue import Queue
from typing import Dict
from typing import List
from google.oauth2 import service_account
from googleapiclient.discovery import build
from googleapiclient.discovery import Resource
from .apptypes import BuildConf
from .env impor... | [
"ltengelis@gmail.com"
] | ltengelis@gmail.com |
6e0ab4bfb0965f5f86c97498a3371640166041ec | 12325325b4255ffb5dc83c5a9114a3ebde9e59d2 | /apps/message/models.py | 74065860ccebf5957eea63aad4ba0dfa64ac80fa | [] | no_license | luokuo/onstudy | 9e34515bbbda14fb0cf547fddbc19a27c2bcf148 | 130f975b464fd4855b6471aa6481e159e09be203 | refs/heads/master | 2020-03-27T23:31:58.368683 | 2018-09-04T10:07:01 | 2018-09-04T10:07:01 | 147,325,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | from django.db import models
# Create your models here.
class UserMessage(models.Model):
name = models.CharField(max_length=20,null=True,blank=True,default="")
email = models.EmailField(max_length=30,verbose_name='邮箱')
address =models.CharField(max_length=100,verbose_name='地址')
message =models.CharFiel... | [
"674999490@qq.com"
] | 674999490@qq.com |
0f78a025353101c730028c07bcac7e8b2ef4e21a | ab508f81ec868b0e6aad65d1aebad97db8ec0147 | /Valid Sudoku.py | 76bbb0ceb77b5be82e21dc10b26fecb246047d5f | [] | no_license | akashlukhi/LeetCode-Solutions | 8b4c0b228de285175a4b445bc36f00825fd87034 | ab3b6a70b0f68ec17095c0b96fa2176b3c9473a4 | refs/heads/main | 2023-05-27T16:57:01.075696 | 2021-06-16T03:47:33 | 2021-06-16T03:47:33 | 372,710,962 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 988 | py | class Solution:
def isValidSudoku(self, board: List[List[str]]) -> bool:
l = []
for i in range(9):
l.clear()
for j in range(9):
if board[i][j] != "." and board[i][j] in l:
return False
l.append(board[i][j])
... | [
"noreply@github.com"
] | noreply@github.com |
2b5f3ae9fee04c6e639f4353893ef0af15703dfd | 3b7bc70f3335504249cfdeaf880635139b591266 | /Djando-React/virtual/Scripts/django-admin.py | d7d1cb1251de44e9fda5e7d127fa19bb05dcf6ef | [] | no_license | HadarNetanel/Developer | d0182b07bbb665f0e70de4ccc11b24d7f82af39e | 37ba47db50390011affad55b25571b245e3f0397 | refs/heads/master | 2023-01-28T14:13:05.034382 | 2020-03-22T22:56:00 | 2020-03-22T22:56:00 | 249,286,932 | 0 | 1 | null | 2023-01-26T18:23:55 | 2020-03-22T22:47:40 | Python | UTF-8 | Python | false | false | 201 | py | #!C:\Users\NoName\study\AppelSeedBootcamp\Djando-React\SchoolSystem\virtual\Scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"hadarnetanel@outlook.com"
] | hadarnetanel@outlook.com |
f8a92e3ce451c3a77e250b92be11e9ffb6d3dccb | 922692ad579349ecef2e27d957bcc3ead9f76b40 | /venv/bin/rst2xml.py | 603a4315d3111dad8d8253a4077f2e0cba570823 | [] | no_license | AyushBaheti81/Vihaan | 6a3b105f18d77c02beafa4ef8de055753346990b | 72343d19c7d4cc941bf2fdc378c6650f4ee6fd6b | refs/heads/master | 2022-08-11T22:19:43.269031 | 2020-05-16T14:41:00 | 2020-05-16T14:41:00 | 263,996,159 | 0 | 0 | null | 2020-05-16T14:34:46 | 2020-05-14T18:37:50 | Python | UTF-8 | Python | false | false | 640 | py | #!/Users/ayushs/PycharmProjects/untitled/venv/bin/python
# $Id: rst2xml.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing Docutils XML.
"""
try:
import loc... | [
"ayushbaheti81@gmail.com"
] | ayushbaheti81@gmail.com |
a6824d7e85b0264d31b1561314abad8654470d27 | 401fc99cefe615f8ebefb6dd9c2b043c506f5bd0 | /tests/conftest.py | 640a86e0d9e1741295eded78699d2d9877f23fe9 | [
"MIT"
] | permissive | atviriduomenys/spinta | 0f85496860ebbcecfccd8dde2bf219564ee66baa | 1fac5b6b75ec65188d815078fd135bc05d49b31c | refs/heads/master | 2023-09-02T13:22:58.411937 | 2023-08-18T12:59:17 | 2023-08-18T12:59:17 | 168,724,854 | 12 | 4 | MIT | 2023-09-14T13:29:39 | 2019-02-01T16:16:11 | Python | UTF-8 | Python | false | false | 4,119 | py | import builtins
import inspect
import os
import re
import sys
import time as time_module
from itertools import chain
from itertools import islice
from traceback import format_stack
from typing import Any
from typing import Dict
from typing import Iterator
from typing import TextIO
from typing import Type
import objpri... | [
"sirexas@gmail.com"
] | sirexas@gmail.com |
b279b442b5f7399c81b1c1c6b3fe15d96ddb1898 | 7d9b61b5c4030927b61029aeb076606a62437730 | /just_code/TCP_server_client/server.py | d2ea1b35b35c52addcf91a3de787e5e613a16f8e | [] | no_license | qq20004604/python3-lib | 90759f884e9e33d5c390c683f00c24c8c786b2dd | 8b1b3de906d70d375f4c4f541778f6c79e70228a | refs/heads/master | 2023-04-15T03:40:19.977694 | 2023-04-04T06:47:50 | 2023-04-04T06:47:50 | 182,262,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# 服务器端,启动后将一直运行中
import socket
import threading
max_recv = 1024
listen_port = 8000
exit_words = 'exit'
def tcplink(sock, addr):
print('Accept new connection from %s:%s...' % addr)
sock.send(b'Welcome!')
while True:
data = sock.recv(max_recv)
... | [
"20004604@qq.com"
] | 20004604@qq.com |
a051d9833228591a28d3ae1810787239ebba0755 | 3081b6da2c20f0504acbb79a7595697c87bdfc67 | /day4/exercise_5_2.py | df095ced4646e122135fbee29e8bb04452469c3e | [] | no_license | lastis/Neuron | d0fbf53778384f56d722ff4132860fd234bc1f27 | 356fc115a8cbb3d41a769e581f03206530b628b8 | refs/heads/master | 2016-09-10T17:47:34.837457 | 2015-03-25T15:02:17 | 2015-03-25T15:02:17 | 19,735,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,587 | py | #!/usr/bin/env python
'''
Simple Hay simulation with one synaptic input
'''
from os.path import join
import numpy as np
import pylab as plt
import neuron
import LFPy
from hay_model.hay_active_declarations import active_declarations
nrn = neuron.h
def return_cell(synaptic_y_pos=900, conductance_type='active', weight=0.... | [
"neitakkikkebanan@gmail.com"
] | neitakkikkebanan@gmail.com |
29d6cb7cc2c77dcb2f44afa362593ff83ce00f40 | 546d07b3f78313895af9bfd70a480eab92bcba68 | /appMain/migrations/0016_auto_20210928_2216.py | 5619755ce1e212f68a70295d2ad78ec1f5b2a7a9 | [] | no_license | NU25113/KingIceManDjango | 4c1c08319ac70a6e3ad9ca241eb0214dc477a813 | e6b2e6b26869052ad5d9b2d55b023f8c56149988 | refs/heads/master | 2023-08-17T13:27:47.378855 | 2021-09-29T14:35:21 | 2021-09-29T14:35:21 | 411,663,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | # Generated by Django 3.1.6 on 2021-09-28 15:16
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('appMain', '0015_auto_20210928_1907'),
]
operations = [
migrations.AlterModelOptions(
name='budget',
options={'verbose_name_p... | [
"nuntima.we61@snru.ac.th"
] | nuntima.we61@snru.ac.th |
6fba3e2f19852a48949e376eb639e1e68a6b4b9b | 78d35bb7876a3460d4398e1cb3554b06e36c720a | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_02_01/aio/operations/_route_tables_operations.py | 49df42e16d5c87c760e0e1d5c64e87e8bdf8319f | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | catchsrinivas/azure-sdk-for-python | e35f59b60318a31b3c940a7a3a07b61b28118aa5 | 596227a7738a5342274486e30489239d539b11d1 | refs/heads/main | 2023-08-27T09:08:07.986249 | 2021-11-11T11:13:35 | 2021-11-11T11:13:35 | 427,045,896 | 0 | 0 | MIT | 2021-11-11T15:14:31 | 2021-11-11T15:14:31 | null | UTF-8 | Python | false | false | 29,731 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | noreply@github.com |
2efda46e4e823acee036943c7955ecf6000f5e56 | 027d29567d77708fece6efc8c210e72060fa49fc | /searchtoprompt.py | 921285ad03359916a9a56dc4541e66b98e810484 | [] | no_license | hrmJ/phd-data-processing | 6065f698bc0885124fe7d4f181be38a38036a8ae | f352d4db552db45918fd41a71fdad65e07cf987e | refs/heads/master | 2020-03-21T05:27:45.478555 | 2018-10-22T17:23:30 | 2018-10-22T17:23:30 | 138,161,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | import pickle
import glob
from menus import multimenu
from interface import MainMenu
import search
import dbmodule
#Load the saved search from pickle
menu = MainMenu()
menu.viewsavedsearches()
#Fetch all the source lemmas
mySearch = search.Search.all_searches[0]
#search.Db.con = mydatabase(input('write the name of da... | [
"juho.harme@gmail.com"
] | juho.harme@gmail.com |
b82c767a3aa171c7f2f8743f14a2aa469556cd57 | 1d9ce258a2cb50d5214b49d2636c0b7e95958cb3 | /backend/main.py | 2c933c25fbc3f7ebee8443f945d0b6faf510cbca | [] | no_license | miura0617/fastapi-helloworld | 6cd95b8acf1a758cad4c3b8b5f250d8f1f15f252 | e8ec7d9cde7b551632dcf5aa653b258ee6fb79d9 | refs/heads/master | 2023-08-03T17:06:52.152907 | 2021-10-03T08:20:35 | 2021-10-03T08:20:35 | 413,017,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | from fastapi import FastAPI
from core.config import settings
from db.session import engine
from db.base import Base
def create_tables():
Base.metadata.create_all(bind=engine)
def start_application():
app = FastAPI(title=settings.PROJECT_TITLE, version=settings.PROJECT_VERSION)
create_tables()
return... | [
"miura@infocity.co.jp"
] | miura@infocity.co.jp |
445946957bef8d13316c06ac658f63550575cdd6 | 7e5dabc797452f1f41c109a5a57884392f2f1208 | /dados_visual.py | 80e89a150af9e76b61be49e021981d4c9a9e3e1d | [] | no_license | dev-fobrum/python-dices | e47d195078c9e29ad524748a3c0e8a0be3b6c412 | 4d33ca5a7178541f29c275b26d0f6c9b6c2aa029 | refs/heads/master | 2022-12-05T14:14:14.676780 | 2020-08-26T19:36:57 | 2020-08-26T19:36:57 | 290,587,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,356 | py | #! python
import matplotlib.pyplot as plt
import numpy as np
from random import randint
import sys
def roll_dice(jogadas, estatistica_por_numero):
a = 0
lista_de_jogadas = {}
while a < jogadas:
a += 1
valor_dado = randint(1, 6)
lista_de_jogadas.update({a: valor_dad... | [
"dev.fobrum@gmail.com"
] | dev.fobrum@gmail.com |
c9ce4a22aa785427947d43da377376900804d900 | cedc66fcd0c8e347a2e363a832819cfee3598c8a | /iprPy/record/point_defect/__init__.py | 6fec3f441d280d0a2e752c187abfbbb6c176e1ca | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain"
] | permissive | Aditya-912/iprPy | 1b201c3a62b691249a76dd07d507b2d94813b6b8 | 260bf203baf43a33a1bb3a079d7d5343c131dcd5 | refs/heads/master | 2023-03-11T21:35:17.963425 | 2021-03-05T16:31:27 | 2021-03-05T16:31:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | # iprPy imports
from .PointDefect import PointDefect
__all__ = ['PointDefect'] | [
"lucas.hale@nist.gov"
] | lucas.hale@nist.gov |
4eeb9eb525604e06788dee10a625513e241b933b | 8aa04ab3e16502f472dff69db60e7c7f74b3f83e | /7 RECONOCIMIENTO DE EMOCIONES/capturandoRostros.py | acd296060dcd5cf8bedc143c4d4623fe56880c15 | [] | no_license | MarcoAtencio/OmesTutorials2020 | e05913c569f9fe995449cc6c42601f98a86e32a4 | 4f93c38d6c34c4379933377684cb04e995db1bd8 | refs/heads/master | 2022-11-12T09:30:42.725149 | 2020-07-02T14:26:54 | 2020-07-02T14:26:54 | 280,257,406 | 1 | 0 | null | 2020-07-16T21:00:38 | 2020-07-16T21:00:38 | null | UTF-8 | Python | false | false | 1,170 | py | import cv2
import os
import imutils
#emotionName = 'Enojo'
#emotionName = 'Felicidad'
#emotionName = 'Sorpresa'
emotionName = 'Tristeza'
dataPath = 'C:/Users/Gaby/Desktop/Reconocimiento Emociones/Data' #Cambia a la ruta donde hayas almacenado Data
emotionsPath = dataPath + '/' + emotionName
if not os.path.exists(emo... | [
"gabriela_solano@ymail.com"
] | gabriela_solano@ymail.com |
861ea1769ecaa2fda5b934bf664a414fad7d9925 | cfec0182dae070ccb54a38b18b8c18f0ce2a82f7 | /blog_project/mysite/blog/models.py | 5568d6ee08155a9cece5d075707ead5aa5c24789 | [] | no_license | saikiranrede/Django | 4952e728981ac6b7e36eb411b9ef6a895e6657eb | 4c2cc09a08c5929e0afdb1f8ae43e27a75416b8f | refs/heads/master | 2020-03-25T00:23:25.996142 | 2018-08-01T17:04:41 | 2018-08-01T17:04:41 | 143,183,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,201 | py | from django.db import models
from django.utils import timezone
from django.core.urlresolvers import reverse
class Post(models.Model):
author = models.ForeignKey('auth.user')
title = models.CharField(max_length=200)
text = models.TextField()
created_date = models.DateTimeField(default=timezone.now)
... | [
"saikiranrede93@gmail.com"
] | saikiranrede93@gmail.com |
ee67ec8954e0a5a24a74913c5e144720c4a7c1ec | 2353ae807790d38eaa6b1b2f09b540f3b0e5d563 | /train_model.py | fa52c000618f8a9b908d9216fe5bf3071345d227 | [
"MIT"
] | permissive | chenheliar/tf_comic_color | 4f91fd9495874cb3a6705e604a70160c3e6e80f1 | 147722b9ce8fa675ffb7987cea1a75b87db3a523 | refs/heads/master | 2020-09-22T07:56:25.218239 | 2019-12-01T06:08:04 | 2019-12-01T06:08:04 | 225,111,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,369 | py | from build_generator import *
import datetime
import sys
from test_model import *
# import requests
def fit(train_ds, epochs):
# test_log_dir = 'logs/gradient_tape/' + current_time + '/test'
current_time = datetime.datetime.now().strftime("%Y%m%d-%H%M%S")
train_log_dir = 'logs/gradient_tape/' + current... | [
"1148210119@qq.com"
] | 1148210119@qq.com |
fe9c2cc7554dbc61fece19096cc67c5051c4222f | 9a411824201473815d69bf39bccc5f0ccafb0667 | /main_3.py | d3dfc8beae0e5888221202489b1b31ce3364c1c7 | [] | no_license | henryph/vba_project | 263e58489f2d64a93c36d895f59c6c23cf9ba46a | 8d8f244d70213481d95e43fcf0bad335e8a16116 | refs/heads/master | 2020-03-19T07:22:21.840259 | 2019-08-04T16:03:47 | 2019-08-04T16:03:47 | 136,108,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,298 | py | import os, sys, glob
import configparser
from diarizationFunctions import *
import numpy as np
sys.path.append('visualization')
from viewer2 import PlotDiar
import time
import librosa
def runDiarization(showName, config):
wav_path = config['PATH']['audio']+showName
y_total, sr =... | [
"noreply@github.com"
] | noreply@github.com |
32482b853b2d29d3c778465263522745d35e0fa3 | 7d425706cd516af9cf7c8561f7f85c5d7e12c940 | /Assignment2/linear_svm.py | 876c770cacac1251b5255121f742d0ff4040b59e | [] | no_license | himanshu0113/MLCrap | a8e6c614561af56a78e90bcf7580aac8e9a8b5e3 | d29c6aa916d3766ecb4d6bbff6e67feeef715318 | refs/heads/master | 2021-08-24T07:01:20.181672 | 2017-12-08T14:28:11 | 2017-12-08T14:28:11 | 105,891,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,046 | py | import os
import os.path
import argparse
from sklearn.manifold import TSNE
import h5py
import numpy as np
import matplotlib.pyplot as plt
from sklearn import svm
from sklearn.metrics import mean_absolute_error as mae
#from mpl_toolkits.mplot3d import Axes3D
"""
parser = argparse.ArgumentParser()
parser.add_argument(... | [
"himanshuagarwal1395@gmail.com"
] | himanshuagarwal1395@gmail.com |
02a8274f0e85d0ac8c9b03e1f1d001771b15a3b3 | 0a1c2118c631c5b22dbb0906ceef263461377cb7 | /dev/python/proto/sensor_msgs_pb2.py | 9fbfd485cf761db6478399838056dcef1a21c5e4 | [
"MIT"
] | permissive | gecko-robotics/gecko-protobuf | dc9b583babe822aa1965b4b4a0aade9e24355a90 | 70bb1407a25d27588da6c58e4a6bc25dc7975234 | refs/heads/master | 2021-07-17T22:34:03.926951 | 2020-06-14T22:22:13 | 2020-06-14T22:22:13 | 181,314,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 33,355 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: proto/sensor_msgs.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.pr... | [
"walchko@users.noreply.github.com"
] | walchko@users.noreply.github.com |
c81e82f46a4052539446efae8b3efa6d39ef1e14 | 147e39ccf78b34c14a56637c0f49f685f3e4d1d5 | /elyra/tests/pipeline/test_processor.py | 5a7b35315dc6374672a2a3b8344db09b9abb3cbc | [
"LicenseRef-scancode-unknown-license-reference",
"CC-BY-SA-4.0",
"Apache-2.0",
"BSD-3-Clause",
"CC-BY-4.0"
] | permissive | fresende/elyra | b3ebf62958696fdc6e9f29ee7229059a7c65f9ca | dce0f2a6f6acbc8a8256c61d587c7d7eb3690035 | refs/heads/main | 2023-06-23T14:23:34.012538 | 2023-05-25T19:18:48 | 2023-05-25T19:18:48 | 272,585,809 | 0 | 0 | Apache-2.0 | 2020-06-16T01:57:29 | 2020-06-16T01:57:28 | null | UTF-8 | Python | false | false | 12,985 | py | #
# Copyright 2018-2022 Elyra Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | [
"noreply@github.com"
] | noreply@github.com |
3fba42bf931d396d9214bc8c22f022ede92eb267 | db579d360d673b2d48b0f2ed34622be8c50dad34 | /classifier/models.py | ec0003fb9968e082cac088c4607285d9df2d89f3 | [] | no_license | dreamlxt17/brain_cancer_classify | bea45fc3e4456418f6165d00bf0013eef35083d7 | 8bbc2496b5b3ba6528747c2cbad9f20a622e4af8 | refs/heads/master | 2020-03-19T07:38:47.913877 | 2018-06-05T13:34:38 | 2018-06-05T13:34:38 | 136,135,287 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,575 | py | # coding=utf-8
import numpy as np
from sklearn import neighbors
from sklearn.discriminant_analysis import LinearDiscriminantAnalysis
from sklearn.ensemble import RandomForestClassifier, GradientBoostingClassifier
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import GridSearchCV, Strat... | [
"dreamlxt17@163.com"
] | dreamlxt17@163.com |
3a27bd0f2d53a4bda6335ad0ce252de98fe06017 | 5cca3c12fc2a61ba9056fdae17f68cb7b3fbc19e | /clustering/generatefeedvector.py | a6372f3533491a23a6739014651c32b300065652 | [] | no_license | paudan/python-scripts | ccd5869199be676cfb10f9cc4aafb5b57b4380b6 | 00b15b00d9ab4c016e1e3b1befa0dcee3572a72f | refs/heads/master | 2020-04-05T19:49:02.416612 | 2016-11-06T00:06:15 | 2016-11-06T00:06:17 | 42,777,035 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,796 | py | # Example from Programming Collective Intelligence, Chapter 3
import re
import feedparser # pip install feedparser
# Returns title and dictionary of word counts for an RSS feed
def getwordcounts(url):
d = feedparser.parse(url)
wc = {}
# Loop over all the entries
for e in d.entries:
if 'summar... | [
"danpaulius@gmail.com"
] | danpaulius@gmail.com |
c10d9896ee6de12914c6ed67a6f29e68a3d667d3 | ab84db21b0add49af89873df9fde90de3e12c1a1 | /rundeck_dynamic_option.py | e4c9e5fa8a05e0ea0a662d2039c2ee3414c849b6 | [] | no_license | ri0day/gangster | 1d5ebc17b483d28eeb15358157c44960b98669b3 | c7b3eae6115af5b0411bd4ceb34badffbf4e9b4c | refs/heads/master | 2020-04-06T13:28:43.520875 | 2018-05-16T09:13:10 | 2018-05-16T09:13:10 | 1,726,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | #!/usr/bin/python
#coding: utf-8
l = [
"fin-cashier",
"fin-fbm",
"fin-feim",
"fin-fxio",
"fin-mgw",
"fin-paycore",
"fin-tradeprocess"
]
from flask import Flask,jsonify
app = Flask(__name__)
@app.route('/QJS/deploy.json')
def show():
return jsonify(l)
app.run(port=19081)
| [
"hackcrisman@gmail.com"
] | hackcrisman@gmail.com |
125bca02d41afd4fbe3adbb44de5026ae2706c21 | 2b3c15e703c64b580128864134ff0bdb73cbe964 | /test_f2.py | 35b4d001624006f15bebfe81985f7d72e8a9331e | [] | no_license | jalen123517/pytest | e4819c01d9c24257d8b4d7578c106e00b5c32b17 | 93b19067f7c249c2ee95b5b9d2d62af7ad152bc7 | refs/heads/master | 2022-12-09T07:26:59.223138 | 2020-09-04T15:59:50 | 2020-09-04T15:59:50 | 292,855,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,196 | py | import pytest
#
# @pytest.fixture()
# def open():
# print("打开百度首页")
#
# def test_func1():
# print("正在执行测试用例test_func1")
#
# def test_func2(open):
# print("正在执行测试用例test_func2")
# @pytest.fixture(scope="module")
# def open():
# print("打开百度首页")
#
# yield
# print("所有用例执行完毕")
#
# def test_func1(o... | [
"1198003804@qq.com"
] | 1198003804@qq.com |
d7b21999d06052720136bc9861b5a7bac84e076f | 8c082ce426f6828868b6a19807c5aedaa1bb7e14 | /tests/test_task_base.py | 3bd2b1e29e61f9efe491cfed65a929f0f44837b3 | [
"Apache-2.0"
] | permissive | misaki-sugiyama/unladen-chant | 32cd1513ac9d420c4f855af6ae2c07456ed92592 | 28ac51ed9ef6eba8da8b5dafd13cf3abc1e63d5c | refs/heads/master | 2020-12-17T11:45:20.167893 | 2020-03-13T08:29:58 | 2020-03-13T08:29:58 | 235,292,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,227 | py | import pytest
from unladenchant.unladentaskbase import UnladenTaskBase
from types import SimpleNamespace as SNS
@pytest.fixture
def fixtureFlowCheck():
aRecord = []
class TaskBasic(UnladenTaskBase):
def main(self, ns):
aRecord.append('main' + str(getattr(ns, 'a', 0)))
return Tr... | [
"misaki-sugiyama@users.noreply.github.com"
] | misaki-sugiyama@users.noreply.github.com |
0dc8421daeb74bb740b8768bb64a56548ce91385 | d238a360ec34990d4a3ceb980995f6e7478303f6 | /Forritun/Forritun 1/skila6.py | ef8a725737f2a52945deda1cc28d84c6fe183561 | [
"CC-BY-4.0"
] | permissive | EinarK2/einark2.github.io | 2da59e16a931b376a5206ad74f56d6c4bdcdce3f | ec121871d381fe62e29573e67b57baf80f31e90d | refs/heads/master | 2020-03-28T14:26:50.701576 | 2019-10-10T13:34:15 | 2019-10-10T13:34:15 | 148,487,309 | 0 | 1 | CC-BY-4.0 | 2018-09-12T15:16:26 | 2018-09-12T13:46:14 | HTML | UTF-8 | Python | false | false | 3,062 | py | #Höfundur Einar Karl
import random
val=" "
while val !="5": #Valmynd
print("--------------------------------------")
print("1. Random Tölur")
print("2. Talnabil")
print("3. Strengjalisti")
print("4. Samanburður")
print("5. Hætta")
val=input("Veldu 1-4 eða 5 til að hætta ")
... | [
"einarkarlp@gmail.com"
] | einarkarlp@gmail.com |
dd0492a4e1c8d9c5c1695bf08f02984c8d021074 | b71a6e7050b0a4368007350d91ee078288a7318c | /examples/issues/issue189_img.py | cb2817ea11871f73a6164e09d73305c788330037 | [
"Apache-2.0"
] | permissive | jarvisteach/appJar | 2dfd0da6cb85ea3535379ed000efd97fb42fe4f8 | 0b59ce041da2197dcff3410e20f298676f1f7266 | refs/heads/appJar | 2023-08-29T09:42:01.812005 | 2019-09-28T18:34:06 | 2019-09-28T18:34:06 | 39,996,518 | 696 | 103 | NOASSERTION | 2023-02-20T01:01:16 | 2015-07-31T08:59:20 | Python | UTF-8 | Python | false | false | 252 | py | import sys
sys.path.append("../../")
from appJar import gui
with gui(useTtk=False) as app:
# app.addImageButton("button2", None, "Capture 2.PNG", align=None) # Uncomment this
app.addIconButton("button", None, "md-play", align="none") # Or this
| [
"jarvisteach@gmail.com"
] | jarvisteach@gmail.com |
c9cd10112ddaa05201e46cc7646a48d91dfd48d5 | ce886756510fb064b6d3c0559e547542e3de8891 | /pylesson/kernel.py | 1314c21a9ec6f0a23910b20e5edda15e2d03d142 | [] | no_license | Nekot94/sprog | 348b2cce012230cf59e85a7af5d8db8c4eecd7c0 | a79f8c5e7cf0237b768f3a46732a72897fc50742 | refs/heads/master | 2020-05-21T02:01:37.608220 | 2017-05-05T12:01:34 | 2017-05-05T12:01:34 | 84,555,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,798 | py | from PIL import Image
from random import randrange
#соответствие диапазону
def constrain(val, min_val, max_val):
return min(max_val, max(min_val, val))
#функция наложения матрицы
def kernel(pixels,mat,l,div):
rRes, gRes, bRes = 0, 0, 0
for c in range(l):
for k in range(l):
... | [
"noreply@github.com"
] | noreply@github.com |
0274997c2d3e52f78afa38109560e1728b2534ec | 4f882bb05a47a3b3e124b42ab9bd279d7032f3c7 | /py/variables.py | 8b52dbd2c8592cd70f0c4646708e7cf2c3892ea6 | [] | no_license | jamesnyakush/akira-mentoring | cf5b02786d49319290bfc4ccca381cc5eea6d41f | de2002547673b00340ce815071e08962b7f5200a | refs/heads/master | 2022-12-03T09:31:48.261768 | 2020-08-16T20:52:56 | 2020-08-16T20:52:56 | 284,286,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | # Variables are containers for storing data values.
x = 10 # type int
print(x)
y = "James Nyakundi" # type String
print(y)
print("My full name is: " + y) # Concatination
# Multiple Variables in Python
a, b, c = "Apple" , "Banana" , "carrot"
print(a,b,c)
#Re-assigining Variables
y = 'Mary Wanjiru Nyakundi' #goals
p... | [
"emvesttech@gmail.com"
] | emvesttech@gmail.com |
1ced5c6e0a04b057cee4c476830695a129dc95c5 | 6dd400fec6f302bd0dcf309e2deec5de906d205c | /django_test6maria/myguest/urls.py | 9f02e4a7aca1f6b490e241f6a970eacb04b2142f | [] | no_license | Leo-hw/psou | aa938b7cfaa373a0980649125270c48d816202b0 | 70379156a623257d412bcccbac72986a61226bd4 | refs/heads/master | 2023-02-21T19:00:02.902510 | 2021-01-25T07:03:26 | 2021-01-25T07:03:26 | 332,616,685 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | from django.contrib import admin
from django.urls import path
from myguest import views
urlpatterns = [
path('', views.ListFunc),
path('insert/', views.InsertFunc),
path('insertok/', views.InsertFuncOk),
]
| [
"Bonghwan@DESKTOP-60LSTNL"
] | Bonghwan@DESKTOP-60LSTNL |
35d45b3ecc9f1c22e764ea3b1b7af87890ab536f | 1335f139620b2578ec325732b298b44599d235b9 | /shop/migrations/0001_initial.py | 31798dfec22fd28409e6dd63f241a9c5f71a7da1 | [] | no_license | MuhammadAichee/AhsanShop | 21cc6c2970c7f37e93d59b4295333a95b2ecb694 | ef827c97733fae7a00bbb3d84d40a70a87f19e71 | refs/heads/master | 2020-12-27T07:17:04.807977 | 2020-02-02T17:53:27 | 2020-02-02T17:53:27 | 237,810,855 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | # Generated by Django 3.0.2 on 2020-02-01 13:13
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Product',
fields=[
('id', models.AutoField(... | [
"muhammad.aichee@gmail.com"
] | muhammad.aichee@gmail.com |
da7128ea1ba2c7e0c3dd80937ea04a5097b22c87 | e7073014f6ec78471b5dc0d089ef4efb8ed3d3a7 | /mkdg/misspell/adverb.py | 8480143c154ec4c352a74521b02f77d66085d3ae | [] | no_license | ruby-kim/mkdg | fbfe29bd8315beac94e23171e59c4f008161071f | b2172a1c03e45c99461d5053ebc9a5225ec2b5b2 | refs/heads/master | 2022-11-03T12:42:10.967764 | 2020-06-17T03:45:39 | 2020-06-17T03:45:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | """
부사
"""
from mkdg.utils.chgword import chg_word
def load_adverb():
from mkdg.utils.getmisspell import misspell_single_data
"""
Load adverb data
Returns: adverb dictionary, alternative list
"""
adverb = misspell_single_data("adverb")
alternative = {
}
return adverb, alternative... | [
"kkyy0126@naver.com"
] | kkyy0126@naver.com |
7312a9d8b55c53189a86359ec9c6344c2855e91d | 4c20dd6a6f9a3dd0775ea3ef9d48a47eaf47a891 | /mysite/mysite/settings.py | 87bfe4d009cfef8743ec81d59eb19e67e3259687 | [] | no_license | sohil1234/FirstRestAPI_Stock_Prg | 080662737cadeeb70cc358ea2062d9021c4277c7 | f56f85df0875e2406ea4e42d90b6f6a0a409000f | refs/heads/master | 2021-09-01T23:46:07.716459 | 2017-12-29T07:45:33 | 2017-12-29T07:45:33 | 115,699,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,202 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.0.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# Bu... | [
"sohil.khan19may@gmail.com"
] | sohil.khan19may@gmail.com |
b540bb335ba07eb23f656de01bc48f3e0888a51e | 7fc678c2b1a0ef8849364e9c3e272b4509003796 | /py/merge-us-tracts-sql-code-gen.py | 482fce872848f536f179fddb32fdcccd07dcc606 | [] | no_license | nygeog/postgis_reference | ee7a599c2b60d713b5ae67039b5e5f4cfef9d7e8 | d3da41fa91dcd6e667d62cb3cc2439aed99f90a9 | refs/heads/master | 2020-04-05T23:28:14.942786 | 2017-08-12T16:51:29 | 2017-08-12T16:51:29 | 42,251,833 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | mergeTableName = 'tracts_2010_us'
attrList = ['geoid10', 'aland10', 'awater10', 'intptlat10', 'intptlon10', 'shape_leng', 'shape_area', 'geom']
attrListString = ", ".join(attrList)
statesList = ["01","02","04","05","06","08","09","10","11","12","13","15","16","17","18","19","20","21","22","23","24","25","26","27... | [
"daniel.martin.sheehan@gmail.com"
] | daniel.martin.sheehan@gmail.com |
2ca4e05159e3892662adb7c0299e55a9472d802d | f8aa0c76ed84eecb93ea094c7efb28bf49fc37a5 | /tests/test_bucketlist.py | b3d833c3efa492589d8cab27a0b051ee56319d73 | [] | no_license | NaomiMariga/bucketlist | 48d2a0d9148a7983cacb21b6b9842e7c1ac1815a | aa20064d51a30da5c228eb46ab3135d678b39166 | refs/heads/master | 2021-01-01T06:35:54.467454 | 2017-07-28T06:57:57 | 2017-07-28T06:57:57 | 97,464,717 | 0 | 0 | null | 2017-07-28T06:57:57 | 2017-07-17T10:34:11 | HTML | UTF-8 | Python | false | false | 573 | py | import unittest
from models.bucketlist import Bucketlist
class TestBucketlist(unittest.TestCase):
def test_create_bucketlist(self):
self.assertEqual(self.bucketlist.create_bucketlist({
"name":"movies"
}), "Buckelist created successfuly")
def test_view_bucketlist(s... | [
"Kaburamariga@gmail.com"
] | Kaburamariga@gmail.com |
d3cec4b8f205519a73578850997ccf043eae6acf | 2fc7fab5bda38404588f066da9501cd53e0b3c12 | /alembic/versions/afd80e56a9e7_.py | f41f94a21ab315484933098911e963ed6254c091 | [
"MIT"
] | permissive | UKnowWhoIm/FastAPI-Blog | 356c8a9e4ce846a43790da0d48e483d800d45b51 | e0f9653b6fdbe445148b6e0789da49515f3fd87d | refs/heads/main | 2023-02-03T10:44:23.240562 | 2020-12-21T03:35:50 | 2020-12-21T03:35:50 | 322,341,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,174 | py | """empty message
Revision ID: afd80e56a9e7
Revises:
Create Date: 2020-12-18 09:54:48.761636
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'afd80e56a9e7'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | [
"51323747+UKnowWhoIm@users.noreply.github.com"
] | 51323747+UKnowWhoIm@users.noreply.github.com |
7351cda3d9810ffbb3a32be84e28c4fdc9c4476d | 9262a206a538ab471fe524fb1659ffeef09bb735 | /codebreak/venv/bin/pip | a4f2d921616fb6efc02a64cea8d25b86f62b3f41 | [] | no_license | jaypajji4444/24-Digital_Chaos-VIDALYTICS | 02c69ce954714f4eefbd37da9bf06916621c34cf | 4d4477d9f1faa4c1293587ed1e0aa244774f71fe | refs/heads/master | 2022-12-14T02:32:52.676173 | 2020-10-04T13:42:50 | 2020-10-04T13:42:50 | 229,522,854 | 1 | 3 | null | 2022-12-11T18:05:38 | 2019-12-22T05:31:00 | Python | UTF-8 | Python | false | false | 393 | #!/Users/deep.gandhi/codebreak/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
... | [
"43105921+jaypajji4444@users.noreply.github.com"
] | 43105921+jaypajji4444@users.noreply.github.com | |
71866234c3f74903d2646b73a917ca5d7c933254 | fcc7aed39a4a536946a20e8987fcc3704854c61a | /5/E/page_parser.py | 850541b37acbf43f436c3b91dd480d8699aaeb9e | [] | no_license | Gezort/Python-SDA | 5355b6493d121b6fc6ce9eae5fd9feb9eaf912ee | 46de6261a166e597ec1e5d8a919b2fe73fa5e9f5 | refs/heads/master | 2020-09-21T19:31:44.170447 | 2016-09-09T12:40:42 | 2016-09-09T12:40:42 | 67,797,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | from html.parser import HTMLParser
from urllib.request import urlopen
from urllib.parse import urlparse, urljoin
from bs4 import BeautifulSoup
def is_internal(url, ref):
return (urlparse(ref).netloc == urlparse(url).netloc and
urlparse(ref).scheme == urlparse(url).scheme)
def parse_url(url, graph):
... | [
"miron_55@mail.ru"
] | miron_55@mail.ru |
c0b1823a5549769b3efe0b1033816e1186aca332 | c7e765a9bed33d3bfb21774e3995bf4a09e04add | /adminmgr/media/code/A2/python/task/BD_174_261_754_XxLnqgI.py | e6c151bc96e99f32096cdee7f9cd74743a158637 | [
"Apache-2.0"
] | permissive | IamMayankThakur/test-bigdata | 13dd2ac7fb76c9baed6c3a0aa943057a22e2d237 | 7f507918c7bec31c92eedcd94491a83486623049 | refs/heads/master | 2022-05-03T00:59:44.127494 | 2022-02-10T19:50:16 | 2022-02-10T19:50:16 | 201,585,028 | 10 | 4 | Apache-2.0 | 2022-04-22T23:39:45 | 2019-08-10T05:34:09 | Python | UTF-8 | Python | false | false | 2,960 | py | from __future__ import print_function
import re
import sys
from operator import add
from pyspark.sql import SparkSession
def computeContribs(urls, rank):
"""Calculates URL contributions to the rank of other URLs."""
num_urls = len(urls)
for url in urls:
yield (url, rank / num_urls)
def parseNe... | [
"ubuntu@ip-172-31-18-251.ap-south-1.compute.internal"
] | ubuntu@ip-172-31-18-251.ap-south-1.compute.internal |
1eed5a1a1c41bdce2388cbb7ceeb23f09ad00702 | b401300aabc107d49011ad2efee4adcf452e817b | /blackbox_challenge/far_bot/Environments/CartPoleEnvironmentGN.py | 29dea027bd493b643ceaf7689cbf30164d00ae96 | [] | no_license | haukot/data_science_exercises | c12e1aaa13d0422ef715b3ffabce2d90cce4b0bf | 02f00f67bc3fce892805230109bed7952c9dba5e | refs/heads/main | 2023-02-27T07:19:52.034664 | 2021-02-05T02:04:04 | 2021-02-05T02:04:04 | 336,103,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,008 | py | from numpy import *
from ivisual import *
from ivisual.graph import *
class CartPoleEnvironment:
"""
This class implements CartPole Environment
@author Jose Antonio Martin H.
@version 1.0
"""
title ="CartPole Balancing"
input_ranges = [[-4.5,4.5],[-3,3],[-radians(... | [
"haudvd@gmail.com"
] | haudvd@gmail.com |
08a188b2b0b238ca841e8c7e0c1ff060319b6658 | 6049e7e6d21e2a4cf38a951081c1b6929815af99 | /testdata/DatasetGenerator.py | f824313dffe1c35c57a111ec344aaea49d57f8a4 | [] | no_license | ingvily/ML-hackathon | 187675203e9ad557ea21c8c6d6c62dc5694b8b66 | 323a4fd728f8fa8a3a741a125f5b758b25b427b9 | refs/heads/master | 2021-01-11T07:00:24.414810 | 2016-11-04T12:59:09 | 2016-11-04T12:59:09 | 72,342,780 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,679 | py | import csv
import numpy as np
import dateutil.parser
NUMBER_OF_PREVIOUS_PRICES = 10
years = []
months = []
days = []
prices = []
temperature = []
rainfall = []
snow = []
currency = []
def readSpotPrices():
with open('elspotprices.csv', 'rb') as csvfile:
spamreader = csv.reader(csvfile, delimiter=';', quo... | [
"birgitte.haavardsholm@gmail.com"
] | birgitte.haavardsholm@gmail.com |
d8ccb895f7e96fb19ca18336cd157d9fbd9f17e5 | 713257e4a2183c5af8512eec6d650d87879f49cd | /Yelp/items.py | 0630c566b869cf27394bf69866d0b0daa1eb1ee3 | [] | no_license | tgomudur/Yelp-Reviews-Scraper | 492804670cec18a189d32e3043e53dc00b1b61d1 | 6849ccebda740d00e6f48e53a0edcc4b87b1c244 | refs/heads/master | 2020-12-31T04:41:15.094878 | 2016-01-31T00:18:36 | 2016-01-31T00:18:36 | 50,751,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class ReviewItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
user_id = scrapy.Field()
name = scra... | [
"tgomudur@asu.edu"
] | tgomudur@asu.edu |
92c116cd9eba50add2d8b2bfea83d41fc1b2a5dc | 16f7ab10d3f142387e32fbe80326775619613e95 | /photo/Scripts/pip-script.py | 530bea864d8721f14323f0188278fe8356e59604 | [] | no_license | czar2000/gallery | 555cfb54159be0b0185bf90b7be2dcc0610685e5 | c45267a694db2a6a70db7945e0bd5e93c5167bbe | refs/heads/master | 2020-05-07T08:44:26.758599 | 2019-04-12T11:02:32 | 2019-04-12T11:02:32 | 180,341,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | #!C:\Users\Admin\Desktop\gallery\photo\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"ceaserw82@gmail.com"
] | ceaserw82@gmail.com |
a541b63a4a516afe5d07e6e2cb94b6f9ecfbfbca | 897a660b24d0ccc1a25132550dc4c735644efbfb | /048_self_powers.py | 0b745c15bbdfe4cbee42e2c6029e4f76bd87c684 | [
"MIT"
] | permissive | gradam/project-euler | 409b99a542c661cbc3e002bb9b89f5d03ea40cd5 | d939ad54d057fd8ed2db06948b6ccc7833d68ab6 | refs/heads/master | 2021-01-24T17:35:50.870830 | 2017-12-31T09:58:35 | 2017-12-31T09:58:35 | 30,153,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | suma = 0
for x in range(1, 1000):
suma += x**x
print(str(suma)[-10:])
print(str(28433*(2**7830457) + 1)[-10:]) | [
"kuba.semik@gmail.com"
] | kuba.semik@gmail.com |
9d3227f5e41354ab27c042436012e9803093c27b | 90ad832838fb3b540accb9f8d3aee2292b1c01da | /blog/urls.py | 5db1436bdfc6ccb9aa05b0f1dbaa941d049bfa22 | [] | no_license | shouryagupta2/Blog | e513f791cba67ebc2dc16a9fd45ce0474edd83bd | 79aa4c39b26607ec8fa7d7a495ad9d9c04aeed6a | refs/heads/master | 2023-06-14T08:23:18.104030 | 2021-07-14T19:39:49 | 2021-07-14T19:39:49 | 386,055,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | from django.urls import path
from .views import (
PostListView,
PostDetailView,
PostCreateView,
PostUpdateView,
PostDeleteView,
UserPostListView
)
from . import views
urlpatterns = [
path('', PostListView.as_view(), name='blog-home'),
path('user/<str:username>', UserPostListView.as_vie... | [
"shourya.gupta.ece19@itbhu.ac.in"
] | shourya.gupta.ece19@itbhu.ac.in |
0d9d45d96dd79d9e1c3bc2408a3f391808380dce | e874e3b4312b2beebaa42fa1489b50c618055190 | /Aula 2 Semana - Turtle - Preenchendo as formas.py | 2c20ce02817224506dde0a83bf5b80e026b47a64 | [] | no_license | CarlosDinart/PUC-SP | 611a9acb6a82b7db2174d2d439b5666db48a530e | 5f5f1ea4b9c55c7d20b2dcd92c461b3d8ebbb664 | refs/heads/master | 2023-01-23T06:46:42.492764 | 2020-12-09T19:41:01 | 2020-12-09T19:41:01 | 320,058,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 852 | py | from turtle import *
fillcolor('purple') # fillcolor() - esta funcao retorna ou defina a cor de preenchimento;
pensize(10) #pensize()- esta funcao defina a espessura da linha para a largura ou retorne-a.
# Se resizemode for definido como “auto” e a forma de tartaruga for um polígono,
#... | [
"cdinart@hotmail.com"
] | cdinart@hotmail.com |
07cfe2b0bb4af1d51ebb49ddf7a5004dab670544 | b2014e69012dcff4f903862189616c9e97dd6537 | /minimun-network.py | 0681fc6ee51f2f198f270bd71c018d4e68342425 | [] | no_license | chameleonTK/projecteuler | 9162705a581f5f44719dd70b3b4320552b1b4eda | b64c65e82d981fb4551db33460086d357d5f15b1 | refs/heads/master | 2020-04-29T00:24:41.553900 | 2014-05-21T00:45:35 | 2014-05-21T00:45:35 | 175,692,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py |
fo = open("network.txt",'r')
edges = []
list_edges = []
i=0
cost = 0
for line in fo:
lst = line.strip().split(",")
j=0
for l in lst:
if l != "-":
list_edges.append( (i,j,int(l),) )
cost += int(l)
j+=1
edges.append(lst)
i+=1
N = len(edges)
def comparator(x,y):
return x[2]-y[2]
list_edges.sort(compa... | [
"pakawatnakwijit@isa3-dhcp-190-208.naist.jp"
] | pakawatnakwijit@isa3-dhcp-190-208.naist.jp |
de6921dce3a160ae4dad9ee43b7a29ee9f4d8404 | 95a2568c20993bd423791f6796ecff36d6a71d26 | /utils.py | 46c959bcd0ae74ab2155a51327b036899514e5fe | [
"MIT"
] | permissive | kugooer/nazurin-1 | 15dff321436eaf9ca75c79f3be9e41cc958063a2 | 092da0b77e50e3f81cc99ae7d86523efbf691baf | refs/heads/master | 2023-01-19T08:32:11.973482 | 2020-12-01T15:24:23 | 2020-12-01T15:24:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,979 | py | from requests.adapters import HTTPAdapter
from mimetypes import guess_type
from shutil import copyfileobj
from functools import wraps
from pathlib import Path
from html import escape
from time import sleep
import requests
import logging
import re
import os
from config import DOWNLOAD_DIR, UA, RETRIES
from telegram impo... | [
"yyoung2001@gmail.com"
] | yyoung2001@gmail.com |
28bf4464a2efd83c69f34f524ecbd2ccace7e79b | 73b06f6bdf99e02ab26b8c67e48ad1dbcd33294e | /src/data.py | 7b32cd10e450f33ee95fba8073a54af5d76a2cf7 | [] | no_license | it-fm/ann3depth | 34de41b7877f20fbfb7f501f52fa6b83135e43b2 | baa3455f873fe1a77b1132af410d285cf81b07e5 | refs/heads/master | 2021-06-27T00:47:58.515179 | 2017-09-15T09:20:19 | 2017-09-15T09:20:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,201 | py | import collections
import os
import tensorflow as tf
import tfhelper
Pipeline = collections.namedtuple('Pipeline', ('files',
'labels',
'reader',
'convert'))
def _get_pipelin... | [
"info@sebastian-hoeffner.de"
] | info@sebastian-hoeffner.de |
7d04d1d2200028fde6318a333f10fe458cce5f6b | 9551013ef6bfd5d6d049dc5b1951eb1515999bc7 | /src/tweet_translator.py | ba231daf0c9b47bc5038d9923992066e19de7492 | [] | no_license | VarsouPenny/ML_project | fbb5b2267bdebed723502c991981a686bdfa2fcf | cff9e29286da40f23a3a7364311ef25c3f297c19 | refs/heads/master | 2023-03-05T05:03:24.853163 | 2021-02-16T15:44:04 | 2021-02-16T15:44:04 | 321,322,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,895 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
# Importa pandas library for inmporting CSV
import pandas as pd
# Imports the Google Cloud client library
from google_trans_new import google_translator
# Instantiates a client
translate_client = google_translator()
#Translating the text to specified target lan... | [
"noreply@github.com"
] | noreply@github.com |
bcb19f8fb1787da9775d64921d14b4dcac367cb6 | 46daee0d91adbece5f05c3d6cea719610b8ddeba | /windows.py | 4e8dec4960e37efe15b0ffa81a5b29ace5d97f47 | [] | no_license | taya-mart/GUI | 7d84d27f23f7b89c59b1686444433d81bcd06745 | 5c4994e290f41dcc19509cede9d97849a3c71668 | refs/heads/master | 2021-03-13T07:02:55.324944 | 2020-03-11T18:33:04 | 2020-03-11T18:33:04 | 246,651,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | from tkinter import *
import random
root = Tk()
root.title("W I N D O W S")
root.geometry("500x500")
root.config(bg="black")
baseFrame = Frame(root, width=399, height=299, bg="black")
baseFrame.grid(sticky=NSEW)
topFrame = Frame(baseFrame, height=100, width=300, bg="purple")
topFrame.grid(row=0,sticky=N,columnspan=2... | [
"taya.martinez@tooeleschools.org"
] | taya.martinez@tooeleschools.org |
95eddf83bd4b6917c1d939d617554272f90d1382 | c7f198f127ec5a04bddd30cec40d90cb74500fd9 | /tic_tac_toe_MLP(2layer).py | 6250cb27e5333bd0b89ad87c326f088c303f013a | [] | no_license | jkh5178/2018_AI_tic-tec-toe | 62ef6c767914daf97dfa762bc631d47bd8cf901b | 5953b0269cbc76f152a8a269147d04a42ea27c48 | refs/heads/master | 2020-05-26T01:23:44.574633 | 2019-05-22T14:57:22 | 2019-05-22T14:57:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,307 | py | import tensorflow as tf
import numpy as np
def data_read(file_name):
r = open(file_name, mode='rt', encoding='utf-8')
return r.readlines()
def data_chainge(line):
in_data=line.split(",")
out_data_position=[]
out_data_class=[]
for i in range(len(in_data)):
if in_data[i]=='x':
... | [
"jkh5178@naver.com"
] | jkh5178@naver.com |
0f05e7f7bb995683069867c2615ec7c6329a7d54 | f99933f85d4fa419e059ee10bfa214a1da8c50de | /wordSearch.py | 602ffee8b1499a079a5525c1b5c59982ae24c83b | [] | no_license | drew-bowman/Word-Search | 234b012e222bcb0953e0e57e09b21dffaf4e0eb9 | 16e51cd7b9d8228a5926b781332043b2e0dfe1b7 | refs/heads/master | 2020-07-05T21:43:44.614688 | 2019-08-16T20:05:31 | 2019-08-16T20:05:31 | 202,788,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,272 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Aug 16 21:38:08 2018
@author: Drew
"""
import random
import string
def make_blank_board(rows, cols):
board = []
# Fill blank board with *
for _ in range(rows):
row = []
for _ in range(cols):
row.append('*')
... | [
"dnbowmank14@gmail.com"
] | dnbowmank14@gmail.com |
f4e4ec1f2f0bc3524b457999fc01cd3aada4f5ec | b3e6f788f666ddd48fd7e9ba29d95ab959b40ce6 | /HackerRank_Exercises/minimumDistances.py | d7b29a7049c5214d8bcf8bb3d422154ea86da05a | [] | no_license | BlessingBassey/Certifications-and-some-solved-online-exercises | 9a08270708b66ccf7feaa79157055f1e0fb8e5af | 2d8d722da386e9342d18bd78e06cc81bbe849874 | refs/heads/master | 2021-08-08T10:22:50.502141 | 2020-12-15T14:16:44 | 2020-12-15T14:16:44 | 231,464,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,926 | py | #!/usr/bin/env python
# coding: utf-8
# In[2]:
'''
We define the distance between two array values as the number of indices
between the two values. Given , find the minimum distance between any pair
of equal elements in the array. If no such value exists, print -1
'''
from collections import defaultdict
def minimu... | [
"[bbassey@aimsammi.org]"
] | [bbassey@aimsammi.org] |
e05e33aa0076cde8b50bfb65a6037c4f915d00b9 | 8fb5e4706f8685ea1796e049d6dc49798a5df8f8 | /Practice-Problems/backspaceattack.py | c983f4a456b7c7ebd84271c6c651673788a5e6e8 | [] | no_license | abhishekthukaram/Course-python | 0ca8d529fbb41f805b2c5a14df5ab153427a4246 | 32111a0cb65309e1ab9185e0adbb3d4c2a713b50 | refs/heads/master | 2022-12-27T02:09:35.433315 | 2020-10-07T07:27:21 | 2020-10-07T07:27:21 | 269,257,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | """
Suppose a hash # represents the backspace key being pressed. Write a function that transforms a string containing #
into a string without any #.
erase("he##l#hel#llo") gives "hello"
erase("major# spar##ks") gives "majo spks"
erase("si###t boy") gives "t boy"
erase("####") gives ""
"""
def erase(txt):
new_strin... | [
"noreply@github.com"
] | noreply@github.com |
13ad5a1dbccff4f90cdc5a04eca7b08ad277140d | 27e3b02f5d43d3511832c83abb2493d27f2c1f92 | /quanta_scraper/wsgi.py | 80fb2741b4a358c683900be1f73ca42aab0da075 | [] | no_license | deanhooker/quanta-scraper | 7efe25a2bf3097dfd47eb50ce4ceb6eba33dedef | cf73813e865b553156e003ac62eebc9278ce578a | refs/heads/master | 2022-12-19T07:44:16.970945 | 2018-10-18T05:02:58 | 2018-10-18T05:02:58 | 153,013,992 | 0 | 0 | null | 2022-12-08T02:58:15 | 2018-10-14T20:05:08 | Tcl | UTF-8 | Python | false | false | 403 | py | """
WSGI config for quanta_scraper 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/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANG... | [
"deanhooker91@gmail.com"
] | deanhooker91@gmail.com |
57b18dd6855898a1df66eb1176ebf607a4876e58 | 4b82170cded750fa4096b86fe0e933238418e8e5 | /todo/models.py | 8b07ab5ba9e3b6dbc2392ecb5e2659727beef82d | [] | no_license | vaboliss/ToDoApp | 0a0cfdc93a1186a6314f36982108af3cc019335f | 986644b07fbe467f34f4adb73ea0e160e902c710 | refs/heads/master | 2020-08-02T03:36:04.967644 | 2019-09-27T02:51:39 | 2019-09-27T02:51:39 | 211,222,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | from django.db import models
# Create your models here.
class Todo(models.Model):
text = models.CharField(max_length =40)
complete = models.BooleanField(default = False)
def __str__(self):
return self.text | [
"vabolis.ainis@gmail.com"
] | vabolis.ainis@gmail.com |
445a0a045fb8e96617f731d357ffd66b5dd0fb76 | a686365f2794a251071ced44e1cd11ce3c6bc9a8 | /venv/Scripts/vba_extract.py | 453e3ad4bbfd034a54a6ff2c838e84ad140042c1 | [] | no_license | Smeilb00/TFG | fa92e4967b5862ecbcc04a15b099dfe31a277a60 | eeccdf28c03e7bf442b59cc606a40addba9e554e | refs/heads/master | 2023-06-17T03:59:03.249504 | 2021-07-13T11:52:36 | 2021-07-13T11:52:36 | 380,795,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,857 | py | #!C:\Users\Sbita\PycharmProjects\Test1\venv\Scripts\python.exe
##############################################################################
#
# vba_extract - A simple utility to extract a vbaProject.bin binary from an
# Excel 2007+ xlsm file for insertion into an XlsxWriter file.
#
# Copyright 2013-2021, John McNama... | [
"smeilb00@estudiantes.unileon.es"
] | smeilb00@estudiantes.unileon.es |
8e1cbfd07a78da0b21816d98b3d50e96b2b1eb53 | 92bd5f7c38a3d4b21a5665f0e18a21334c9d7859 | /week_5/titanic_final.py | 0fc03605639496093d6ab34fdd628a3135eaf8e2 | [] | no_license | Arahansproject/Chatbot_20190316 | 7ac832e65a25e2dd89d8fcfa1bcbe4502649c951 | a57c8155af0a070dd0d4b4a1eaa3597f6f30a3b9 | refs/heads/master | 2020-04-29T06:42:16.249353 | 2019-03-16T05:20:52 | 2019-03-16T05:20:52 | 175,925,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,885 | py | import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
import numpy as np
from sklearn.neighbors import KNeighborsRegressor
from sklearn.neighbors import KNeighborsClassifier
from sklearn.tree import DecisionTreeRegressor
from sklearn.tree import DecisionTreeClassifier
from sklearn.ensemble import R... | [
"scm1128@naver.com"
] | scm1128@naver.com |
cf5fddbf61aeb35918e576d1a1ac9e69f4b6b4c1 | ea5762e8754d6b039963b0125822afb261844cc8 | /src/compas_rhino/geometry/__init__.py | 443b7cf51d3a306b59d12a71d80dd9480b9c6d76 | [
"MIT"
] | permissive | gonzalocasas/compas | 787977a4712fbfb9e230c4f433b6e2be509e4855 | 2fabc7e5c966a02d823fa453564151e1a1e7e3c6 | refs/heads/master | 2020-03-23T20:17:55.126856 | 2018-07-24T22:30:08 | 2018-07-24T22:30:08 | 142,033,431 | 0 | 0 | MIT | 2018-07-31T14:54:52 | 2018-07-23T15:27:19 | Python | UTF-8 | Python | false | false | 597 | py | """
.. _compas_rhino.geometry:
********************************************************************************
geometry
********************************************************************************
.. module:: compas_rhino.geometry
Object-oriented wrappers for native Rhino geometry.
.. autosummary::
:toct... | [
"vanmelet@ethz.ch"
] | vanmelet@ethz.ch |
bdaab8a2622622db82ab54061816343aa00f9c1b | 60ef18628de6fd2ad1b36045bd125f8962d48613 | /src/class_vs_instance_variables.py | 337ce3245373687c52ac9347b81380b169dd9082 | [] | no_license | deepakhb2/python_oop | 2aa171fc2428d2a3d259b3f9699ebfc1907ad0ea | ccd1f17aa05d435666fff0fbfa0fd66b77fe0643 | refs/heads/master | 2020-04-28T00:36:43.135880 | 2019-07-03T18:30:26 | 2019-07-03T18:30:26 | 174,822,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | class BestCourse:
website = "http://test.com"
def __init__(self, name):
self.name = name
course = BestCourse("Learn Python")
learn_command_line = BestCourse("Learn Command Line")
print(course.name)
print(BestCourse.website)
print(learn_command_line.name) #Object
print(BestCourse.website) #Cla... | [
"deepakhb2@gmail.com"
] | deepakhb2@gmail.com |
9bd0e691b2cf9e835167a6fa49536ee50961c4f6 | fcf4b584795dbdbb24bfa5e68028f4c9ac070b69 | /useraccount/models.py | 5dc7dd17acbc76bebc82627ebb3fb0ecb9fbeae0 | [] | no_license | vineethjpalatty/testproject | 3e86ae3f030349f4c633a6ac5ef17814bb373ff6 | 1087ca2ecbd5e2fe72a4a5c628e674eeaa4d2b2f | refs/heads/master | 2022-12-01T14:33:30.155041 | 2020-08-13T17:48:27 | 2020-08-13T17:48:27 | 287,338,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | from django.contrib.auth.models import AbstractUser
from django.db import models
import pytz
# Create your models here.
class DateBaseModel(models.Model):
created = models.DateTimeField(auto_now_add=True)
modified = models.DateTimeField(auto_now=True)
class Meta:
abstract = True
class UserDetai... | [
"you@example.com"
] | you@example.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.