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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bf91f076863694d20a8b35229e978d83e6ad30c1 | 71f10ab0e45faa0a79214251f4c9ff7150122f41 | /pythonfirmware/external/u8g2Fonts/smart.py | ef854de0b0e2b14bc6d1941937f1af8006d93392 | [] | no_license | marx-merten/sonosremote | 9bfa849cf80d80bcd0f6b964960122666dd0f648 | f31b3c1d3fb12d11ac867dcdbf307dd6c22ad181 | refs/heads/master | 2023-01-19T03:06:54.755183 | 2020-11-21T16:24:31 | 2020-11-21T16:24:31 | 288,147,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,129 | py | #Fontname: -FreeType-Smart Patrol NBP-Medium-R-Normal--16-160-72-72-P-78-ISO10646-1
#Copyright: Copyright Nate Halley 2012
#Glyphs: 18/165
#BBX Build Mode: 0
u8g2_font_smart_patrol_nbp_tn=(
b"\22\0\4\3\4\4\1\4\5\11\13\0\0\11\376\11\0\0\0\0\0\0\307 \5\0\221\2*\12U\335"
b"JPHE\66\1+\13U\325JPHIP\10\0,\6\42q\306\0-\6\25\... | [
"stefan@marx-merten.de"
] | stefan@marx-merten.de |
393ea99035154e39b6d0a5f5a74a2cc2b32eae36 | 3ab5cdd7ddf944d4effb80ba5a694f75dffae735 | /威力加强版/gui/aoapsd.py | c4a1f56d56503cf49d033ee59b4e21e7f0338b85 | [] | no_license | scyq/CornerStone | c584ca4b459c13c721cdb422d693c1efba6c4684 | 231ed26ab6a2ba94bc1d2d2d53fb83f8b47c6da5 | refs/heads/master | 2020-07-14T09:49:21.976958 | 2019-12-10T15:26:08 | 2019-12-10T15:26:08 | 205,294,822 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,417 | py | import pygame
import random
# --- constants --- (UPPER_CASE_NAMES)
WHITE = (255, 255, 255)
SIDE = 600
# --- main ---
# - init -
pygame.init()
win = pygame.display.set_mode((SIDE, SIDE))
win.fill(WHITE)
pygame.display.update()
# - objects -
circles_number = 100
next_circle = pygame.time.... | [
"noreply@github.com"
] | noreply@github.com |
e54fac600d90c2f5a48b196f41d3f901fa2940a5 | babc4c4a5097e385198e16467817e91295ec1306 | /2020/1/1.py | bae99d1ca254e94aa4dcbdd10c95a1b362628cb4 | [] | no_license | ryanleesmith/adventofcode | 32ce53e2db72c88c6dc96a4ce2ba7cf1aea379ff | cebe1a48f65fe9b761c722876061a3da0cfb02f6 | refs/heads/master | 2023-01-24T08:12:03.628800 | 2023-01-17T20:43:28 | 2023-01-17T20:43:28 | 225,347,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | import math
def main():
SUM = 2020
data = read()
data.sort(reverse=True)
remove_idx = 0
for i in range(len(data)):
if (SUM - data[i]) < data[len(data)-1]:
remove_idx = i
data = data[remove_idx+1:]
for i in range(len(data)):
for j in range(len(data) - 1, i + 1, -1... | [
"ryanlsmith@me.com"
] | ryanlsmith@me.com |
4ad81727c22f88b2877564b46f329cf9febecad9 | db750a3ba0e1f87f0840e9fc216e764ebdfbe80c | /2-6.py | 58fb12d6829da7783528ba195612187f9903a151 | [] | no_license | isao0926/PythonMinecraft20210126 | 218b9bf36af5caec68e6f4e5c1609d456b0d267c | 3ba695ca089cf035eb6872ba1907b55d0886d336 | refs/heads/main | 2023-02-25T06:14:07.254058 | 2021-01-26T08:13:47 | 2021-01-26T08:13:47 | 333,015,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | "請輸入姓名:"
a=int(input('請問你右邊要放什麼方塊:'))
ll.setBlock(x+1,y,z,a) | [
"noreply@github.com"
] | noreply@github.com |
129d6c117a7b0a7f9cda8e51a31cd6efe9748703 | 33bc68e1074a6e4f45dc2ffb1c942d78fea0f9fe | /Utils/cg2.py | ea03c7906a2817792bf8b6dcea28a733ced17fb9 | [] | no_license | bonedaddy/NASA_DTN_DevKit | 5e7d3fc759a75c9991d55be460d9faeb35fda18b | a034fe1d1f134206c54b01e31344a9209fd64ef7 | refs/heads/master | 2021-08-20T07:32:34.261584 | 2017-11-28T14:44:54 | 2017-11-28T14:44:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,090 | py | #!/usr/bin/python
import getopt
import time
from threading import Timer
import sys
import os
import datetime
import wx
import wx.lib.scrolledpanel as scrolled
global labelWidth
global borderWidth
global nodeNames
nodeNames = {}
ignoreLinks = []
# nodeNames = {'1': 'SC', '5': 'MO'}
# ignoreLinks = [[1,1], [2,2], [3,3... | [
"kscott@mitre.org"
] | kscott@mitre.org |
be7c71391ed2a9288c81949bf524ba16d8adac32 | 5427b900336dcc6504dc612b42a3b37c5913d385 | /webapp/tg2env/lib/python2.7/site-packages/transaction-1.3.0-py2.7.egg/transaction/tests/test_transaction.py | 7ca7330cdde629e613a77af5d2c6d7b1cadf137a | [] | no_license | mbbui/Jminee | a76d516bdae240eb8fb81b4377424f3604dd85d9 | 951248802651f5d9aaede7aabbc64e05c542f1ea | refs/heads/master | 2021-01-22T11:42:28.135176 | 2013-01-15T19:37:13 | 2013-01-15T19:37:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,074 | py | ##############################################################################
#
# Copyright (c) 2001, 2002, 2005 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution... | [
"bachbui@honutv-1.(none)"
] | bachbui@honutv-1.(none) |
239ad35cba71416a20dce988b43a1d29433918c0 | 748b0b8d653e2bf0a33b72ca97ac145c1bdce9b3 | /backend/msm_mobile_261109_d_15730/urls.py | 06b219555ca9a5c714db9636877f1c6fa779b44e | [] | no_license | crowdbotics-apps/msm-mobile-261109-d-15730 | b511e190dbd6fa5535698ce5d1b02bba649e129f | dfbf6260071f3b6a3f4a5e97f4ad9ddd06969b1d | refs/heads/master | 2023-01-19T12:59:19.711357 | 2020-11-26T05:42:47 | 2020-11-26T05:42:47 | 316,133,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,975 | py | """msm_mobile_261109_d_15730 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
eb8e2e979c68205ae6ed7fea413b4c39fa1dc296 | 86e7a6c992f7b276d15a61160805d16229674e2d | /Mission_To_Mars/scrape_mars.py | b2979d32176d9cc92a413a385178a8256c95c7c1 | [] | no_license | mcfierceson/web-scraping-challenge | 91cccdd6120da276ebca62b4a1090a3e55d13bc8 | c706001ed0f6e38b2f948bcb8732dd46c2fd8c7a | refs/heads/master | 2022-12-07T13:15:36.864694 | 2020-08-18T21:17:22 | 2020-08-18T21:17:22 | 269,207,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,701 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
from bs4 import BeautifulSoup as bs
from splinter import Browser
import requests
import time
# In[2]:
# In[175]:
def init_browser():
executable_path = {"executable_path": "chromedriver"}
return Browser("chrome", **executable_path, headless=False)
def scra... | [
"marksmcpherson@icloud.com"
] | marksmcpherson@icloud.com |
665eeacac468a5f98f787b428859f75a2a5e2983 | 7321ba65afe71bc21a9d2e38b3dc42abfba57a07 | /InstaDemo/settings.py | 55271bfcddf351ad20ac80d0fa1aca897779d2ef | [] | no_license | hexiangtong/InstaDemo | 6ac0cc90e7bb08b068e4cd0b19dd17115492ffd2 | e3e102addae83b4e6f5706c01f1a1f68ff5427bf | refs/heads/master | 2022-12-09T08:15:45.672434 | 2020-04-13T05:43:00 | 2020-04-13T05:43:00 | 252,635,144 | 0 | 0 | null | 2022-11-22T05:50:25 | 2020-04-03T04:50:24 | Python | UTF-8 | Python | false | false | 3,384 | py | """
Django settings for InstaDemo project.
Generated by 'django-admin startproject' using Django 3.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
... | [
"zhouy2@ee-126588.attlocal.net"
] | zhouy2@ee-126588.attlocal.net |
45f15d75af4b51414661c643442bb34ae8f397a6 | 4433a47d957b6795e5e605c71f91d77ae7768513 | /dgtable/doing_project.py | de837ecf4621146ff3c7d3250a8a9445d94123ce | [] | no_license | vrteye/DGtable | 3caec89cc58466218d834cb54850a61f3a9c9e5e | 8246868b2f4efecbad8396648efe5629619179b4 | refs/heads/master | 2023-06-07T10:09:26.869429 | 2021-07-08T11:54:00 | 2021-07-08T11:54:00 | 383,789,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,858 | py | import requests
from basic import *
"""
在建工程情况(doing_project_state)
"""
def Doingproject(path, tradeKey):
# print(tradeKey)
try:
f = open(path, "r", encoding="utf-8").read()
df = CutOutML(f, '>、在建工程', ')在建工程情况') # 取最后一个表数据
df = df.fillna('')
# df.drop(0, inplace=True)
... | [
"vrteye@gmail.com"
] | vrteye@gmail.com |
3c4ba99d10b7b60384f332a17c34c5470d07276e | 560a2daedcc8653c0811fc351e7296b97eaa5cb6 | /MonteCarloAndTDAgents/dqn.py | aee0c131d9319595f1773c5071abc9349c9c16b9 | [] | no_license | SriAish/RL_Agents | 34645433252183ef082964a0a4bc1a6c2312ab24 | 01e71d37a79c397618d056298c3aa71522352145 | refs/heads/master | 2020-09-16T03:08:53.503322 | 2019-11-23T18:13:41 | 2019-11-23T18:13:41 | 223,631,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,588 | py | import numpy as np
import gym
import keras
import random
import itertools
import sys, os
import tensorflow as tf
from keras.models import Sequential
from keras.models import Model, load_model
from keras.layers.convolutional import Convolution2D
from keras.layers.core import Flatten
from keras.layers import Dense, multi... | [
"aishsrivastava1998@gmail.com"
] | aishsrivastava1998@gmail.com |
431743757a3cae35883f303a2e90f607dd2c6644 | 62a082c6dcecfa3d185a4d1bdd7dc374ca775ee2 | /Assignment7/Source/TensorflowHelloWorld/LinearRegression.py | 84aaae7b40694af25d0ec85105cea57134cd87f6 | [] | no_license | SaiJyothiGudibandi/BigData_Assignments_Spring-2017 | a7691dc09a0a20bee37d67de5f329ff2e0eb03e4 | 205bafc893cbe1fbb315000eea1352c406098fbe | refs/heads/master | 2021-06-14T00:31:57.180637 | 2017-04-14T17:28:48 | 2017-04-14T17:28:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,453 | py | from __future__ import print_function
import tensorflow as tf
import numpy as np
from sklearn.datasets import load_boston
import pandas as pd
import matplotlib.pyplot as plt
rng = np.random
boston = load_boston()
print('Number of rows and columns on Boston DataSet:'+str(boston.data.shape))
print('Keys in B... | [
"noreply@github.com"
] | noreply@github.com |
ddfeb229c2eb58e3c70f6c7666511fd98cae0dd1 | 0ced37fd5631850c43319b43aa2ac48a105eeb08 | /package/json_scraper.py | 3c3aabec5aae14fa57f94f0663d4e51004aa6958 | [] | no_license | chomman/earthquake-finder | c0d9b0bd5104b10b0bd7beec5d11f58c0d22e69c | d7f4de33843e7ceed5c2113cdefbb908f11338a2 | refs/heads/master | 2020-12-28T20:41:48.404930 | 2015-03-31T15:14:24 | 2015-03-31T15:14:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | #!/usr/bin/python
## @json_scraper.py
# This file makes a request to an external webpage, and returns the json
# response content.
import requests
## scrape: scrape the content of provided url.
def scrape(url):
# request (get) given url, store json response content
r = requests.get(url)
data = r.json()
... | [
"jeff1evesque@yahoo.com"
] | jeff1evesque@yahoo.com |
d72f5187a89633ccc99a43b98f295c1638150e16 | 3509063b02fc0d53c6e58f6260dca1bb03b76141 | /tests/test_dynamics.py | 174241e5adeadc5e38efe8108434583ffbf60461 | [] | no_license | aidanscannell/vimpc | f9a2b2cfa51b23e4011abc6908a138e2dc2546a9 | ba5a3b4e8abd03a10459454da51f4f51f7010538 | refs/heads/master | 2023-06-26T02:09:56.055235 | 2021-07-16T19:14:11 | 2021-07-16T19:14:11 | 386,741,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | #!/usr/bin/env python3
from dataclasses import dataclass
import gpflow
import numpy as np
from numpy.testing import assert_array_less
from geocontrol.dynamics import GPDynamics
rng: np.random.RandomState = np.random.RandomState(0)
input_dim = 1
output_dim = 1
num_inducing = 3
X = rng.randn(20, input_dim)
Y = rng.ran... | [
"scannell.aidan@gmail.com"
] | scannell.aidan@gmail.com |
79c5ee6bbab7985f4762015f811c6f652678b3a7 | ca947bf7e5e019c733e60169d3e6263097c2a7bf | /Lab 2/six_buttons.py | 15352a181af205d0db0eaa6907bfffe61837812e | [] | no_license | dudruc/ECE5725 | 53e3fc1907feeea9b039f554ecfd7be8a7c06251 | 5fb121a5ae8b8c323a87b3a277c93245680fe537 | refs/heads/master | 2020-04-16T05:30:16.380292 | 2019-01-13T01:44:37 | 2019-01-13T01:44:37 | 165,308,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,028 | py | #Jingyi Wang(jw2527) Zitao Zheng(zz632) Lab2 2018-09-26
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setup(17, GPIO.IN, pull_up_down=GPIO.PUD_UP)
GPIO.setup(22, GPIO.IN, pull_up_down=GPIO.PUD_UP)
GPIO.setup(23, GPIO.IN, pull_up_down=GPIO.PUD_UP)
GPIO.setup(27, GPIO.IN, pull_up_down=GPIO.PUD_UP)
# We... | [
"noreply@github.com"
] | noreply@github.com |
7acd6bf34652a47a8fe31cefbf430f4da322f25e | 6e5f522556fda6a5275c6bd560fea82741d0958f | /Python/UberX.py | 1e2f6395e3b890de6caeb7b6835e3bd8a6167596 | [] | no_license | ingcristiansuarez/CursoPOOPlatzi | 051b312cad7d656d173c4dfd24bab3d0e227d37b | d728dc21a62a3c5ba633709bbf67f50ec0830d4c | refs/heads/main | 2023-07-14T14:07:24.532274 | 2021-08-10T01:55:58 | 2021-08-10T01:55:58 | 392,883,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | from car import Car
class UberX(Car):
brand = str
model = str
def __init__(self, license, driver, brand, model):
super.__init__(license, driver)
self.brand = brand
self.model = model
| [
"ing.cristiansuarez@gmail.com"
] | ing.cristiansuarez@gmail.com |
cd6a455cf5e092cd4f32c2fed401f0039b414228 | 71c772e9c5d14ccd49b4f20a493a0958e59194f8 | /trabalho_1/arvore_bidirecional.py | cc4ca25e94d465534435f2ecacf6cca32d0cdb54 | [] | no_license | gabriellima/Trabalho-Sistemas-Especialistas | 77dc1d001751dc478b98d46777f6f6647e895a01 | 0dadb8355112d4c9d9173013a2581f16a5479200 | refs/heads/master | 2020-05-16T16:04:27.619963 | 2011-07-04T11:36:55 | 2011-07-04T11:36:55 | 1,992,353 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,177 | py | #-*- coding:utf-8 -*-
import networkx as nx
from trabalho_1.bl import BancoLogico
from inspect import isroutine
class ArvoreBidirecional:
def __init__(self):
self.g = nx.DiGraph()
self.bl = BancoLogico()
self.montar_arvore()
def determinar_parametros_teste(self):
self.bl.qua... | [
"ciberglo@gmail.com"
] | ciberglo@gmail.com |
a92d9bc93ed8d9c1567fb32f622b50c221616b5e | b5937928a48340569f673e237e42f32ab62cfd15 | /src/pathCrossing/path.py | 19ce0bdef5e67249b47937b919aa1930eff3039d | [
"CC0-1.0"
] | permissive | rajitbanerjee/leetcode | 79731de57ab4b0edd765b3cbb4aac459973fb22d | 720fcdd88d371e2d6592ceec8370a6760a77bb89 | refs/heads/master | 2021-06-13T11:19:03.905797 | 2021-06-02T14:40:08 | 2021-06-02T14:40:08 | 191,103,205 | 2 | 1 | null | 2020-02-23T23:41:45 | 2019-06-10T05:34:46 | Java | UTF-8 | Python | false | false | 575 | py | class Solution:
def isPathCrossing(self, path: str) -> bool:
x, y = 0, 0
visited = {(x, y)}
for p in path:
if p == 'N':
y += 1
elif p == 'S':
y -= 1
elif p == 'E':
x += 1
else:
x -... | [
"rajit.banerjee@ucdconnect.ie"
] | rajit.banerjee@ucdconnect.ie |
e9693dec4111a66178d2dececa5dfabc48a677b6 | 0f3cce250d99fbbb257324a7e30e3839a2b1cf20 | /Algorithm/Dynamic Programming/Make_one.py | 2a5a2f5024c2a4e45a75ca8a8972bba655c3e06a | [] | no_license | sjyb9394/Python-Study | 54c93100605d422d72687056eae01d7e941a2c1a | 3162dc8ccc3e621939445060656dc74223f8576e | refs/heads/main | 2023-03-26T19:32:40.465928 | 2021-03-25T03:48:12 | 2021-03-25T03:48:12 | 330,883,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | # Given integer input N: compute following 4 operations and find the least amount the operations to make 1.
# 1. If x % 5 == 0 divide by 5
# 2. If x % 3 == 0 divide by 3
# 3. If x % 2 == 0 divide by 2
# 4. Subtract by 1
n = int(input())
d = [0] * 30001
for i in range(2, n+1):
d[i] = d[i-1]+1
if i % 2 == 0:
d[... | [
"noreply@github.com"
] | noreply@github.com |
72b860e09326dd0eeb57a5bf370234b146d6e048 | 998e90d76036b17d02e684033c23ad84c3451204 | /app.py | c072948361031ba3b1cf2630e16b5f6f23956322 | [] | no_license | HiteshKumar777/Angular_Flask | e25047e77b900f189fcf00918a71f1e5dce8ddfd | fdf821e8abadc772dd5782236677082f1efbc758 | refs/heads/main | 2023-02-13T06:03:01.582675 | 2021-01-13T07:29:18 | 2021-01-13T07:29:18 | 329,226,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,810 | py | from flask import Flask, render_template, request, url_for, redirect, jsonify
import json
from flask_mysqldb import MySQL
from flask_cors import CORS
app = Flask(__name__)
CORS(app)
app.config['MYSQL_HOST'] = 'localhost'
app.config['MYSQL_USER'] = 'root'
app.config['MYSQL_PASSWORD'] = ''
app.config['MYSQL_DB']... | [
"noreply@github.com"
] | noreply@github.com |
0227efd7901a68a4113fd2d039071363b4adcf1d | 746ff25e2b97926bd0f845c0933db46ef063d2f2 | /recursive_binary_search.py | 421ca7c7cd0d128013dd4ef3614011783ba93ad6 | [] | no_license | kunaljaykam/Data-Structures-and-Algorithms | b6f103097a0f04b2d04ff2c43f7c19d5f8ab7de9 | 895a9b28cc1d4335ed39f2dbdd36b2084300ffff | refs/heads/main | 2023-07-25T11:08:43.545449 | 2021-09-03T19:48:24 | 2021-09-04T19:48:24 | 374,178,973 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | def recursive_binary_search(list, target):
if len(list) ==0:
return False
else:
midpoint = (len(list))//2
if list[midpoint] == target:
return True
else:
if list[midpoint] < target:
return recursive_binary_search(list[midpoint+1:], target)
else:
return recursive_bi... | [
"noreply@github.com"
] | noreply@github.com |
b844262993e1cf3a0e55258d539ddecd80993328 | 2ad52a65c45051f26fe26631a31f80279522ddb7 | /build/test/catkin_generated/pkg.installspace.context.pc.py | 610ea7253b985ee7cc655143bb6f00b5a64ccb4c | [] | no_license | aryamansriram/Movel_Nav | a64c32528b7ce0a5a19127ba3a9379dca0201356 | 0e5e64232a01771999d34694f3bf6840f0c1e3ee | refs/heads/master | 2023-01-03T20:35:22.041816 | 2020-10-21T13:37:11 | 2020-10-21T13:37:11 | 305,279,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "test"
PROJECT_SPACE_DIR = "/home/rosg... | [
"aryaman.sriram@gmail.com"
] | aryaman.sriram@gmail.com |
df4a7dfe2740775f79df27bea8aabba64637d720 | 6b97da799cb9b72d711a5e1d6321e4e11f3cbe51 | /bin/iptest3 | 8f85d0e0d8a8e3a6e242b360c552cbf740df3398 | [] | no_license | dx-entity/env_parabola | 3531120d213ade533052161ec70f3a511f2fc90a | f830d5f05a578b1ed2b16f6898fb226e27de6b52 | refs/heads/master | 2021-01-09T20:22:51.509076 | 2016-07-22T06:55:49 | 2016-07-22T06:55:49 | 63,930,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | #!/root/python_pro/env_parabola/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from IPython.testing.iptestcontroller import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"dengxin@iie.ac.cn"
] | dengxin@iie.ac.cn | |
37c713379c7eae4bd35ff97c33fa4c7c89407fb2 | 13ada2592f6c1ff5e3224451782224f744e8081b | /runme_ims.py | 4e7d05dacc6f431f5641a6fe87856754c992a435 | [] | no_license | hector-sab/ExtractFrames_People | ad3271064cb37bd41c0d03f4484066b46cde59f7 | 3abfab9b214af3e041439ae2f08f70d0c050f234 | refs/heads/master | 2021-04-26T23:11:48.866410 | 2018-03-11T20:03:35 | 2018-03-11T20:03:35 | 123,944,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,716 | py | """
Author: Héctor Sánchez
Date: 2018-02-28
Description: The program will remove pictures that don't contain people walking.
Folders of interest: -180228_01_0945-1100 [YYMMDD_##_hhmm-hhmm]
"""
from skimage.measure import compare_ssim as ssim
import matplotlib.pyplot as plt
from shutil import copy2
import nump... | [
"hector.sab@hotmail.com"
] | hector.sab@hotmail.com |
f5a3d2e414e0846367a0479ccc88b06f12b9d606 | 833a08fe9b5d503562283bcd94632c54177eb897 | /LC774.py | fe889f8c7a61405ee543381b3d4f26a330099902 | [] | no_license | jimmychancsc/Leetcode | f07477e39ddf3b173ad4bbe71f34ffe182115e24 | 1937cb3f3a3df0e4c7e75e944114409c9e62c013 | refs/heads/main | 2023-06-15T12:46:04.318323 | 2021-07-19T03:01:22 | 2021-07-19T03:01:22 | 346,546,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | class Solution:
def minmaxGasDist(self, stations: List[int], k: int) -> float:
def possible(D):
return sum(int((stations[i + 1] - stations[i]) / D) for i in range(len(stations) - 1)) <= k
l, r = 0, stations[-1] - stations[0]
while r - l > 1e-6:
m = (r + l) / 2
... | [
"noreply@github.com"
] | noreply@github.com |
dad6bef842ae5bc6f610fea8f1efd9e96bee9a18 | 09f28eae6799152a823749ff42ba5790023da7c4 | /flipkart_processing_code/flipkart_picklist_processing_code.py | 73653f363612d70bcb388daf90797d3b198b033d | [] | no_license | azmath2762/1 | b2361902d6d1aca209e16de3ce11dd0734293725 | d843ec88af3793fa0ad749dc0d6e728342f64174 | refs/heads/master | 2023-09-03T12:53:49.171475 | 2021-11-23T11:00:07 | 2021-11-23T11:00:07 | 431,066,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,779 | py | import shutil
import csv
import os
import time
import glob
from tika import parser
import dropbox
from selenium.webdriver.support.select import Select
import psycopg2
import pyautogui
from selenium.webdriver.support import expected_conditions as EC
def processing_code(picklist):
import csv
faild_file_name=r'C:\... | [
"azmath2762@gmail.com"
] | azmath2762@gmail.com |
73a8fc9f82628d7fd88a154c4b1881529e951527 | 3220b1e3979dc0237591bb528b9db2174f3539e7 | /tests/test_models/test_review.py | 48475c84ec8f1df034f55e9ec29843bd3c96ea85 | [] | no_license | joseheco/AirBnB_clone | 22f03512aed5575d9a0931e6c570d2a53e98cbd9 | f44a01d59c00c49060985312e65d14c1e910864b | refs/heads/main | 2023-06-19T15:47:31.796378 | 2021-07-12T04:55:24 | 2021-07-12T04:55:24 | 385,043,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | #!/usr/bin/python3
"""BaseModel Class unittest"""
import unittest
from models.base_model import BaseModel
from models.review import Review
class TestReview(unittest.TestCase):
""" test for review.py """
| [
"jferhc@gmail.com"
] | jferhc@gmail.com |
b4b1c743612064f87de0464abcf3bca6d693880a | d5e2f3930ca937db268479e10f5cb3ce59673ff9 | /ARI/TCS/rpiSRT/src/obsolete/SRT_ice.py | 367ff21058a938eaa47063c23384a3640e7f5cc6 | [] | no_license | astrofle/acs-ari | e36ae5b9d68365ec14e79502672d08c5791a85b6 | a1b51f5eb8938015d1291a6a74618ace7dfff845 | refs/heads/master | 2016-09-13T06:15:57.383750 | 2016-04-13T10:18:04 | 2016-04-13T10:18:04 | 56,141,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,718 | py | # **********************************************************************
#
# Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
#
# This copy of Ice is licensed to you under the terms described in the
# ICE_LICENSE file included in this distribution.
#
# ***********************************************************... | [
"RhoOlguin@gmail.com"
] | RhoOlguin@gmail.com |
0c31460113d10c4ca9305682d2498e1067a6e812 | 70d0071473e032a8560789e20a7c63ae1ba0e3eb | /Q4.py | 1c9d6a3396130ec740c4f1bd7180c93d9146a3d5 | [] | no_license | chunkeichan/Item-Classifications-by-Perceptron-and-Support-Vector-Machine | 7299313400d5f25404b3f80a5e76faab2a700c77 | 05ee01e1c5259074a4f4bb10c304e3b3b76cba90 | refs/heads/main | 2023-08-04T02:35:20.414071 | 2021-09-16T07:47:14 | 2021-09-16T07:47:14 | 407,070,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,606 | py | """
Created on Tue Apr 17 2018
@author: JQ
Modified on Mon Feb 22 2021
HC Wu
"""
import glob
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.colors
from mpl_toolkits.mplot3d import Axes3D
from numpy import linalg as LA
from sklearn import svm
Y_true = [0,1,1,0,0,0,1,1,0,1]
... | [
"noreply@github.com"
] | noreply@github.com |
f97254429a1f1cae653b84f4571844d233af2322 | c1780262991de56ec520c74b19def7d85b46978f | /vital_sqi/app/index.py | 325f330dbe41751096c3546fb5febac2e27e6d2a | [
"MIT"
] | permissive | lzdh/vital_sqi | 80a7fc27fdeb51ea6ab8f546520c4985bedfca36 | e527c54ad0a8d8b3dd51b4abe2915c804182d1c9 | refs/heads/main | 2023-05-30T11:52:21.492114 | 2021-06-25T03:41:23 | 2021-06-25T03:41:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,842 | py | import dash_core_components as dcc
import dash_html_components as html
import dash_bootstrap_components as dbc
from dash.dependencies import Input, Output, State
from vital_sqi.app.util.parsing import parse_data
from vital_sqi.app.app import app
from vital_sqi.app.views import dashboard1,dashboard2, dashboard3
# the st... | [
"ldvankhoa@gmail.com"
] | ldvankhoa@gmail.com |
0b8b47322f180c6a3b12eb2441de3daef8bfdd9a | cd029579ff0b710fc19777cafa16dc307f4ce555 | /problem patterns/divide_and_conquer.py | f2196849de16a22f3311fa8a43c2e59730a4a756 | [] | no_license | KonstantinAlxVlasenko/algorithms | 9a34a345b1c0976fa2380495b5cfcf5f384b1fbb | 2f2cdbd391efce8ca41a94545a0725d027a95d8b | refs/heads/master | 2020-11-26T16:54:24.748077 | 2020-04-21T21:49:36 | 2020-04-21T21:49:36 | 229,146,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,822 | py | """Module Divide and Conquer"""
import unittest
def count_zeroes(lst):
"""
Given a list of 1s and 0s which has all 1s first followed by all 0s.
Function returns the number of zeroes in the list.
Time complexity O(logn)
"""
# edge cases
# an empty list or list of 1s
if not lst or ... | [
"kvl2014@gmail.com"
] | kvl2014@gmail.com |
1755ace993f4ea02065efd561ec2b726b5d17337 | 838302a39e25067fa7152c1a21574d80dbc25e94 | /routes/urls.py | 482446f2644cfefb444e61bbee0deb991c87a2b7 | [] | no_license | Vadym-Hub/route_search | 53f46b39f588bb9ee53f1f70d09f045f1d466492 | b1c0b5ac754e5e3601ab6815649eda4f50e9ae32 | refs/heads/master | 2021-09-28T01:40:57.271666 | 2020-07-12T23:03:27 | 2020-07-12T23:03:27 | 250,011,206 | 0 | 0 | null | 2021-09-22T18:57:23 | 2020-03-25T15:07:23 | Python | UTF-8 | Python | false | false | 525 | py | from django.urls import path
from .views import HomeView, RouteDetailView, RouteListView, add_route, find_routes, RouteDeleteView
apps_name = 'routes'
urlpatterns = [
path('find/', find_routes, name='find_routes'),
path('add_route/', add_route, name='add_route'),
path('list/', RouteListView.as_view(), na... | [
"webratel@gmail.com"
] | webratel@gmail.com |
02745d01b67baf35831eef32706005955ffa0531 | fa11c9495f8f9aa0e975b395f6be8455605e61c7 | /examples/acoustics_2d_radial_walls/compare/setrun.py | eb4c4d9e4c3c4e6552ae65f4cca29afed15431dd | [
"BSD-2-Clause"
] | permissive | BrisaDavis/adjoint | 62fb6bf25c1d018bd0e84cdd4193c8b15216d0d3 | feeb68a0cb7f882c9df73d4d0ba9a43e7a4adcf7 | refs/heads/master | 2021-01-16T22:01:49.243791 | 2018-06-22T22:11:05 | 2018-06-22T22:11:05 | 44,397,790 | 0 | 1 | null | 2015-10-29T18:08:45 | 2015-10-16T16:35:17 | FORTRAN | UTF-8 | Python | false | false | 14,088 | py | """
Module to set up run time parameters for Clawpack.
The values set in the function setrun are then written out to data files
that will be read in by the Fortran code.
"""
import os
import numpy as np
#-----------------------------------------------
# Set these parameters for adjoint flagging....
# location... | [
"bndavis@uw.edu"
] | bndavis@uw.edu |
0da4cf78bfed4a20fd75917d308059be089867cd | eff4af72c7b6d09ca268986db058a4307a6105b4 | /news/admin.py | ae93a573983547a97a69bb51fc5756771ee9f11a | [] | no_license | metamoq/Metahome | bd20cfd7181abe31dc507abc27daf8f7340af80f | 7774d353dbf0906863269b5d9944ac81597b245c | refs/heads/master | 2021-01-25T14:23:30.549133 | 2018-03-03T15:17:45 | 2018-03-03T15:17:45 | 123,692,774 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | from django.contrib import admin
from .models import News
class NewsAdmin(admin.ModelAdmin):
list_display = [
'is_published',
'id',
'title',
'date_created',
'date_updated'
]
ordering = ['-date_updated']
admin.site.register(News, NewsAdmin) | [
"werewolf13@list.ru"
] | werewolf13@list.ru |
8399f0725684d5f05d0c7cdd73ca17a6c14c7062 | 403217dc6e0ea465b90d26faaa630dc30b04b396 | /tests/test_transformers.py | 47c941b50561247fa4c2c912717b5c08700f0256 | [
"Python-2.0",
"Apache-2.0"
] | permissive | fuzeman/QueryCondenser | f5708fe855c449e195d20d7db9ca5e7b0b657541 | 624d8db0077e540b4214eb44bb1def4bd659c50a | refs/heads/master | 2016-09-11T03:35:02.571079 | 2013-11-25T04:04:47 | 2013-11-25T04:04:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,422 | py | # Copyright 2013 Dean Gardiner <gardiner91@gmail.com>
#
# 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 a... | [
"gardiner91@gmail.com"
] | gardiner91@gmail.com |
ceb30890eb1678924871616d426fb1504d569321 | 4d4c51a5c88c74c37abd8fff5f0638d1cbbf26c0 | /src/solid_pixel_map.py | 4156909643022a3fe179cfe010e41988d37bfe3e | [
"MIT"
] | permissive | sphereflow/space_combat | 2eb99eb2724fe9e96e1cb5aaae1fa927e2a795cc | f9cafe6bd774dfced8a494d38bbed082c3e5dc74 | refs/heads/master | 2021-01-22T09:47:31.666020 | 2013-12-13T13:23:21 | 2013-12-13T13:23:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,127 | py | from image import *
class SolidPixelMap( Image ) :
def __init__(self) :
pass
def prepare_image(self) :
if bpp == 32 :
self.set_transparency(False)
if not data :
return
mask = 0x01
npixels = self.width * self.height
spm_size = int(npixels / 8)
if (npixe... | [
"johannprescher@gmx.de"
] | johannprescher@gmx.de |
66b3429715eed4b067021ebd6f274e05c5372fa1 | 9e7c78754006ce66beae4206e8a19fbdd5859501 | /lstm_check.py | 088c8355a43bb7aa063c02ebeb48400ee384f0ff | [] | no_license | Rosyuku/lstm | 20d3cb3be33f1ea26b6740ebf11c92c2bde2cf2d | 91def7acc0c7bfa80bd453550cb536df48282ef8 | refs/heads/master | 2020-03-10T23:07:20.479952 | 2018-04-16T02:23:00 | 2018-04-16T02:23:00 | 129,633,998 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Aug 14 20:01:27 2017
@author: kazuyuki
"""
import pandas as pd
if __name__ == "__main__":
log = 'result_1/log'
df = pd.read_json(log)
df.index = df['iteration']
df['main/loss'].plot(loglog=True)
df['main/loss'].... | [
"sogenakotoga@homail.com"
] | sogenakotoga@homail.com |
e2a0b8d4bfee8c8b233c048b305fd3d405311d81 | 009ebb607e2e01b1c9382c6836ee78519c6d7bea | /source/esdk_fc_neadp_1.5_native_python/src/com/huawei/model/vm/VmConfig.py | ebacc8a5e41a7a36c52dde33a66037a1e5e248f3 | [] | no_license | dinghuaming/esdk_fc_neadp_1.5_native_python | 0688be6033d332bcd82084af4281831f1695b6f3 | 597bebdd067a74b65206210858785d1414701739 | refs/heads/master | 2021-12-06T07:49:39.331932 | 2015-10-14T01:17:13 | 2015-10-14T01:17:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | '''
Created on 2015-3-4
@author: sWX231817
'''
from com.huawei.model.vm.CPU import CPU
from com.huawei.model.vm.Memory import Memory
from com.huawei.model.vm.Disk import Disk
from com.huawei.model.vm.Nic import Nic
from com.huawei.model.vm.Usb import Usb
from com.huawei.model.vm.GPU import GPU
from com.huawei.model.v... | [
"j00327190@J00327190B.china.huawei.com"
] | j00327190@J00327190B.china.huawei.com |
e7b04222a5129fc7784b4bd093766c9762946e60 | c3938f7e23e84174e42bc82586d13f69b28ef925 | /Week 1/warm_up.py | 4732c8b898fcfb2ebd0f8cc0e1fd2df448ac281b | [] | no_license | erikstryshak/MSBA6310 | c9d43f27551663116913e7bfd84ef230257349f5 | 2fb3239b76e3bb7165f383225b25009ac7f74729 | refs/heads/master | 2020-03-19T22:29:53.239177 | 2018-06-11T19:34:39 | 2018-06-11T19:34:39 | 136,972,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jun 11 13:05:24 2018
@author: Rik
"""
seconds = float(input("Seconds between lightning and thunder: "))
distance = seconds / 5
print("The storm is {0:.1f} miles away".format(distance))
| [
"estryshak@smu.edu"
] | estryshak@smu.edu |
c64a3abd2aad3c7bedc07c54f1a3deb7689b11c4 | 685f4474699d769dae88537c69f5517ac13a8431 | /EL385..py | 4170e4cfd9fa9008ec8bd6c37d95d5916a705ace | [] | no_license | Pumafied/Project-Euler | 7466f48e449b7314598c106398c0be0424ae72d5 | 0c3e80a956893ce1881a9694131d52b156b9d3d8 | refs/heads/master | 2016-09-05T22:45:09.733696 | 2013-04-20T04:46:48 | 2013-04-20T04:46:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37 | py | # http://projecteuler.net/problem=385 | [
"pumafied@gmail.com"
] | pumafied@gmail.com |
51a291e78f6f1c2111d1f3a8223f52e2b16ac1c9 | 944ceb1d7f1a2f36346cce8ae88d01a20598a85b | /proveedores/autocomplete.py | 4a09f958655a0d842f3c71b0898688d35e8417e1 | [] | no_license | mocomauricio/grecia | 6372f8dc8c3d9b6294502a52caf62cfc580b3abd | f1b3dcf2140c5016a653370afc3bb3827571df98 | refs/heads/master | 2021-09-02T00:49:56.790192 | 2017-12-29T13:56:23 | 2017-12-29T13:56:23 | 115,019,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | from dal import autocomplete
from django.db.models import Q
from .models import *
from dal import autocomplete
from django.db.models import Q
from .models import *
class ProveedorAutocomplete(autocomplete.Select2QuerySetView):
def get_queryset(self):
# Don't forget to filter out results depending on the visitor ... | [
"nelsonds.py@gmail.com"
] | nelsonds.py@gmail.com |
ced4d5e60ade1cf8d0d14ab62374b200da36cbcf | 8ae21ab78df8dfd1f9637f3453487cd0c6e13369 | /tests/test_basics.py | ae74a0d0731ad3ac6da0530974ea159a8db11df9 | [
"MIT"
] | permissive | joseamaita/flasky | 855f213b34e0145b8e532b7027cc84099dac02df | cb9abf3b217d88beb96e01d979584c314ee80ef0 | refs/heads/master | 2021-01-20T03:01:22.820747 | 2017-05-30T11:21:35 | 2017-05-30T11:21:35 | 89,485,087 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | import unittest
from flask import current_app
from application import create_app, db
class BasicsTestCase(unittest.TestCase):
def setUp(self):
self.app = create_app('testing')
self.app_context = self.app.app_context()
self.app_context.push()
db.create_all()
def tearDown(self):... | [
"jose_a_maita@hotmail.com"
] | jose_a_maita@hotmail.com |
296963163c90d8e05e9c5fb3edddb713278c336e | 6ffc8f194c0f5cb017f4243e7ba1470a14ba0a14 | /CBVCrud/wsgi.py | efd5c9a9b885b065bdf8b4112d09a1dce2d94d7e | [] | no_license | akashchauhan99/CRUD | c2dadc9871a78311cb785f80ae77be6b83442f50 | e524b54b1428a2fc522d2923748d4bc2ad3f4725 | refs/heads/master | 2023-04-23T07:49:56.515402 | 2021-05-04T09:17:23 | 2021-05-04T09:17:23 | 364,201,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for CBVCrud 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/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"chauhanakash4599@gmail.com"
] | chauhanakash4599@gmail.com |
0bb49f05b8182cb65a5edce875e7b09a21eba552 | 2d47a1549872f9a8ca5afe326430fa3dd396a71a | /saya_communication/saya_speech_database/scripts/saya_dialogflow_database_server.py~ | 2dc34cf17af66ed96b9fddd53434820f41c9493d | [] | no_license | tr-gis/saya_v2 | 4c372e04160b8d524f2836de2885b25e701d9e5a | 003ba5638e42ef2d42f59064752b2d7456748383 | refs/heads/master | 2020-03-19T19:53:30.706655 | 2018-06-11T05:24:57 | 2018-06-11T05:24:57 | 136,878,082 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,419 | #!/usr/bin/env python
from saya_speech_database.srv import *
import rospy
import demjson
import requests
from std_msgs.msg import String
#Dialogflow imports
import json
import os.path
import os
try:
import apiai
except ImportError:
sys.path.append(
os.path.join(os.path.dirname(os.path.realpath(__fi... | [
"shekartp@gmail.com"
] | shekartp@gmail.com | |
346272b3b5970cd0464d87253b5596d439febe87 | fac9bfecb393dc55c8df9ef29f004fa988caf086 | /blogengine/models.py | 99467d6a5353d70e1208f0887c78d9d02c1cddb4 | [] | no_license | davidahines/djangoblog | 11073d28da4ebaf9cf6b53a086377ffce53cd27d | ac4dcf8894e2082f4854c15e21ec52a806f72878 | refs/heads/master | 2020-05-04T00:14:43.314105 | 2015-09-17T18:04:05 | 2015-09-17T18:04:05 | 37,873,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | from django.db import models
import datetime
# Create your models here.
class Post(models.Model):
author = models.ForeignKey('auth.User')
title = models.CharField(max_length=200)
text = models.TextField()
created_date = models.DateTimeField(
default=datetime.datetime.now())
published_da... | [
"david.hines.01@gmail.com"
] | david.hines.01@gmail.com |
d351604751e405616df5849739e2bdb6c54c47dc | fd534bb77f4fcb00ee160ff1329c346678c7295e | /tg/config.py | 0ff5dd666d6a2ae58062a04f71f0c7efaa2ec28e | [] | no_license | zhannel/4g | 3d9040052f7b311cb787fb7d6b08436e203cf2a8 | bd612c3013eb21c2557e5185cd68062df3f39319 | refs/heads/master | 2020-06-16T08:30:48.489996 | 2019-07-07T01:21:14 | 2019-07-07T01:21:14 | 195,524,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | BOT_TOKEN= "843393510:AAG6xZH86ktw46Mn3U2K7X5WDiusFYpLmXY"
admin_id = 319888936 | [
"togzhaanusein@gmail.com"
] | togzhaanusein@gmail.com |
7b015ff32745539c33b86df1e9476cbe5554ae9a | afad6310832f1ca83f6cad1f1f06c6f9dc3a7b56 | /models.py | 0a7d9d6ba9d2f105c7cd29324e1a249593654e6f | [] | no_license | blueskymc/TinyMind_OCR | a3bff6d9b5bbfcc131e2c13fbbf70e32c06eb68d | 594bab4f53f004c858b23a3f87bcb4ea064d184c | refs/heads/master | 2020-03-19T16:28:53.431112 | 2018-06-15T01:53:03 | 2018-06-15T01:53:03 | 136,716,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,641 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
'create models'
__author__ = 'Ma Cong'
import torch
import torch.nn as nn
import torch.nn.functional as F
cuda_is_ok = False
class model_channel_one(nn.Module):
def __init__(self):
super(model_channel_one, self).__init__()
self.Conv = torch.nn.Sequ... | [
"ctecmc@163.com"
] | ctecmc@163.com |
15505137addf7c1e823747955a72c8680c78475f | e149c4740a9a8f0755952e0642600d9c7388cd60 | /src/Game.py | aebff1ae4f20df5d0f3dbc077e85e7d324d04573 | [] | no_license | franktang/TDD---Bowling-game | 85260ea716e1c848b2576280d3aa340a958b5ca8 | e9869842747265c052ca895d5164f40651576b09 | refs/heads/master | 2021-05-03T05:18:22.636955 | 2018-02-07T16:03:45 | 2018-02-07T16:03:45 | 120,636,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | class Game:
game_string = ""
total_score = 0
def __init__(self, game_string):
self.game_string = game_string
def get_score(self):
for hit_score in self.game_string:
if hit_score != '-':
self.total_score += int(hit_score)
return self.total_score
| [
"frank.tang@accedo.tv"
] | frank.tang@accedo.tv |
aaac6b109a7625bfc0d5dbc870909af831b2eadd | 8066c3966e9342a4e5c60386a462ed1ea8145be6 | /tests/utils/test_extension_process_util.py | e950338fa6f3aaba10ef95ba8607619199a5af4f | [
"Apache-2.0"
] | permissive | vittyvk/WALinuxAgent | 93632f7b4660c08541ac7d40d6f4401346e29437 | 04ded9f0b708cfaf4f9b68eead1aef4cc4f32eeb | refs/heads/master | 2022-11-15T00:37:11.598969 | 2022-09-20T23:18:46 | 2022-09-20T23:18:46 | 4,778,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,044 | py | # Copyright Microsoft Corporation
#
# 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 |
cb90179a0f2c0c6d6d9ecd0add119d15ce349b91 | cdaeb2c9bbb949b817f9139db2d18120c70f1694 | /setup.py | 3464bc1d5f33496f16de775ce95e205c38b6b79e | [
"Apache-2.0"
] | permissive | sreekanthpulagam/rakam-python-client | 665c984ac7a29b57ead6feaeb99a69ba345220e6 | 8bd843208b03726d6ce89ee343b48b889b576e0e | refs/heads/master | 2021-01-24T15:42:36.374366 | 2016-07-19T21:49:26 | 2016-07-19T21:49:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,537 | py | # coding: utf-8
"""
Rakam API Documentation
An analytics platform API that lets you create your own analytics services.
OpenAPI spec version: 0.5
Contact: contact@rakam.io
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "Li... | [
"emrekabakci@gmail.com"
] | emrekabakci@gmail.com |
78837769e4db11787ce5d98195554a4e8bb76fb0 | 66d083c493f859bcd41cf5e59c30c23a539db3cf | /linkedList/removeDuplicatesfromSortedList2.py | 5869849ad5f2f776bafd6015a0c6e2276975a347 | [] | no_license | effyhuihui/leetcode | e9f9ac64632a238a4fee7aca2f748dc84bff2dfd | 55b7220f9ac11202da89082d699a9106b39aa12c | refs/heads/master | 2020-06-03T15:09:07.508851 | 2015-09-21T22:12:15 | 2015-09-21T22:12:15 | 30,550,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,926 | py | __author__ = 'effy'
'''
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.
For example,
Given 1->2->3->3->4->4->5, return 1->2->5.
Given 1->1->1->2->3, return 2->3.
'''
class ListNode:
def __init__(self, x):
self.val = x
... | [
"effy.yao@gmail.com"
] | effy.yao@gmail.com |
6eab2a578c86c6ea0821d0786513ea7664b6e406 | 44cf0d228b40dbdd4e7d5184dea8fb2eda8fd994 | /bagging.py | 52b52103bb296fa826f7fd63ad96774a61dc987d | [] | no_license | ChandanNaik/MachineLearning | d0e7fb01b12e507acc5c74d58cc9d3eb79076675 | a6dfa235a713de0260a0d974a4406d0ea50b675e | refs/heads/master | 2020-04-11T17:30:53.814079 | 2018-12-16T03:44:28 | 2018-12-16T03:44:28 | 161,963,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,234 | py | # Bagging
from sklearn.tree import DecisionTreeClassifier
from sklearn.base import clone
class BaggingClassifier:
def __init__(self, ratio = 0.20, N = 20, base=DecisionTreeClassifier(max_depth=4)):
"""
Create a new BaggingClassifier
Args:
base (BaseEstimator, optional)... | [
"noreply@github.com"
] | noreply@github.com |
275e6360f345894e139369f1af7d3073dc43b529 | 8451abe5dd410d2898b82ae77a905587865f1f0a | /leetcode-algorithms/004. Median of Two Sorted Arrays/solution.py | eda7241303186a7cc1e969043a45d98a95d45223 | [
"MIT"
] | permissive | bbruceyuan/algorithms-and-oj | f2d810e2638cb09b96f0238bf00a52d0bc93dd4d | f71118e8e05d4bcdcfb2dfc42187c73961b8b926 | refs/heads/master | 2022-04-12T19:14:45.342735 | 2020-03-24T06:38:39 | 2020-03-24T06:38:39 | 71,897,066 | 11 | 9 | null | null | null | null | UTF-8 | Python | false | false | 997 | py | #!/usr/bin/env python
# Created by BBruceyuan on 18-3-2.
class Solution:
def findMedianSortedArrays(self, nums1, nums2):
"""
有点搞笑,就这么简单的算法都beat 100%
:type nums1: List[int]
:type nums2: List[int]
:rtype: float
"""
a = []
i1 = 0
i2 = 0
... | [
"bruceyuan123@gmail.com"
] | bruceyuan123@gmail.com |
53771a716ee3670d333adcbdda6e0a73ea659b50 | dd86f7d74ce1214af219b2e4a1778b4713b601e4 | /polls/urls.py | 1dbbdc0277eba60ddb887bf8bdeba554a772c606 | [] | no_license | WayneZhang511/toy-system-django | 395aa993d463d2dc534faa45292d4da2cbf259f2 | 44a718d5da474a54d96ba93f73b06373a10d3aef | refs/heads/master | 2021-03-30T18:03:10.191589 | 2017-10-11T03:37:04 | 2017-10-11T03:37:04 | 105,661,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | from django.conf.urls import url
from . import views
app_name = 'polls'
urlpatterns = [
# # ex: /polls/
# url(r'^$', views.index, name='index'),
# # ex: /polls/5/
# url(r'^(?P<pk>[0-9]+)/$', views.detail, name='detail'),
# # ex: /polls/5/results/
# url(r'^(?P<pk>[0-9]+)/results/$', views.results, name='resul... | [
"waynezhang511@gmail.com"
] | waynezhang511@gmail.com |
f7b2c91b10561296133565c3d09eedb664299b98 | da82c65619448116e5eb578be92197274da07cff | /lycfirst2018-11-30/utils/file_reader.py | c462a170e7ecce13b2947d2b192058d0776f1527 | [] | no_license | liyouchao/PY-SELENIUM-framework | eccd5038fa3ede75ef21659183c02c1a58508850 | 032754a68c059db45eb39758fe62ad32982342f4 | refs/heads/master | 2020-04-17T17:49:06.348604 | 2019-03-05T02:16:25 | 2019-03-05T02:16:25 | 166,799,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,719 | py | import yaml,os
from xlrd import open_workbook
class YamlReader:
def __init__(self,yamlf):
if os.path.exists(yamlf): #判断这个yamlf是否存在
self.yamlf = yamlf
else:
raise FileExistsError("文件不存在!")
self._data = None
@property #私有属性
def data(self):
# 如果是第一次调用... | [
"757515065@qq.com"
] | 757515065@qq.com |
0326a70aa66d50e93d6ec10736f4e21d5fc1378a | 2d37c17a2d846bc9d8778ae1e5108ff10d8af7dc | /firstBlood/firstBlood/spiders/sencond.py | 30681ed4ec2ac0ece9d55f75528bb7b0c426ae95 | [] | no_license | wuyuz/Scrapy | 13f1d9aad947b9258f3a7eabd747b8dd2d697855 | 0895e446ea437c7ed0f0c37c5f847ee05543d877 | refs/heads/master | 2020-07-18T09:14:13.900981 | 2019-09-15T01:32:33 | 2019-09-15T01:32:33 | 206,220,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,621 | py | # -*- coding: utf-8 -*-
import scrapy
from firstBlood.items import FirstbloodItem
# class SencondSpider(scrapy.Spider):
# name = 'sencond'
# # allowed_domains = ['www.xxx.com']
# start_urls = ['https://www.qiushibaike.com/text/']
#
# # 将多个页码对应的数据进行爬取和解析的操作
# url = 'https://www.qiushibaike.com/text... | [
"1417506149@qq.com"
] | 1417506149@qq.com |
84bb47bd0a81b73ef1fb8f53eddef56f70422ecb | 4e8273cd6835eb1612199f368e96f64a1b73fd3d | /GEDS/functions/tnorm.py | 226da427c47d599e407246efb78a57bf8a07d616 | [
"CC-BY-4.0"
] | permissive | demotu/datasets | cd181624a2d46ae300045605655e8981210903ff | f1e144eafa3b0b8bc5bbea443482728381816af8 | refs/heads/master | 2022-10-06T21:03:58.709752 | 2022-09-05T19:41:51 | 2022-09-05T19:41:51 | 198,345,860 | 10 | 3 | null | 2020-03-16T16:24:37 | 2019-07-23T03:36:33 | Jupyter Notebook | UTF-8 | Python | false | false | 10,119 | py | """Time normalization (from 0 to 100% with step interval)."""
import numpy as np
__author__ = 'Marcos Duarte, https://github.com/demotu/BMC'
__version__ = "1.0.6"
__license__ = "MIT"
def tnorm(y, axis=0, step=1, k=3, smooth=0, mask=None, nan_at_ext='delete',
show=False, ax=None):
"""Time normalization... | [
"duartexyz@gmail.com"
] | duartexyz@gmail.com |
1295369946947a6f2243f7606ce9f0cea9cbbe2c | 58ee2f8eb6ec697c96e0ef138cca96c20ed710ec | /kmeans_image.py | 1bebbe0e141fddb43d092af99252e48315d62de9 | [] | no_license | Zamatica/kmeans | cef27467fb6522c91454600757ebde43a5076b04 | cfa33bed57bbdad5585829808e0b8c05ed59ead3 | refs/heads/master | 2023-03-14T03:29:56.292429 | 2021-03-06T08:27:17 | 2021-03-06T08:27:17 | 344,623,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,169 | py |
import cv2
import numpy as np
import warnings
import color_class
# Hide Warnings about empty clusters
np.seterr(divide='ignore', invalid='ignore')
# https://blog.paperspace.com/speed-up-kmeans-numpy-vectorization-broadcasting-profiling/
# Mine was terrible slow, so i updated it with this. It's like cocaine
# Cr... | [
"sweet@localhost"
] | sweet@localhost |
e3ddddb7243257fc393d603991528040ba6be69b | 73d1254ee77abe17e55dec4d51be3103ef46ec0f | /users/models.py | fcd69bddba29e555724b4ba10d3d20f9c5764204 | [] | no_license | SamuelDauzon/ci-git-only | 5ec05904fdef3a20870a887e20c141ebeb86ada0 | 4d523f4cb0fc7c5e0e59a53f552b344359d4ce73 | refs/heads/master | 2020-04-26T21:22:13.382135 | 2019-03-05T00:05:15 | 2019-03-05T00:05:15 | 173,840,365 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 886 | py | # coding: utf8
from django.db import models
from django.contrib.auth.models import AbstractUser
class BaseModel(models.Model):
created = models.DateTimeField(
auto_now_add = True,
verbose_name="Date de création"
)
modified = models.DateTimeField(
auto_now = True,
verbose_n... | [
"no_reply@dauzon.com"
] | no_reply@dauzon.com |
f87d255bff9708e83bb96cf5915730a789ec2be0 | 2c186319c034118f43b75e3e31739f4389cb36e1 | /68.py | c4d5a49f1aad98133386afa7b5d5608e9961f243 | [] | no_license | saiswethak/swetha | e67277956b489f26286ec4e18d9b53b969254f1c | 63cbe77a527af3b62ff1a750c74b3533d9a650a0 | refs/heads/master | 2020-03-24T23:18:31.841697 | 2018-09-09T10:48:23 | 2018-09-09T10:48:23 | 143,128,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | sp=int(input())
if(sp%7==0):
print("yes")
else:print("no")
| [
"noreply@github.com"
] | noreply@github.com |
362046ecf653bd321a72dc76894dd277f9da80da | 3ef306d49780eab8e5a5e1bb4a87355a91e6786a | /main_gameplay.py | f69d5711276735baab9615c08ea912b37e4723c8 | [] | no_license | thoriqfa/Tictactoe-RL | b536852f71a545b0151101fdc3a40062632fc6aa | db81a31d96955bb8295955946be2be0d05e57377 | refs/heads/master | 2022-10-01T04:32:41.019532 | 2020-05-28T16:45:32 | 2020-05-28T16:45:32 | 267,635,237 | 0 | 0 | null | 2020-05-28T16:39:40 | 2020-05-28T16:06:26 | Python | UTF-8 | Python | false | false | 2,717 | py | from tictactoe_game import Tictactoe
from agents import q_learning
from agents import random_comp
import matplotlib.pyplot as plt
import numpy as np
episodes = 10000
game = Tictactoe()
player1 = q_learning(epsilon=0.5, alpha=0.6, gamma=1, episodes = episodes)
player2 = random_comp()
#do training
results = []
for epi... | [
"thoriq.fauzan@gmail.com"
] | thoriq.fauzan@gmail.com |
a72e20d9939dd2d43d0f6b798a108c4a1ceb872e | e99dfc900052272f89d55f2fd284389de2cf6a73 | /apostello/forms.py | e069a875e9ac32cb666be19e6c15e47374ee20b0 | [
"MIT"
] | permissive | armenzg/apostello | a3e6ca3d34917608af79fbab4134ee4de1f5e8ee | 1827547b5a8cf94bf1708bb4029c0b0e834416a9 | refs/heads/master | 2021-01-18T18:16:02.364837 | 2017-03-22T20:34:21 | 2017-03-22T20:34:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,984 | py | from django import forms
from django.forms import ModelMultipleChoiceField
from apostello.models import Keyword, Recipient, RecipientGroup, UserProfile
from apostello.validators import gsm_validator, less_than_sms_char_limit
class SendAdhocRecipientsForm(forms.Form):
"""Send an sms to ad-hoc groups."""
conte... | [
"montgomery.dean97@gmail.com"
] | montgomery.dean97@gmail.com |
394cdba77f659f8b9617202f9907f76651b01c5d | c2869703e32af51587edfed2126787fdefd7d4df | /common/__init__.py | 7165d74c6ab3f16ec309ed3bdca722f047656018 | [] | no_license | riccardobrs/ntuple-utils | 0d7797314621b02da93308abb03f82bf33f4239e | 62a2a47304343636b1a74468d2918411da9143c2 | refs/heads/main | 2023-08-22T17:29:53.269875 | 2021-10-26T16:26:29 | 2021-10-26T16:26:29 | 322,426,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26 | py | from ntupleCommon import * | [
"riccardo158b@gmail.com"
] | riccardo158b@gmail.com |
bd83a568b14781b5e5c792846f1548236cc488d4 | 44a8e1ebdc9a872bfbdadfcff871514467e922d2 | /BiLSTM-Attention-CNN/TCR_Autoencoder/train_tcr_autoencoder.py | 469ac6813964166dec85d6239cae30c1ec28c142 | [
"MIT"
] | permissive | bijingshu/BiAttCNN | e549f0014276f3aaf26e820a6331cb19edb9d495 | 3b6eb522a96c651112ebcf04d50bc7d222e4a045 | refs/heads/master | 2023-04-25T02:44:14.704679 | 2021-05-14T08:08:30 | 2021-05-14T08:08:30 | 367,247,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,890 | py | import torch
import torch.optim as optim
import sys
from random import shuffle
from tcr_autoencoder import PaddingAutoencoder
from sklearn.model_selection import train_test_split
import os
import csv
def load_all_data(path):
all_data = []
for directory, subdirectories, files in os.walk(path):
for file... | [
"454807204@qq.com"
] | 454807204@qq.com |
93fa705b2aa486c2ea927afb7382f4d04a4ab1b2 | 4569d707a4942d3451f3bbcfebaa8011cc5a128d | /masterticketsplugin/branches/0.10/setup.py | 959b0c3c08eb24427c6df3a00be9187b87778476 | [] | no_license | woochica/trachacks | 28749b924c897747faa411876a3739edaed4cff4 | 4fcd4aeba81d734654f5d9ec524218b91d54a0e1 | refs/heads/master | 2021-05-30T02:27:50.209657 | 2013-05-24T17:31:23 | 2013-05-24T17:31:23 | 13,418,837 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | #!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
from setuptools import setup
setup(
name = 'TracMasterTickets',
version = '1.0',
packages = ['mastertickets'],
package_data = { 'mastertickets': ['htdocs/*.js', 'htdocs/*.css' ] },
author = "Noah Kantrowitz",
author_email = "noah@coderanger.n... | [
"coderanger@7322e99d-02ea-0310-aa39-e9a107903beb"
] | coderanger@7322e99d-02ea-0310-aa39-e9a107903beb |
cece4bcf5cb5f29aed03b84b7170b56874febb8b | 8109a8dc5d0f66da241bb1e1b11abf622362b7c0 | /x-vector-mfcc/local/compute_vad.py | 3d2734d9525ca8221fc0668046accd108cdde37c | [
"Apache-2.0",
"MIT"
] | permissive | dendisuhubdy/adversarial-attack-on-GMM-i-vector-based-speaker-verification-systems | d3fb1d423cc8041dbb2fdf3a8dc34b1b97c0f858 | 0aa9c0fc9bb224acc508d07cf76f5f14a01fd06c | refs/heads/master | 2022-11-13T16:31:47.663317 | 2020-03-09T02:13:23 | 2020-03-09T02:13:23 | 274,875,411 | 0 | 0 | Apache-2.0 | 2020-06-25T09:22:05 | 2020-06-25T09:21:36 | null | UTF-8 | Python | false | false | 748 | py | ##
import kaldi_io
import numpy as np
import sys
dataset = sys.argv[1]
rfilename = '/scratch/xli/kaldi/egs/voxceleb_xli/v3_stft/data/voxceleb1_'+dataset+'/feats.scp'
ark_scp_output='ark:| copy-vector ark:- ark,scp:data/LPS/'+dataset+'_vad.ark,data/voxceleb1_'+dataset+'/vad.scp'
keys = []
vectors = []
for key, mat i... | [
"xuli@se.cuhk.edu.hk"
] | xuli@se.cuhk.edu.hk |
43a965073d5670f71c531625185f815153f1fa27 | e91a2cc26cb70cfea57435c390f15db64f7ed7cf | /tutorial/apps/manufacturer/views.py | 3ea73a70bbf09cbfcb7317908325c94c20b04b64 | [] | no_license | marsty/djangotutorial | fe50428a8c63f4a8da7c5d2d5a6c34d34a996cbc | d3ea7eedbe4eedec4f414e11a6c094338e4db18f | refs/heads/master | 2020-03-23T14:07:14.296809 | 2018-08-12T03:01:56 | 2018-08-12T03:01:56 | 141,657,215 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py | from django.shortcuts import render
# Create your views here.
from rest_framework import viewsets
from .models import Manufacturer,ProductModel
from .serializers import ManufacturerSerializer,ProductModelSerializer
class ManufacturerViewset(viewsets.ModelViewSet):
"""
retrieve:
返回指定厂商信息
list:
... | [
"80199007@qq.com"
] | 80199007@qq.com |
08efa61f5676bbb6e508d15a875ee08018b49cda | 09dbe6f5f4a01d25df5b5783fcf621d4d4e6acab | /python/experiment/christy_species_replace.py | b726b8901a624fabe19d32a83a1c6c776bd8ee9b | [] | no_license | cjhopp/scripts | b2e925b42e3685713475d15cb4a637e62143778a | 89cecfe82532e84a739e26a845b9455df0090ca5 | refs/heads/master | 2023-05-31T06:35:03.638455 | 2023-05-15T18:14:44 | 2023-05-15T18:14:44 | 71,869,887 | 7 | 5 | null | 2017-07-12T13:59:15 | 2016-10-25T07:15:46 | null | UTF-8 | Python | false | false | 1,009 | py | #!/usr/bin/python
import sys
from glob import glob
def species_mapping(species_file, data_root):
"""
Loop Christy's files and replace species number with the correct string
:param species_file: Path to species mapping file (space delimited)
:param data_root: Root directory for the data files
:re... | [
"chet.hopp@vuw.ac.nz"
] | chet.hopp@vuw.ac.nz |
69efd940cd4e2da694a758d0cca76519c9f89fb1 | eca269aebd3f9263468c32c7ec1ca315617d1dc4 | /MLR.py | c85d7d73eb91c29e01c297badc7093d8a25fcc6a | [] | no_license | Pawel762/class6-homework | bcbdf00a4702e5d279d6d70b303fca21ac462e3b | 5d180152d35f91a51797b716e9c7f1e864e9cf5f | refs/heads/master | 2020-05-30T10:46:38.581219 | 2019-06-01T02:54:38 | 2019-06-01T02:54:38 | 189,680,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
import os
sns.set()
df = pd.read_csv(filepath_or_buffer='~/class6/wine.data',
sep=',',
header=0)
df.columns = ['class', 'alcohol', 'malic_acid', 'ash', 'alcalinity_of_ash', 'magnesium', 'total_phenols', 'flava... | [
"noreply@github.com"
] | noreply@github.com |
2c39a33db65c6a3580c6f79c6d463a87b919371f | 8bb9c2a39b586ec7f9ef630e557541ac7d754ba6 | /Mundo 2/Python_Exercicios/ex056.py | 3a93650b7faaf81b3a4d3e304bf72713d714d914 | [] | no_license | SirGuiL/Python | 390bd18ddb8af84271d72221314bb744f8af6e09 | 4a6c51a239548fc88788f71cc54184ef598c2584 | refs/heads/main | 2023-07-09T21:07:22.890943 | 2021-08-09T16:16:25 | 2021-08-09T16:16:25 | 383,320,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 868 | py | nomes = []
idades = []
sexo = []
soma = 0
maisvelho = 0
menos20 = 0
for c in range(0, 4):
nomes += [input('Digite o nome da {}ª pessoa: '.format(c + 1))]
idades += [int(input('Digite a idade da {}ª pessoa: '.format(c + 1)))]
sexo += [input('Digite o sexo da {}ª pessoa: '.format(c + 1))]
print('')
for ... | [
"guibiel-10@hotmail.com"
] | guibiel-10@hotmail.com |
9eef313a74d6de498726da0bbd38ecf264236f39 | f8563f2d765a53c94395f058cf66dddd32f59f5a | /usql/urls.py | 4a58967487257e72cd014296d17262d1bc0de977 | [
"MIT"
] | permissive | ocopulus/Compi2DjangoB2 | 3c11ab630b13ed3094bbb7d655b7373a07ddc78a | 41ffe94b2f489e5513c63545a26fdeb1d4c11697 | refs/heads/master | 2021-07-06T08:20:15.542765 | 2017-10-01T16:57:49 | 2017-10-01T16:57:49 | 105,457,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | """usql URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/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... | [
"jlemus003@gmail.com"
] | jlemus003@gmail.com |
2edda2149a28f2b52231c46e1d2c2d46a55c38ea | 9e4955ef50adb82151290ca6b7193274bf20f281 | /django_orm/users_proj/users_proj/urls.py | e791ca0d0a4057fc041ab49f851606fb9c75c0a0 | [] | no_license | donaldleblanc9150/django | e62233c0efb7063ed48c6b64c2891b4f97ffa6bc | 0fe369c57259399de1cdf124321bb0a1bcfaf770 | refs/heads/master | 2022-10-23T15:16:03.023732 | 2020-06-13T21:48:15 | 2020-06-13T21:48:15 | 271,561,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | """users_proj URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-ba... | [
"donald.leblanc@gmail.com"
] | donald.leblanc@gmail.com |
17b01b7757b466068ac0e133012746783840daec | d42e009ebd8bbc7b0b00ed693afa207fe7237d27 | /src/fastapi_aad_auth/config.py | 753cd275604136fd4580ff2201ad27873ff4882b | [
"MIT"
] | permissive | guitared/fastapi_aad_auth | ede44ba42804b0ece2060f8cd120b9393bfb7a22 | d5a557b73f719efc24933e20ecb139119831c35a | refs/heads/main | 2023-06-18T15:56:14.901218 | 2021-07-06T20:52:40 | 2021-07-06T20:52:40 | 386,250,527 | 0 | 0 | MIT | 2021-07-15T10:29:41 | 2021-07-15T10:29:41 | null | UTF-8 | Python | false | false | 10,548 | py | """fastapi_aad_auth configuration options."""
from typing import Dict, List, Optional
import uuid
from pkg_resources import resource_filename
from pydantic import BaseSettings as _BaseSettings, DirectoryPath, Field, FilePath, SecretStr, validator
from fastapi_aad_auth._base.provider import ProviderConfig
from fastapi... | [
"djpugh@gmail.com"
] | djpugh@gmail.com |
836eb6a6780d7fe478177955492e784ec44332b7 | 809fc1da9f4c861379a0760e4c2f1b82dc2d8f5d | /Set1/Uni.py | a5bf91bf2af1def234041acaca83e499a6fe0ea4 | [] | no_license | gayatri-gupta/Guvi | 8d84d93ffd3addfce35699a96369a0dcf3fd6152 | 05d685ce6acbaa3bb487ac15c47af30f183f97c9 | refs/heads/master | 2020-04-10T09:06:37.932803 | 2019-05-30T05:59:36 | 2019-05-30T05:59:36 | 160,871,319 | 0 | 0 | null | 2018-12-08T09:58:38 | 2018-12-07T20:17:52 | null | UTF-8 | Python | false | false | 200 | py | t = int(input())
l = list(map(int,input().split()))
r = []
for i in l:
if i in r:
print(i)
break
else:
r.append(i)
if len(set(l))==t:
print("unique")
| [
"noreply@github.com"
] | noreply@github.com |
1732ea51eb17a5805ad684399acaf1b1dd263503 | e34ba843cf682892462aec8b477d4a708968286d | /examples/reinforce/play_train_eval.py | 3940862cc92ca0638f291c3fc9e4d0b1fd396006 | [] | no_license | mecha2k/mygo | e088e4abff292aa225dd22655ef9032cd89ddabc | db77aeade0ef25b9cd8d0097aff7dd7cc7d78ef6 | refs/heads/master | 2023-01-21T21:37:57.930762 | 2020-11-26T14:02:33 | 2020-11-26T14:02:33 | 303,343,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,461 | py | import argparse
import datetime
import multiprocessing
import os
import random
import shutil
import time
import tempfile
from collections import namedtuple
from dotenv import load_dotenv
import h5py
import numpy as np
from dlgo import agent
from dlgo import kerasutil
from dlgo import scoring
from dlgo import reinforc... | [
"mecha2k@naver.com"
] | mecha2k@naver.com |
31257b962acae97b3ca647c9070f90c9313da36b | 8d33ab8cdd463566c8e555b49c8b0ea306f089a9 | /Auth_app/migrations/0001_initial.py | b1bbe862092ac71009a9577de6855952f17120d2 | [] | no_license | katchi7/LearningDjango | f28a020008e6ff1bf533a4d4cecb3ca7d917504e | 647d6bced9c34f869b43a710853ce31cd4a50eab | refs/heads/main | 2023-01-11T17:38:46.091713 | 2020-10-30T01:11:53 | 2020-10-30T01:13:04 | 308,489,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | # Generated by Django 3.1.2 on 2020-10-29 17:46
import Auth_app.models
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = ... | [
"abderrahimdeaabane@gmail.com"
] | abderrahimdeaabane@gmail.com |
bc0a0f7dfbe35050a9035d3876340738c6a11218 | 58f8dabea5fb9a30432f0446662fa1cce3e22ebe | /data/core/migrations/0001_initial.py | 395d093d75101fb94c102e8d973ca5a74da5c82a | [] | no_license | NagaTejam/login-and-registartion-form | 677a3cd58e401df478d18763fce7dc1ebaccdf54 | b2ce185b6527c747a322197d6a1aac0d2edf7050 | refs/heads/master | 2020-03-25T04:10:42.755772 | 2018-08-03T05:18:59 | 2018-08-03T05:18:59 | 143,243,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 928 | py | # Generated by Django 2.0.7 on 2018-08-01 15:59
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | [
"noreply@github.com"
] | noreply@github.com |
5c058f35dbc7158e69001f9464d2aab77d140057 | 8973166216a9ea05fe3700d48ea85862d351edb0 | /apps/accounts/views.py | 5a3900716fe05d140b94efd56fb00710c22766ba | [] | no_license | adidacom/django-portfolio | da245af1f83883801c4a833de3f52fa272218059 | a1f32ec5b6612b49e0c4ad80b6081e10cbb5e57b | refs/heads/master | 2022-12-11T23:29:03.455086 | 2019-06-29T13:26:51 | 2019-06-29T13:26:51 | 194,408,528 | 2 | 0 | null | 2022-11-22T02:39:36 | 2019-06-29T13:26:18 | Python | UTF-8 | Python | false | false | 1,645 | py | from django.contrib.auth import authenticate, get_user_model, login, logout
from django.shortcuts import render, redirect
from .forms import UserLoginForm, UserRegisterForm
from ..blog.utils import get_header_text
def login_view(request):
print(request.user.is_authenticated)
next = request.GET.get('next')
... | [
"adidacom427@gmail.com"
] | adidacom427@gmail.com |
a709e470d116317d8eb480de9e0826be62f57d03 | 3de32cbbc87886f4af1d3573b241fe993b368678 | /turtle.py | e6fc413dd376056be6f9a98c1c0948c87f6263fc | [] | no_license | koiic/python_mastery | dc033cbc7b8a2b915ec08d337075472d866096e4 | 5d8c1b92d07571bb64f60d1330d81d4e415beb3a | refs/heads/master | 2021-12-29T22:48:36.344861 | 2021-12-22T07:34:08 | 2021-12-22T07:34:08 | 210,476,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,181 | py | ''' Using turtle to draw diagrams and shape'''
# import turtle
# import math
# def draw_square(obj, length):
# for i in range(4):
# obj.fd(length)
# obj.lt(90)
# def draw_polygon(obj, sides, length):
# angle = 360/sides
# for i in range(sides):
# obj.fd(length)
# obj.lt(a... | [
"ibraismail1990@gmail.com"
] | ibraismail1990@gmail.com |
fac5426acec6c2d671b69f0431c33de1e83355b5 | 6706ed9a9abacb83b13457634407c2ac34157e86 | /webshop_search_filter/models/__init__.py | 3f109c9c01f13d0089a6a17cb09081d47f0f2df7 | [] | no_license | vertelab/odoo-website-dermanord | 9541609c242b91acdb9a876bf2dfdc47b4041ca8 | ded1711494d74270a06ac9983631a65e2cd5ccac | refs/heads/14.0 | 2023-06-23T04:24:06.449631 | 2023-06-16T08:49:57 | 2023-06-16T08:49:57 | 73,261,390 | 3 | 9 | null | 2021-11-25T07:39:27 | 2016-11-09T07:33:24 | Python | UTF-8 | Python | false | false | 992 | py | ################################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2019 N-Development (<https://n-development.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero Gene... | [
"eksvic@dto14inventory.dermanord.se"
] | eksvic@dto14inventory.dermanord.se |
cfd673020fa6e8ae72a329d462ed12a4abc58bdb | ba4327a7f776d038950c42e3d05d506f1ebdeeae | /46-permutations/solution.py | a04f154ad8221555a22b0ab563a3a9d446235ef3 | [] | no_license | frankShih/LeetCodePractice | 87a9bde8a9161e37865f638fe4dabbb7d7415cfd | 4348bc3e41640675beb3efdf5b50068612e1999b | refs/heads/master | 2020-03-23T18:13:10.528038 | 2019-04-28T14:46:01 | 2019-04-28T14:46:01 | 141,896,057 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,068 | py | class Solution:
def permute(self, nums):
"""
:type nums: List[int]
:rtype: List[List[int]]
"""
result=[]
if not nums:
return result
# DFS 35%
visit=set()
def helper(visit, perms):
# print(... | [
"f27978329@gmail.com"
] | f27978329@gmail.com |
d53e10768342599aa14a6272d0332ee926f95a32 | ac9cc42c457a77eed6ce0af50d96f2d2af99162b | /GUI/plot.py | b9be4c59ae29b910c34c25e81b6c7103bb2942de | [] | no_license | gaohaoyue/ps_drone_summer_2015 | 0542f1ac871a0a04aaadb5c7939afb885de9a0c5 | 7658bbf9347715192a647ec5772b1959827dba50 | refs/heads/master | 2021-01-10T11:13:42.210776 | 2016-03-10T07:46:17 | 2016-03-10T07:46:17 | 53,565,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | __author__ = 'gary'
import matplotlib.pyplot as plt
f = open('sb','r')
b = []
i=0
c=[]
a = f.readline()
b.append(a)
c.append(i)
while(a!=''):
a = f.readline()
if a != '':
b.append(a)
i+=1
c.append(i)
#print "a", a
#print "i", i
print "c", len(c)
print "b", len(b)
plt.plot(c... | [
"gary@garys-MacBook-Pro.local"
] | gary@garys-MacBook-Pro.local |
83aaae77975388840c2ec6d353f47230ec65d254 | 540c2057cb9180f563b8b097a3b369d3e346cc2c | /federatedml/protobuf/generated/mf_model_meta_pb2.py | f9376f4c31aedbd95d2bfc3b5d1b42d205ba391d | [
"Apache-2.0"
] | permissive | AustinNeverPee/FedRec | e35d282d9d80dc1312278b55112072c7fbf24d0c | 24a246239f8179c0d5facc982229d1568d05ae26 | refs/heads/master | 2022-12-25T08:07:26.470641 | 2020-08-30T12:02:46 | 2020-08-30T12:02:46 | 271,752,017 | 0 | 0 | Apache-2.0 | 2020-06-12T08:47:08 | 2020-06-12T08:47:07 | null | UTF-8 | Python | false | true | 11,192 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mf-model-meta.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.protobuf import reflection as ... | [
"ianben@163.com"
] | ianben@163.com |
b745994c99b7abaa35b8993f7b3d612cb7b388ac | e26610fef9f743f965dfcbe1f246208bfcbf0fbe | /functions/ts_v2_catalog/__init__.py | c86699d3a13b5941528ca82f0ed80c5c529924ab | [] | no_license | jag3773/d43-catalog | f49acba5443baf78139f871c0fabe0647e771bce | 339cd98c8eeb71ef3f5b675efe0103fbfe1d0246 | refs/heads/master | 2021-06-24T14:56:54.817064 | 2017-08-29T23:26:27 | 2017-08-29T23:26:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38 | py | from handler import TsV2CatalogHandler | [
"mclean.b@icloud.com"
] | mclean.b@icloud.com |
75b93e425a03805a59ac07744a1c29e4c52b7aa3 | fc159c2ee2836aa3a236c3ac3ca62015c212838e | /cloudshell/cli/cli_exception.py | c36cc9238b8aaf091f6f7970cc0d2d3a63cf8156 | [
"Apache-2.0"
] | permissive | kalsky/cloudshell-cli | 373ade954d10cbe220a83d7a358e2b6799848820 | 5a8098bc0348b248b1444557323dda3ccc1cdfbb | refs/heads/dev | 2021-01-21T03:55:56.953530 | 2017-08-31T15:36:15 | 2017-08-31T15:36:15 | 101,903,497 | 0 | 0 | null | 2017-08-30T16:20:18 | 2017-08-30T16:20:18 | null | UTF-8 | Python | false | false | 80 | py | class CliException(Exception):
"""
Basic cli exception
"""
pass
| [
"yaroslav.n@qualisystems.com"
] | yaroslav.n@qualisystems.com |
41f434e720b7d08ead0acdbb3bde018557801601 | 3ba067db1ec87be7ed432a65b5b6ee8f090b02ae | /lab_9/count_letters.py | 46bc96d72da907ea75f8e1eb853e0778afbc3daa | [] | no_license | Muntaser/PythonExploration | a50f70472a229bd3269ba660eff43c5285ad7626 | 72b430eca27b4711fe553b1cf680f39447398b3d | refs/heads/master | 2020-03-24T04:41:05.128380 | 2018-07-26T16:18:01 | 2018-07-26T16:18:01 | 142,461,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 888 | py | """
count_letters.py:
Print out frequency counts of all letters 'a'..'z', 'A'..'Z' found in input string.
Only counts >0 should be printed
Muntaser Khan
"""
str = input ("Enter a string to count: ")
print ("You entered '%s'" % str)
# for index in range(len(st)):
# st[index] ..
# initialize dictionary counts ... | [
"mkhan96@LAMU02W93BTHTD6.uhc.com"
] | mkhan96@LAMU02W93BTHTD6.uhc.com |
a00ba07dd423407c0eb381d8104917ddc3f027d5 | 600650d28d0aff2a85181a359102d8836f16436d | /intros/settings/dev.py | da1372e398ca55089ee6534b095d6e60bbce6242 | [] | no_license | intros/intros | dcadf03a22715e7224119695eb2a40d658b9e988 | fb1bd8b31bd4911f032203e81aa7e507a618a96e | refs/heads/master | 2016-09-06T03:50:34.333943 | 2014-08-30T20:17:30 | 2014-08-30T20:17:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | # -*- coding: utf-8 -*-
from .base import *
DEBUG = True
# INSTALLED_APPS = list(INSTALLED_APPS) + ['devserver']
# Django-SES
#EMAIL_BACKEND = 'django_ses.SESBackend'
# These are optional -- if they're set as environment variables they won't
# need to be set here as well
#AWS_ACCESS_KEY_ID = 'YOUR-ACCESS-KEY-ID'
#AW... | [
"alex@lovelltroy.org"
] | alex@lovelltroy.org |
cb86190241829fe4dbed3dcca133c4bba33f705d | bad62c2b0dfad33197db55b44efeec0bab405634 | /sdk/authorization/azure-mgmt-authorization/azure/mgmt/authorization/v2021_12_01_preview/operations/_tenant_level_access_review_instance_contacted_reviewers_operations.py | 48d84587e79ccee9f1e63b27a608b56c06fc182f | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | test-repo-billy/azure-sdk-for-python | 20c5a2486456e02456de17515704cb064ff19833 | cece86a8548cb5f575e5419864d631673be0a244 | refs/heads/master | 2022-10-25T02:28:39.022559 | 2022-10-18T06:05:46 | 2022-10-18T06:05:46 | 182,325,031 | 0 | 0 | MIT | 2019-07-25T22:28:52 | 2019-04-19T20:59:15 | Python | UTF-8 | Python | false | false | 7,033 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | noreply@github.com |
6d2d0dfe29ad38180900710bcf86696c2a6dd40c | 895933d60a91640dd4b7187b3bb4c8cce45539b9 | /bokk/models.py | 1fbd90d8ae2413bd6309f28d147c532bd866c007 | [] | no_license | dinagouda/bokk | d9ca95c43039e0bcaf4edeb8b34f1951caf4ae8d | 77c26146e2cd5dc4f4ff0c9f74435a7557d36a68 | refs/heads/master | 2020-03-26T02:43:05.980881 | 2018-08-12T07:32:52 | 2018-08-12T07:32:52 | 144,421,151 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,625 | py | from django.db import models
# Create your models here.
class children(models.Model):
b_id=models.IntegerField(default=0)
b_name=models.CharField(max_length=40)
b_auth=models.CharField(max_length=15)
b_review = models.CharField(max_length=15)
b_image = models.ImageField(blank=True, null=True)
... | [
"dinagouda1@gmail.com"
] | dinagouda1@gmail.com |
24983dba27a4c3513d731d7b06bc5dccdeee9d43 | 7dba60ae27ff247705607839348f017b85f5da16 | /nyumbax/migrations/0002_auto_20210411_0803.py | 2ec99f45ae6bd3b4e3db2f3f8d33a24f6ac451aa | [
"MIT"
] | permissive | BwanaQ/nyumba-kumi | 7edccb6745ede6d9f6faf5bd8c0dcf6e24726991 | c264b0941c77a4d7175a2dc5380723bea1acf380 | refs/heads/master | 2023-04-05T09:32:34.867456 | 2021-04-13T15:54:16 | 2021-04-13T15:54:16 | 356,136,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,845 | py | # Generated by Django 3.2 on 2021-04-11 08:03
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('nyumbax', '0001_initial'),... | [
"thunjawax@gmail.com"
] | thunjawax@gmail.com |
a219b841ab6385d5bfeb6080b9cd5fbad9671692 | e8455965188c5fcfe9c8196de6e0d12fc950d52e | /Algorithms/AKS.py | 899c4fd44a9091bc7d963f16871dd49e55d64712 | [
"MIT"
] | permissive | Galieve/algebra_computacional | 17e4f75c5b4b8fa526a9f94fbdbc7881503a6917 | 2e60100de9d605cf65e90e677458264d9a923e2b | refs/heads/master | 2020-11-29T13:15:27.612705 | 2020-01-20T16:53:00 | 2020-01-20T16:53:00 | 230,121,295 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,600 | py | # A computational introduction to number theory and algebra
from math import ceil, log, floor, sqrt
from Algorithms.MathAuxiliar import to_binary
def is_power(n):
k = int(ceil(log(n, 2)))
for b in range(2, k + 1):
a = n**(1./b)
if floor(a) == a:
return True
return False
def ... | [
"enriqueroman@live.com"
] | enriqueroman@live.com |
d19bd34f9a2d1b5c1b1b16e5428d5d25c841f39e | 118e370042c1d7762fdc83edf580ddbdfd094be7 | /MTG/abilities.py | c53a41bf115e871428a92914fc8b151f94f3ef3b | [
"MIT"
] | permissive | townie/mtg-python-engine | 4b512c286795a7c3b3b743f30232d39f0769fd6f | db87d71e7ef4b967115790b5b0345bd6534a6809 | refs/heads/master | 2020-03-09T16:01:19.970125 | 2017-09-29T00:06:15 | 2017-09-29T00:06:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,133 | py | from enum import Enum
from MTG import mana
from MTG import helper_funcs
from MTG import play
class StaticAbilities(Enum):
Deathtouch = 0
Defender = 1
Double_Strike = 2
First_Strike = 3
Flash = 4
Flying = 5
Haste = 6
Hexproof = 7
Indestructible = 8
Intimidate = 9
Menace = 10
... | [
"1213.ghs@gmail.com"
] | 1213.ghs@gmail.com |
352572e449e3e3cc35be03fafbd208e5ef13c629 | 3dd5815838dbe2bc06aeddfb692ee9c7a98d2c6b | /pages/migrations/0037_project_title_preview.py | c48ba36df25b2011691b73ccbe2a5a92127c1cb6 | [] | no_license | nChurn/dtl | 7ca7fe2bb9071d82a85f52b4fd84496b264af066 | 99b6d591c9a50188805a5a248d8d1249fa3bc274 | refs/heads/master | 2023-05-28T23:59:56.313973 | 2021-06-09T18:25:06 | 2021-06-09T18:25:06 | 375,452,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2018-07-16 09:16
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pages', '0036_project_slug'),
]
operations = [
migrations.AddField(
... | [
"reddrakosha1@ya.ru"
] | reddrakosha1@ya.ru |
d6c63e7cdcc8c0a3b02d76f9577dc66014bd6d97 | 6f0ee40d1536faa959445421f819d18828fd170c | /modules/action_13.py | 4acedfd5f46407b9d29b365079d0645df899c636 | [
"MIT"
] | permissive | holachau/Supermercados_BAN | c3f2e3845b8e0ae379f8c7a656fe287afbea9768 | 374d474dcd9bf763df129eae840fe17e1dd6f5f7 | refs/heads/master | 2020-04-02T10:49:28.082158 | 2018-11-12T01:52:00 | 2018-11-12T01:52:00 | 154,356,895 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | import sys
sys.path.append('./lib')
sys.path.append('./utils')
from productos import getProductos, updateProducto
from date import now, addDays, formatDate
import datetime
def DescVenc():
prods = getProductos()
fecha = now()
end_date = addDays(fecha, 7)
for i in prods:
if prods[i]["fechaVencimi... | [
"nicolas.benacar@comunidad.ub.edu.ar"
] | nicolas.benacar@comunidad.ub.edu.ar |
d0074cf34faa97e409587457b3a55e2e27a680b9 | e4e1223e28a47bee5c47f3b08e05276996bb3694 | /example/context.py | 101cbd0c816dc15c5e05434adbb53d99e805564c | [
"BSD-3-Clause"
] | permissive | ecarreras/subcmd | 891bc108ea713a2e2f78dfde9a2e7f2661f3c847 | ee0475b82da7125909c6a6828eee115d20e6193c | refs/heads/master | 2020-12-25T04:18:09.850340 | 2012-08-28T09:09:52 | 2012-08-28T09:09:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,682 | py | #
## BEGIN LICENSE BLOCK
#
# Copyright (c) <2012>, Raul Perez <repejota@gmail.com>
# 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 copy... | [
"repejota@gmail.com"
] | repejota@gmail.com |
1cb0ae7577c1f1abad011e559fb5aa4c836e067c | b097bfd80779b7fe08824eb4bdbcb9aab38a3d62 | /rumpleteazer/articles/models.py | 0bc6a9d9c7b7fc38dc549aa05a1d259ad63fde03 | [
"WTFPL"
] | permissive | xiongchiamiov/rumpleteazer | c450290258b59c298b8953a104d7d65dafeabae4 | 086b35dd1dda9738bd31be2876a89bae23fe8dad | refs/heads/master | 2020-05-18T17:05:07.746324 | 2013-06-01T17:01:58 | 2013-06-01T17:01:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | # -*- coding: utf-8 -*-
from django.db import models
class Series(models.Model):
title = models.CharField(max_length=200)
slug = models.SlugField(unique=True)
summary = models.TextField(blank=True)
class Meta:
verbose_name_plural = 'Series'
ordering = ('title',)
def __unicode__(self):
return u'%s' % self... | [
"xiong.chiamiov@gmail.com"
] | xiong.chiamiov@gmail.com |
5872c16999232bf9b626b10e9797f1ee0354f5ad | 49d40b099f53bc045f977bc59b52f97ae634f75e | /Blog_Auto_Tweet.py | 2aeb848c8c5c9aaa79b8c242a79db7aeed090f71 | [
"MIT"
] | permissive | claimclone/Blog_Auto_Tweet | 8be8fa572008b40cd29e59865dd5d2a5f81f1e2b | 40f426297e61bb6d783a02ae5e4cc7c3968fba91 | refs/heads/main | 2023-05-11T17:50:00.901125 | 2021-05-27T04:50:51 | 2021-05-27T04:50:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,803 | py | # Importing modules
import tweepy
import datetime
from decouple import config
import logging
# logging config
logging.basicConfig(level=logging.INFO, filename='data.txt',)
logger = logging.getLogger()
# Keys
CONSUMER_KEY = config('Consumer_Key')
CONSUMER_SECRET_KEY = config('Consumer_Secret_Key')
ACCESS_TOKEN = conf... | [
"aritraroy24@gmail.com"
] | aritraroy24@gmail.com |
397e0436029206c88d0e89238ad11c9b50d2c719 | 80e83dd69395312db092f7b0277310a29afb95b6 | /untitled1/doc-To-Excel/ResolveDocx_JieYing-AddValue.py | d703a0525d96c3bd701c4fe5765107cd7388ac85 | [] | no_license | yif-zhu/Python-Project | 3a102695a7eab2e149e260ccee955de84685b6cb | d55edb652d66e6694a120eb329cd04abba57ba1e | refs/heads/master | 2023-01-21T00:59:27.743845 | 2020-12-04T08:42:56 | 2020-12-04T08:42:56 | 299,492,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,901 | py | # _*_ coding:utf-8 _*_
import os
import os.path
import sys
import re
import xml.etree.ElementTree as XETree
import xml.etree.ElementTree as ET
from docx import Document
from openpyxl import load_workbook
cdfp = None
cwb = None
clws = None
DATANOTFOUND = 0
writeLog = 0
def formatNum(num):
num=str(num)
pattern=... | [
"yif_zhu@163.com"
] | yif_zhu@163.com |
c156eba4bb8e3a7204012b26da556a71fb05fc41 | 203540b285482c67eb2a6a03f4d5572ad1aa0cee | /Movement Through The Void/Code/Current Code/PlanetsClass, 10-29-12.py | 90b5050483e22ae119934cf3397b7cd9a6426f1b | [] | no_license | hvpeteet/Movement-Through-The-Void | da916d3f042bb3725cc5b3985d64a785baf306e3 | 00b70f317f8f301c32f40a6131f065901ab73d3f | refs/heads/master | 2021-01-22T10:08:36.091441 | 2013-09-16T11:15:26 | 2013-09-16T11:15:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,435 | py | from visual import*
from math import*
class system(object):
def __init__(self):
self.all_sub_systems=[]
def __str__(self):
out=""
for planet in self.all_sub_systems:
out+= (str(planet)+",")
return out
def __add__(self,other):
return self.combine(other)
... | [
"hvpeteet@gmail.com"
] | hvpeteet@gmail.com |
e7ed20584cd2a3e9120547bf256c89a97295ec0d | 1a949f20cafe328c5ad145659903e8dc5d974a76 | /subjects/admin.py | 70f7ea47f0a4e6dd08a1ec643b007f0d733a30c9 | [] | no_license | Fabricourt/plotx | 7154be9153ab532796a16a1de3125276913fca97 | b2a526d4a9236217978a48a997b3b425cd40c0a9 | refs/heads/master | 2022-12-11T18:57:36.631087 | 2020-07-07T17:22:50 | 2020-07-07T17:22:50 | 230,000,109 | 0 | 1 | null | 2022-12-08T03:27:54 | 2019-12-24T20:25:39 | JavaScript | UTF-8 | Python | false | false | 458 | py | from django.contrib import admin
from .models import *
class SubjectAdmin(admin.ModelAdmin):
list_display = ('subject_name', 'created_by', 'is_published', )
list_display_links = ('subject_name',)
list_filter = ('subject_name', 'created_by',)
list_editable = ('is_published',)
search_fields = ('subject_nam... | [
"mfalme2030@gmail.com"
] | mfalme2030@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.