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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2b2789eba257e061d11d9b5b879f59907bb1a3fa | 1eb3d05443ca08403aecab7d7056eb6195ea3ca3 | /code/params/grec_params.py | a2b8cf90caa34a9a364b004210e463cdb714b87f | [] | no_license | kfirsalo/QGCN | 0582a33caf47c2f80de17b0035b82f152ec64e3e | 9a311134681648d9b924efef7e037439dfbb789a | refs/heads/master | 2020-12-21T18:59:31.716210 | 2020-01-27T16:22:05 | 2020-01-27T16:22:05 | 236,529,076 | 0 | 0 | null | 2020-01-27T15:57:18 | 2020-01-27T15:57:16 | null | UTF-8 | Python | false | false | 4,303 | py | from torch.nn.functional import relu, softmax, cross_entropy
from torch.optim import Adam
import os
from betweenness_centrality import BetweennessCentralityCalculator
from bfs_moments import BfsMomentsCalculator
from bilinear_model import LayeredBilinearModule
from dataset.dataset_model import BilinearDataset
from data... | [
"ovednagar@gmail.com"
] | ovednagar@gmail.com |
d6633f66e546763035964e64d33a6ef8f827ab98 | f15cc90617a9ba8139a9019fa654b04cd1a475d8 | /src/test/From_GRIB_to_GEOTIFF_Noah.py | 9b7ca39c0fef0775f6a704e053448d3fee515031 | [
"MIT"
] | permissive | AKotb/AGPS_PYT27 | 584fc1354c86ed96bf10cbbf3f9be9fa590f293c | 8fed04ac3525e967eafa169b0d1fd2539caabe9a | refs/heads/master | 2020-09-21T00:38:07.113762 | 2020-02-20T11:51:17 | 2020-02-20T11:51:17 | 224,630,396 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,611 | py | # Code to convert ".grb" files to geotiff files.
# Coded by Mohamed Ahmed
# Change the processed years and path to the input data
import os
import gdal
namesCLM = ["NSWRS", "NLWRS", "LHTFL", "SHTFL","var155","var131","var132","EVP","var235","var234","SNOM","var138","WEASD","TSOIL_1","TSOIL_2","TSOIL_3","T... | [
"A7madKotb@gmail.com"
] | A7madKotb@gmail.com |
d048220677e6d76e01cdd6e1eeaf484c06a1f347 | 93570735d20043e28c85747d248511e06cb9f231 | /lib/colors.py | 17e16233034b49bb05b91675da7d2a4a18401d1c | [] | no_license | Yeahboi12356/phoneinfoga | bc64483223428042102a3623c2eee51dcc5a32f4 | 7bbd570ceb51be6869ea03bfabe2cee12f868dde | refs/heads/main | 2023-08-29T23:40:34.075879 | 2021-11-08T06:43:34 | 2021-11-08T06:43:34 | 425,723,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
#
# @name : PhoneInfoga - Phone numbers OSINT tool
# @url : https://github.com/sundowndev
# @author : Raphael Cerveaux (sundowndev)
import sys
import colorama
if sys.platform == 'win32':
colorama.init()
R = "\033[%s;31m"
B = "\033[%s;34m"
G = "\03... | [
"noreply@github.com"
] | noreply@github.com |
46ac07bad8a6e3103486ea0e16532532835096d7 | 4dcb08f3961590de108976ff9dc77f70ac17b1ae | /3. Exploring Data/assignment5.py | 1094b752ee4c23d6731af8aa992715f8def98a92 | [] | no_license | mjk276/DAt210x-Programming-with-Python-for-DS | 0ee3c6a20672787575c956901f7f8ec26aa5aca9 | bfe10e4895f34d6f2412e7d84e5f50d756cf3f85 | refs/heads/master | 2021-06-03T05:25:51.995703 | 2016-08-06T21:13:55 | 2016-08-06T21:13:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | #
# This code is intentionally missing!
# Read the directions on the course lab page!
#
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib
from pandas.tools.plotting import andrews_curves
from pandas.tools.plotting import parallel_coordinates
# Look pretty...
matplotlib.style.use('ggplot')
df =... | [
"Puneet Narula"
] | Puneet Narula |
7e04d44c0839f69eba1fdbba4f985107bf70d72e | dce00a226c2c1b458a18c25e3ffa58aed05e21c1 | /continuous_contract/__init__.py | 5994660f507ffecd5d088c109582a0a628774e8d | [] | no_license | invcomb/Assignment3 | 5bc5d5cfa141877e05a7f34d7ee18546e1a07e08 | e114c39baf07ae663f79027c4839b9ab86811ba0 | refs/heads/master | 2023-05-01T06:41:47.467279 | 2021-05-13T12:57:07 | 2021-05-13T12:57:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | from .ContinuousMainContract import ContinuousMainContract
| [
"219040029@link.cuhk.edu.cn"
] | 219040029@link.cuhk.edu.cn |
29481648eb96d39e6a7dd17bdbe4e7a2d1c35ac2 | 887ef52f59ba21dc74473c3607b10c1985007ae8 | /Scrapy_ZhongHongIndustryResearch_V2_51/Scrapy_ZhongHongIndustryResearch_V2_51/spiders/zhongHongIndustryResearch_V1.py | 76f290fd414f27b949551a219bfb1a0b331e0c6c | [] | no_license | GJJ121785021/first-upload-spider | 246834f9d2c761e5ec521b4a9f12eb3430539e21 | daf2bc6f01db90ae8bfb5c7452d1bffd204ec0d4 | refs/heads/master | 2021-04-04T15:24:16.579619 | 2020-03-20T02:11:24 | 2020-03-20T02:11:24 | 248,467,440 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,557 | py | # -*- coding: utf-8 -*-
import scrapy
from Scrapy_ZhongHongIndustryResearch_V2_51.items import ScrapyZhonghongindustryresearchV251Item
from scrapy.crawler import logger
import json
import requests
class ZhonghongindustryresearchV1Spider(scrapy.Spider):
name = 'zhongHongIndustryResearch_V1'
start_urls = ['http... | [
"121785021@qq.com"
] | 121785021@qq.com |
214f46e4b4086618c4ebc13bfb000e9aef54231f | 69720c18b1a2d9259b913bf1cc0ff1ac05687d0d | /nets/inception_v3.py | a7969e24e45b42587c1fbf1d5904c8c7a89f8396 | [] | no_license | liujing1003/tfslim | 282bc6d347bd3428169202fea6f2da007b887768 | 9c54dbb75426a75645ab8cf95a75fd60cb1cd78f | refs/heads/master | 2021-05-07T18:07:33.498852 | 2017-04-29T21:04:36 | 2017-04-29T21:04:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,254 | py | # Copyright 2016 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 ... | [
"ModarTensai@gmail.com"
] | ModarTensai@gmail.com |
68d86c968f4b517b3d5b4ebd2e76fbe486ab4355 | bfb9b4e92bf583ae16013b4f5e55e114f9c2140c | /config.py | dc266dee44c26aa8c1905ea63e38910a19b107c6 | [] | no_license | dreyevihor/course_work_dbis | 52cc3bd5852e6ccefd32acb4bd14b8af5a497eb1 | a8c3e794ea497c203c010de790c5cffff1e4866e | refs/heads/master | 2020-04-13T18:33:34.097873 | 2018-12-28T07:03:51 | 2018-12-28T07:03:51 | 163,377,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | import os
class Config(object):
SECRET_KEY = os.environ.get('SECRET_KEY') or 'coursach' | [
"dreyevihor@gmail.com"
] | dreyevihor@gmail.com |
bb1b9cccef0279464e835bc30ec7610597df1bd6 | fca06f2bc23c08ccc2e573c4a4004e95f0ccb39a | /tkinter/udemy course/tablet project 2.py | bb198795bd7977cc00aa58caf65ba20fac89ee1a | [] | no_license | himanshugullaiya/PYTHON-GUI | 6cb786f52910a030c8fe1387df5ea911ab317ade | f42a9aadf9016e4b50eadd48aa39d79d743a219c | refs/heads/master | 2020-08-22T09:31:37.528810 | 2019-12-30T20:59:00 | 2019-12-30T20:59:00 | 216,366,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | from tkinter import *
import random
root = Tk()
def get_table():
for x in range(10):
label_txt[x].set(str(entry.get())+ 'X' + str(9-x+1) + '=' + str(int(entry.get())*(9-x+1)))
def reset():
for x in range(10):
label_txt[x].set('------------------')
entry.delet... | [
"noreply@github.com"
] | noreply@github.com |
5df22d78b6e8dffc4a0c2173a282847ce7a447ee | 931f17611f3abf5f5384699d65f0de25ee1f98a3 | /code/utils/__init__.py | 537e4d50a3c296482ebec6a357bf45dadbbaffc8 | [] | no_license | alexliu2360/ai_comp | 3d44649f998e50ed436ca21fdbec680fcac562ee | 5b52f7f7e1931b45a62177197aa7ba049338f30d | refs/heads/master | 2020-04-04T13:28:02.190195 | 2018-11-10T13:55:23 | 2018-11-10T13:55:23 | 155,962,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | # -*- coding: utf-8 -*-
from . import JoinAttLayer
def getClassification(arr):
arr = list(arr)
if arr.index(max(arr)) == 0:
return -2
elif arr.index(max(arr)) == 1:
return -1
elif arr.index(max(arr)) == 2:
return 0
else:
return 1
| [
"noreply@github.com"
] | noreply@github.com |
ba9cf4cf17502c5bb9565e840604e9a3f1ecbad3 | fbe214d6ca9a44a9a11482e1d6b06a01fcbdcc68 | /main.py | b02ce1a5eefbc99e949d01b105c22a13485b7ff5 | [] | no_license | EugenioAV/crypto-operation | af549fab2b3fd562990515ea36ec5795239ffeb0 | 6bff54b49f0e830c2d5a169e5a1c10cf83cedb72 | refs/heads/master | 2020-08-07T06:21:07.144868 | 2019-10-10T11:53:12 | 2019-10-10T11:53:12 | 213,330,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,839 | py | import tkinter
import rsa
from tkinter import filedialog
from tkinter import messagebox
class KeyInputBlock:
file_path = ''
def __init__(self, tk, label_text, file_format):
self.input_frame = tkinter.Frame(master=tk, bg="#f5f5f5", bd=2)
self.input_label = tkinter.Label(master=self.input_frame... | [
"hedgehog0996@gmail.com"
] | hedgehog0996@gmail.com |
d125331a2cc55284fc603b28183c47dbaab2798d | 6d14fee4a337f75ca0364084ae68c37f443a8ffe | /crime.py | 8ab8d3f2eb0a2fa7d0c78c4793f5354b6ce6827d | [
"MIT"
] | permissive | aleranaudo/SizeItUp | e309379fff177844367caabab2448fb2ccea036f | cd412173b4f3f3ca049f30d128b9df08c4395b05 | refs/heads/master | 2020-06-28T16:27:55.752227 | 2019-08-02T19:03:11 | 2019-08-02T19:03:11 | 200,241,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | import state_crime
list_of_report = state_crime.get_all_crimes()
state_crime.get_all_crimes(test=False)
print(state_crime[1])
| [
"alejandra.ranaudo@gmail.com"
] | alejandra.ranaudo@gmail.com |
dbc05861ff1d574b59cf13ace3a9c4f734503c16 | 2f330fc050de11676ab46b963b7878882e9b6614 | /memsource_cli/models/linguist_v2.py | 3fded445994ae511b98da76e5f74617d09e0bc7b | [
"Apache-2.0"
] | permissive | zerodayz/memsource-cli-client | 609f48c18a2b6daaa639d4cb8a61da43763b5143 | c2574f1467539a49e6637c874e88d75c7ef789b3 | refs/heads/master | 2020-08-01T12:43:06.497982 | 2019-09-30T11:14:13 | 2019-09-30T11:14:13 | 210,999,654 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,216 | py | # coding: utf-8
"""
Memsource REST API
Welcome to Memsource's API documentation. To view our legacy APIs please [visit our documentation](https://wiki.memsource.com/wiki/Memsource_API) and for more information about our new APIs, [visit our blog](https://www.memsource.com/blog/2017/10/24/introducing-rest-apis... | [
"cerninr@gmail.com"
] | cerninr@gmail.com |
a923336f5999cb8e5aa571ccd2f842d30783123c | cd70f7f3339489e7ce347ae55f8893f493f5b459 | /model/model_data.py | 6379a35374a4285e13964781e3e1cf187d8cec2d | [] | no_license | MayaBenj/Facebook-Recruiting | c3f9aaa55e141f56a52b2aca2783b74c35efd79d | 7ca25c1708be5da5d927dc129b9c50a8292d54b7 | refs/heads/master | 2022-12-22T21:36:20.066057 | 2020-09-30T21:29:04 | 2020-09-30T21:29:04 | 298,805,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,638 | py | import pandas as pd
import numpy as np
from sklearn.ensemble import RandomForestClassifier
from sklearn.linear_model import LogisticRegression
from sklearn.metrics import f1_score, mean_squared_error, classification_report
from sklearn.model_selection import train_test_split, cross_val_score
from sklearn.neighbor... | [
"noreply@github.com"
] | noreply@github.com |
750eca92f6f411b38c8f0f6c0e42725c8525b87a | a4ca3d18b25e4aebb81f2ceb6408af051c94c8f1 | /p040.py | c188f13a21e7ccf9d5142c366228ca73c7163c47 | [] | no_license | ohassa/code-eval | e7784418d502ac86c8a132d5de3e851d2962d440 | 6980f51f18ac92ba4c15da1f7489b1deea6abd78 | refs/heads/master | 2020-04-10T14:15:17.292279 | 2015-03-01T22:02:09 | 2015-03-01T22:02:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | import sys
for n in open(sys.argv[1]).read().splitlines():
for i in range(len(n)):
if int(n[i]) != n.count(str(i)):
print(0)
break
else:
print(1) | [
"theomer1@gmail.com"
] | theomer1@gmail.com |
5f347e6b6fc31503d5eb071e29e147c5e03c8963 | c94f888541c0c430331110818ed7f3d6b27b788a | /billing/python/antchain_sdk_billing/models.py | a84d6d9e51b2efd4b9c0729e85e28c8c46ab9f42 | [
"Apache-2.0",
"MIT"
] | permissive | alipay/antchain-openapi-prod-sdk | 48534eb78878bd708a0c05f2fe280ba9c41d09ad | 5269b1f55f1fc19cf0584dc3ceea821d3f8f8632 | refs/heads/master | 2023-09-03T07:12:04.166131 | 2023-09-01T08:56:15 | 2023-09-01T08:56:15 | 275,521,177 | 9 | 10 | MIT | 2021-03-25T02:35:20 | 2020-06-28T06:22:14 | PHP | UTF-8 | Python | false | false | 55,021 | py | # -*- coding: utf-8 -*-
# This file is auto-generated, don't edit it. Thanks.
from Tea.model import TeaModel
class Config(TeaModel):
"""
Model for initing client
"""
def __init__(
self,
access_key_id: str = None,
access_key_secret: str = None,
security_token: str = None... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
fefd8b8b7dd964ec6ed10ab3fa8cbe2e98ec471b | 6fdf0a15d5c62ac8e7ccf02846b1068169f79377 | /chessForView.py/main.py | dcd703774c7d9756468575d2e8d56b809f4a2209 | [] | no_license | DivyeshMakwana12599/DCB-linux | e76940e81adbce0429761ed3f6ccb6aece9954f6 | dc22bb4df177372329f6a7023972b7912bdeba7e | refs/heads/master | 2023-05-20T01:06:16.474800 | 2021-06-07T11:21:18 | 2021-06-07T11:21:18 | 374,107,849 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,535 | py | import requests
import pygame as p
from requests.api import request
width = height = 550
running = True
MAX_FPS = 60
IMAGES = {}
DIMENSION = 8
SQ_SIZE = height // DIMENSION
url = "http://localhost:5000/"
p.init()
screen = p.display.set_mode((width - 4, height + 100))
# creating position from fen
def fenToPos(fen):
... | [
"divyeshmakwana12599@gmail.com"
] | divyeshmakwana12599@gmail.com |
dce66acaecaeb92ead8da8165aa063f5144d1414 | 0c005f75771101fdea1f647f124343077af19c36 | /test_word_break.py | 3a437518d9123157cc2a7afd251265b23f0ac32f | [
"MIT"
] | permissive | brigitteunger/katas | 19ff80a43d1c8fe0e6a49a6790495e716f09f10d | 3f9af88fe5d98753360457084741f573c863dc25 | refs/heads/master | 2023-01-01T00:57:45.294204 | 2020-10-13T21:01:18 | 2020-10-13T21:01:18 | 265,810,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,603 | py | import unittest
from typing import List, Set
from data_word_break import s_2, wordDict_2
class Solution:
def wordBreak(self, s: str, wordDict: List[str]) -> bool:
if not wordDict:
return []
set_words = set(wordDict)
dp = [False]*(len(s)+1)
dp[0] = True
for i in... | [
"brigitteunger@users.noreply.github.com"
] | brigitteunger@users.noreply.github.com |
a4bbedaf2b5ebe13a740b96d0d86a97e762347bc | 22a29f18a2c53158b9bbbc00e177dacc3e3081ca | /demo/accounts/views.py | 23ba455221351a210edd2b7574772e1c9c87aaaf | [] | no_license | loganbeast/Django-WebAPI | b2ff3a8d884d00330fdad9859cd0e5a95d8d759d | 7aa1529ecf6b48366ecf92b049364da8909a484f | refs/heads/master | 2023-02-08T16:40:02.373825 | 2020-12-28T07:02:11 | 2020-12-28T07:02:11 | 324,527,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,922 | py | from django.shortcuts import render
from django.contrib import messages
# Create your views here.
from django.shortcuts import render ,redirect
from django.http import HttpResponse
from django.contrib.auth.models import User,auth
# Create your views here.
def register(req):
if req.method == 'POST':
first... | [
"ss"
] | ss |
8639ae16bf226e4edb29dcac2032b57525c7275d | d8bb5c29c7600ffdf400cef5aaafe5e5feffce66 | /orders/migrations/0002_logs.py | dfa85452d4815487f411fe09efa2bd0b59cd504d | [] | no_license | mark-antonov/hillel_django | 0cc2f9dd124f9e91db8bd78ab8418f01b9cf7eb7 | 61913e7aeead2223a0870d4fcfa2de60641f668d | refs/heads/master | 2023-06-22T14:20:40.425547 | 2021-07-08T14:16:08 | 2021-07-08T14:16:08 | 374,808,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | # Generated by Django 3.2.4 on 2021-06-13 12:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('orders', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Logs',
fields=[
('id', mode... | [
"antonov.marq@gmail.com"
] | antonov.marq@gmail.com |
271de5d07c5e65241a158766ad42ff511c972f5e | b60fb52d8b4a10215b2636a30bc206f2e4bbeacd | /credentials.py | 6de522808d94adc13cb14d615afeef80c076eca2 | [] | no_license | gabee1987/Project-66 | 3135161f44d1ea6f8c92e84e09f1201f8ce423bb | d577f60d35c10820d4e3e4a445798deced15d6bc | refs/heads/master | 2020-12-02T06:37:51.178544 | 2017-07-12T08:30:56 | 2017-07-12T08:30:56 | 96,866,953 | 0 | 0 | null | 2017-07-12T14:21:37 | 2017-07-11T07:57:12 | HTML | UTF-8 | Python | false | false | 455 | py | import os
import psycopg2
import urllib
# Database connection string
# DATABASE_URL=postgres://user:password@host:port/database
urllib.parse.uses_netloc.append('postgres')
url = urllib.parse.urlparse(os.environ.get('DATABASE_URL'))
connection_data = {
'dbname': url.path[1:],
'user': url.username,
'host': u... | [
"GreywindGit@users.noreply.github.com"
] | GreywindGit@users.noreply.github.com |
901575547e133ec65da0dc673dc742585f27de73 | e70432549addc22fb8158d5515e07b261340153c | /ProtoPixel/scripts/waves/Noise.py | 47c46f87611000deff2fb07fa6324981936f104e | [
"MIT"
] | permissive | ImanolGo/IngoLightAndBuilding | ff998f10a3fdb3636416640481f396a3f007be0d | 23bfce0633ad056b2db5eb62822dc30c331ba800 | refs/heads/master | 2021-01-25T13:41:45.869247 | 2018-04-12T11:26:23 | 2018-04-12T11:26:23 | 123,606,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,633 | py | from protopixel import Content
from openframeworks import *
import os.path
from tempfile import mkdtemp
content = Content("Noise")
side = 256
content.FBO_SIZE = (side,side)
shaderfile = content.add_asset('shader')
shader = ofShader()
temp_dir = mkdtemp()
frag_file = os.path.join(temp_dir,'s.frag')
vert_file = os.pa... | [
"yo@imanolgomez.net"
] | yo@imanolgomez.net |
cb456b71bb665743d0f76205cebc055b2afff359 | 7051c1463ae32b7a5ea50697a0b1f97a760431c0 | /Strings/Design_Door_Mat.py | 9c6b9ae80384a8dbc0bf3019c7db28bd57fa4411 | [] | no_license | mukherjeeritwik3/HackerRank-Solutions-python | 15de2bcd56d9f0e072f7913af9417ca1bebaf876 | 2978a23a78bdc4a2818c318afd778b04ca3cb5ba | refs/heads/master | 2022-07-10T08:24:06.197925 | 2020-05-13T10:52:32 | 2020-05-13T10:52:32 | 263,233,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | N, M = map(int, input().split())
for i in range(1, N, 2):
print(''.join(['.|.'] * i).center(M, '-'))
print("WELCOME".center(M, '-'))
for i in range(N-2, -1, -2):
print(''.join(['.|.'] * i).center(M, '-'))
| [
"noreply@github.com"
] | noreply@github.com |
c8a53968f8a9b7ca674b33705a8a3e2e2e7088f7 | 0909dd85eecccd7d908bdb235ce850e6b4dda8f9 | /02-program-flow/ranges.py | ab760cd4e7b9c6d680b42b261b43eb1520ac4fab | [] | no_license | NeoGlanding/python-masterclass | 88895812ee5d43ecdd7e1145338bb1394bbbf443 | d60c964408d390b4c813d32983d05b145c8db30e | refs/heads/main | 2023-08-11T15:52:00.595729 | 2021-09-27T11:36:21 | 2021-09-27T11:36:21 | 408,334,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | for i in range(1,11):
print(i)
for i in range(10, -1, -1): #looping backwards
print(i)
for i in range(1,6):
print(f'Ini adalah sets ke {i}')
for j in range(0,11):
print(f'Ini adalah repetisi ke {j}')
| [
"neoglanding@protonmail.com"
] | neoglanding@protonmail.com |
f104bb6f8281c3057c60069d41856b978e1b533f | c46754b9600a12df4f9d7a6320dfc19aa96b1e1d | /tests/models/x_clip/test_modeling_x_clip.py | 5c602d3d3ef732ee29ccbde5441ab84d15c0e2f7 | [
"Apache-2.0"
] | permissive | huggingface/transformers | ccd52a0d7c59e5f13205f32fd96f55743ebc8814 | 4fa0aff21ee083d0197a898cdf17ff476fae2ac3 | refs/heads/main | 2023-09-05T19:47:38.981127 | 2023-09-05T19:21:33 | 2023-09-05T19:21:33 | 155,220,641 | 102,193 | 22,284 | Apache-2.0 | 2023-09-14T20:44:49 | 2018-10-29T13:56:00 | Python | UTF-8 | Python | false | false | 26,961 | py | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. 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 r... | [
"noreply@github.com"
] | noreply@github.com |
eaf536317ff38e57c7364db06474e7bcc194795b | 4b805cedcab65eab46e10b5b4b88eb0e0aba3c9c | /account/serializers.py | 0561eba5328e499248087aaf98ad6b814dcae27b | [] | no_license | ayiza/insta_project | 80f5c19326af486c0749646d9cef3703f8689c51 | ce509825c6308b782552bfd1ff639adec05098bd | refs/heads/master | 2022-12-02T11:06:42.069544 | 2020-08-25T05:35:35 | 2020-08-25T05:35:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,164 | py | from django.contrib.auth import get_user_model, authenticate
from rest_framework import serializers
from django.utils.translation import gettext_lazy as _
from account.utils import send_activation_email
User = get_user_model()
class RegisterSerializer(serializers.ModelSerializer):
password = serializers.CharFie... | [
"aleks.98.x.28@gmail.com"
] | aleks.98.x.28@gmail.com |
9aa75ed11b12907f0de6614609748aa8ad37e042 | c03a2369d346c3a289671349cb175dfaae6e8dda | /lambda.py | 5a43d5635ab8f44de4ba622282329354c30b8a2b | [] | no_license | yoliskdeveloper/basic_python | c5bdd9ce22f9b0183ecacb4064e8325d3211d46d | d2216db3edb938a929e5c922b06c2bf55c73a98c | refs/heads/main | 2023-05-19T22:50:10.826012 | 2021-06-11T10:58:36 | 2021-06-11T10:58:36 | 375,972,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | # anonymous function atau lambda
x = lambda a : a ** 2
print(x(10))
# dengan banyak argument
x = lambda a, b: a * b
print(x(12, 24))
x = lambda p, l, t : print('panjang persegi:', p * l * t)
x(12, 12, 45)
# lambda di dalam function
def my_funct(n):
return lambda a : a * n
mydoubler = my_funct(2)
print(mydoubler... | [
"yolisk.developer@gmail.com"
] | yolisk.developer@gmail.com |
382d3f7f4b1c2235c1b24d6616eff5dea08bb6e6 | 9cfbf2519d6df441389a80a125c33c5f5889c601 | /healthnetproject/users/migrations/0005_auto_20161205_2139.py | 8ac1bc00425806f952e4a581ffd9e187a722f214 | [] | no_license | BenAlderfer/HealthNet | a5c1e8c9fac2bc9e1eff7cd161828407fce85f72 | a4bab3559a04d6f151958b1c1087555e9b316eb3 | refs/heads/master | 2021-03-19T16:20:20.150735 | 2018-08-14T21:18:33 | 2018-08-14T21:18:33 | 81,754,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-12-05 21:39
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0004_patient_admitted_dr'),
]
operations = [
... | [
"benalderfer974@gmail.com"
] | benalderfer974@gmail.com |
150e7a95d89ecdee3ea16019ac75400cb370d44d | 506320a43335e453483ccbaab15504cd1856bad8 | /upload/migrations/0001_initial.py | 85fde439d64b1ebe450191619d3d1dc774f3362a | [] | no_license | zzdd1558/multiFileUpload | 8b008f1777afbaa807109202b346c56bf99db8aa | ff597f6330dd7bbd6bd9d9038e0a12f06f4fbe84 | refs/heads/master | 2020-03-19T01:24:02.049861 | 2018-05-31T06:42:44 | 2018-05-31T06:42:44 | 135,542,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | # Generated by Django 2.0.5 on 2018-05-30 10:11
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='UploadFileModel',
fields=[
('id', models.Au... | [
"root@p04-centos-lb06.novalocal"
] | root@p04-centos-lb06.novalocal |
53dfe5edd7e128c9d9c296ed09fd9eeddca65929 | 231eff40055f697a8d6f9fc20485ad13b9b0c4d1 | /src/pyco/device.py | 56a6486f9f9e92175d2a5614f0d5db281c0f04bf | [] | no_license | attdona/pyco | 58d0b8c2138b0c5008ea0659229c6eef9adb01ca | 747dd63685d21cd1d61a9f989305e8f430103226 | refs/heads/master | 2021-01-19T13:00:34.174343 | 2015-11-17T10:37:36 | 2015-11-17T10:37:36 | 39,942,273 | 1 | 1 | null | 2015-11-11T14:45:13 | 2015-07-30T09:23:31 | Python | UTF-8 | Python | false | false | 51,642 | py | # coding=utf-8
'''
Created on Mar 15, 2011
@author: Attilio Donà
'''
import sys
import os
import re
import time
from mako.template import Template
from mako.runtime import Context
from io import StringIO
from validate import Validator
from pkg_resources import resource_filename, resource_string, iter_entry_points #@Un... | [
"attilio.dona@gmail.com"
] | attilio.dona@gmail.com |
45253f3f15ff6abade75f9c34143694a16c567d5 | 742478601715c8010650a3daf36623d84eaead56 | /Personal_space/utils/YTX_SDK/CCPRestSDK.py | 52d3970c5af756c9ded207b5f7e73a4ebd941f78 | [] | no_license | yuanzheng0922/My_Blog | 4b4450f7a917cd2a11d9cbb940e2b559e96a8a10 | c732f7c1ef305ac4bbbe82bde885b4f5317fb9e2 | refs/heads/master | 2020-03-14T03:36:48.271945 | 2018-05-03T16:53:11 | 2018-05-03T16:53:11 | 131,423,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,306 | py | #-*- coding: UTF-8 -*-
# Copyright (c) 2014 The CCP project authors. All Rights Reserved.
#
# Use of this source code is governed by a Beijing Speedtong Information Technology Co.,Ltd license
# that can be found in the LICENSE file in the root of the web site.
#
# http://www.yuntongxun.... | [
"yuanzheng0922@163.com"
] | yuanzheng0922@163.com |
78f611b8d4b8750cab5741821716162ad2583890 | 0670d89e5d7b91d86b181e0b6cfdbef8b3b9e9e6 | /p2/components/quota/exceptions.py | bdc46ece3b3237860e9d62cf8e192515e2818382 | [
"MIT"
] | permissive | BeryJu/p2 | dfe570afb420843033e519350f5b89e992878a6b | 80b5c6a821f90cef73d6e8cd3c6cdb05ffa86b27 | refs/heads/master | 2020-12-04T01:21:21.197822 | 2019-08-29T16:02:21 | 2019-08-29T16:02:21 | 231,549,415 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | """p2 quota exceptions"""
from p2.core.exceptions import BlobException
class QuotaExceededException(BlobException):
"""Exception raised when ACTION_BLOCK is selected."""
| [
"jens.langhammer@haufe-lexware.com"
] | jens.langhammer@haufe-lexware.com |
e679d27a9d4dedf51b36d0bae5283472e685e8fd | 15a60dec097cf03a1fd304979f2aea8ff49a786b | /CalculateBox.py | 8d8c54d39a49ee34a86df0a12bbd4b5096fc249f | [] | no_license | Nyxeka/Various-Scripts | 556c0a4e766ef2bd1003b581916cd4655328378c | e664cf6d7bc1b7011c3c9ca6647a9546aa659210 | refs/heads/master | 2021-06-03T10:30:21.810846 | 2019-09-06T14:11:26 | 2019-09-06T14:11:26 | 18,566,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,205 | py | """
By Nicholas Hylands
This program was created to solve the 9-box problem:
[ ][ ][ ]
[ ][ ][ ]
[ ][ ][ ][x]
we need to fill this up so that each row and column in the middle are the sum of their
respective adjacent numbers on the outside.
A possibility for the question was considered so that 1,1 and 1,2 would ... | [
"me@nickhylands.com"
] | me@nickhylands.com |
711320ebe92a86224c24614f559ba81626a159bc | a357331b095f29e6cbe81ceb4fa17e2768b87415 | /pycc | d76aa5e046c7b25011ab626bf45aedfba511a257 | [] | no_license | IndianBoy42/single-file-cxx | 43597b0ac490cf16bfa6531a45e8337fe9d82b80 | 1cee2d396fc622792699dd7f5ec79fb8d1d0c537 | refs/heads/master | 2023-03-22T22:28:33.159831 | 2021-03-01T13:53:07 | 2021-03-01T13:53:07 | 343,407,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,341 | #!/usr/bin/env python
import click
import subprocess
import watchgod
import shutil
from os import path, makedirs
def do_compile(compiler, output_exe, srcfile, opt_level, std, native=True, openmp=False, eigen=False, blas=False, gtest=False, gbench=False, pthread=False, checkonly=False):
build = [compiler, srcfile, ... | [
"amedhi@connect.ust.hk"
] | amedhi@connect.ust.hk | |
33ecb460f9446f7511b78064220e3249008e7215 | b6c3dd30eebc78233f9b36065290c53bd299691f | /python/asyncore/simple_chat.py | 4ece2b32a7bc17606099f53c461a62ca099938d7 | [] | no_license | qiurenping/tiger | 9bc54594b9d8ef4a4cfc6b92e058df46fb498982 | ddcb1d303922d267a972db6e72bd4a3294a6ab9c | refs/heads/master | 2022-07-27T15:55:01.257040 | 2020-03-15T10:49:14 | 2020-03-15T10:49:14 | 148,075,253 | 0 | 0 | null | 2022-06-17T02:56:06 | 2018-09-09T23:42:25 | HTML | UTF-8 | Python | false | false | 1,825 | py | from asyncore import dispatcher
from asynchat import async_chat
import socket, asyncore
port = 5005
name = 'TestChat'
class ChatSession(async_chat):
"""
一个负责处理服务器和单个用户间连接的类
"""
def __init__(self, server, sock):
# 标准的设置任务:
async_chat.__init__(self, sock)
self.server = server
... | [
"247808311@qq.com"
] | 247808311@qq.com |
7159e600941904c0d1c03e507685ace64c206e55 | 8310be80fd8ac8ef164e9350b7f58bbb00161e07 | /Python_apps/Dojo_ORM/Dojo_Ninjas/apps/DN_app/apps.py | 73d9b88af16dac2f6b1bccc35cccd4be9ebcafa6 | [] | no_license | dkoom20/Dojo_projects | a5c582f2de321e36eb97b555f3b08987dcb57fb5 | 97bcd56d853f80632ec2b16588f5d32d399e69de | refs/heads/master | 2020-05-03T01:23:16.821953 | 2020-04-13T23:40:57 | 2020-04-13T23:40:57 | 178,335,966 | 0 | 0 | null | 2020-04-06T14:29:57 | 2019-03-29T05:06:14 | C# | UTF-8 | Python | false | false | 151 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class DnAppConfig(AppConfig):
name = 'DN_app'
| [
"dkoom20@gmail.com"
] | dkoom20@gmail.com |
f230294c1cafff1fcef138b41536276f674af034 | 1710616222b4c9e1accb7880159fa449fb5438ef | /app/celery.py | 023c30ec9e185f0c7262e3d1db86aa9f5687a24b | [] | no_license | yassiommi/Shekarchi | 256b754c67017afe6db9dab2100c8db19e7b3e39 | 8a2ff69a4c0bf82d5696cb66b3cabe3a2ffd23c5 | refs/heads/master | 2020-04-12T23:13:27.817055 | 2018-12-26T12:35:23 | 2018-12-26T12:35:23 | 162,811,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | from celery import Celery
celery = Celery('Shekarchi', broker='redis://localhost:6379/0',
backend='redis://localhost:6379/0',
include=['app.api', 'controller'])
import logging
from celery.signals import after_setup_logger, after_setup_task_logger
def handle_logs(logger=None,loglevel=logging... | [
"yassi.ommi@gmail.com"
] | yassi.ommi@gmail.com |
c789dc1e93da4961b9621b7bb0212cfe1e5ad4fe | 88efda89a4aa923079e89ea53c4eaa13522d1bfe | /模块/函数处理/生成器.py | 6655143ebfd5910819ca4720fc95a69a949a575f | [] | no_license | gm332211/workspace_p3x | fab5132107863ae26ed079774d2c80883e187266 | 33c106cd069962df8e2ab99b552bfd9288530f1a | refs/heads/master | 2021-04-12T12:05:16.716708 | 2019-01-29T09:02:28 | 2019-01-29T09:02:28 | 126,682,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 648 | py | #coding=utf-8
#Author:gm
a=[i*2 for i in range(10)]#生成表达式
b=(i*2 for i in range(10))#生成器
print(a)
print(b)
#生成器的特点
#优点:不占用内存空间,生成速度快,
#缺点:不能切片,只能保存当前值,前值不能获取
#调用方法
print(b.__next__())#只唤醒
print(b.send(1))#唤醒并发送数据
#函数生成器
def func(x):
count=0
while count<x:
yield count #保存当前函数的中断状态(断点)
count += 1... | [
"1172848156@qq.com"
] | 1172848156@qq.com |
5e27ad938993d694e6e4a8bc5c3c17e538ad3405 | 9440b127e5743c0f2d29a15936890432d43864b9 | /setup.py | 91654895ca7c177a16fb5ae2e8c82f82b1f35799 | [
"MIT"
] | permissive | olufekosamuel/scrumy | 2b8d3ef78ca73a37a55916dd9ee0b912c6886e98 | 8d93794bb04a3b3ec76ae41ae685f4e2c7b55730 | refs/heads/master | 2020-03-21T08:36:05.040862 | 2018-06-22T22:37:57 | 2018-06-22T22:37:57 | 138,353,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | import os
from setuptools import find_packages, setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.read()
setup(
name ='olufekoscrumy',
version='1.0',
packages=find_packages(),
include_package_data = True,
license = 'BSD Lincense',
description = 'Scrum... | [
"noreply@github.com"
] | noreply@github.com |
cd799ec1b3e0d73e7ad2cf47d2e6ec201cf3a548 | ef85e46a469a9a7f7e4a5f15293093f3cc092bfd | /webscrap_intro.py | 658435daf9d7b63b0b4432148a58797f0f5addcf | [] | no_license | tracine3636/Barebone-Webscrapping | 5ad85e5c9074f93e566f7b171be5fa7ee2b0f143 | ea4419c4faf0fe181c9be2d9f2180cb772d97a83 | refs/heads/main | 2023-01-30T07:38:27.616151 | 2020-12-05T23:51:41 | 2020-12-05T23:51:41 | 318,913,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | import requests #pip3 install requests
import bs4 #beautifulsoup
res = requests.get('https://learncodeonline.in')
type(res) #this records the data from the following website
#then type the following
res.text
| [
"noreply@github.com"
] | noreply@github.com |
cc283b9b4b09f6bf5595826d7c51710a2bbd1948 | b72dbc51279d3e59cb6410367b671f8a956314c1 | /프로그래머스/그외/1844_게임맵 최단거리.py | 0aa107ad05fc1b98b72ecda8ab28d2ebc0eba2d7 | [] | no_license | ddobokki/coding-test-practice | 7b16d20403bb1714d97adfd1f47aa7d3ccd7ea4b | c88d981a1d43b986169f7884ff3ef1498e768fc8 | refs/heads/main | 2023-07-08T15:09:32.269059 | 2021-08-08T12:19:44 | 2021-08-08T12:19:44 | 344,116,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,399 | py | #https://programmers.co.kr/learn/courses/30/lessons/1844
from collections import deque
def solution(maps):
answer = 0
dx = [1, -1, 0, 0] # 순서대로 동, 서, 남, 북
dy = [0, 0, 1, -1]
visit = [[-1] * len(maps[0]) for _ in range(len(maps))] # 거리 측정 및, 방문을 확인하는 visit 배열
visit[0][0] = 1 # visit이 -1이면 아직 방... | [
"44228269+ddobokki@users.noreply.github.com"
] | 44228269+ddobokki@users.noreply.github.com |
ccce96391f179171085d48df2853759a97636189 | 13c599a48f0b596c314c7c570f47756fd97a2b92 | /media/capture/capture.gyp | b634f9566ebee0fbbfb564a38d48aab581a59d5b | [
"BSD-3-Clause"
] | permissive | qichanna/chromium | a5e3d44bda4bd6511e090e25263f5de94dbfe492 | 458d956db161377610486b7c82a95fc485f60b9b | refs/heads/master | 2022-11-13T00:50:48.147260 | 2016-08-01T23:23:16 | 2016-08-01T23:28:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,219 | gyp | # Copyright 2016 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.
{
'variables': {
'chromium_code': 1,
'capture_sources': [
'capture_export.h',
'content/animated_content_sampler.cc',
'content/ani... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
598036c5cbc32b195db0574e70bda866e86cfe51 | 4cf0a4df69549c0c813fdb5f1c651e6a97e8106d | /nudgebot/statistics/__init__.py | 825f32b9c7849afc8108a5903be3f0e5e9c1fbbb | [
"MIT"
] | permissive | RedHatQE/Nudgebot | d9ee6208b04df21b2fb198e631bf3e1eb60605cc | 4cf6cf1fe975a9002299f0460873c0f21bc8d414 | refs/heads/master | 2020-03-07T17:33:31.905560 | 2018-05-01T11:12:39 | 2018-05-01T14:10:45 | 127,614,644 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | from functools import partial
from nudgebot.utils import collect_subclasses
from .base import Statistics
from . import github
collect_statistics_classes = partial(collect_subclasses, cls=Statistics, exclude=collect_subclasses(github, Statistics))
| [
"gshefer@redhat.com"
] | gshefer@redhat.com |
75cbe17b9e21f9d61fdbc637f95b2fb013bb08e2 | bf1a72d104b3ed3c5504abbc8946bb06f3777091 | /gym_novel_gridworlds/envs/__init__.py | 2cdedfbbb0840bc3295859156ead570fa6b511f6 | [] | no_license | shukla-yash/Low_fidelity_RL_project | aba93853b83d6001e976d4568fefdaa69d2d4d37 | 8f56d2557f8fec29199cd258556a60632fa35689 | refs/heads/main | 2023-02-03T01:55:45.858668 | 2020-12-16T18:41:46 | 2020-12-16T18:41:46 | 320,923,807 | 0 | 1 | null | 2020-12-21T23:15:09 | 2020-12-12T21:04:50 | Python | UTF-8 | Python | false | false | 82 | py | from gym_novel_gridworlds.envs.novel_gridworld_v0_env import NovelGridworldV0Env
| [
"yshukla@wpi.edu"
] | yshukla@wpi.edu |
9e54190950acc84485189e281118b49d3e7fe0b5 | e3174989e0622ce0cac3b17660a1d05ed2bac99a | /tempCodeRunnerFile.py | c26a85585f098ac3e6429e0c8c781446f4e79857 | [] | no_license | vipulsharma1204/project | bb607a047cd562c54cb19846e8cac09f0df7c26d | 13f2a4f2bdb0e4983572ad5d3ddeb4c99d858c38 | refs/heads/master | 2023-06-12T12:31:02.047308 | 2021-07-05T14:43:30 | 2021-07-05T14:43:30 | 372,617,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39 | py | for i in range(9,-1,-1):
# print(i) | [
"sharmavipul817@gmail.com"
] | sharmavipul817@gmail.com |
c5be65667ea897a3b1195fc4a0a2b71215b22b8f | 179480a17cee927cefda3653297da57e840343b6 | /FilePython.py | 6e32a030481d1c5821c259ab7a693caa528d3bfb | [] | no_license | sarikasp/Email | b968596be52b5a62d4471b6c26ca45180f1ec9ff | bc7c0e1148c8c635160eb5ac7b03d533951ee7e4 | refs/heads/main | 2023-03-17T16:55:25.861584 | 2021-03-05T16:41:11 | 2021-03-05T16:41:11 | 344,870,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | import sys, re
d = {}
for j in zip(*[re.split("\W+", open(sys.argv[1], 'r', encoding="utf-8").read().lower())[i:] for i in range(int(sys.argv[2]))]):
d[j] = d.get(j, 0) + 1
[print("".join(k)+""+str(d.get(k))+"\n")for k in sorted(d) if d.get(k) == int(sys.argv[3]) and re.search("^\w{"+sys.argv[4] + "}(.+)? \w {... | [
"pansaresarika98@gmail.com"
] | pansaresarika98@gmail.com |
86dde494b8f0e26a9330333684d216a6b0e648ac | 18f1867d348d48c185f529d81056a9070fa72645 | /Chapter 9/2-1-9-3 min_run.py | 9ea1ebb45231890c7698963f432b008184eaa2dd | [] | no_license | ParkSooYeong/2-1-Data-Structure | 600bbed9ad81b9394ce9e02940375c763aa90c35 | 91421827aab978c96aae9646b36b4c954f0448e9 | refs/heads/main | 2023-05-10T17:44:50.246178 | 2021-05-28T03:45:07 | 2021-05-28T03:45:07 | 341,569,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | ### SKU CoE ITE - ParkSooYoung ###
### Grade 2 , Semester 1 , Chapter 9 , Number 3 ###
def min_run_len(N):
r = 0
while N >= 64:
r = r | (N & 1)
N >>= 1
return N + r
| [
"noreply@github.com"
] | noreply@github.com |
59539427e8a8ae0da55f6d20ad3d5fad4fbee857 | 8a730eab7e9cd6f721e7897da21f92436513a689 | /Read_mockra | 3dc3e5c3d47a5d42443e86dda71b7aa98ae4ca06 | [] | no_license | hugoas/mockra | 79265915a1809b1226efc5d12b7eb704aec64a14 | 2117a086fd7c7378967bf04f333739c88e8e760d | refs/heads/master | 2022-12-15T08:03:18.935290 | 2020-09-16T20:54:09 | 2020-09-16T20:54:09 | 292,933,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Sep 4 14:28:26 2020
@author: hugosouza
"""
import pandas as pd
import m_ockra
from sklearn.model_selection import train_test_split
from sklearn.metrics import roc_auc_score
#read csv file
dataset = pd.read_csv('bupa.csv', header=None)
rows, columns ... | [
"hugo.souza82@gmail.com"
] | hugo.souza82@gmail.com | |
6fc4ec46dbb91bf68830b9ff84ab4c4ae12b5f74 | 19bf3030d14e205bce57e0ad7e6df4266300054e | /python_repo/QUBEXP/qexperiment.py | dabaade7cb35cfe4136c5e0031fec1c1f0ceed80 | [] | no_license | phani061989/RF | 739b891386bbeac9df339cd13055a39a5565f117 | 7c41b75d8375def56b30d3e9d0a6c8ae6acb6999 | refs/heads/main | 2023-04-12T03:50:08.351768 | 2021-05-06T07:26:15 | 2021-05-06T07:26:15 | 364,825,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,205 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Sep 11 16:00:48 2018
@author: User
"""
from .UtilityFunctions import *
import numpy as np
import DataModule as dm
import time
from UtilitiesLib import progressive_plot_2d,filetodictionary
import matplotlib.pyplot as plt
import IQCALIBRATION
from PULSE import Pulse,Sequence
... | [
"muppalla.phaniraja@gmail.com"
] | muppalla.phaniraja@gmail.com |
a7f8d57ddb57e6c3f39dbb2124b6aab55c3e00ed | a6a03f3ffe7e8516bd8b442ea662ad74052f5688 | /jobs/examples/ex5_copy_to_redshift_job.py | 27a7aa9a10389cdea463c4d9b1346cbcacf49b08 | [] | no_license | tiredoftools/pyspark_aws_etl | 9e2bc507ff75ad76015ef23174a8c8c095d7f3e4 | a554f1991b091760c0ee4402ddc45151cf673290 | refs/heads/master | 2022-12-04T05:55:28.188860 | 2020-08-23T16:13:49 | 2020-08-23T16:13:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | from core.etl_utils import ETL_Base, Commandliner
from sqlalchemy import types
class Job(ETL_Base):
OUTPUT_TYPES = {
'session_id': types.VARCHAR(16),
'count_events': types.INT(),
}
def transform(self, some_events, other_events):
df = self.query("""
SELECT se.sessio... | [
"aprevot@thehotelsnetwork.com"
] | aprevot@thehotelsnetwork.com |
bbd1ae72d35375d2e72bc4586a6dfe961fa2726d | f035ef6beb8586d60e584105e9dba00573dfaf5e | /tcp/client.py | 1a8b0317f23f65acc809e0975ff395c32ec2c289 | [] | no_license | reisnobre/CET098 | ecc20cdca97693e7d7edda367e5e704ce226a433 | 2d997fc5a614d787e2d5891def32c097c3e16ec6 | refs/heads/master | 2022-11-25T13:25:15.709174 | 2020-07-30T11:52:35 | 2020-07-30T11:52:35 | 283,759,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | import socket
import io
HOST = '127.0.0.1'
PORT = 9009
CONN = (HOST, PORT)
ALLOWED_METHODS = ['GET', 'POST', 'PUT']
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server.settimeout(2)
server.connect(CONN)
print('Server ready at {}:{}'.format(HOST, PORT))
print('Inform connection method and message as i... | [
"eduardo.reisnobre@gmail.com"
] | eduardo.reisnobre@gmail.com |
dac95d4e171ff68dc333912772c6c8dd3bfe73ec | 24cbfefc98c5c34dc2d29021889c06d40734108d | /LeetCodeEasy/MajorityElementInList.py | 93845e38f332f601bd9ee8fba4ad43a09eb83a59 | [] | no_license | surmayi/CodePython | 6bbf5967de9b72aa6e8915725fda53d6c3d82fc5 | c0dd25471e34a2c7ce2d1ce6a10dbd6e0f7042f1 | refs/heads/master | 2022-05-16T11:59:39.289329 | 2022-05-02T19:33:48 | 2022-05-02T19:33:48 | 234,530,224 | 0 | 0 | null | 2020-06-05T18:48:33 | 2020-01-17T10:55:34 | Python | UTF-8 | Python | false | false | 296 | py | def majorityElement( nums):
setnum= set(nums)
check = len(nums)//2
for i in setnum:
c=0
while(i in nums):
nums.remove(i)
c+=1
if(c>check):
return i
majorityElement([2,2,1,1,1,2,2]) | [
"surmayi7@gmail.com"
] | surmayi7@gmail.com |
869f7c920d278ff777f63b8b1715c4a493ae22b4 | a3be3d5f13c7831d21b23c6fdc264d45fb9448a1 | /catkin_ws/src/action_server/src/sis_arm_pick_and_place_action.py | 6ab20c6d17240871da1fba020b564b80bcd3e0c3 | [] | no_license | VIMO-Robotics/mmbot | 8a70f7ee7b074c384883ec0200cf2b624c37dfe2 | dc004f2b870bf86798d9e1d06f1c8a0c47a4c060 | refs/heads/master | 2020-06-25T10:42:34.580709 | 2019-09-09T04:47:50 | 2019-09-09T04:47:50 | 199,286,782 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,032 | py | #!/usr/bin/env python
import sys
import copy
import rospy
import moveit_commander
import moveit_msgs.msg
from geometry_msgs.msg import PoseStamped, PointStamped
from std_msgs.msg import Float64, Bool
from action_server.msg import block_pick_and_placeAction, block_pick_and_placeResult, block_pick_and_placeFeedback
impor... | [
"andy19970307@gmail.com"
] | andy19970307@gmail.com |
0146feeb837e36370f62c42e74d38532382cc87f | 7ca2ad45e2726c4bf2b30ce37d6dc552ef5590cc | /app/models/wish.py | 63fbbc50a6cf6b7ab4d21d787ae747fc8fdb8412 | [] | no_license | yangyangmei/fisher | 98330583848f3519dfb0d5a7cde72a4c93df4a97 | f4034935070656b4e523cbb2f99ce2599e453800 | refs/heads/master | 2022-12-15T09:07:06.866679 | 2018-10-06T08:54:17 | 2018-10-06T09:08:06 | 151,822,075 | 0 | 0 | null | 2022-12-08T02:59:47 | 2018-10-06T08:58:49 | CSS | UTF-8 | Python | false | false | 1,540 | py | """
created by yangyang on 2018/10/2.
"""
from app.models.base import Base,db
from sqlalchemy import Column, Integer, String, Boolean, func
from sqlalchemy.orm import relationship
from app.spider.yushu_book import YuShuBook
__author__ = "yangyang"
class Wish(Base):
__tablename__ = "wish"
id = Column(Inte... | [
"yangman_011088@163.com"
] | yangman_011088@163.com |
a2484349f338d1e863be00b2f6d439cc5ce08161 | 64e7b148557ba53c38d481f1e7615cafad57fded | /potform/apps.py | f52e9b4a1a49216b25e8beff527e32a81e2415a3 | [] | no_license | toma1031/ptoform | 0bc406d61e92851e627a4b924a8828e6971c093f | 1728f8da77e64d00796909af42f606ae577de10e | refs/heads/master | 2023-04-23T10:22:54.171645 | 2021-05-21T04:07:56 | 2021-05-21T04:07:56 | 360,765,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | from django.apps import AppConfig
class PotformConfig(AppConfig):
name = 'potform'
| [
"akinoritoma@appletoma.home"
] | akinoritoma@appletoma.home |
9558078b495c9f41b5bcc8fde64f93bfb7668f33 | ec87c361be4a2f9f842695b6a6e8601ebd735e83 | /GuessNum.py | ee225ea9d692c0e4fc54bd50da1e7441a632581c | [] | no_license | heheddff/python2018 | 357d51bee7ea39f6a1df82101fb49c1568250e24 | 77a240dd155f679fffe33b62df57f689a8c85082 | refs/heads/master | 2020-03-27T23:13:38.789249 | 2018-12-08T14:55:21 | 2018-12-08T14:55:21 | 147,302,979 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | #GuessNum
import random as rd
target = rd.randint(1,1000)
count = 0
while True:
try:
guess = eval(input("请输入一个猜测的整数(1至1000):"))
except:
print('输入有误,请重试,此次不计入猜测次数!')
continue
count +=1
if guess > target:
print("猜大了")
elif guess < target:
print("猜小了")
else:
... | [
"qq2003qq@126.com"
] | qq2003qq@126.com |
372dc25a16d16ee0e086ea76423727bf3d6b3273 | 63ff51263313f5d5df0609578939c88e09cd9f0e | /clustering.py | fdfdb0b19a249e8ec7838b81bf4f76131ea60ac8 | [] | no_license | ritikamangla/FakeBot | 0bc307e74aa208f5135914a11e73665787eb2597 | 7017daa451e2d9bc30b2235c0dcfa5e22a74a837 | refs/heads/master | 2021-02-06T23:47:02.948953 | 2020-02-29T13:20:52 | 2020-02-29T13:20:52 | 243,957,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,220 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import datetime
from sklearn.preprocessing import StandardScaler , OneHotEncoder ,LabelEncoder
from datetime import timedelta
from sklearn.decomposition import PCA
dataset = pd.read_csv('FinalDS_AdditionalFeatures.csv')
x=dataset.iloc[:,... | [
"noreply@github.com"
] | noreply@github.com |
c030c9d9706f342259a891c2d96bb611cefde6a7 | e3e626951eeb1d571208f7483252024965b95d4a | /test1.py | 726c5f56f41b395ca0e2ce3603fd40020bdd4045 | [] | no_license | abdul-malik360/Flask_EOMP | 883866d519d50295719a93851a5a5d46a0f3ae87 | 984e8fe0b4d43de70a01ad131a7e09ef5b0fab3d | refs/heads/main | 2023-07-18T04:24:36.376501 | 2021-08-17T10:15:11 | 2021-08-17T10:15:11 | 391,969,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,729 | py | import unittest
from app import app
class Testing(unittest.TestCase):
def test_registration(self):
test = app.test_client(self)
response = test.get('/api/register/')
status = response.status_code
self.assertEqual(status, 405)
def test_show_users(self):
test = app.test_... | [
"abdulmalikmohamed360@gmail.com"
] | abdulmalikmohamed360@gmail.com |
e98d8dcea92717dc00bba19ef5d887b8d521e12e | ba949e02c0f4a7ea0395a80bdc31ed3e5f5fcd54 | /problems/dp/Solution115.py | aec8a435c4f15acf75a0391afcaed2b0f9481f66 | [
"MIT"
] | permissive | akaliutau/cs-problems-python | 6bc0a74064f6e9687fe58b13763da1fdf2e1f626 | 9b1bd8e3932be62135a38a77f955ded9a766b654 | refs/heads/master | 2023-05-11T22:19:06.711001 | 2021-06-04T11:14:42 | 2021-06-04T11:14:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,170 | py | """ Given two strings s and t, return the number of distinct subsequences of s
which equals t. A string's subsequence is a new string formed from the
original string by deleting some (can be none) of the characters without
disturbing the relative positions of the remaining characters. (i.e., "ACE"
is a su... | [
"aliaksei.kaliutau@gmail.com"
] | aliaksei.kaliutau@gmail.com |
d92bc04455151b4829c7d6a408c43e918f798952 | fb7e610d5f2beaba3547eced6ced5f1ebfd5ac00 | /mult.py | 7119ca94a82fb3693e62751cea63ecd592a94be3 | [] | no_license | Prachithakur27/Python- | c8d048820016a450be4a1747385955902b27fcc8 | 03811ed3ae808337bbe6e9e5761b027fa10540b3 | refs/heads/master | 2020-11-29T21:27:52.763096 | 2019-12-26T07:48:46 | 2019-12-26T07:48:46 | 230,219,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | #importing the multiprocessing module
import multiprocessing
def print_cube(num):
"""
function to print cube of given num
"""
print("Cube: {}".format(num * num * num))
def print_square(num):
"""
function to print square of given num
"""
print("Square: {}".format(num * num))
if __name__ == "__main__... | [
"noreply@github.com"
] | noreply@github.com |
559074d54fc53ee940a2dd8ca8070e5013bb619f | 35dc527419dc88876faef014f0fd358b5bdda892 | /PySendImg/ImgSending.py | a53bde3813b1f75330f240edb70be5eb2a912617 | [] | no_license | manoon/pyapp | 175955f2ca9be0f741d553c09bbaa23a05b94c8a | 5335053d4714a23a51ca7f3741ba36adeb01a2ae | refs/heads/master | 2021-03-13T00:10:59.965563 | 2014-05-24T12:10:03 | 2014-05-24T12:10:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,776 | py | from PyQt4.QtGui import QIcon,QLabel,QPushButton,QMessageBox,QTextEdit,QApplication,QGridLayout,QWidget,QStatusBar
from PyQt4.QtCore import QTime,QTimer,SIGNAL,QDate
import os,sys,ftplib,time
class ImgSending(QWidget):
def __init__(self,parent=None):
super(ImgSending,self).__init__(parent)
self.SetupUi()
self.ru... | [
"Administrator@icaker.(none)"
] | Administrator@icaker.(none) |
735ca579689a97e8d2ac5d786f6291ac32bc650d | 5116d59c38fbfdcf74467cd555cdd813ab9b798c | /mapEmnerToText.py | 017c9559792c8deffd5f00129dbd138ce5ba8799 | [] | no_license | nb-sommerprosjekt/emneord-analyzer | 3b6949e6c59ed178ba06fc9f54be1c9296c167ad | b80755c16d1eb23f75a3e158381a54f7039250c4 | refs/heads/master | 2020-04-01T15:50:36.895313 | 2018-10-17T11:03:37 | 2018-10-17T11:03:37 | 153,354,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,663 | py | import os
from collections import Counter
from sklearn.preprocessing import MultiLabelBinarizer
import pandas as pd
def traverseBokDir(dirPath):
print("Henter inn stier til bøker")
filePaths = []
filenames = []
baseNames = []
txt_dict = {}
for root, dirs, files in os.walk(dirPath):
f... | [
"tensor@meta2.lx.nb.no"
] | tensor@meta2.lx.nb.no |
a919b3bfb71f42970b5e865a2740073fdbda5e34 | d69959a04e0a83ab54f5a642c88544258db40e50 | /Lesson2/2.1.py | df3b40d6849600ce42f57e2d7954861bf4f0d39c | [] | no_license | MSmirnov3517/Smirnov-Python | d18921e3c1bb1c32c4bb1db25a43f9df53e1863f | 40802feb77d7b7b5062010a6588105e9dca1ec52 | refs/heads/Lesson2 | 2023-02-23T19:01:37.018802 | 2021-01-20T14:10:17 | 2021-01-20T14:10:17 | 329,683,682 | 0 | 0 | null | 2021-01-25T16:57:46 | 2021-01-14T17:15:10 | Python | UTF-8 | Python | false | false | 69 | py | my_list = [1, 'test', 20.05]
for i in my_list:
print(i, type(i))
| [
"kroligne@gmail.com"
] | kroligne@gmail.com |
0230d57258e99d3d0229b48e6832adb4086a310f | 3762e1e9dcc74653eefc35010768a32fd2ab00d5 | /src/python/gui/render_mad.py | 513df97c1d3485960bea9a367e3e253a976628f0 | [] | no_license | HollisJoe/geometry-1 | 6d5d8ba69b006b2d0bb5b9128b94fdcbd4af3b82 | 1e1f3c3b0aec35e80313d9d1124a77f1e439f53e | refs/heads/master | 2021-06-14T16:38:37.744499 | 2017-02-02T14:20:26 | 2017-02-02T14:20:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,682 | py | #!/usr/bin/python
##
# @file render_mad.py
# @author Eric Turner <elturner@indoorreality.edu>
# @brief Will render the path from a .mad file
#
# @section DESCRIPTION
#
# Will read the given .mad file, parsing the path information
# will open a window showing the path
#
# import matlibplot
from matplotlib import pypl... | [
"elturner@eecs.berkeley.edu"
] | elturner@eecs.berkeley.edu |
255d98214bba91cb298d4a2ebf05b4f7fdbfad92 | 47f33149f7b300c6781f98d20be009a308198460 | /rhea_erpnext/config/docs.py | 61f91e8f444405be735a7b1d49371fbc66aeae67 | [
"MIT"
] | permissive | teddyseptiadi/Rhea-ERPNext | f67382c50be922d4e636b65acebe5c41850ce284 | 92a83d89f41565c148d94e3c86185b25a6684067 | refs/heads/master | 2020-06-26T14:13:24.704162 | 2019-01-29T07:08:27 | 2019-01-29T07:08:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | """
Configuration for docs
"""
# source_link = "https://github.com/[org_name]/rhea_erpnext"
# docs_base_url = "https://[org_name].github.io/rhea_erpnext"
# headline = "App that does everything"
# sub_heading = "Yes, you got that right the first time, everything"
def get_context(context):
context.brand_html = "Rhea E... | [
"vishaldhayagude09@gmail.com"
] | vishaldhayagude09@gmail.com |
600212451009ad393006697e56b58998e26de38d | b7f467ada857d862e9538f58c18398f65e24af98 | /samples/client/echo_api/python-nextgen/openapi_client/models/__init__.py | efec638ad0ba4c71068ac444511a47bf24c5fe68 | [
"Apache-2.0"
] | permissive | snebjorn/openapi-generator | 0ccb5c4671799a927e86faaed6449089e703d7e3 | e1719f2b7b1ec633e50bbe572e35854f6fad9dfd | refs/heads/master | 2023-06-19T00:09:29.044707 | 2023-03-17T08:02:27 | 2023-03-17T08:02:27 | 214,228,173 | 0 | 1 | Apache-2.0 | 2023-05-30T05:04:40 | 2019-10-10T16:08:27 | Java | UTF-8 | Python | false | false | 1,179 | py | # coding: utf-8
# flake8: noqa
"""
Echo Server API
Echo Server API # noqa: E501
The version of the OpenAPI document: 0.1.0
Contact: team@openapitools.org
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
"""
from __future__ import absolute_imp... | [
"noreply@github.com"
] | noreply@github.com |
d99e7d5c2e0d76e1e690d6d994bb7ceb29511efc | ee5b238ba8995b0aadf1837a1393cfc45326ad2f | /GraficoBoxplot.py | 24dfa3c00c05c0e0848315e69ef724420f5dae28 | [] | no_license | AndersonNobrega/Metrics | 354df13f4cc99da4e02695832a33bfddd94116d2 | a90b1dbf989fe7779b99185694ed37719936a2fe | refs/heads/master | 2020-05-21T00:35:33.308781 | 2019-10-23T14:39:07 | 2019-10-23T14:39:07 | 185,831,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,518 | py | import matplotlib.pyplot as plt
import csv
from os import makedirs
def ler_dados(arquivo):
lista1 = []
lista2 = []
lista3 = []
lista4 = []
lista5 = []
lista6 = []
cont = 0
with open(arquivo, "r", encoding="ISO-8859-1") as arquivo:
tabela = csv.reader(arquivo)
for linha... | [
"anderson.nobrega62@gmail.com"
] | anderson.nobrega62@gmail.com |
a92309f4c06a45e9fc8a12855d0fbe22d95c8feb | a0c53168a4bdcfb0aa917d6d2c602f0999443a10 | /projexui/widgets/xurlwidget.py | 40516a9749b83fb4e82b2ccb12a331191a731d1e | [] | no_license | kanooshka/DPS_PIPELINE | 8067154c59ca5c8c9c09740969bb6e8537021903 | df2fcdecda5bce98e4235ffddde1e99f334562cc | refs/heads/master | 2021-05-24T04:32:03.457648 | 2018-09-07T13:25:11 | 2018-09-07T13:25:11 | 29,938,064 | 3 | 2 | null | 2020-07-23T23:06:37 | 2015-01-27T22:26:01 | Python | UTF-8 | Python | false | false | 3,438 | py | """ Defines the XUrlWidget class """
# define authorship information
__authors__ = ['Eric Hulser']
__author__ = ','.join(__authors__)
__credits__ = []
__copyright__ = 'Copyright (c) 2011, Projex Software, LLC'
__license__ = 'LGPL'
__maintainer__ = 'Projex Software, LLC'
__e... | [
"kanooshka@gmail.com"
] | kanooshka@gmail.com |
7410be96f175b601a5548a754e1f957a04f1ac96 | 4db9fe916704bee4e6aac4abb2f9d8a358cf3beb | /fasta_strip.py | bbae29d34c756412705c10f7fbe47d645087cd60 | [] | no_license | calandryll/cmain_bioinform | 419f840c718b57bea04fb314ba84e89835766ccd | 56c8567e718329acac93df3dc6071922092a171c | refs/heads/master | 2021-01-18T21:29:59.324444 | 2012-11-14T01:37:41 | 2012-11-14T01:37:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,612 | py | #!/usr/bin/python -tt
# Pulls a range of sequences from large FASTA files.
# Any inputs with - or -- are optional and will default to certain values.
# Written by: Christopher R. Main, University of Delaware
# Last Updated: 09/08/2012
# Versions:
# 0.1 - Open fasta file correctly
# 0.2 - Pull record names and... | [
"calandryll@gmail.com"
] | calandryll@gmail.com |
f888c9b94e1bde631a9935f532c892b94ad13a65 | c1a27a70a3cbf74270a073ddb0dcb6dde7f222f0 | /src/rock_paper_scissors_cv/capture.py | 5993dc36ac1360105bcbacb1a974f7912d37b6c2 | [] | no_license | karosas/rock_paper_scissors_cv | ba9183a69e78b3f7d23b4d09e618244b33faa04b | b8a15e9613e03b10bafb444a5d9c3145d3676856 | refs/heads/master | 2022-11-16T01:26:53.401931 | 2020-07-20T18:59:09 | 2020-07-20T18:59:09 | 281,201,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,728 | py | import cv2
import numpy as np
import os
import time
from pathlib import Path
CAPTURE_INTERVAL_MS = 250
TRAIN_DATA_FOLDER_NAME = "train"
VALIDATION_DATA_FOLDER_NAME = "validation"
def current_milli_time():
return int(round(time.time() * 1000))
# Double texts for better contrast
def add_texts(frame, is_capturing... | [
"e.ausvicas@gmail.com"
] | e.ausvicas@gmail.com |
ed1a9f9656b9acbb48484d06b1a881f9b3cb183b | b781b2a178bef35090f4270ad834985ff882d0aa | /mictest/test_case/test_order/test_login.py | 19ae8dfbdceefdca3de5ab8e1460a8191972ab4f | [] | no_license | cjzimeng/mictest | d0ac19d9fb4105ecad6b563902f0dae709950a5c | efb65972799b3d8f65ecead568ce593d060a206b | refs/heads/master | 2023-01-22T17:01:50.492773 | 2020-12-02T07:46:15 | 2020-12-02T07:46:15 | 289,271,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | import json
import allure
import requests
from test_case.test_basic_data import *
#
# @allure.description("测试登录")
# @allure.title('测试登录用例')
# @allure.testcase('http://calapi.51jirili.com/dream/categoryList','登录用例地址')
# def test_login():
# r = requests.post(test_host+'/micro-service/relation/wx-user',
# ... | [
"443516246"
] | 443516246 |
1401a17efdbfb7b2ff484178a6944d5e373dd1f7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03488/s626861342.py | 65eae1c60abd7285830f846f3f83e1f7681f124f | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | s=input()
X,Y=map(int,input().split())
from collections import defaultdict
def solve(da,dp,G):
for i in range(len(da)):
tmp=set()
for j in dp:
tmp.add(j-da[i])
tmp.add(j+da[i])
dp=tmp
if G in dp:
return True
else:
return False
"""amax=0
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e87293f0dbca65cf9e8eb987d30bb7c5e8ed590e | 29b1b15e4fef90717ff7bf8b13ab9a23cdc17c51 | /finalproduct/testapp/migrations/0003_comments.py | 24bc341b3f011285e4bdec6c57d8b347120c9b42 | [] | no_license | deepawalekedar319/DjangoProjects | 93fe59812593a1e1b8f542c8c5b1642bc95f6da4 | 1780b703a3022ea17dc188ad98b0f17bb14fa12f | refs/heads/main | 2023-09-03T04:48:21.201822 | 2021-11-08T05:28:00 | 2021-11-08T05:28:00 | 425,706,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.17 on 2020-10-31 13:23
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('testapp', '0002_auto_20201027_1439'),
]
operation... | [
"deepawalekedar319@gmail.com"
] | deepawalekedar319@gmail.com |
cd6c3d056cf27f3082fac0bd37eca025145c9f9b | 540c849de98b01f6373908a95fea6b6b7bba997e | /PLS/PyFiles-Depricated/PLS_PCA+LDA_NMF.py | 10a8dde05e228f42ded8bde94875ee2804fc6bc4 | [] | no_license | ThiaraSana/BacteriaDetection | 42fd57c30f6f113029df880e348c1670e35de6ab | 3030d84905718bd49f7f42d03397476f741804aa | refs/heads/main | 2023-08-07T05:49:15.693046 | 2021-10-02T17:27:25 | 2021-10-02T17:27:25 | 405,360,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,165 | py | import glob
import os
import numpy as np
import pandas as pd
import sys
sys.path.append('/Users/sanaahmed/Desktop/mb-master')
import mb
from pylab import *
from matplotlib import pyplot
from sklearn import decomposition
from sklearn.decomposition import PCA
from sklearn.decomposition import NMF
from sklearn.discriminan... | [
"56861810+ThiaraSana@users.noreply.github.com"
] | 56861810+ThiaraSana@users.noreply.github.com |
eda145b24f8eb3a31944d716b1ce043274db0706 | bef0f2ddfcc4f7b7ef79638efba5848c13bdb6ad | /pu_cam.py | b3a805307302d7b76b12bc6b9ef9590854398899 | [
"MIT"
] | permissive | pranav083/puauto_login | b0d67528633b2a39e7b14132fb6040c30a5cf782 | 608ad1dc7dd98802e7356995dcfa9e4bf2881c81 | refs/heads/master | 2020-05-03T11:16:33.211744 | 2019-03-30T18:54:48 | 2019-03-30T18:54:48 | 166,466,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py |
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
import webbrowser
<<<<<<< HEAD
browser = webdriver.Firefox() #install
browser.get("http:\\bit.do/wifion")
time.sleep(2) #based on processor increase the time for initiallizing the browser
username = browser.find_element_b... | [
"noreply@github.com"
] | noreply@github.com |
811c54e32c59559195243cf283c1baeaf6bea67e | 41ede4fd3bfba1bff0166bca7aee80dcf21434c6 | /ayhanyalcinsoy/Desktop/xfce/addon/thunar-archive-plugin/actions.py | 105c7d47862ca22da89c73e94b0087b806747df5 | [] | no_license | pisilinux/playground | a7db4b42559a21cc72fd4c8649e0231ab6a3eb3c | e4e12fff8a847ba210befc8db7e2af8556c3adf7 | refs/heads/master | 2022-08-12T23:03:27.609506 | 2022-08-11T18:28:19 | 2022-08-11T18:28:19 | 8,429,459 | 16 | 22 | null | 2022-08-11T18:28:20 | 2013-02-26T09:37:11 | Python | UTF-8 | Python | false | false | 683 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt.
from pisi.actionsapi import autotools
from pisi.actionsapi import get
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
def setup():
... | [
"ayhanyalcinsoy@gmail.com"
] | ayhanyalcinsoy@gmail.com |
cbaef6ac7c24d922ac9efbcf3a1d34eaa3879b44 | c9fabaf57937634c893b159469bb8f63af238575 | /0x04-python-more_data_structures/101-square_matrix_map.py | 86b0494759b8dca33a4949512b8d1cccd1751fcc | [] | no_license | arturovictoriar/holbertonschool-higher_level_programming | 83c1f7ccd8b8b1d0b72c3a373c4358c3315071be | 1923f29921cb76b964ee5e618323f2f9520b25aa | refs/heads/master | 2022-07-31T08:25:40.616783 | 2020-05-14T20:35:19 | 2020-05-14T20:35:19 | 226,962,952 | 0 | 7 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | #!/usr/bin/python3
def square_matrix_map(matrix=[]):
return list(map(lambda j: list(map(lambda i: i**2, j)), matrix[:]))
| [
"1231@holbertonschool.com"
] | 1231@holbertonschool.com |
996902627b0c3db73ded129422f6fc258480bfdc | eadb3c1704acf1cc3a77b410e6dcc076595590d5 | /admin.py | fe307cea0ccd77312d4140ab7163d7df93961bd8 | [] | no_license | enmanuelar/finalblog | fff778d7fa31c80e91b5f38b5846fd05f6a56590 | 022e9c518b8f8b838d5e9e1ccc38bdd481644bd3 | refs/heads/master | 2021-01-19T00:25:10.161368 | 2016-08-02T23:35:10 | 2016-08-02T23:35:10 | 63,826,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,824 | py | import webapp2, logging
from main import *
from itertools import groupby
from collections import namedtuple
from json import JSONEncoder
def get_top_categories():
d = namedtuple('top_tags',['category', 'comments_count'])
entities = blogdb.get_categories_by_comments()
entity_l = [(e.category, e.post_id) for... | [
"ealmonterozon@gmail.com"
] | ealmonterozon@gmail.com |
5631077333222d3476b68d4a173ce9d25f7396be | caf8cbcafd448a301997770165b323438d119f5e | /.history/mercari/mercari_search_20201124184144.py | 21031f8d0dc5f3408e41cd1680d9f13d31082892 | [
"MIT"
] | permissive | KustomApe/nerdape | 03e0691f675f13ce2aefa46ee230111247e90c72 | aef6fb2d1f8c364b26d91bf8570b4487a24de69a | refs/heads/main | 2023-01-23T10:13:26.584386 | 2020-11-28T22:29:49 | 2020-11-28T22:29:49 | 309,897,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,776 | py | from selenium import webdriver
from selenium.webdriver.support.ui import Select
import pandas as pd
import re
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import PyQt5
import time
"""[Initial Settings]
初期設定
"""
options = webdriver.ChromeOptions()
options.add_argument('--headeless')
options.a... | [
"kustomape@gmail.com"
] | kustomape@gmail.com |
8d63e1cb3daea984971b86a7a544f1c3e00fa5b2 | 82247be0541795eb9f301fc29cca450dd2ea1ca8 | /aa.py | fd13a89550cabbd66751276139ece18276220f6c | [] | no_license | jinmyeonglee/practice_algorithm | 69318d4c32e5237ca227ceb3f7c6968fcd85513e | 8368d7c09dd569b859372cf0a7d4349f35203494 | refs/heads/master | 2020-06-05T15:16:19.062135 | 2019-06-19T06:18:10 | 2019-06-19T06:18:10 | 192,470,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | import sys
if __name__ == '__main__':
money = 20000
split = sys.stdin.readline().strip().split(' ')
check = False
for token in split:
distance = int(token)
if(distance < 4 or distance > 178):
print(money)
check = True
break
if(distance <= 40):... | [
"jinious1111@naver.com"
] | jinious1111@naver.com |
24f7094f592ca94921452121357c166599d46016 | baad3d4a636f824b62f4aa0e4d8ac21d27bdba73 | /Empire.py | 03e3ec40dc641b1881c6f510613c3e29d31057d9 | [] | no_license | LukeSiganto/EmpireBot | 38a5400af97616ac7ea6ac8f5be313dd89a4ed65 | 13858c01e6b84cd2cdc2f9d6e241637866d1cf4f | refs/heads/master | 2020-03-30T19:43:45.082540 | 2018-10-08T23:46:50 | 2018-10-08T23:46:50 | 151,555,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,719 | py | # Work with Python 3.6
import discord
import random
import string
import time
import sys
if sys.version_info[0] < 3:
raise Exception("Python 3 or a more recent version is required.")
client = discord.Client()
def randomLine():
global QuoteSend
QuoteSend = (random.choice(list(open('Quotes.tx... | [
"noreply@github.com"
] | noreply@github.com |
8ef26000770edf0c0c7b62bfd1c8c0ef5ce54bab | edc961c1a021ce34d9b426b1a76460687fa2e80e | /URI_Online/1009.py | 190555b31a128cdc5b21e5bcbdf0ddabc0f5412a | [] | no_license | JavierFSS/MySchoolProject | 0fc466a2597f0eb320720c0148ddeff3ac41aa24 | f989b1013829d5da83e0c3fffa3879e7c603ec9e | refs/heads/master | 2023-06-02T05:13:13.669548 | 2021-06-18T11:58:46 | 2021-06-18T11:58:46 | 274,874,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | a = input()
b = float(input())
c = float(input())
bonus = float(c * (15/100))
total = b + bonus
print("TOTAL = R$ %0.2f" %total)
| [
"javier.jimmy1982@gmail.com"
] | javier.jimmy1982@gmail.com |
43c459006813e5c6be8118e01dfcb2ed57d4728c | ba7d1913c4e279b6ab7a7f79e2e1e5c8a56b51af | /examples/arduino_threads.py | 6e7d869d8d3c703a02c412ee2f757c6712d0e66f | [
"MIT"
] | permissive | mitag/python-arduino-serial | 678002b370a043c2f89a9dc44578e6b8b94a211f | 6beccc099167a21595c84286a973347a3a903cbd | refs/heads/master | 2020-06-03T20:10:16.472382 | 2018-09-02T14:05:16 | 2018-09-02T14:05:16 | 191,714,920 | 0 | 0 | MIT | 2019-06-13T07:40:52 | 2019-06-13T07:40:52 | null | UTF-8 | Python | false | false | 2,110 | py | from __future__ import print_function, division, absolute_import
import time
import threading
from robust_serial import write_order, Order
from robust_serial.threads import CommandThread, ListenerThread
from robust_serial.utils import open_serial_port, CustomQueue
def reset_command_queue():
"""
Clear the c... | [
"antonin.raffin@ensta-paristech.fr"
] | antonin.raffin@ensta-paristech.fr |
538215aa0cc6b8084fff013b4fd1dac21131423c | 523f8f5febbbfeb6d42183f2bbeebc36f98eadb5 | /80_best.py | c500e3032fd796de2b2a3073cdc4baa3dbdbb67f | [] | no_license | saleed/LeetCode | 655f82fdfcc3000400f49388e97fc0560f356af0 | 48b43999fb7e2ed82d922e1f64ac76f8fabe4baa | refs/heads/master | 2022-06-15T21:54:56.223204 | 2022-05-09T14:05:50 | 2022-05-09T14:05:50 | 209,430,056 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | class Solution(object):
def removeDuplicates(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
n=0
p=0
pre=float("inf")
for i in range(len(nums)):
if nums[i]==pre:
if n==2:
continue
e... | [
"noelsun@mowennaierdeMacBook-Pro.local"
] | noelsun@mowennaierdeMacBook-Pro.local |
b76b81db5069d7990b3344efce198036913a8fa9 | 4d7d330630d4205bde47cbac5db115c68c179001 | /ejercicio_final_django/ejercicio_final_django/urls.py | b108bdb4d68e3d8b36adf0ce95df6c9cbce64a98 | [] | no_license | gafajardogr/CursoLeonEoiPythonDjango | 6d9bfa39e15f2e80d869b369b21de066856d674e | 1c630c750b4963c2634403b850b7c799797947f6 | refs/heads/master | 2021-09-03T05:10:49.440799 | 2018-01-05T21:47:05 | 2018-01-05T21:47:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,523 | py | """ejercicio_final_django 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='hom... | [
"malandro@gmail.com"
] | malandro@gmail.com |
64cfaf128c32f6121b1d5cd6194329ba27f2532b | c0792645c156cb9e20a1aa2b28c565150358bc6e | /apps/inmueble/migrations/0007_auto_20180413_2159.py | 67c3d2b9cf04f9cc969b9db636a4659a8eea6221 | [] | no_license | clioo/Praver | b22fd92886e0399845adb4366663cae6a7d7853b | 523f0d78e0a2039a5bae3e539c93e2c2415a0840 | refs/heads/master | 2020-03-11T12:38:54.272392 | 2018-06-28T18:24:21 | 2018-06-28T18:24:21 | 130,003,043 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2018-04-14 03:59
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('inmueble', '0006_imagenesinmbueble'),
]
operations = [
migrations.AlterField... | [
"jesus_acosta1996@hotmail.com"
] | jesus_acosta1996@hotmail.com |
02dcffa0f1904689cb6c05fe6bb8cf05cdf3fef8 | f2f4cb105681064fc2d0dcecf97471e06beb6947 | /mysite/blog/views.py | 205caff1b043ccbc92e82149df0a4f967671735c | [] | no_license | MansiLad/MyBlogApp | eab572b19469dcc329a6400f953f8534f143e5a3 | 76458750afb83f7d5c28ddf92b11ca6d5856f906 | refs/heads/main | 2023-02-16T22:47:27.174712 | 2021-01-20T17:46:12 | 2021-01-20T17:46:12 | 331,292,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,680 | py | from django.shortcuts import render, get_object_or_404
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from django.views.generic import ListView
from django.core.mail import send_mail
from django.contrib.postgres.search import SearchVector, SearchQuery, SearchRank, TrigramSimilarity
from t... | [
"noreply@github.com"
] | noreply@github.com |
9df488729a33c40b7f0a79805a0e490939c392cc | de06c4a1fb02fd23eadfc58c770d87edfd0a6d38 | /group_buying/payment/migrations/0002_auto_20200829_0923.py | da6c064bd2bf89bfec813229cb49073801216a4d | [] | no_license | saisantoshchirag/group_buying | c12dc0bf1882cf03d20e6865dd98105a28907f80 | 1d9fb28f99dfb9b085e43bb5429bde476680ffa7 | refs/heads/master | 2023-08-15T01:27:56.203321 | 2020-11-13T11:16:36 | 2020-11-13T11:16:36 | 267,057,651 | 0 | 1 | null | 2021-09-22T19:21:23 | 2020-05-26T13:58:14 | HTML | UTF-8 | Python | false | false | 1,038 | py | # Generated by Django 2.1.5 on 2020-08-29 03:53
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('payment', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='orders',
name='address',
),
... | [
"saisantosh.c17@iiits.in"
] | saisantosh.c17@iiits.in |
eca4633d060603bdcdb613e539c02efd7707de5b | 6d6b0055a240ec5ced9d6fb28013a5f21f70b36a | /build/lib/srg/spaces/tuple.py | 165344c626d7d0e57d51291d425cd441f5e4c80a | [] | no_license | xiaochen-salford/salford-robotics-gym | 189b2c741d1af0c67351c0ae2910052f8c76528b | 0d742be16aaef318a38403601177e4f0e12839a3 | refs/heads/master | 2022-11-16T03:27:54.583071 | 2020-07-14T12:57:58 | 2020-07-14T12:57:58 | 271,031,199 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,504 | py | import numpy as np
from .space import Space
class Tuple(Space):
"""
A tuple (i.e., product) of simpler spaces
Example usage:
self.observation_space = spaces.Tuple((spaces.Discrete(2), spaces.Discrete(3)))
"""
def __init__(self, spaces):
self.spaces = spaces
for space in spaces:
assert isins... | [
"anon.nry@gmail.com"
] | anon.nry@gmail.com |
75926df3fbf859ff1baec4e9c7406ebd84ad3bc4 | fa38866fa922042463d17e1665b637a12db76072 | /random_encounter.py | 4fe32c9bb39f8059652eb62787d812ed14c70330 | [] | no_license | jopetersen/dnd_utility_DM | 2908b9c56987d502873283e1c948793c109a17e1 | e4d88591731e5249112b3d71196ed85c5d3ce81b | refs/heads/master | 2020-12-21T07:39:42.816257 | 2020-01-26T19:01:19 | 2020-01-26T19:01:19 | 236,360,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | import random
import csv
#Goal: Create a random encounter generator for D&D
#open the csv file & create a random encounter
with open('encounters.csv', 'r') as f:
reader = csv.reader(f)
your_list = list(reader)
list_upper_limit = len(your_list)
random_index = random.randint(0, list_upper_limit)
print(your_list[r... | [
"noreply@github.com"
] | noreply@github.com |
a034ae69847cc367c1eb332739564f89b6b89f77 | 78790dccf4eb45e85295322ab7b040c008650070 | /src/command/commands/report/host/osg/hadoop/install/__init__.py | fe2d147649af31827a49ba1c276d7a7d6ca2c657 | [] | no_license | wangfeilong321/osg-roll | 68a07b2dac5bda956431a0f203985ac9737bb503 | 7fb86ac61b4b4f6417dc0653be635c80b603ba12 | refs/heads/master | 2021-01-22T04:53:39.607130 | 2015-08-03T14:07:02 | 2015-08-03T14:07:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,860 | py | #$Id$
#
# @Copyright@
#
# $Log$
# Revision 0.10 2012/10/26 05:48:54 eduardo
# Creation
#
import sys
import os
import pwd
import string
import types
import rocks.commands
from syslog import syslog
class Command(rocks.commands.HostArgumentProcessor,
rocks.commands.report.command):
"""
Output the OSG hadoop wrap... | [
"juaneduardo.ramirez@upr.edu"
] | juaneduardo.ramirez@upr.edu |
1e90395ed560cb2337b5b40f162a4fc8716076cc | 40b39249f1ee9bb1652dfee6949da98c20eb7c07 | /src/my/app/__init__.py | a83b2fef38569334875d455936c1ca359b8e303d | [] | no_license | AnneGilles/my.app | 97bd9e416aead2399507081ce158a043c1d84ab0 | 1711977a84d0f10a69b57d79f2e75d74afd2833b | refs/heads/master | 2021-01-10T19:09:40.141263 | 2011-12-15T08:40:34 | 2011-12-15T08:40:34 | 2,805,547 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | import cone.app
from my.app.model import MyApp
cone.app.register_plugin('myapp', MyApp)
| [
"c@shri.de"
] | c@shri.de |
97c04828414670989066e89294c98ebc37b4f70f | aeb9affdd14dc8986112dcd759eed0ff13b4fde7 | /blog/admin.py | b188c3e2251d1c19316374eb457359bdd8562bb2 | [] | no_license | iOSGJZ/learnDjango | 77634da1515b285585483f7d0847aa7924235629 | 394c58d3a20b4445b9aaf20bd06737b737876e9e | refs/heads/master | 2020-05-30T03:33:40.057359 | 2019-06-06T01:31:13 | 2019-06-06T01:31:13 | 189,518,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,298 | py | from django.contrib import admin
from .models import Article,Tags,Category
# Register your models here.
#修改登录后台管理页面头部显示和页面标题
admin.site.site_header = '郭兢哲'
admin.site.site_title = '郭兢哲的Django管理后台'
#自定义列表操作
def changeTime(self,request,queryset):
#批量更新created_time字段的值未2019-5-21
queryset.update(created_time='20... | [
"541011933@qq.com"
] | 541011933@qq.com |
377991264854c35f07cc5d22c7ac0c9b988016f2 | 1bdc14be2378ff31a4c7f51bee446eb35e48c390 | /c4.5/c45.py | 6b76c3bb3785bb74548f0a1314956cbf7f8e52a6 | [] | no_license | CornellDataScience/Insights-FakeNews | dd6aa16c3971c521e9ee213227f4027e87c47c17 | d995fdf4a5d9701efce3d4de81a0b0f749fcae74 | refs/heads/master | 2020-03-28T17:31:07.011328 | 2019-04-29T19:58:04 | 2019-04-29T19:58:04 | 148,797,486 | 6 | 1 | null | 2019-02-04T05:50:07 | 2018-09-14T14:08:12 | Jupyter Notebook | UTF-8 | Python | false | false | 14,991 | py | """
C4.5 Binary Decision Tree Implementation
Usage:
Read csv file in; will be stored as a 2 Dimensional list. (See fread())
Train a classifier (i.e. train(list))
Prune the decision tree (i.e. prune_tree(tree, 0.5))
Predict the result (i.e. predict([.....], classifier))
The function assumes that the last column of you... | [
"dzy4@cornell.edu"
] | dzy4@cornell.edu |
fcbdfed4eced7b015e30d52c48afc228a61af810 | 6058a27579d91d5a38202dbbd233606b56463825 | /app/grandchallenge/publications/__init__.py | dda68116d9925a0a2c97fd993497e8c6a5eb2bed | [
"Apache-2.0"
] | permissive | michelkok/grand-challenge.org | 9b91a71cf85e850f03b3b9520d78cf6658e6da38 | 2a96109f85d6c6ffc564323be844d78e9842c1f9 | refs/heads/master | 2023-08-15T22:58:59.209925 | 2021-10-15T15:21:10 | 2021-10-15T15:21:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | default_app_config = "grandchallenge.publications.apps.PublicationsConfig"
| [
"noreply@github.com"
] | noreply@github.com |
b4474859a1447f1cb83e2be9dd2a3c2f071d0f5d | b7ef41b7d2fd7b7ca123310327779d4d46030ca6 | /KB/posts/migrations/0004_posts_slug.py | adeb2bc6abd71e25d96a30007918b30055a17faa | [] | no_license | MariposaDigital0/nowkb | 09fbab0ebc94a255a311105c2170f6ab94951ea6 | 2ea7218ac77970737316795a74127526e53653a4 | refs/heads/master | 2023-07-10T09:57:50.765488 | 2021-08-22T05:56:00 | 2021-08-22T05:56:00 | 398,723,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | # Generated by Django 3.2.5 on 2021-07-19 11:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('posts', '0003_posts_description'),
]
operations = [
migrations.AddField(
model_name='posts',
name='slug',
... | [
"dev.mariposadigital@gmail.com"
] | dev.mariposadigital@gmail.com |
2316a59621a593c0332a7ccfb9969b07b17d65f5 | ca6019538c41ab4718aef70c2d7ccfa43859231f | /Gr.11 Computer Science/Gr.11-Computer-Science-Decisions-Exercises.py | c5fd0102fe6e1e9f960049dd9b2544a0baf477d8 | [] | no_license | Benji-Saltz/Early-Python-Projects | 1bc282a0991c46915fb918cfefc93f1830a1b8e1 | 70f3ce61b6a878f37bd6ad72f5a72622ea033a7e | refs/heads/master | 2020-04-18T05:40:59.357162 | 2019-01-24T02:22:24 | 2019-01-24T02:22:24 | 167,287,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,061 | py | #Name: Benji Saltz
#Discription: Everything is in one document
#1. Marks= Output of what letter grade you got
#2.Discount= Ticket sales with a discounted value if people buy tickets in groups
#3.Quadratic Roots= Calculates if real roots come out of quadratic formula
#4.Rates= Caluclates price of water between governmen... | [
"noreply@github.com"
] | noreply@github.com |
996dc0474cab198d06f85edfffcf0e20b3d4b6c1 | 77215178766736db9efe1e9625b90780716f4008 | /decaptcha_example/decaptcha_example/example_engine.py | c8eb8f970ba37d778a981f26a9f61b8a6417ef28 | [] | no_license | yetone/decaptcha | 92b574c6af913eda78e3fdf1ddb351152268bf3c | 16474b444c3d3ff070cdf0daec362f34cb20589b | refs/heads/master | 2022-03-08T04:32:53.406676 | 2022-03-01T13:33:57 | 2022-03-01T13:33:57 | 47,335,245 | 14 | 2 | null | 2022-03-01T13:33:58 | 2015-12-03T13:56:03 | Python | UTF-8 | Python | false | false | 430 | py | from os.path import dirname, join
class ExampleEngine(object):
def __init__(self, *args, **kwargs):
pass
def has_captcha(self, response, **kwargs):
return response.meta.get('has_captcha', False)
def get_captcha_image(self, *args, **kwargs):
path = join(dirname(__file__), 'exampl... | [
"shirk3y@gmail.com"
] | shirk3y@gmail.com |
f2207aa3c133c9aac5da21550018769f2cd3aad7 | d39091bcc2d94414a8d3415ce9479ef1c0e05352 | /custom_operations.py | e6dd4e443aa75702085230306111987d70f3876d | [
"MIT"
] | permissive | chutien/zpp-mem | 979a7b24a37cbeab4e41212fb281629243f61d5f | 470dec89dda475f7272b876f191cef9f8266a6dc | refs/heads/master | 2020-04-02T19:38:44.313064 | 2019-10-17T12:57:32 | 2019-10-17T12:57:32 | 154,741,539 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,411 | py | import tensorflow as tf
import numpy as np
def feedback_alignment_fc(input, weights, initializer=tf.initializers.he_normal(), name="fa_fc"):
random = tf.get_variable("random", shape=reversed(weights.get_shape().as_list()),
initializer=initializer, use_resource=True, trainable=False)
... | [
"noreply@github.com"
] | noreply@github.com |
ba5014784f3743dd646cde77f767c986b56fe4b5 | 7858af7e78bb13d5495f85b3ea96af53891a21a6 | /suscripciones/models.py | a6535a1a8ca873bfbb8bc6bcef9bbc6346a8a218 | [] | no_license | tecogn88/Pinchef | bfd0f016f0f63777f498fdbd5a6047eafbaa061c | e957978113a815f40da8bba6b2cbed1e66d214d9 | refs/heads/master | 2021-01-23T06:50:33.285280 | 2015-03-19T14:54:58 | 2015-03-19T14:54:58 | 31,382,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,783 | py | # -*- coding: utf-8 -*-
from django.db import models
from django.contrib.auth.models import User
class Suscripcion(models.Model):
class Meta:
verbose_name = u"Suscripción"
verbose_name_plural = u"Suscripciones"
fecha = models.DateTimeField(auto_now_add=True)
usuario = models.ForeignKey(Us... | [
"fabian@newemage.com"
] | fabian@newemage.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.