repo_name stringlengths 7 111 | __id__ int64 16.6k 19,705B | blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 151 | content_id stringlengths 40 40 | detected_licenses list | license_type stringclasses 2
values | repo_url stringlengths 26 130 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 42 | visit_date timestamp[ns] | revision_date timestamp[ns] | committer_date timestamp[ns] | github_id int64 14.6k 687M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 12
values | gha_fork bool 2
classes | gha_event_created_at timestamp[ns] | gha_created_at timestamp[ns] | gha_updated_at timestamp[ns] | gha_pushed_at timestamp[ns] | gha_size int64 0 10.2M ⌀ | gha_stargazers_count int32 0 178k ⌀ | gha_forks_count int32 0 88.9k ⌀ | gha_open_issues_count int32 0 2.72k ⌀ | gha_language stringlengths 1 16 ⌀ | gha_archived bool 1
class | gha_disabled bool 1
class | content stringlengths 10 2.95M | src_encoding stringclasses 5
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 10 2.95M | extension stringclasses 19
values | num_repo_files int64 1 202k | filename stringlengths 4 112 | num_lang_files int64 1 202k | alphanum_fraction float64 0.26 0.89 | alpha_fraction float64 0.2 0.89 | hex_fraction float64 0 0.09 | num_lines int32 1 93.6k | avg_line_length float64 4.57 103 | max_line_length int64 7 931 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rachione/picoctf2019-scripts | 8,435,315,812,201 | 68a5d6b2a5efe94092d58de5589d1d1dc077f5ba | 7fc76a81b43cd0d0fce1b9985228178d21ce5ada | /rsa-pop-quiz/main2.py | 77b93f1973dcfdde5d18c230377e36b174cf7516 | [] | no_license | https://github.com/rachione/picoctf2019-scripts | 070b35b22774779a2ff44713316c0ba68f2ee01e | ce8c280cd2cc2982d43f1c9a4cb29d31aa36c512 | refs/heads/main | 2023-01-30T23:59:45.185647 | 2020-12-13T10:50:34 | 2020-12-13T10:50:34 | 321,036,261 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
def multiplicative_inverse(a, b):
"""Returns a tuple (r, i, j) such that r = gcd(a, b) = ia + jb
"""
# r = gcd(a,b) i = multiplicitive inverse of a mod b
# or j = multiplicitive inverse of b mod a
# Neg return values for i or j are made positive mod b or a respectively
# Iterateive Ve... | UTF-8 | Python | false | false | 3,232 | py | 112 | main2.py | 80 | 0.737933 | 0.252166 | 0 | 70 | 45.071429 | 629 |
matihost/learning | 8,864,812,527,562 | e2865c59d718308c68a47119fa77d04496545a3c | dd5f45e10c61f86239afe3117af36345a3051968 | /python/apps/exchange-rate/src/exchange_rate/cli/exchange_rate_web.py | cff44453aedf626870f72c694c177fbc8d3082c2 | [
"MIT"
] | permissive | https://github.com/matihost/learning | 49a5d91b78afa8ff2dd760b56cb6d2dfee52d736 | 04f9d7ccc7d458fe754aa5c2ac145f9b4ca2a552 | refs/heads/master | 2022-03-07T12:16:01.151763 | 2022-03-06T22:48:53 | 2022-03-06T22:48:53 | 144,377,092 | 2 | 2 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python3
"""
Show Foreign Currency/PLN pair.
It is based on Polish Central Bank (NBP) fixing exchange rate.
"""
from datetime import date
import logging
from waitress import serve
from flask import Flask, jsonify, make_response
from exchange_rate.helpers.version import package_version
from exchange_rate... | UTF-8 | Python | false | false | 1,367 | py | 437 | exchange_rate_web.py | 136 | 0.700073 | 0.687637 | 0 | 52 | 25.288462 | 106 |
Leonardo760/Desafios-UriOnline-Python | 16,973,710,792,513 | c82235902c8122ab57c033143e2330f84915192e | 04d01a838c1e8d0a504d8d3e74dfa4247fd5aec4 | /Desafio 1151.py | f9e85d482eb32b2ecf4cecc5ce3aed4da019fd22 | [] | no_license | https://github.com/Leonardo760/Desafios-UriOnline-Python | 611470a9a4d47b7c9bbaa35c62c763c97c20cea8 | 9095e614d9d61f98e5137d7c753add1bf96b4fea | refs/heads/master | 2020-05-07T20:44:36.073377 | 2019-04-11T20:52:18 | 2019-04-11T20:52:18 | 180,875,777 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | N = int(input())
while 0 < N < 46:
X = ("0 1 2 3 4 5 6 7 8 ")
| UTF-8 | Python | false | false | 75 | py | 15 | Desafio 1151.py | 15 | 0.373333 | 0.213333 | 0 | 3 | 19.666667 | 26 |
ptone/harvard-view-tools | 15,530,601,783,163 | 01264881eaee0e141678fc634b6103c2b379267c | ed25efd667d58ba300d868089da1fb0442d3f93c | /get_class.py | 0a4e4fdec33c099756b38fe79465e38bf2ed545c | [
"Apache-2.0"
] | permissive | https://github.com/ptone/harvard-view-tools | 4fac06abe43ae29f0be5993613d862bacf201c34 | 97157cb1115b214336822df24a5deb040ff926a2 | refs/heads/master | 2021-01-19T20:18:54.008519 | 2014-04-24T03:17:55 | 2014-04-24T03:17:55 | 19,093,896 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from __future__ import print_function
import datetime
from pyquery import PyQuery as pq
import urllib2
def is_lecture(item):
for l in item.find('ul').findall('li'):
if 'list-type' in l.attrib['class']:
l_id = l.attrib['id']
if 'L' in l_id:
return l_id
return Fal... | UTF-8 | Python | false | false | 1,387 | py | 5 | get_class.py | 3 | 0.565249 | 0.535689 | 0 | 43 | 31.255814 | 136 |
dima2395/tables | 523,986,056,208 | 35704f45229653bfd43776d2476cdfe3b8c5fde2 | 7bcbbd557856033d4840f7b19ccb118409a067a7 | /tables/templatetags/orders_helpers.py | 5e9199a949a1f32272867dadc1e3dd8e534321d0 | [] | no_license | https://github.com/dima2395/tables | 73857707e5de85488c9d250d0bb5eb299653bb04 | 08422e5a619f97994f732adf7302e23527ebef59 | refs/heads/master | 2020-12-02T11:17:19.132846 | 2017-08-26T14:53:31 | 2017-08-26T14:53:31 | 96,623,393 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
from django import template
from tables.models import Order
register = template.Library()
@register.simple_tag(takes_context=True)
def get_orders_count(context, filtered=""):
user = context['user']
company = context['company']
if filtered:
orders = Order.objects.filter(company=company, status=f... | UTF-8 | Python | false | false | 501 | py | 47 | orders_helpers.py | 19 | 0.692615 | 0.692615 | 0 | 20 | 24.05 | 71 |
Manasikotalpur1999/JISAssasins | 14,456,859,925,142 | 085738f12f1e6d667668179afc51b9816ee7aafa | 4cd0d7dbaa68160c8257551d2e640927de2f0dc5 | /Q24.py | 9d54d72b20f68d035843f159467f1ae47b2953b2 | [] | no_license | https://github.com/Manasikotalpur1999/JISAssasins | 9ca8c028094d9d60eb1a7573fbc511d88fdd4c41 | f9dccab588f17b9c361e3b4cd796b0f52000fb58 | refs/heads/master | 2020-04-13T22:24:24.555411 | 2018-12-30T17:18:44 | 2018-12-30T17:18:44 | 163,478,134 | 0 | 0 | null | true | 2018-12-29T05:14:03 | 2018-12-29T05:14:03 | 2018-12-29T05:09:14 | 2018-12-29T03:06:55 | 15 | 0 | 0 | 0 | null | false | null | #!/usr/bin/env python
# coding: utf-8
# In[5]:
#question 24
Num=10
for i in range(1,10):
print(Num *i)
# In[ ]:
| UTF-8 | Python | false | false | 125 | py | 15 | Q24.py | 15 | 0.544 | 0.472 | 0 | 13 | 8.307692 | 21 |
lpp1985/ZTPG | 3,925,600,147,185 | d7cd475ddda57b9b32cce7d8538de54ae8864483 | 411f9978ec335b1368e4c6821214c91af4b8f8e1 | /Pacbio_Corrected.bak | c60b96ddeef1a0b280cb199903bd1798cc6b2c0e | [] | no_license | https://github.com/lpp1985/ZTPG | 04f05c9c5619d358e7f52299edd280ada4f4443c | aed2b842aba13d8825ce37f9f39f1917e1132def | refs/heads/master | 2021-01-19T22:29:11.338471 | 2017-01-09T02:53:33 | 2017-01-09T02:53:33 | 22,055,532 | 2 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
#coding:utf-8
"""
Author: --<>
Purpose:
Created: 2016/6/13
"""
from Dependency import *
def get_para( ):
#获得运行参数
usage = '''
%prog [ options ]
'''
parser = OptionParser( usage = usage )
parser.add_option("-i", "--Input", action="store",
dest="... | UTF-8 | Python | false | false | 2,829 | bak | 97 | Pacbio_Corrected.bak | 48 | 0.513312 | 0.502662 | 0 | 86 | 31.593023 | 109 |
alphafan/quadratic-optimization | 16,810,502,015,144 | 4bc016f58eb9f6cad0d4cf0b402317dd16e47ce1 | d76f2380980b76137f224f4675278504444f26c7 | /PortfolioOptimization.py | 7fc262bad9c9110c1e59df98a5c4a538f91dcef0 | [] | no_license | https://github.com/alphafan/quadratic-optimization | c1ce92ddfe6d4bfa216017b8ba59d181a6eaccbd | 7f8697c98fa0b691fc10a509309e7cfa9ac93219 | refs/heads/master | 2021-06-19T16:16:14.657415 | 2017-06-28T19:25:56 | 2017-06-28T19:25:56 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 20 11:47:06 2017
@author: Yufan
"""
import numpy as np
import matplotlib.pyplot as plt
import cvxopt as opt
from cvxopt import blas, solvers
import pandas as pd
import seaborn as sns; sns.set(color_codes=True)
np.random.seed(123)
# Turn off progress printing
solvers.op... | UTF-8 | Python | false | false | 5,075 | py | 2 | PortfolioOptimization.py | 1 | 0.612414 | 0.593695 | 0 | 167 | 29.39521 | 129 |
LabaraTor/newsfeed | 910,533,089,180 | b3cb1498c6fa6cf95460be604e3c36f2816d45d9 | 242591130ba1a96e2d249ad58b3c702e69ffe643 | /src/newsfeed/webapi/handlers/__init__.py | 1cd3b612cbf13139df3eef1ffeb8a7cda513f4e8 | [
"BSD-3-Clause"
] | permissive | https://github.com/LabaraTor/newsfeed | 572cfa90d6f6527a9769df3bac129da14c5a0761 | c68e7b361851633671a873ebdd5105f6beff7d1a | refs/heads/master | 2022-03-30T14:59:53.387549 | 2020-01-14T15:16:59 | 2020-01-14T15:16:59 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """Web handlers."""
from . import subscriptions # noqa: F401
from . import events # noqa: F401
from . import misc # noqa: F401
| UTF-8 | Python | false | false | 131 | py | 22 | __init__.py | 18 | 0.671756 | 0.603053 | 0 | 5 | 25.2 | 41 |
mdahmed-abdus/C-sem-IV | 5,102,421,183,600 | 2390e4f663dba62cea1250c3b4d3d9de11093018 | 7a4db44acdc47828990184c45b6e91b5b50bf342 | /OpenSourceTechLab/exp2b.py | 7ed135d7973bdc3d744c4c8fc4664b7142d56b87 | [] | no_license | https://github.com/mdahmed-abdus/C-sem-IV | c20a62bb2188aa2ae655519ff5ce5568cb70137e | d2b10f5c7fb36cb669f4401bca7a83e951f28617 | refs/heads/master | 2020-12-15T13:15:22.472095 | 2020-04-09T08:42:31 | 2020-04-09T08:42:31 | 235,114,962 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # using while loop to find power of a number
num = int(input("Enter the number: "))
power = int(input("Enter the power: "))
ans, i = 1, 1
while i <= power:
ans *= num
i += 1
print(f"{num} to the power {power} = {ans}")
| UTF-8 | Python | false | false | 230 | py | 43 | exp2b.py | 23 | 0.595652 | 0.582609 | 0 | 11 | 19.909091 | 44 |
Hnobles12/ChessAI | 15,436,112,504,418 | a612b9632eb6a6117633ec9466d5112aeb03b951 | 30429e8b95d61ace636232b7441cea9227ea6eee | /Checkers/checkers/__init__.py | 5486d9a1907ef60c6a6d0450c4ae245d3b0a0382 | [] | no_license | https://github.com/Hnobles12/ChessAI | f424f258a7bb25f3a0a345b8fca8ced1f0d1498b | 3de2f5f360272c6d72d23b6b455229cca72d21e9 | refs/heads/master | 2023-02-10T15:49:31.598614 | 2021-01-05T01:55:33 | 2021-01-05T01:55:33 | 326,818,255 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import torch as t
from .errors import *
SYMBOLS = {'black': 1, 'white': 2}
FORWARD = {'black': 1, 'white': -1}
class Piece:
def __init__(self, loc: list, color: str):
self.loc = loc
self.color = color
self.is_king = False
self.id = id(self)
def move(self, new_loc):
se... | UTF-8 | Python | false | false | 3,818 | py | 6 | __init__.py | 4 | 0.52043 | 0.503143 | 0 | 125 | 29.544 | 126 |
athmey/MyLeetCode | 4,647,154,624,179 | 632a26d63cfbb17f95cb59c8b5b5613ea1a301d7 | 1d581781ed7f2466de23d6ec7fdf12ddd05a2b9a | /findContentChildren.py | 9014347cf3e3160c63224ee09e6be5e92e008fd3 | [] | no_license | https://github.com/athmey/MyLeetCode | 472292c74d7b6c4ae3e7dc9de297341f2bc5969e | 79ca9fdc471a1c84fce188cb05d2ef7b2469eb69 | refs/heads/master | 2020-09-14T17:36:24.222631 | 2019-11-21T15:30:32 | 2019-11-21T15:30:32 | 223,202,214 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # 455. 分发饼干
class Solution(object):
def findContentChildren(self, g, s):
"""
:type g: List[int]
:type s: List[int]
:rtype: int
"""
biscuits = list(s)
list.sort(g)
list.sort(biscuits)
for child in g:
if not self.findBiscuit(child,... | UTF-8 | Python | false | false | 844 | py | 175 | findContentChildren.py | 175 | 0.506281 | 0.5 | 0 | 35 | 21.742857 | 55 |
umax/python-links | 14,620,068,686,436 | 337f59c00f3eed7c964fe242086e38403bd79053 | 5408c27ef6379d48ef43b7db0fd32fccafa7f418 | /webapp/core/decorators.py | 30bf0cc173eebe8c637a20793992b7979c77091c | [] | no_license | https://github.com/umax/python-links | f4de3b6cec68e6e5b69b5765dad8346bd1edb4c3 | 12a04107416e9b49865d0cec2463dff20d5a02e2 | refs/heads/master | 2016-08-07T04:23:48.546821 | 2011-09-27T13:30:40 | 2011-09-27T13:30:40 | 2,336,106 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | from webapp.core.responses import HtmlResponse, JsonResponse
def html_response(handler_method):
"Decorator, that transform request to HTMLRequest and process it."
def wrapper(self, *args, **kwargs):
response = HtmlResponse(self.request)
handler_method(self, response, *args, **kwargs)
... | UTF-8 | Python | false | false | 682 | py | 37 | decorators.py | 16 | 0.696481 | 0.696481 | 0 | 21 | 31.52381 | 70 |
willdvaz/test_lasagne-digits | 335,007,490,550 | 0009777d1cc2b9d9a6884ae515e8f9f830503ff2 | b36317fd375e7f5e2e309b1b5d2f6b76eae71287 | /code/main.py | d77252ed5b3b21c797a45804e7725c6478cc6952 | [] | no_license | https://github.com/willdvaz/test_lasagne-digits | 4eeb406241e255fa44bc14cf614a8948678113e0 | 6dd1555585f4e675529b3e33ed58e60035db6e64 | refs/heads/master | 2016-08-08T21:31:29.883621 | 2015-10-10T17:46:07 | 2015-10-10T17:46:07 | 43,760,474 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #:#importing dependencies
import numpy as np
import theano
import theano.tensor as T
import lasagne
#importing the data
#selecting the number of epochs
num_epoch = 30;
def load_dataset():
dftrain = pd.read_csv('../data/train.csv');
dftest = pd.read_csv('../data/test.csv');
imtrain = dftrain.values;
... | UTF-8 | Python | false | false | 4,575 | py | 1 | main.py | 1 | 0.618579 | 0.603497 | 0 | 135 | 32.77037 | 110 |
made-ml-in-prod-2021/kadetfrolov | 609,885,374,960 | 22a4fdf0e8887c90cf0170b3e1fdb4e7be6594f4 | 2101181a01fdea8b5c53c2ce20536bcd0f0224c3 | /airflow_ml_dags/dags/prod3_3_predict.py | 0f92e826a6a2aad2c57f81fc26f0437807ad42fe | [] | no_license | https://github.com/made-ml-in-prod-2021/kadetfrolov | f7d237bf465d6f2419feeedd062cea75f08ebad2 | 148a2ca81c75e5fcbba18134f327ceb97538b393 | refs/heads/main | 2023-06-03T12:27:59.606466 | 2021-06-26T22:50:24 | 2021-06-26T22:50:24 | 355,492,845 | 0 | 0 | null | false | 2021-06-26T22:50:25 | 2021-04-07T09:51:35 | 2021-06-16T20:55:53 | 2021-06-26T22:50:24 | 372 | 0 | 0 | 0 | Python | false | false | from airflow import DAG
from airflow.operators.dummy import DummyOperator
from airflow.providers.docker.operators.docker import DockerOperator
from airflow.utils.dates import days_ago
from utils import default_args, VOLUME
from airflow.sensors.filesystem import FileSensor
prod_model_path = '{{ var.value.PROD_MODEL_PA... | UTF-8 | Python | false | false | 1,677 | py | 30 | prod3_3_predict.py | 20 | 0.52415 | 0.512821 | 0 | 42 | 38.904762 | 83 |
jason841226/polymul16x16 | 6,528,350,333,010 | 9051948d233de9aed92652eafee082748a60e397 | 8f7c9eef62e16b6964bd66747a8cac6beaf93f14 | /random_generator.py | f68874768309b23d2a5f117e659b46f8a0dd78a3 | [] | no_license | https://github.com/jason841226/polymul16x16 | 2abea92d0113b190045f3c4a36a79003a9c1c7bb | 2e2466f292b07ef2cb2c69bae1a625e5bbb9af4e | refs/heads/master | 2020-04-19T23:18:14.126450 | 2019-03-15T05:51:46 | 2019-03-15T05:51:46 | 168,492,111 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import random
f=open('random_input.txt','w');
for i in range(0,16*10000):
f.write(str(random.randint(0,4591)));
f.write(" ");
if i%16==15:
f.write("\n");
| UTF-8 | Python | false | false | 166 | py | 8 | random_generator.py | 1 | 0.590361 | 0.487952 | 0 | 7 | 21.714286 | 38 |
DAVIDJJX/Python_self_practice | 1,958,505,122,157 | c785cd87bf6e9707332a07da648960351011fac1 | f887bdccacd7503c1e524888cca7125b9b128bfb | /20210806/quiz_formal.py | c4dadbb8eaae6ff3b8c2f3504bbc9b71a4c6a7cd | [] | no_license | https://github.com/DAVIDJJX/Python_self_practice | 91575b7960ba5c398b368abc183ae585e28084b0 | c81e3ce031e9049ebf935c8b5863be5fd3394785 | refs/heads/main | 2023-07-13T08:43:16.209413 | 2021-08-10T06:51:13 | 2021-08-10T06:51:13 | 394,317,219 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def add_func(a,b):
c=int(a+b)
return c
def sub_func(d,e):
f=int(e-d)
return f
print(add_func(2,sub_func(3,100))) | UTF-8 | Python | false | false | 134 | py | 10 | quiz_formal.py | 10 | 0.552239 | 0.514925 | 0 | 9 | 14 | 34 |
shixingjian/PythonItems | 704,374,671,041 | 63d543d1725d00a1e6734a674a60e166b0cf07ea | 37f1125544ac1b4800402d981ce030c82b4993d8 | /pythonitems/APIAutoTest20200304/demo/course/add2.py | c66c4a152d8ff974364248731ee8669a16ee38cc | [] | no_license | https://github.com/shixingjian/PythonItems | db6392451fda388ef4f4805aaf9991ec01bd36bd | 6b6a4e4bae2e727581c8805676422f28b8f6231f | refs/heads/master | 2022-11-21T01:17:23.607196 | 2020-07-22T08:37:44 | 2020-07-22T08:37:44 | 281,614,603 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import requests
from config import HOST
#1.请求头-字典类型
dict1={'Content-Type':'application/json'}
#2.请求消息体-字符串类型
payload='''
{
"action" : "add_course_json",
"data" : {
"name":"初中化22学",
"desc":"初中化学课程",
"display_idx":"4"
}
}
'''
payload=payload.encode(encoding='utf-8')
#3.用requests发送post请求,data参数如果传入的是字... | UTF-8 | Python | false | false | 531 | py | 257 | add2.py | 139 | 0.662763 | 0.641686 | 0 | 23 | 17.26087 | 73 |
Shakiestnerd/PelicanArticleGenerator | 12,077,448,050,607 | 021668668ffb597cebb41a5762497f9038f3632a | 8173af07d65ab5d201157b64fe7dc7cec9b726d1 | /article/output.py | 0d8bd9c39c6d26756f08e64f44aa1f154bb4ac6b | [
"MIT"
] | permissive | https://github.com/Shakiestnerd/PelicanArticleGenerator | 37600fe663993ef8d17e6a61c649abe5713a3349 | 8b1a948535e12f171975aedafa387f9f2de50da2 | refs/heads/master | 2021-09-16T06:25:10.272031 | 2021-08-15T01:00:43 | 2021-08-15T01:00:43 | 241,252,837 | 3 | 0 | MIT | false | 2021-04-15T00:43:38 | 2020-02-18T02:18:31 | 2021-04-15T00:42:48 | 2021-04-15T00:43:25 | 119 | 2 | 0 | 1 | Python | false | false | import os
class Output:
def __init__(self):
super().__init__()
self.title = ""
self.date = ""
self.tags = ""
self.slug = ""
self.category = ""
self.status = ""
self.author = ""
self.output_type = "md"
self.summary = ""
self.is... | UTF-8 | Python | false | false | 3,026 | py | 21 | output.py | 11 | 0.523463 | 0.522802 | 0 | 77 | 38.298701 | 87 |
confluentinc/ducktape | 2,473,901,179,576 | 226842e7e4846bf8e907f6938696c3e531a1f094 | 9909a6373749cfb444f42239ee8edcf12979440f | /ducktape/mark/mark_expander.py | f3451e7160a6914ba0043e36464e682c10ccfe07 | [
"Apache-2.0"
] | permissive | https://github.com/confluentinc/ducktape | 2d342b57b60219ff85fb3a4e9dae3b88a2920358 | da162ed9db6652ac562cdaacaf1b96b5b527dbef | refs/heads/master | 2023-08-28T04:57:06.580880 | 2023-08-18T11:46:28 | 2023-08-18T11:46:28 | 28,360,638 | 328 | 99 | null | false | 2023-09-04T17:26:57 | 2014-12-22T21:38:32 | 2023-08-29T08:47:49 | 2023-09-04T17:21:36 | 1,392 | 295 | 95 | 58 | Python | false | false | # Copyright 2016 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | UTF-8 | Python | false | false | 2,052 | py | 128 | mark_expander.py | 79 | 0.706628 | 0.702729 | 0 | 46 | 43.608696 | 118 |
Jardelpz/cloud-workflow | 4,303,557,252,535 | 5c30d724572e47dc325cad04b5d6eec1dda34c96 | 76d2148c62c24e51f22a75cfe7e44a7cfa442112 | /consumer/utils/s3.py | d87f932e1d91112a4c75a622c1b3773e613c10a8 | [] | no_license | https://github.com/Jardelpz/cloud-workflow | f6cec1c1a664d6a2468616e4bf47c9a9690f38be | f0eaa65a18a81c41c561a37fe2ebe4b0b480a814 | refs/heads/main | 2023-02-12T06:10:38.630757 | 2021-01-12T01:13:22 | 2021-01-12T01:13:22 | 321,170,565 | 4 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import boto3
from constants import REGION_NAME, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY
s3 = boto3.client('s3', region_name=REGION_NAME, aws_access_key_id=AWS_ACCESS_KEY_ID,
aws_secret_access_key=AWS_SECRET_ACCESS_KEY) | UTF-8 | Python | false | false | 241 | py | 17 | s3.py | 13 | 0.709544 | 0.692946 | 0 | 7 | 33.571429 | 85 |
k1-k0/wishl | 14,310,831,070,040 | 0cec909784c8e632af8ba49c09153068f1457436 | 8325f238b8d59f9302a945340070809aab3b1901 | /wishl/urls.py | 36d52409050e76876e68deb02272b6fad7129e95 | [] | no_license | https://github.com/k1-k0/wishl | c2c512499f2f18aa08b5427e4d2ba6435343a8b5 | f04e134b37a26b58d1a5acfdf41bab5d94eb8ae7 | refs/heads/main | 2022-12-26T04:58:00.238984 | 2020-10-10T11:35:46 | 2020-10-10T11:35:46 | 302,756,186 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """wishl URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based v... | UTF-8 | Python | false | false | 1,222 | py | 24 | urls.py | 22 | 0.735679 | 0.729133 | 0 | 34 | 34.941176 | 81 |
mrscp/bengali-sentence-correction-notebook | 2,671,469,687,738 | 82877fa8fb95937188bd077d17c8ab035257ab1c | 2fec5c80132acca8d2e07f0eef8ac690c8740b22 | /processors/data.py | dbcc1617492aa0b2574cd37dbc4b561df6ed12c3 | [] | no_license | https://github.com/mrscp/bengali-sentence-correction-notebook | 1f7e5880cb58761900161ac5f86161991a3a639a | 61d9d53337401735b62234bb3ac6674cca6a3e68 | refs/heads/master | 2020-07-23T23:46:05.964192 | 2019-09-11T15:43:07 | 2019-09-11T15:43:07 | 207,741,828 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from common.config import Config
from common.path import ProjectPath
from os.path import join
class RawData:
def __init__(self):
self.__config = Config()
self.__path = ProjectPath()
def get_data(self):
data_location = self.__path.format_location(
join(
self... | UTF-8 | Python | false | false | 920 | py | 7 | data.py | 5 | 0.453261 | 0.451087 | 0 | 32 | 27.78125 | 63 |
amychenmit/misdj-ww | 3,367,254,399,842 | 4e57f06a04ded9f594c76a11ddc25609ce5e6927 | f379ea004ed5e309aba62914790cd605a3388a81 | /note/views.py | 57aedf5072ff42da0838a7849a387a24cc83c158 | [] | no_license | https://github.com/amychenmit/misdj-ww | 91185a5fdc8c7e62af95e86e779969ad2ef0059b | 0ab1fbe12b9f6d85eb01dea8b8fe87d8e42a69ff | refs/heads/master | 2022-02-23T16:40:11.180372 | 2019-10-24T03:12:32 | 2019-10-24T03:12:32 | 214,589,934 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.shortcuts import render
from django.db.models import Count
from django.db.models.functions import TruncMonth
from datetime import date, timedelta
from datetime import datetime
from itertools import chain
# https://kaiching.org/pydoing/py/python-library-datetime.html
from .models import Note
from .mode... | UTF-8 | Python | false | false | 6,311 | py | 14 | views.py | 9 | 0.59129 | 0.565818 | 0 | 207 | 28.400966 | 144 |
afcarl/mambo | 13,322,988,595,317 | 8d263045c8e0ce2976291e3aa8e5cc517d035cb6 | 252afd63d594bce727c92878196b438f5ff8df65 | /utils/create_mambo_crossnet_table.py | 534876b36c55408390193dea23b96e3f5638dd3d | [] | no_license | https://github.com/afcarl/mambo | 0f22bb832288c83fad19d0da9291b09e23c3c5cb | cd47cb5b68c5b344fb7d95ee7d180cd003c04a2a | refs/heads/master | 2020-12-04T04:37:06.655032 | 2017-12-03T09:15:13 | 2017-12-03T09:15:13 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | '''
file: create_mambo_crossnet_table.py
Script that creates Mambo tables for a given crossnet.
Usage:
python create_mambo_crossnet_table.py <input_file_path> <src_file_path> <dst_file_path> <dataset_name> <dataset_id>
Positional Arguments:
input_file: Path to the input file; Input file should be a tsv.... | UTF-8 | Python | false | false | 10,401 | py | 516 | create_mambo_crossnet_table.py | 6 | 0.629843 | 0.619748 | 0 | 200 | 51.005 | 193 |
Hope6537/hope6537-utils | 14,671,608,296,890 | b9cc20018f9861f48bc84349aaa158aa59bf12d1 | 6f8295e82bcd2e8c0618ba65867ab895603b3b56 | /hope-python-script/zhihu/zhihu.py | 3f7640a752b2b9a3fe6376287e609ded425e79b5 | [
"Apache-2.0"
] | permissive | https://github.com/Hope6537/hope6537-utils | 995cd1d179ea64d19bcb2537e6b0ab808bba3b18 | 503ba3a42c5899130d496a4693d05fca27136e9b | refs/heads/master | 2020-12-19T21:14:20.488435 | 2019-01-12T04:54:32 | 2019-01-12T04:54:32 | 30,529,875 | 4 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # encoding:utf-8
import requests
import requests
cookies = {
'd_c0': 'AACAamB1LQqPToMcUMk8zMHR10FwezFwQsg=|1467629360',
'_zap': '540a813f-95b8-477d-9141-728140f8b544',
'_za': 'b9974a5f-14d0-4fe3-971a-0ebed07a7c0f',
'_ga': 'GA1.2.1022349923.1490619099',
'q_c1': '26735a973129474dac8f09af940badb3|150... | UTF-8 | Python | false | false | 2,236 | py | 766 | zhihu.py | 721 | 0.704383 | 0.466905 | 0 | 50 | 43.72 | 175 |
KrutkoAndrii/Itea_Graduation_Project | 6,614,249,670,091 | 2e758aa15911c5e69b913f17851e3a0eb82d6973 | c121e8444621badb8af60777130f15f2aef94fb2 | /Itea_Graduation_Project/database/db_tools.py | d66ebff56c7b5ad355dcebb551d8215a63bb0f18 | [] | no_license | https://github.com/KrutkoAndrii/Itea_Graduation_Project | 9ea9209d406604f9c7a966b504cece8b62a0351a | 61dca84e5291d064f12ad6cdece8c9853e0d5257 | refs/heads/master | 2022-02-01T07:51:09.907425 | 2019-07-20T21:31:42 | 2019-07-20T21:31:42 | 197,945,302 | 1 | 0 | null | false | 2019-07-20T21:03:45 | 2019-07-20T15:01:52 | 2019-07-20T15:11:49 | 2019-07-20T21:03:44 | 17 | 1 | 0 | 0 | null | false | false | ''' package for connection to DB '''
import psycopg2
import sys
from configparser import ConfigParser
from psycopg2 import sql
def get_ini_file():
'''read ini file for connection database'''
config = ConfigParser()
config.read(sys.path[0] + r'\database\db.ini')
return config.get('db', 'db_name'),\
... | UTF-8 | Python | false | false | 2,977 | py | 15 | db_tools.py | 13 | 0.581122 | 0.576419 | 0 | 100 | 28.77 | 76 |
maiot-io/zenml | 2,774,548,876,273 | ca502f80393f49e8a274c0449b6b3ad7a5dfaaae | 66b4903aeedebdc1fef924fb8ce4efe068f6a495 | /src/zenml/integrations/deepchecks/steps/deepchecks_data_drift.py | fbe53d82456bd10b73628a2c76c049ae2eca03fb | [
"Apache-2.0"
] | permissive | https://github.com/maiot-io/zenml | c64aea52daa9b0b7d2abdfd6eb89d7f8c5a34266 | 99a0861765b1dad3651ccfa89ae1c83379f201ab | refs/heads/main | 2023-09-05T15:44:25.632078 | 2023-09-05T12:20:11 | 2023-09-05T12:20:11 | 314,197,645 | 1,275 | 75 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Copyright (c) ZenML GmbH 2022. 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:
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | UTF-8 | Python | false | false | 2,898 | py | 1,158 | deepchecks_data_drift.py | 920 | 0.71256 | 0.7098 | 0 | 72 | 39.25 | 85 |
KittyMac/MLClock | 15,908,558,877,231 | a23d3602679ef03c86e5f68acc4e55d49b2997f4 | aaec82ed8d3d077afe8f6ca10db463a23eaf6635 | /time_detection/train.py | 3a446901b1a946bc27d24aed6dc1acbd65ddca04 | [
"MIT"
] | permissive | https://github.com/KittyMac/MLClock | 4cf0316deeccd311de87d5e0fe764a8450e472e8 | 9cfd03395ee14383aa3ee2d60a9644ceb5362737 | refs/heads/master | 2021-07-11T05:03:54.313294 | 2019-02-12T02:20:02 | 2019-02-12T02:20:02 | 142,016,187 | 4 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | from __future__ import division
import sys
sys.path.insert(0, '../')
from keras import backend as keras
from keras.preprocessing import sequence
from dateutil import parser
import numpy as np
import coremltools
import model
import data
import json
import operator
import keras.callbacks
import random
import time
impo... | UTF-8 | Python | false | false | 3,654 | py | 14 | train.py | 10 | 0.712644 | 0.694581 | 0 | 150 | 23.353333 | 167 |
reeFridge/djangoSandbox | 4,200,478,047,145 | f9044112762175aae805c384425008a9ed1e312f | 32e4da428fead360cd5ecbc64e60d7e745f0e399 | /firstapp/novels/urls.py | e39ba9d2aaccb3b05bc8b0456ec4e52bbb3835d5 | [] | no_license | https://github.com/reeFridge/djangoSandbox | 947adda4586701dde876b5ebd0ed4b4a8ac1db90 | efb9f169b172923dc30a833270d8429e92c76ec0 | refs/heads/master | 2021-01-10T05:02:06.060190 | 2016-01-01T23:05:30 | 2016-01-01T23:05:30 | 48,891,599 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.conf.urls import patterns, include, url
from novels.views import MainListView, MainDetailView, subscribe_to, IndexView, download_issue_archive, ReadOnlineView
from novels.models import Group, Character, Publisher, Arc, Title, Issue, Strip
urlpatterns = patterns('',
#Index:
url(r'^$', IndexView.as_vie... | UTF-8 | Python | false | false | 2,596 | py | 60 | urls.py | 39 | 0.660247 | 0.659476 | 0 | 34 | 75.382353 | 182 |
mingyuan-xia/candy | 7,052,336,310,630 | 4706821525e3d7d9fb33e9130547df4dc50eacb4 | adfa452d4209978edb01dcf53a6e4eaab526a945 | /candy/cli.py | dd2087e4ccda143a0192f66e042bf58653eabcf5 | [
"Apache-2.0"
] | permissive | https://github.com/mingyuan-xia/candy | be22d1a08fd7ae6a79d4c0aa38a7e81ea11315bd | 5faeebd2f47dbf72431b7f0515026789cc5b0d17 | refs/heads/master | 2016-04-23T06:44:42.752955 | 2016-01-13T02:16:57 | 2016-01-13T02:16:57 | 48,387,126 | 3 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import candy
import sys
import os
from . import util
import pprint
def usage():
util.print_info("candy - the package/library manager for Android apps")
util.print_info("Commands:")
util.print_info(" init - initialize the current directory as a candy managed... | UTF-8 | Python | false | false | 2,199 | py | 9 | cli.py | 6 | 0.554343 | 0.547067 | 0 | 70 | 30.414286 | 108 |
KartikAhuja1996/digiprice_bnd | 18,837,726,567,074 | 43163c8c69419341155797326ea7d506ca72cc0c | 0a9027ca983c3fc51a1e2f9279ad36a81fa496a3 | /chip/urls.py | 5ec4555b0bd060bdc852fe2843bb66ff4de1af7c | [] | no_license | https://github.com/KartikAhuja1996/digiprice_bnd | 48f4fb35b40307a14fb5c7fa0a7c5b8fa3de39ba | d5adb926aa16992288ed31214233cf6119f440ce | refs/heads/master | 2018-07-05T08:17:49.348680 | 2018-07-01T20:56:25 | 2018-07-01T20:56:25 | 124,904,844 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.urls import path
from .views import (login,
add_product,
index,
update,
delete,
add_brand)
from django.contrib.auth import views as auth_views
urlpatterns = [
path("",login,name="login"),
path("index",index,name="index"),
path("logout",auth_views.logout,{'next_page':'chip:log... | UTF-8 | Python | false | false | 618 | py | 79 | urls.py | 55 | 0.66343 | 0.66343 | 0 | 17 | 35.235294 | 82 |
garygriswold/SafeBible | 19,181,323,979,920 | 45384f3f222c3b101beccccc3143ead20426a44a | 28f0dc2b48ed019dfef08d84e842c5d75e116dfc | /Versions/py/AudioDBPImporter.py | 7fe24c5d771f8a862b05816d2d4a94519238117d | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | https://github.com/garygriswold/SafeBible | 9da0e8d89cb08888b8cf48773b4b3860086c49f7 | 2d378e84cbd6b81641bcccd6ba66699d24208548 | refs/heads/master | 2022-02-25T19:41:10.367183 | 2019-08-22T03:35:02 | 2019-08-22T03:35:02 | 34,028,119 | 0 | 0 | MIT | false | 2019-10-30T07:11:44 | 2015-04-16T01:40:19 | 2019-08-22T03:35:26 | 2019-10-30T07:11:42 | 250,730 | 0 | 0 | 1 | TSQL | false | false | #
# The purpose of this program is to generate the Audio meta data tables,
# including AudioVersion, Audio, and AudioBook. AudioChapter is separately
# created.
#
import io
import sys
# This table controls what Audio versions will be included, and what
# text versions that are associated with
versions = [
['ERV-ARB... | UTF-8 | Python | false | false | 8,842 | py | 655 | AudioDBPImporter.py | 496 | 0.572156 | 0.551007 | 0 | 305 | 27.986885 | 119 |
NLeSC/litstudy | 5,145,370,865,791 | 85f4599e50b650f2936b0401d74764579ffa6d8a | a692ce4250b8c79cac3ab8abe936e5559d5c5e96 | /tests/test_sources_csv.py | 1e54aaed648dc04a477e085ed18522fe78364bd4 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | https://github.com/NLeSC/litstudy | 7ec64ad955c01570b7e2ec446f9f20a763b3edd4 | adb86a9e59a5bc38ec218e296d76521583ad0c0a | refs/heads/master | 2023-08-29T10:08:22.343155 | 2023-08-28T12:09:26 | 2023-08-28T12:09:26 | 206,312,286 | 81 | 24 | Apache-2.0 | false | 2023-08-29T23:45:42 | 2019-09-04T12:19:05 | 2023-08-22T03:27:04 | 2023-08-29T23:45:41 | 18,740 | 98 | 36 | 16 | Python | false | false | from litstudy import load_csv
import os
def test_load_ieee_csv():
path = os.path.dirname(__file__) + "/resources/ieee.csv"
docs = load_csv(path)
doc = docs[0]
assert (
doc.title
== 'Exascale Computing Trends: Adjusting to the "New Normal"\' for Computer Architecture'
)
assert ... | UTF-8 | Python | false | false | 1,633 | py | 62 | test_sources_csv.py | 32 | 0.665646 | 0.63319 | 0 | 50 | 31.66 | 98 |
LiuFang816/SALSTM_py_data | 16,716,012,728,312 | 601aeb55ee1302710b4cb3231221a2cfb7a0edb7 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/rhiever_tpot/tpot-master/tpot/operators/classifiers/linear_svc.py | 76e80d9b7383444c035c0063fe95e71c6264ba09 | [] | no_license | https://github.com/LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | false | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | 2022-05-26T15:16:41 | 2022-12-19T02:53:00 | 208,253 | 9 | 5 | 1 | Python | false | false | # -*- coding: utf-8 -*-
"""
Copyright 2016 Randal S. Olson
This file is part of the TPOT library.
The TPOT library is free software: you can redistribute it and/or
modify it under the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or (at your op... | UTF-8 | Python | false | false | 1,726 | py | 5,038 | linear_svc.py | 5,037 | 0.66628 | 0.655852 | 0 | 59 | 28.254237 | 85 |
yeseni-today/robin | 17,867,063,970,921 | 91152e93f1a905d2af4009af16415d57721a0343 | f7e40d291edba7bacc851af813f4f3fdd119778b | /lexer/_lexer.py | 8ccfcf1ab36aed1aee46ff6b7a13078fd6a14d65 | [
"MIT"
] | permissive | https://github.com/yeseni-today/robin | 76debcb1ecd8d2da5feed0508792b7a9a1580963 | de23f436857a427d23d310a392b46a0ed4749dee | refs/heads/master | 2021-09-08T14:16:44.952921 | 2018-03-10T11:42:05 | 2018-03-10T11:42:05 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from abc import ABC, abstractmethod
from robin import settings
from robin import util
from lexer import util, automate
from lexer import tokens
from lexer.tokens import Token, iskeyword
import logging
from robin.util import log_def, log_cls
def lf_lines(text):
"""将te... | UTF-8 | Python | false | false | 14,158 | py | 23 | _lexer.py | 21 | 0.550356 | 0.543962 | 0 | 450 | 29.582222 | 118 |
Ovilia/Randocy | 13,967,233,685,740 | 32257c7eb2047f9b5481c7edd1b5a4e029b88f5d | 9f2ecb608de644bbc4041a39a146c4ca1dda15bf | /scripts/youku.py | e040e749f9163c4b897737dcb91b541e0b662fc3 | [] | no_license | https://github.com/Ovilia/Randocy | 2236b4e35ef3455f6a7ee5ae245977ae13e9959f | e99e7343a01eb0577f6a299026b7c92221c1a0ba | refs/heads/master | 2020-04-04T12:04:58.557194 | 2012-08-30T12:01:31 | 2012-08-30T12:01:31 | 5,141,106 | 0 | 2 | null | false | 2014-01-18T15:25:00 | 2012-07-22T11:32:21 | 2013-10-18T07:33:00 | 2012-08-30T12:01:51 | 1,639 | 2 | 2 | 1 | Python | null | null | # -*- coding: UTF-8 -*-
from function import *
def youkuSearch():
print 'Searching youku now...'
movies = []
# available movies
page = 1
lastMovie = ''
while True:
print page,
html_src = getHtml('http://movie.youku.com/search/index2/_page63561_' + str(page)... | UTF-8 | Python | false | false | 1,502 | py | 17 | youku.py | 12 | 0.477364 | 0.446072 | 0 | 43 | 32.790698 | 186 |
dyjakan/misc | 16,355,235,495,662 | 51a3a60c4da1bce26d19fd5a8baf480cf95da93b | 4912cc97429baf4c4e0d4108a3d21f8268c70b41 | /mangler.py | 709d6086c2a21743587e051760fadafbd3fda121 | [] | no_license | https://github.com/dyjakan/misc | 148389b7a4c5f4f9eb76f293bc20fb4bc47e0a50 | 762ff8a9f07c042849d526cc1e05ff512ca98bb1 | refs/heads/master | 2021-01-18T18:25:05.299537 | 2017-02-05T17:26:44 | 2017-02-05T17:26:44 | 16,204,618 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # mangler.py
# =========
#
# This utility applies user defined function mangle() for given byte range
# inside given file. (Comes in handy *way* too often.)
#
# Usage:
# python mangler.py <filename> <offset_start> <offset_end>
#
# NOTE: Using range <0;2> means mangling bytes 0-1-2. ;)
#
import os
import sys
imp... | UTF-8 | Python | false | false | 1,168 | py | 6 | mangler.py | 4 | 0.640411 | 0.618151 | 0 | 51 | 21.882353 | 75 |
Humam-Hamdan/Code4Learn_BootCamp | 773,094,116,377 | ceed959675f96990014d34eb85148e31e5ed10d0 | a63f1e940965100d354f2fdeee5e0317dc4f937a | /Day7/3.py | ba88372062cd06890f81d6ec5d66ef7240e66b79 | [] | no_license | https://github.com/Humam-Hamdan/Code4Learn_BootCamp | 2619dd71d7946a9b3a0f968f78c80884212bd094 | 6a7dbaa48bd1b21829e6690165bee8da8b89970f | refs/heads/main | 2023-02-04T17:00:28.169670 | 2020-12-22T12:23:24 | 2020-12-22T12:23:24 | 323,609,472 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | class student:
def __init__(self, name):
self.name = name
self.marks = []
print('Welcome {} To MIoTC School!'.format(name))
def AddMarks(self, marks):
self.marks.append(marks)
def AVG(self):
return sum(self.marks)/len(self.marks)
s1 = student('Humam... | UTF-8 | Python | false | false | 514 | py | 47 | 3.py | 46 | 0.57393 | 0.525292 | 0 | 35 | 12.685714 | 57 |
viveksharmapoudel/weather-app | 2,602,750,197,313 | 7307a30c2a66c54af55269ca1b79c9d0c98ee026 | 0270a15637dd6a750384cedda366e482f6f62a47 | /weather/forms.py | 32ba8190baf0d6fc48c23048a4b871d5d0a6e6a7 | [] | no_license | https://github.com/viveksharmapoudel/weather-app | 2402fda71ad78e9d6790acf6872664ccfdbcbe50 | 05fc5d648d169a48f0b14b6c6272ca439bb6b9f6 | refs/heads/master | 2022-12-22T17:05:32.024037 | 2020-09-29T04:39:09 | 2020-09-29T04:39:09 | 299,505,715 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.forms import ModelForm, TextInput
from .models import City
class CityForm(ModelForm):
class Meta:
model = City
fields = ['name',]
def clean(self):
cleaned_data=super(CityForm,self).clean()
return cleaned_data
| UTF-8 | Python | false | false | 287 | py | 3 | forms.py | 3 | 0.595819 | 0.595819 | 0 | 13 | 19.615385 | 46 |
aramande/Nirena | 876,173,328,882 | 69d713e14849205ff1846eadc98de9950ed82afb | 891e876aafde31b093ff8a67907c4b36a1e632b2 | /nirena/util/direction.py | 025c2b34164e08bb5e8a3026c060453257311200 | [] | no_license | https://github.com/aramande/Nirena | fc51d8768e9a9fb7e44dd6fadf726ed3fc1d51c8 | 1e7299ee4915ab073dc7c64569789a07769e71be | refs/heads/master | 2021-01-18T20:17:52.943977 | 2010-12-04T00:05:10 | 2010-12-04T00:05:10 | 1,217,641 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #14:33-16:00
class Direction:
def __init__(self, degree):
if degree < -180:
degree += 360
elif degree > 180:
degree -= 360
self._dir = degree
def __add__(self, other):
"Addition between direction objects, good for figuring out the result of an additional force."
dir = self._dir + other._dir
return ... | UTF-8 | Python | false | false | 651 | py | 61 | direction.py | 43 | 0.669739 | 0.639017 | 0 | 26 | 24.076923 | 96 |
Rexiome/LibreASR | 7,696,581,414,219 | c9ca3f5e2eec583ea3b6514623233f9dfd1fda05 | ef10bf82a7c7aaa96e1a68a27a188abbd045cb07 | /libreasr/lib/layers/custom_rnn.py | 638876868f4af8c2ca207869216de7bb612ea2cd | [
"MIT"
] | permissive | https://github.com/Rexiome/LibreASR | c1df287fad563e565ca7eedad3f4d3e9cfee5917 | 8a12c2f7cdccf42a5df47b63b2d60e97d389eba6 | refs/heads/master | 2023-08-11T05:46:33.975028 | 2020-12-18T16:28:31 | 2020-12-18T16:28:31 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import math
import random
import torch
from torch.nn import Parameter, ParameterList
import torch.nn as nn
import torch.nn.functional as F
from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence
from IPython.core.debugger import set_trace
ZONEOUT = 0.01
DEVICES = ["CPU", "GPU"]
RNN_TYPES = ["LSTM",... | UTF-8 | Python | false | false | 8,828 | py | 56 | custom_rnn.py | 36 | 0.510648 | 0.505097 | 0 | 280 | 30.528571 | 87 |
RavinSG/twitter_fastText | 3,504,693,356,093 | 9255bd0ab7ccc703e7d259b761595aaae97f1316 | 622911053cec2c775e0d8cc68e71ff8f6fe7582a | /preprocess_fasttext.py | 8eff80609311701d3c430d8533fd90f067b0acce | [] | no_license | https://github.com/RavinSG/twitter_fastText | d5d1a8c17a4ffe40b5ae1a3df67a0f06f9da9e46 | 735fc8c6ed65470c636b4dbf1a146dd576c5f8c6 | refs/heads/master | 2020-04-01T00:09:03.994115 | 2018-10-12T10:06:56 | 2018-10-12T10:06:56 | 152,684,103 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from ekphrasis.classes.preprocessor import TextPreProcessor
from ekphrasis.classes.tokenizer import SocialTokenizer
from ekphrasis.dicts.emoticons import emoticons
text_processor = TextPreProcessor(
# terms that will be normalized
normalize=['url', 'email', 'percent', 'money', 'phone', 'user',
'... | UTF-8 | Python | false | false | 2,101 | py | 11 | preprocess_fasttext.py | 8 | 0.664921 | 0.65921 | 0 | 56 | 36.517857 | 78 |
Hecatesiren/siwj | 7,172,595,418,095 | 1b7dc45d978d419787a41f9be9a8bdd9461817f0 | acee435c81531afa4d85ba9086394ff26c15c82a | /项目一.py | 9dec262731bbf10b1766e4656b33dd7fecfdfc66 | [] | no_license | https://github.com/Hecatesiren/siwj | 68ec9a37ea2627f86433dd3391e92aaba8f85584 | 0fd317c92814640bc117511870f38eb112097630 | refs/heads/master | 2022-04-20T16:00:51.424123 | 2020-04-19T10:00:22 | 2020-04-19T10:00:22 | 256,975,323 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
import matplotlib
import matplotlib.pyplot as plt
F1 = open("C:/Users/USER/Desktop/magic04.txt", "r")
List_row = F1.readlines()
list_source = []
for i in range(len(List_row)):
column_list = List_row[i].strip().split(",") # 每一行split后是一个列表
column_list.pop()#去掉最后的g/h
list_source.append(col... | UTF-8 | Python | false | false | 1,835 | py | 3 | 项目一.py | 3 | 0.668096 | 0.636865 | 0 | 68 | 23.029412 | 66 |
solvable/oa2 | 8,495,445,337,517 | 4902228b50838dcfcdac67afb7d2053c4e9dfeab | 1baab1016dd600d78e95e62ad2bf8343cf249878 | /oa/forms.py | 69cb8cfe07d169f8eaa29ed3cc57e6e8745deafd | [] | no_license | https://github.com/solvable/oa2 | 08240774dfc1f4cbad8e39a47d03a6efbcd9b734 | 1a72dbc621c94cacc7517ee145d677d888bcba14 | refs/heads/master | 2021-09-08T05:37:38.460139 | 2018-03-07T18:23:09 | 2018-03-07T18:23:09 | 119,281,950 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django import forms
# our new form
class ContactForm(forms.Form):
contact_name = forms.CharField(required=True)
contact_email = forms.EmailField(required=True)
message = forms.CharField(
required=True,
widget=forms.Textarea
)
phone_number = forms.CharField(required=False)
| UTF-8 | Python | false | false | 314 | py | 21 | forms.py | 9 | 0.707006 | 0.707006 | 0 | 10 | 30.4 | 51 |
krishna-saravan/WSoC2101-TestRepo | 1,374,389,567,576 | 6f76e4eb5906f4aa940e3f928d5adf40f6b3e580 | dd92d381658e924c3e0883d7efd110142198b3ef | /NotesAdder/notes_app/migrations/0003_alter_note_content.py | ca3ddd5c7a56337ac5ceb127ae0cbdc014b8670f | [
"MIT"
] | permissive | https://github.com/krishna-saravan/WSoC2101-TestRepo | 3a120e4fdfdddc5407f04a7de831ec9e46d56d88 | 51a27a128c837e1ff561fddb713c50ed582ca1a1 | refs/heads/main | 2023-07-05T19:18:55.133191 | 2021-08-31T07:20:49 | 2021-08-31T07:20:49 | 401,055,928 | 0 | 0 | MIT | true | 2021-08-29T14:00:48 | 2021-08-29T14:00:47 | 2021-08-16T11:03:53 | 2021-08-29T13:52:04 | 4,063 | 0 | 0 | 0 | null | false | false | # Generated by Django 3.2.6 on 2021-08-26 12:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('notes_app', '0002_alter_note_content'),
]
operations = [
migrations.AlterField(
model_name='note',
name='content',
... | UTF-8 | Python | false | false | 374 | py | 23 | 0003_alter_note_content.py | 7 | 0.574866 | 0.524064 | 0 | 18 | 19.777778 | 49 |
AlexChanson/ELFIN_Z-Suite_Comaptibility | 2,980,707,333,840 | 3250cf0c5bf39776e4552839f698852cf9093ffa | a2644d5f3c7b7091de1a018bfe4c67af34eb43f1 | /convert/cv_main.py | 5e70a613e87b7a40535fe31b631dfa04f5969cd7 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | https://github.com/AlexChanson/ELFIN_Z-Suite_Comaptibility | a401420cc2335f5648941c2c06849cac6958be65 | 4f744fdfd131d2da1028225abf2d4d9c24c06db6 | refs/heads/master | 2022-12-11T14:28:38.993471 | 2020-08-20T08:59:31 | 2020-08-20T08:59:31 | 285,602,589 | 0 | 0 | null | false | 2020-08-06T17:35:34 | 2020-08-06T15:12:24 | 2020-08-06T15:12:42 | 2020-08-06T17:35:33 | 10 | 0 | 0 | 0 | Python | false | false | from zipfile import ZipFile, ZIP_DEFLATED
from datetime import datetime
import os
import argparse
verbose = False
# Settings table : match between Z-Suite gcode header and expected silce.conf
master_table = [("Pix per mm X", "xppm", float),
("Pix per mm Y", "yppm", float),
("X Resoluti... | UTF-8 | Python | false | false | 10,493 | py | 7 | cv_main.py | 4 | 0.540741 | 0.52616 | 0 | 264 | 38.746212 | 154 |
peng211217610/Python | 12,472,585,049,383 | fae5471a62768a5e650cb4fdbf50587e01b481ed | db82ec070fd356ea5a5aebd5ada39c7fe58a2b38 | /知识/课程代码/python课堂代码/samples/muti_proc_threads/mt3.py | b129e046ed8370de22826f2544c8926e24d7e3ce | [] | no_license | https://github.com/peng211217610/Python | 8d7217af06262fda2133e50c634eac0148e2ace5 | e65889e87aa51e1cb94601d3470e3906ad9e2d0a | refs/heads/master | 2023-08-22T16:55:51.592534 | 2023-08-10T09:43:22 | 2023-08-10T09:43:22 | 379,676,153 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | import threading
from time import sleep
def thread_entry():
# 注意 局部变量 var 的值 ,会被两个线程搞乱吗?
var = 1
for i in range(10):
print('th #{} :{}'.format(threading.currentThread().ident, var))
sleep(1)
var += 1
print('main thread start.')
t1 = threading.Thread(target=thread_entry)
t2 = thr... | UTF-8 | Python | false | false | 462 | py | 273 | mt3.py | 251 | 0.636792 | 0.610849 | 0 | 23 | 17.434783 | 72 |
codonnell/fabian | 12,403,865,572,547 | a8a2415f012039ee52e3de48578678d15e5ae732 | d5efaa4b27aed0f341d6e51ef5f3731126fde9dd | /fabian.py | 19ae2bc7edf5f82687f50e1e0780c474a831e378 | [] | no_license | https://github.com/codonnell/fabian | 5f72139918bcb8e273f17e6bf02b2750d02a3962 | a301516e0fc33da0942b226e72b9678283827d8e | refs/heads/master | 2021-07-17T16:07:14.683442 | 2017-10-25T19:13:10 | 2017-10-25T19:13:10 | 108,305,394 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from flask import Flask, request
from flask_restful import Resource, Api
import pickle
import numpy as np
app = Flask(__name__)
app.config.from_object('fabian.cfg')
app.config.from_envvar('FABIAN_SETTINGS')
api = Api(app)
with open(app.config['CLASSIFIER'],'rb') as f:
clf = pickle.load(f)
class Difficulty(Resour... | UTF-8 | Python | false | false | 633 | py | 5 | fabian.py | 2 | 0.652449 | 0.652449 | 0 | 24 | 25.375 | 56 |
qateam123/eq | 2,087,354,108,413 | 5515654957b47c0fd2ded414bf1bd86b123837ff | c7ea36544ae5f7a8e34bf95b8c38240ca6ebda83 | /tests/app/questionnaire/test_location.py | 5fb3742dd84e288161014ef9323e174fdde6bfcc | [
"LicenseRef-scancode-proprietary-license",
"MIT"
] | permissive | https://github.com/qateam123/eq | 40daa6ea214e61b572affd0b5ab9990371c70be4 | 704757952323647d659c49a71975c56406ff4047 | refs/heads/master | 2023-01-11T01:46:11.174792 | 2017-02-09T13:46:56 | 2017-02-09T13:46:56 | 80,821,577 | 0 | 0 | MIT | false | 2023-01-04T14:31:08 | 2017-02-03T11:02:24 | 2017-02-03T14:19:35 | 2023-01-04T14:31:05 | 1,722 | 0 | 0 | 23 | JavaScript | false | false | import unittest
from app import create_app
from app.questionnaire.location import Location
class TestLocation(unittest.TestCase):
def setUp(self):
self.app = create_app()
self.app.config['SERVER_NAME'] = "test"
self.app_context = self.app.app_context()
self.app_context.push()
... | UTF-8 | Python | false | false | 706 | py | 608 | test_location.py | 514 | 0.613314 | 0.59915 | 0 | 25 | 27.24 | 107 |
cupofjoey/UdemyPython1 | 1,743,756,766,380 | 2034a4fe2b4616ce3d2c0aa617df40150a3927c1 | 7df1c0a48cd89f7e1255a1672f577b9b8cbda1c8 | /firstMethod.py | 0a18ace2f6dcf15de7adcfc6e520821ba106051e | [] | no_license | https://github.com/cupofjoey/UdemyPython1 | 5c1d736ba3cd8d709bcc09c2c4bc96efe4bb9bc6 | af7c2bc0fb249eaf7f4cf0a0ae887ffd7db3f2e7 | refs/heads/master | 2021-04-15T14:06:53.850435 | 2018-04-30T02:49:16 | 2018-04-30T02:49:16 | 126,557,248 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import random
#Doing our first method in Python. Working with the numInputRando.py program
magic_numbers = [random.randint(0, 9), random.randint(0, 9)]
def ask_user_and_check_number():
user_number = int(input("Enter a number between 1 and 10: "))
if user_number in magic_numbers:
return "You guessed th... | UTF-8 | Python | false | false | 909 | py | 14 | firstMethod.py | 13 | 0.691969 | 0.683168 | 0 | 22 | 40.318182 | 90 |
simonsobs/PSpipe | 1,984,274,895,434 | c18270f521a0dfda2f96c383d24c962c4d3675ca | ed3d3df8477daa6241c5bd64bf7e6063f53b5d34 | /project/old/analyse_sims/sim_spectra.py | ec1b97db12c78031419fbdfbba55e42e2d1e99a9 | [
"BSD-3-Clause"
] | permissive | https://github.com/simonsobs/PSpipe | 4d6bf5254e8ecef27a33164a43f10da258e30a42 | 8f83bd672c431903febcb0ee4a11b1c0eab36f1b | refs/heads/master | 2023-08-10T10:11:35.657314 | 2023-07-26T11:14:26 | 2023-07-26T11:14:26 | 157,757,989 | 14 | 12 | NOASSERTION | false | 2023-09-14T14:42:06 | 2018-11-15T18:54:50 | 2023-02-17T03:26:45 | 2023-09-14T14:42:05 | 126,005 | 12 | 9 | 5 | Python | false | false | """
This script is used to compute all power spectra of the SO simulations.
You can either write the spectra as separate files in a folder or put them all in a single hdf5 file.
The code will run as follow (example):
python sim_spectra.py global_sims_all.dict
"""
from pspy import pspy_utils, so_dict,so_map,so_mpi,sph_... | UTF-8 | Python | false | false | 6,758 | py | 207 | sim_spectra.py | 146 | 0.533146 | 0.510506 | 0 | 161 | 40.975155 | 133 |
PeteRichardson/pets | 6,880,537,613,511 | 146599f76a47a5539932027da516d93c1824e1f0 | dac8f0074c300b7a3f315dc41ef3f60ff8baca53 | /pets/snake.py | 07831f468e78c92bc5e992787d00bfdc9796608d | [] | no_license | https://github.com/PeteRichardson/pets | 4fcce098a64f3cd2528af909954bd076385c102e | 284ee42facdc438d8b7b413c8ad27f3c510a6249 | refs/heads/master | 2020-04-02T16:16:25.929973 | 2019-09-26T01:22:19 | 2019-09-26T01:22:19 | 154,605,883 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
from pets import Pet
class Snake (Pet):
breeds = [ "King Cobra",
"American Copperhead",
"Black Mamba",
"Corn Snake",
"Rattlesnake",
"Boa Constrictor",
"Eastern Coral Snake",
"Bl... | UTF-8 | Python | false | false | 959 | py | 18 | snake.py | 14 | 0.467153 | 0.462982 | 0 | 36 | 25.666667 | 83 |
nguyentuananh/OptimizeTaxiDestinationPredict | 14,224,931,711,055 | b13460f0317138b8f66482416902ab0332243dd6 | f09ccf9d67a6a34f7692b0f105b8a5df13f809a0 | /model/rnn_tgtcls.py | 0c0faf2e99e0a56790564261dfc91721ec9b8874 | [] | no_license | https://github.com/nguyentuananh/OptimizeTaxiDestinationPredict | 36dc724cbd36d7cc246aa49d20ec077e611e3375 | 14909ae3db8d3d194ba022970014cad358388bbc | refs/heads/master | 2020-04-06T08:49:41.939534 | 2018-11-13T04:13:13 | 2018-11-13T04:13:13 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy
import theano
from theano import tensor
from blocks.bricks.base import lazy
from blocks.bricks import Softmax
from model.rnn import RNN, Stream
class Model(RNN):
@lazy()
def __init__(self, config, **kwargs):
super(Model, self).__init__(config, output_dim=config.tgtcls.shape[0], **kwargs)... | UTF-8 | Python | false | false | 604 | py | 42 | rnn_tgtcls.py | 38 | 0.693709 | 0.692053 | 0 | 19 | 30.789474 | 108 |
mileshill/cs313e-life | 11,596,411,732,988 | 194e6a47372315b820c45ee77538ccaf213fa691 | 712ff45b676b6764fd2843c9f60c4decf7d320d9 | /RunLife.py | 768710c40b2d9a1920eb751475df44e93051651f | [] | no_license | https://github.com/mileshill/cs313e-life | 52665c9dcbc30bfd49356e539d76f2817e2cd8c1 | b9a327dc8f721a9c5270a5100449243a7e02f565 | refs/heads/master | 2021-01-21T03:51:02.810204 | 2014-11-25T13:35:06 | 2014-11-25T13:35:06 | 26,598,524 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python3
# ---------------------------
# projects/collatz/RunLife.py
# Copyright (C) 2014
# Glenn P. Downing
# ---------------------------
# -------
# imports
# -------
from sys import stdout
from Life import *
# ---------------------
# Life ConwayCell 21x13
# ---------------------
print("*** Life Con... | UTF-8 | Python | false | false | 2,619 | py | 4 | RunLife.py | 3 | 0.436044 | 0.275296 | 0 | 76 | 33.460526 | 554 |
yinyaonot/Databases | 6,330,781,824,115 | ea14091bba3e6ef204ceb087a8748bd0b3bf16d2 | 82ab2846b512fd5b94957c292ecbea52ecfeab97 | /HomeWork/10-30/python/filter.py | d55fa0ca653356680f57cffec428822f630fe8f7 | [] | no_license | https://github.com/yinyaonot/Databases | 2ac9a35834a26d9d097c512c7dcfff65fec6403c | 7a79acfe5612fa6a68783d2b2de6d1681ff90012 | refs/heads/master | 2020-04-03T19:29:48.840085 | 2018-10-31T12:05:21 | 2018-10-31T12:05:59 | 155,525,377 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import time
def insure_user(fun):
user = 'jiao'
pwd = 'jiao'
username = input('please input your name>>>')
password = input('please input your password>>>')
if username == user and password == pwd:
print('login success')
fun()
else:
print('error')
@insure_user
def cou... | UTF-8 | Python | false | false | 644 | py | 7 | filter.py | 3 | 0.504732 | 0.484227 | 0 | 30 | 20.133333 | 53 |
Russell-Ford/Python-Blackjack | 5,832,565,588,018 | 08f5ba8304688a7c31489a7a1d269495d84f0b5d | 83118f067378a8357f22ebaa401afdb0fa8c920f | /blackjack.py | f9fb431496d7aa28ed563a25e2d49739ea918491 | [] | no_license | https://github.com/Russell-Ford/Python-Blackjack | 28eef5b2a1c615a62a427b74a1dc0bfc0feb506c | bdd1edaac7b146f8ceab552569b43517f5f689b4 | refs/heads/master | 2021-01-13T11:28:37.454461 | 2016-12-21T04:55:07 | 2016-12-21T04:55:07 | 77,010,379 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import random
def main():
Game = BlackjackGame()
while(boolResponse('Start new game? (y/n)')):
Game.startNewGame()
class BlackjackGame():
def __init__(self):
self.deck = []
self.Dealer = Player()
self.Player = Player()
def startNewGame(self):
self.refreshAndShuffleDeck()
self.resetPlayer(self.Play... | UTF-8 | Python | false | false | 3,056 | py | 1 | blackjack.py | 1 | 0.632526 | 0.615183 | 0 | 130 | 22.515385 | 88 |
mallocassi/Golden-Globes-NLP | 16,063,177,729,165 | 400505681076e45ccff905365107316438b3af93 | 71162a3cce73a76e09ec1e3cbad455e1798ed88a | /query.py | 8c263cd3d922d04e7a47f6e63210060b0b9a614b | [] | no_license | https://github.com/mallocassi/Golden-Globes-NLP | 93aff95bd3cebf9eb4aa4d3af6196d7744859ced | 8ce2e7e69be33689562cf3d73dde23561f91aad8 | refs/heads/master | 2018-01-10T04:44:05.903044 | 2016-03-13T17:05:44 | 2016-03-13T17:05:44 | 51,718,526 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!usr/bin/python
import nltk
import json
import re
from string import punctuation
from collections import Counter
#TODO: Pick best name
#Globals
award_specific_stopwords = ['rt', 'golden', 'globes', 'goldenglobes', 'best', 'director', 'actor', 'actress', 'movie', 'motion', 'picture', 'film', 'tv', 'series', 'perform... | UTF-8 | Python | false | false | 4,846 | py | 5 | query.py | 4 | 0.5844 | 0.580479 | 0 | 132 | 35.712121 | 355 |
SilvesSun/learn-algorithm-in-python | 18,949,395,733,327 | 616c0573fdcfca68eaf2cfb54228c265ccc21aa4 | cbc829f5787b770c9184b91ee470d058cc4cbe65 | /array/在排序数组中查找元素的第一个和最后一个位置.py | aa5322b7207a4c2732dc3c48cce7158b8c018d39 | [] | no_license | https://github.com/SilvesSun/learn-algorithm-in-python | 58815e7e85e767cbc4a9c21e36e7bdede4f32bef | 5ba3465ba9c85955eac188e1e3793a981de712e7 | refs/heads/master | 2022-09-19T05:10:26.783943 | 2022-09-10T04:56:43 | 2022-09-10T04:56:43 | 115,470,779 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | class Solution(object):
def searchRange(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: List[int]
"""
for i in range(len(nums)):
if nums[i] == target:
left_idx = i
break
else:
ret... | UTF-8 | Python | false | false | 685 | py | 284 | 在排序数组中查找元素的第一个和最后一个位置.py | 283 | 0.472993 | 0.462774 | 0 | 25 | 26.4 | 80 |
praekelt/django-atlas | 4,535,485,491,873 | 1284adca6a4d80939467b778fda72a30781ac8f4 | b5655ada14bf043bcc7d2c87b30fc5e15c7d8198 | /atlas/forms.py | 7e5b5f70cdcb80f5c4330a1020a95576ba11e22e | [] | no_license | https://github.com/praekelt/django-atlas | 762a6bb09f3241791f7a5e4812ff4195c3d91c1e | ecb7d14edbc2d2b7ac070d11a811882bd5f49216 | refs/heads/develop | 2020-04-06T06:56:20.135013 | 2015-08-27T08:39:28 | 2015-08-27T08:39:28 | 5,109,867 | 2 | 0 | null | false | 2013-02-20T16:55:01 | 2012-07-19T12:54:24 | 2013-02-20T16:52:24 | 2013-02-20T16:52:23 | 66,573 | null | 2 | 2 | Python | null | null | from django import forms
from django.contrib.gis.geos import fromstr
from atlas.models import Country, Region, City
from atlas.fields import LonLatWidget, CoordinateFormField
from atlas.utils import get_city
class SelectLocationForm(forms.Form):
location = CoordinateFormField(
required = True,
hel... | UTF-8 | Python | false | false | 1,746 | py | 17 | forms.py | 12 | 0.626002 | 0.623711 | 0 | 42 | 40.571429 | 155 |
brandoneng000/LeetCode | 14,577,119,041,114 | 5b75eb56c6022a8e73dbf3a30ecdad38e42a0dd0 | 55815c281f6746bb64fc2ba46d074ca5af966441 | /medium/785.py | e7b4697ee1619c9eec104647e92cce84d9f3fd81 | [] | no_license | https://github.com/brandoneng000/LeetCode | def5107b03187ad7b7b1c207d39c442b70f80fc2 | c7a42753b2b16c7b9c66b8d7c2e67b683a15e27d | refs/heads/master | 2023-08-30T23:38:04.845267 | 2023-08-30T08:42:57 | 2023-08-30T08:42:57 | 199,584,584 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from typing import List
import collections
class Solution:
def isBipartite(self, graph: List[List[int]]) -> bool:
colors = [0] * len(graph)
for node in range(len(graph)):
if colors[node] != 0:
continue
q = collections.deque([node])
colors[node] ... | UTF-8 | Python | false | false | 886 | py | 1,007 | 785.py | 1,006 | 0.448081 | 0.416479 | 0 | 34 | 25.088235 | 58 |
zcribe/LinkShortener | 10,153,302,736,733 | f5ddd864c54cc7eb370feb3d59d7611553416d6a | 3061844bd60802e72ef969b326932be1d78a3219 | /LinkGenerator/apps.py | 0306e4c49611ea9bffda09686c704dc1910deaba | [] | no_license | https://github.com/zcribe/LinkShortener | 7ce945d91562e098ed61a4b86bbc6cc4f9c9b8f6 | 2b46c182b3158712788871fff7b5d6bbae5a98e9 | refs/heads/master | 2022-06-02T07:02:46.947816 | 2020-11-17T07:43:23 | 2020-11-17T07:43:23 | 181,020,466 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.apps import AppConfig
class LinkgeneratorConfig(AppConfig):
name = 'LinkGenerator'
| UTF-8 | Python | false | false | 101 | py | 15 | apps.py | 9 | 0.782178 | 0.782178 | 0 | 5 | 19.2 | 37 |
grabekm90/movies-api | 12,773,232,744,456 | ace650ce9e73092d293a3876a55f79c2b0647a46 | 26095e543a73374f33f0a6f082eab00071670fed | /movies/movies/settings/production.py | 499bb35586d34ccd7b8111e009fb0cd17bb39a29 | [] | no_license | https://github.com/grabekm90/movies-api | 912debeccc9ab37b7c4c2f5d907dd747804d8e50 | 57a52c0b98629f1609e7ffaa565f772f2e80b3c9 | refs/heads/master | 2021-01-01T04:48:50.532790 | 2017-07-16T18:24:39 | 2017-07-16T18:24:39 | 97,254,028 | 0 | 0 | null | false | 2017-07-14T19:48:32 | 2017-07-14T16:37:08 | 2017-07-14T18:59:58 | 2017-07-14T19:48:32 | 8 | 0 | 0 | 0 | Python | null | null | from . import *
DEBUG = os.getenv('DJANGO_DEBUG') == '1'
ALLOWED_HOSTS = ['*'] # FIXME
import dj_database_url
DATABASES = {
'default': dj_database_url.config(conn_max_age=500)
}
SECRET_KEY = os.environ['DJANGO_SECRET_KEY']
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
STATIC_URL = '/static/'
#STATICF... | UTF-8 | Python | false | false | 450 | py | 3 | production.py | 2 | 0.682222 | 0.673333 | 0 | 22 | 19.454545 | 72 |
La0bALanG/Spider_Codes | 12,472,585,032,451 | f2a0213999fb709985815794683af98d21469d06 | 069e82d0400913682bf5ff1ffa60a62422610b83 | /demo13_JinRiTouTiao_news_OOP.py | 96f7bea1dece573aa58c5dd9cf545affaab82bef | [] | no_license | https://github.com/La0bALanG/Spider_Codes | ae9aa6a97c15d0aeeb72702f6a6b3b8caa7b107d | 72ce5b72b0baf1de7d8fecac4805d4711dc6409f | refs/heads/master | 2022-12-30T13:06:13.937923 | 2020-10-13T09:18:54 | 2020-10-13T09:18:54 | 298,497,349 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding:utf-8 _*-
"""
@version:
author:安伟超
@time: 2020/09/16
@file: demo13_JinRiTouTiao_news_OOP.py.py
@environment:virtualenv
@email:awc19930818@outlook.com
@github:https://github.com/La0bALanG
@requirement:定时爬取今日头条推荐类目新闻
"""
"""
var t = 1 === e.page ? e.options.defaultPageSize : e.options.pageSize
... | UTF-8 | Python | false | false | 876 | py | 34 | demo13_JinRiTouTiao_news_OOP.py | 31 | 0.634204 | 0.454869 | 0 | 29 | 28.068966 | 162 |
superdev0505/mtp-web | 2,190,433,346,988 | 699f0d1b344a46579b0e50d54184a3a841b948dd | 487bdaeed33ecad9f1f210f7f82103c4e09e07db | /photographer/views.py | 234a0c7953b2307fc6f54b699ca5a4c2d7806d7a | [
"MIT"
] | permissive | https://github.com/superdev0505/mtp-web | e1a56eb3426d0739b247598ae908747e60a8de67 | 8288765a89daaa7b02dfd7e78cc51c4f12d7fcce | refs/heads/master | 2022-12-14T00:28:36.521604 | 2020-09-11T21:12:20 | 2020-09-11T21:12:20 | 295,288,384 | 0 | 0 | MIT | true | 2020-09-14T02:59:07 | 2020-09-14T02:59:06 | 2020-09-11T21:12:31 | 2020-09-13T14:02:12 | 11,648 | 0 | 0 | 0 | null | false | false | ## Python packages
from datetime import datetime
import json
## Django Packages
from django.shortcuts import get_object_or_404, render
from django.urls import reverse
from django.shortcuts import redirect
from django.utils import timezone
from django.http import (
Http404, HttpResponse, JsonResponse, HttpResponseP... | UTF-8 | Python | false | false | 14,436 | py | 153 | views.py | 97 | 0.603699 | 0.598088 | 0 | 374 | 37.601604 | 189 |
lucianorc/testdriven-app | 8,701,603,786,057 | 6dcc8842e32e264135cbc11aa862ca64f0d94999 | c6f8ba216c3f8fc5f1aeb6fd94594e369bd1d6ce | /services/users/project/__init__.py | 514d5cea11e34abff7e7e1d1805bf36ae156aa9c | [] | no_license | https://github.com/lucianorc/testdriven-app | 55ef1590ffb1b75da7e83960ccd18260d2b7d16b | da7a773bb80edb32857e1e4383a4bdb97e61bd36 | refs/heads/master | 2023-01-04T21:42:16.042176 | 2019-06-06T14:11:26 | 2019-06-06T14:11:26 | 189,145,471 | 0 | 0 | null | false | 2023-01-03T23:28:43 | 2019-05-29T03:39:44 | 2019-06-06T14:13:02 | 2023-01-03T23:28:41 | 3,469 | 0 | 0 | 23 | Python | false | false | import os
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_debugtoolbar import DebugToolbarExtension
from flask_cors import CORS
from flask_migrate import Migrate
db = SQLAlchemy()
toolbar = DebugToolbarExtension()
cors = CORS()
migrate = Migrate()
def create_app():
app = Flask(__name... | UTF-8 | Python | false | false | 744 | py | 8 | __init__.py | 2 | 0.670699 | 0.670699 | 0 | 37 | 19.108108 | 52 |
lixiang2017/leetcode | 9,328,669,003,047 | 5c47ec0827aa1e04ee2ddb84d666e354d735b17f | 7950c4faf15ec1dc217391d839ddc21efd174ede | /explore/2021/january/Word_Ladder.2.py | 479469bcaca26a5f9a716e99ed0ef451b0c5ae57 | [] | no_license | https://github.com/lixiang2017/leetcode | f462ecd269c7157aa4f5854f8c1da97ca5375e39 | f93380721b8383817fe2b0d728deca1321c9ef45 | refs/heads/master | 2023-08-25T02:56:58.918792 | 2023-08-22T16:43:36 | 2023-08-22T16:43:36 | 153,090,613 | 5 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | '''
BFS - Single directional
Success
Details
Runtime: 108 ms, faster than 77.91% of Python online submissions for Word Ladder.
Memory Usage: 18.5 MB, less than 12.12% of Python online submissions for Word Ladder.
ref:
https://leetcode.com/problems/word-ladder/solution/
'''
from collections import defaultdict
class... | UTF-8 | Python | false | false | 1,404 | py | 3,076 | Word_Ladder.2.py | 2,900 | 0.524929 | 0.510684 | 0 | 48 | 27.979167 | 85 |
billdonghp/Python | 15,144,054,712,809 | 565ecf73628404de2539879964f3f4bd26be67e2 | 22f2b7dbe7796f4786dbffb61c58221f48b2bebe | /Bastard.py | 3e03cbe50153a6e5c42d258554993c8d164db4e0 | [] | no_license | https://github.com/billdonghp/Python | 726b1f80acb4c8399441055466f8d3a67f5eb1a7 | 30650f3a2c5ce2aa64322a81d845f4ecc8604338 | refs/heads/master | 2023-01-02T00:01:03.454414 | 2020-10-27T14:02:58 | 2020-10-27T14:02:58 | 259,535,815 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | '''
有人的地方就有坏蛋
坏蛋类用以存储坏蛋的信息
class Bastard(Person) 继承Person类
super().__init__(name,age,rmb)
类的继承和方法覆写
'''
from Person import Person
class Bastard(Person):
#恶习
bayHobby = None
#覆写父类的构造方法
def __init__(self,name,age,rmb,badHobby):
#调用父类构造方法
super().__init__(name,age,rmb)
print("混蛋的初... | UTF-8 | Python | false | false | 1,074 | py | 36 | Bastard.py | 35 | 0.601449 | 0.595411 | 0 | 40 | 19.7 | 61 |
ohern017/IR_TokenizationAndRetrieval | 14,980,845,932,072 | 43717edfe071c412be49994921a3de81ab22def1 | a6c8ca1bd6cb7316ed6cc77b1fe5b26cbd5acec9 | /LM-bigram.py | 7ed5340292a492840bc693eefb585a0647b69bf9 | [
"MIT"
] | permissive | https://github.com/ohern017/IR_TokenizationAndRetrieval | 1011f5b4d1a3364dc995e8623b25752783687077 | 1e5bf32bae0f6fa0111f7d46d4ae79f3ee5b85d4 | refs/heads/main | 2023-05-07T19:41:25.220240 | 2021-05-29T20:29:27 | 2021-05-29T20:29:27 | 372,062,679 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import re
import os
import sys
import math
from irfunctions import tokenize
from parsing import termID, termInfo, docID, docCorpus, docTerms
def bigram(query, document):
##need tf, length of document, total distinct words
vocabSize = len(termID.keys())
querySize = len(query)
p_laplace = []
for i... | UTF-8 | Python | false | false | 1,968 | py | 11 | LM-bigram.py | 5 | 0.63313 | 0.618394 | 0 | 68 | 26.970588 | 141 |
wayne927/pasta | 19,361,712,570,764 | 3184cc8aba8260297cfa8f9c3a26bfa1c58a91c6 | d8c8f8344fcbc30c052819deb47635c4bcc34f57 | /pasta/gcodeFormat.py | 96e561b4c53df7dc140de89037150cedab6f6a98 | [] | no_license | https://github.com/wayne927/pasta | cd46f0bf50023097f495ac4bee4df90529064bd1 | 80339408b5e4b8e76daf52bbd188162a1398d935 | refs/heads/master | 2023-01-09T01:53:11.061755 | 2022-12-30T08:47:03 | 2022-12-30T08:47:03 | 265,163,487 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sys
def run(lines):
bigLine = ''
for line in lines:
words = (line.split(' '))[1:]
thisLine = ' '.join(words)
words = thisLine.split('\n')
thisLine = ''.join(words)
bigLine = bigLine + thisLine
bigLine = (''.join(bigLine))[1:-3]
out = '... | UTF-8 | Python | false | false | 531 | py | 14 | gcodeFormat.py | 10 | 0.499058 | 0.491525 | 0 | 29 | 17.310345 | 43 |
undx/undx-dots | 15,350,213,141,840 | 371be47f1d1b939d9d6385b95363ab7543803add | 8d021b52ef4fd8455066634395acbb4607d26a9a | /www/.local/share/qutebrowser/userscripts/qute-pass-add | 99c528ba6dbdacac530e8cc4e3a65b23a51304b6 | [] | no_license | https://github.com/undx/undx-dots | eb46e0fea6bd364adb325814eff547a75dc54880 | ecd1c53a73cfb226dc689f4ce91d36fef86c950d | refs/heads/master | 2020-06-12T11:43:49.590455 | 2020-04-12T13:36:13 | 2020-04-12T13:36:13 | 194,288,362 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python3
""" Adds a password to 'pass' storage.
originaly from https://github.com/bbugyi200/scripts/blob/master/main/qute-pass-add"""
import argparse
import os
import platform
import getpass
import subprocess
import re
os.environ['EDITOR'] = '/usr/bin/vim'
parser = argparse.ArgumentParser(descript... | UTF-8 | Python | false | false | 1,261 | 52 | qute-pass-add | 34 | 0.645519 | 0.640761 | 0 | 38 | 32.131579 | 99 | |
HadrienMP/random-blame | 7,971,459,324,395 | 9e868ca9e74e1f90e5b0fd5f3e1706c8a4776d13 | 34c8df7d21acd89d3b9d3f087ec03165d0e0295d | /hipchat_client.py | ce1079fced03f7092f08d38421bce1a62bea8139 | [] | no_license | https://github.com/HadrienMP/random-blame | 7e8022b758b9ca0e6d144ff89db3c03c480b1de7 | f7d522d3e22cf2fccce9c9e9455addb0effa8c3b | refs/heads/master | 2021-01-12T05:34:56.920000 | 2016-12-22T14:29:46 | 2016-12-22T14:29:46 | 77,133,136 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import requests
def get_room_members(room):
r = _authenticated_get('https://api.hipchat.com/v2/room/{room}/participant'.format(room=room))
if r.status_code is 200:
return [member['mention_name'] for member in r.json()['items']]
else:
print(r.url)
print(r.status_code)
print... | UTF-8 | Python | false | false | 464 | py | 3 | hipchat_client.py | 2 | 0.653017 | 0.631466 | 0 | 17 | 26.294118 | 98 |
joker-ht/mapIRbin | 18,648,748,019,229 | 7b4656409ce4f199a10e4846323258eb5fd2f466 | 954f8b74f16338733d18e37db1c71026e6f8b0db | /IR_CFG.py | 1a2b711f83cf7a255d909e6e657031a9194427f1 | [] | no_license | https://github.com/joker-ht/mapIRbin | 5fe18314aebf186fbecebfbd470bd12b79bc2724 | 11f70963f1f28019e079df36e12f57937d58e0f2 | refs/heads/master | 2022-12-08T12:39:28.213379 | 2020-08-28T07:42:47 | 2020-08-28T07:42:47 | 290,432,664 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import os,sys
import MySQLdb
import json
sys.path.append(r"/home/seclab/xujianhao/checkCF/tracing_kernel/scripts")
import IR2graph
from mysql_config import read_config
from getIRinfo import get_IR_info
real_f_path = os.path.realpath(__file__)
this_path = real_f_path[:real_f_path.rfind('/')]
def build_IR_cf... | UTF-8 | Python | false | false | 4,484 | py | 9 | IR_CFG.py | 8 | 0.492194 | 0.487957 | 0 | 123 | 34.455285 | 94 |
philiplee15/personal-projects | 18,184,891,557,611 | 8c7d6053e0b3e01d81748cb6306b0da3254ad227 | bd006ae00a03c06acdc3209b47d5a6bcbda46bb4 | /cryptocurrency/apps/converter/views.py | d32129cb1deb86c46d70bbe3ad326893fff53b5a | [] | no_license | https://github.com/philiplee15/personal-projects | 29e1e558f4cedeb8d5a90bc58af7c6fa2739c9e5 | 2168a9808996e84a1729c9f65cca138c553f8709 | refs/heads/master | 2018-04-13T05:45:43.948012 | 2017-07-06T19:51:38 | 2017-07-06T19:51:38 | 90,322,350 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.shortcuts import render
from django.conf import settings
import requests
from .forms import SubmitEmbed
from .serializer import EmbedSerializer
def save_embed(request):
form = SubmitEmbed()
r = requests.get('https://api.coinmarketcap.com/v1/ticker/')
json = r.json()
serializer = EmbedSerial... | UTF-8 | Python | false | false | 717 | py | 15 | views.py | 7 | 0.686192 | 0.684798 | 0 | 21 | 33.142857 | 101 |
seryte/test_platform_dev | 2,963,527,448,654 | 8821dba4520751a9d8e445169a3ae457cc55d49b | a58f41f78395a5e0a3b344f46d133a7dbfb3b8bd | /test_platform/user_app/views.py | 1a0e7f813cec52dcf22a4d8f09c134a9c5fa7c7c | [] | no_license | https://github.com/seryte/test_platform_dev | b41206df2d734957da8336ad3cf13ca0b76e0375 | 8c8475296cc9e2ecf072408d7b84229204ce69cf | refs/heads/master | 2020-03-29T03:09:48.446413 | 2018-10-12T15:27:29 | 2018-10-12T15:27:29 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.shortcuts import render
from django.http import HttpResponse, HttpResponseRedirect
from django.contrib import auth
from django.contrib.auth.decorators import login_required
from user_app.models import Project, Module
# Create your views here.
def index(request):
return render(request, "index.html")
... | UTF-8 | Python | false | false | 1,466 | py | 5 | views.py | 2 | 0.644272 | 0.644272 | 0 | 47 | 29.085106 | 90 |
tshimoga/Diffusion-Decision-using-KNN | 9,878,424,808,912 | ad3914860d669bc4e8a52239f1a2962c3d646757 | 548a5fccfad71dbf5f391be991e9dfa118954f0d | /DiffusionDecision/generate_lamdas.py | 8a6a561c75f270dd4ff52569d1367a785fa73517 | [] | no_license | https://github.com/tshimoga/Diffusion-Decision-using-KNN | 544a15a916f60b2308921af4a926b846a876caa4 | 200c219feb7a6bcf2f59d84e40ad3fa0544a1c2b | refs/heads/master | 2021-01-10T03:02:22.377236 | 2016-01-06T23:05:49 | 2016-01-06T23:05:49 | 49,166,194 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import time
from scipy.spatial.distance import euclidean
import pickle
import numpy as np
def unpickle(file):
import cPickle
fo = open(file, 'rb')
dict = cPickle.load(fo)
fo.close()
return dict
euc_dist = {}
def euc(test_point, point):
test_point_str = test_point
test_po... | UTF-8 | Python | false | false | 2,361 | py | 10 | generate_lamdas.py | 9 | 0.635324 | 0.626853 | 0 | 66 | 33.80303 | 100 |
Step657/leetcode | 19,104,014,533,367 | 110163582a930198d9c2a102b9776e68ce81098c | 74ee1f097cd3339f8f25c798afbae31a4b02ec6a | /other/1_Two_Sum.py | c4259eb12ed784b8273cc0fb48d3106a7f877c05 | [] | no_license | https://github.com/Step657/leetcode | cd6a679f793cecde376c6cb59793150a2c85c00c | 70ca9c5ef5be291abbc6e48100ff638c4145eb58 | refs/heads/master | 2022-12-16T08:58:32.850811 | 2020-09-24T15:15:12 | 2020-09-24T15:15:12 | 285,330,996 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def bruteFroce(nums, target):
for i in range(len(nums)-1):
for j in range(i+1, len(nums)):
if nums[i] + nums[j] == target:
return [i,j]
return False
def pythonList(nums, target):
for i in nums:
if target-i in nums:
return [nums.index(i), nums.index(t... | UTF-8 | Python | false | false | 459 | py | 62 | 1_Two_Sum.py | 60 | 0.529412 | 0.507625 | 0 | 19 | 23.210526 | 56 |
jaakkju/ckan-streamcatalog | 9,010,841,388,989 | 337e9202d8e0386a169426e7761969a5bf704357 | 1ec65d98304b9390899355a14bf7756d84ffea2d | /ckanext/streamcatalog/activity.py | 5893be6d479e74c0731eea81095c03403a6b1e8d | [
"MIT"
] | permissive | https://github.com/jaakkju/ckan-streamcatalog | f8407dfd49ea1d17ae0b24de0f9ef881137e9964 | f7fe763f357be77bd538a5626710885acfbfc8ff | refs/heads/master | 2022-07-23T09:11:36.436342 | 2014-10-01T11:19:26 | 2014-10-01T11:19:26 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import re
import datetime
from pylons import config
from webhelpers.html import literal
from webhelpers.html.tags import *
from routes import url_for
import ckan.lib.helpers as h
import ckan.lib.base as base
import ckan.lib.dictization.model_dictize as model_dictize
import ckan.logic as logic
from ckan.logic.action.g... | UTF-8 | Python | false | false | 20,690 | py | 23 | activity.py | 10 | 0.671194 | 0.669309 | 0 | 547 | 36.824497 | 123 |
meher1087/learn_ros_python | 16,973,710,780,367 | b3bc19888a0af4458cc08abb5cef9a0276924194 | a4b94c63843d344ad1cdcfee314c74ed10a460a5 | /arm_ws/src/dext_moveit_config/node/control_pose.py | dfa8bd4845b6f81dc8ae85b633c4b07c09ba1c70 | [] | no_license | https://github.com/meher1087/learn_ros_python | 25efc5d915dddec722c9be5c127e0dd214d100b1 | 2a3460df8400446d3286f243bce4a534e0ea7336 | refs/heads/master | 2022-11-20T17:15:17.331227 | 2020-07-18T15:49:20 | 2020-07-18T15:49:20 | 255,571,487 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
import sys
import rospy
import copy
import moveit_commander
import moveit_msgs.msg
import geometry_msgs.msg
from math import pi
from std_msgs.msg import String
from moveit_commander.conversions import pose_to_list
#initialise moveit commander and rospy nodes
moveit_commander.roscpp_initialize(s... | UTF-8 | Python | false | false | 3,384 | py | 38 | control_pose.py | 14 | 0.731087 | 0.716608 | 0 | 123 | 26.504065 | 155 |
faiichann/ProjectOPengl | 5,437,428,605,349 | 17bba9a7c1f9e3ec227c366368c321d8cbf53d5f | 0315af311f626de4ab9b04d53d6a712508418bae | /RoomProject-219-262-265.py | be2b22996431515efaf9839abf15917d8efd8032 | [] | no_license | https://github.com/faiichann/ProjectOPengl | 4ca86ff64eadfa3f1cd5765310e6ac06fe742b6b | 4920a01735f9d22e32093453a7118364f12f9832 | refs/heads/master | 2022-11-09T10:13:51.084938 | 2020-06-08T04:59:38 | 2020-06-08T04:59:38 | 269,681,546 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | if __name__ == '__build__':
raise Exception
import sys
try:
from OpenGL.GLUT import *
from OpenGL.GL import *
from OpenGL.GLU import *
except:
print ('''
ERROR: PyOpenGL not installed properly.
''')
sys.exit()
w,h=1280, 720
rot = 0
speed = 20
sum_rot_updown = 0
current_mv_mat = (GLfloat * 16)()
d... | UTF-8 | Python | false | false | 19,805 | py | 3 | RoomProject-219-262-265.py | 2 | 0.610481 | 0.478121 | 0 | 966 | 18.991718 | 79 |
Bloodielie/vk_contrallers_bot | 6,098,853,570,221 | 66e3fe87d8098ab0f1d45aaeeaa456469a54d599 | 6360e50839c84f2392ffbccd7324b85b0f55eacc | /utils/json.py | 96d8f9b8bcc89d037750530fcee9c943617ea12f | [] | no_license | https://github.com/Bloodielie/vk_contrallers_bot | 3a86290e5dc29a040476db20d2b8b8216a644bf6 | 6a961996d3bc8900d3417bbe76e1a1fafe1e4813 | refs/heads/implementation_through_api | 2022-12-04T05:16:57.445464 | 2020-02-05T18:39:49 | 2020-02-05T18:39:49 | 233,390,974 | 0 | 0 | null | false | 2022-11-22T05:14:23 | 2020-01-12T12:43:55 | 2020-02-05T18:43:13 | 2022-11-22T05:14:21 | 1,199 | 0 | 0 | 1 | Python | false | false | import json
class JsonUtils:
def __init__(self, file_path):
self.file_path = file_path
def get_json(self):
with open(self.file_path, 'r', encoding='utf-8') as file:
return json.load(file)
def write_json(self, data, indent=4, ensure_ascii=None, sort_keys=None):
... | UTF-8 | Python | false | false | 1,116 | py | 29 | json.py | 21 | 0.594399 | 0.583559 | 0 | 30 | 34.966667 | 101 |
lieuzhenghong/programming-practice | 7,825,430,415,800 | 81dd0875be0fa8062adc77dfcc1a7d691793c2bf | c416961f635d700927dbb7b90556ee5b7698af6e | /problems/LC_2_add_two_numbers.py | 55eb71dc44e2b029f60d59c51f131b7f6ea830a7 | [] | no_license | https://github.com/lieuzhenghong/programming-practice | ffe0d3b2a7d56f689233478257777d3e66b5ff38 | a0ab71b1fd759cb9097dea1e8232cdefc8e6f1da | refs/heads/master | 2023-03-06T04:33:17.282844 | 2021-02-17T15:17:21 | 2021-02-17T15:17:21 | 292,199,971 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | '''
You are given two non-empty linked lists representing two non-negative
integers. The digits are stored in reverse order and each of their nodes
contain a single digit. Add the two numbers and return it as a linked list.
You may assume the two numbers do not contain any leading zero, except the
number 0 itself.
''... | UTF-8 | Python | false | false | 2,584 | py | 65 | LC_2_add_two_numbers.py | 61 | 0.583591 | 0.549149 | 0 | 96 | 25.916667 | 75 |
akosourov/flask_tasks | 9,019,431,349,183 | 4ba9858cdf065a0ee8eac82cd64f7319bca97fca | 7bc50d91c0354020d105099749e69fdf2a295841 | /users/users/__init__.py | de0f38f27a83a288fb364843121151a5646805e2 | [] | no_license | https://github.com/akosourov/flask_tasks | f5b1a4a639b3decb963f676c3d4724ddc181481f | 3201f9c516e5491144d9ae623151c2204f39b0a1 | refs/heads/master | 2020-03-25T12:09:10.636822 | 2018-08-07T23:42:22 | 2018-08-07T23:42:22 | 143,762,152 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from flask import Flask
default_config = dict(
SECRET_KEY='dev',
DATABASE='dev.sqlite',
ADMIN_NAME='admin',
ADMIN_PASSWORD= 'admin'
)
def create_app(config_file_name=None):
app = Flask(__name__, instance_relative_config=True)
if config_file_name is None:
app.config.from_mapping(**def... | UTF-8 | Python | false | false | 679 | py | 11 | __init__.py | 9 | 0.637703 | 0.637703 | 0 | 30 | 21.633333 | 73 |
smalljjjack/Finger-Dancer | 13,297,218,792,560 | d8582ffbc5cd517ce63174cba5eaf3d6933380f7 | a0ca99a1ac9d9fe29ab37c2007b823b4e9066da1 | /Tetris/game.py | 8974c3be9e0751d6bec3ffda27b399eed675cafb | [
"MIT"
] | permissive | https://github.com/smalljjjack/Finger-Dancer | c30c962d866026425db7156958bd6f7b9b4daabf | 3288f952a2c8a1adf2aae58b8abf6145eafef8e7 | refs/heads/master | 2020-04-01T04:29:14.510470 | 2018-10-14T07:52:57 | 2018-10-14T07:52:57 | 152,865,699 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import pygame
from pygame.locals import *
import math
import random
class Brick():
def __init__(self, p_position, p_color):
self.position = p_position
self.color = p_color
self.image = pygame.Surface([brick_width, brick_height])
self.image.fill(self.color)
def draw(self):
... | UTF-8 | Python | false | false | 9,727 | py | 2 | game.py | 1 | 0.520202 | 0.482574 | 0 | 298 | 31.64094 | 134 |
edinsonlenin/probandogit | 17,514,876,640,111 | 20b7f923a3d85edebb540a6d97a71e8c8174472c | 95e0c5ff2ac733a84d7d022dc47c4244bb0baed1 | /inicio.py | f3058a333d22106c8330ac49649724adf13366c2 | [] | no_license | https://github.com/edinsonlenin/probandogit | 3ca136e03c476674959a77287842b5306cc71b12 | 9586577d428e9e283db289bee0334afd3cfd9f53 | refs/heads/master | 2022-12-13T21:38:05.277389 | 2020-09-11T21:24:48 | 2020-09-11T21:24:48 | 294,229,716 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | primer cambio
segundo cambio
tercer cambio | UTF-8 | Python | false | false | 42 | py | 1 | inicio.py | 1 | 0.880952 | 0.880952 | 0 | 3 | 13.333333 | 14 |
biggreenogre/GatewayManager | 10,041,633,585,195 | dee81312892b87923de176dc38426ff933da1ba1 | 569c8fea9007fb6acee55df23c4db5c2076e3e53 | /gatewayManager.py | 4fdcac36f0a6e8c8452c52f4ba0b4831170d69a3 | [] | no_license | https://github.com/biggreenogre/GatewayManager | a7d0b08dc2f2d72c0eca227208d0ecb0049dbe0c | 9fb82944c19cf738e2ea09d9d5bf7f4447cd1871 | refs/heads/master | 2016-09-13T14:12:18.780303 | 2016-06-02T14:30:04 | 2016-06-02T14:30:04 | 57,902,509 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Import libs
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from time import sleep, time, strftime
import ovpnMgr
try:
from gpiozero import Button, PWMLED, RGBLED
... | UTF-8 | Python | false | false | 11,820 | py | 5 | gatewayManager.py | 4 | 0.514298 | 0.496193 | 0 | 356 | 32.185393 | 136 |
haotianwooo/seniorcare | 68,719,500,279 | ef5f119f2fa72ca474d77b297888b3f9d1ad4797 | cf21ba2100b037ba8c12eeee940080d9f0148d7e | /galileo/arduino-galileo.py | c57d566ac408d92b2ac36964fe158cb195c3114a | [] | no_license | https://github.com/haotianwooo/seniorcare | a9b019afbfc555454b393ec33638db3a2779e019 | f71206642e1a78dd1380cdf47d7bd4d78be09385 | refs/heads/master | 2016-09-10T11:26:03.030507 | 2015-07-30T05:37:12 | 2015-07-30T05:37:12 | 29,128,475 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
#Haotian Wang June 2014
#Send the 'picture' string to arduino
#Receive the data of PM 2.5 and temperature on arduino
#Usage: arduino-galileo.py MQTT_SERVER
import sys
import time
import mosquitto
import json
import serial
import os
ser = serial.Serial()
ser.port = '/dev/ttyS0'
ser.baudrate = 96... | UTF-8 | Python | false | false | 2,632 | py | 8 | arduino-galileo.py | 7 | 0.612842 | 0.599924 | 0 | 89 | 28.505618 | 70 |
AlexWeb2018/labs_works | 19,043,885,018,466 | fbe6e752a484e3e7907460dfcbfbd1a354bd8ca0 | f762dd1cce24dc3b0673fe4f077538d9bbafda21 | /15-3.py | b717c7224d8407bd79436c14e9aebb71bdd131a2 | [] | no_license | https://github.com/AlexWeb2018/labs_works | 49041c8b416de59cb8e737c466d0c690d61e5b42 | e3475fa115465de7f8ee27b96de2a609bad86053 | refs/heads/master | 2020-07-23T16:40:35.755399 | 2019-12-25T09:02:48 | 2019-12-25T09:02:48 | 207,633,494 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import random
N = random.randrange(2,10)
a = [random.randrange(1,11) for i in range(N)]
print("N:",N)
print("Array a:\n",a)
x_odd = None
for i in range(N-1,-1,-1) :
if a[i]%2 == 1 :
x_odd = a[i]
break
print("Last odd:",x_odd)
if x_odd != None :
for (i, item) in enumerate(a) :... | UTF-8 | Python | false | false | 406 | py | 105 | 15-3.py | 105 | 0.5 | 0.46798 | 0 | 21 | 17.428571 | 46 |
realitysharesadvisors/crytpo-trading-bot | 16,527,034,196,742 | 47497ad3df850a8b77ae84a17d64d539f8396218 | 0d871f635932ef4b5641320a7f094f19f47b6cb9 | /trading-bot(50200strategy).py | cff337b66fa994e239236d9bb7284ce9eb59a5e4 | [] | no_license | https://github.com/realitysharesadvisors/crytpo-trading-bot | f9d8fc6d6cb20367b8b2e8de9305f34106c86ac5 | 63648d5dd64cfd724b86b5b104044c2ee2c4d2f1 | refs/heads/master | 2021-09-11T16:36:40.929663 | 2018-04-09T18:50:54 | 2018-04-09T18:50:54 | 123,356,283 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | import time
import sys, getopt
import datetime
# import gemini
import requests
from poloniex import poloniex ##Convenient python wrapper##
def main(argv):
period = 10
pair = "USDT_BTC"
prices = []
currentMovingAverage = 0
currentFiftyMA = 0
currentTwoHundredMA = 0
lengthOfMA =... | UTF-8 | Python | false | false | 8,345 | py | 6 | trading-bot(50200strategy).py | 4 | 0.530377 | 0.506171 | 0 | 187 | 42.625668 | 177 |
BaFin/Crumblr2 | 11,184,094,880,781 | dc7eb43a4e19671d99a746d38e158220d4469e44 | 63040592aead3a09c087e683c83ca8f89e649e6b | /class_Template.py | 6a82fe3cf37a11f7bed284509101d78f524c73cb | [] | no_license | https://github.com/BaFin/Crumblr2 | c1c6e5b0fb2496a10b42ccb47b60561a8fc3a9c3 | fa2918f59b639a5a44ac1134912b73126bafba6c | refs/heads/master | 2016-09-15T05:59:57.788025 | 2016-03-02T22:39:06 | 2016-03-02T22:39:06 | 38,463,218 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import os
import re
import shutil
class Template():
template = {'general' : 'general.html',
'quote' : 'quote.html',
'text' : 'text.html',
'link' : 'link.html',
'chat' : 'chat.html',
'answer' : 'answer.html',
'audio' : 'audio.html',
... | UTF-8 | Python | false | false | 2,097 | py | 14 | class_Template.py | 3 | 0.536481 | 0.536481 | 0 | 67 | 30.283582 | 84 |
RoDaniel/featurehouse | 7,395,933,716,977 | a4cab5589801580f49853730f9ebb47d44b78a6a | dc7dc1ab85403a4467044d4c0c936c17fff5225a | /fstmerge/examples/Fail2ban/rev579-732/base-trunk-579/server/datetemplate.py | a495df29c03ed39cdbb248484605dae12d27a53e | [] | no_license | https://github.com/RoDaniel/featurehouse | d2dcb5f896bbce2c5154d0ba5622a908db4c5d99 | df89ce54ddadfba742508aa2ff3ba919a4a598dc | refs/heads/master | 2020-12-25T13:45:44.511719 | 2012-01-20T17:43:15 | 2012-01-20T17:43:15 | 1,919,462 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | __author__ = "Cyril Jaquier"
__version__ = "$Revision: 1.1 $"
__date__ = "$Date: 2010-07-25 12:46:34 $"
__copyright__ = "Copyright (c) 2004 Cyril Jaquier"
__license__ = "GPL"
import re
class DateTemplate:
def __init__(self):
self.__name = ""
self.__regex = ""
self.__cRegex = None
self.__pattern = ""
self._... | UTF-8 | Python | false | false | 1,020 | py | 287 | datetemplate.py | 81 | 0.62549 | 0.603922 | 0 | 49 | 19.816327 | 52 |
huangchao20/python_test | 9,792,525,464,369 | 86b1f1e16800e5c7291c46fbba8aea7b2d10a15c | 1508196ddc1846cadb5fb0b72f32712069077c71 | /python-面向对象/面向对象/面向对象3.py | e9b55384f04e40d41204bf604ffbcfecf2d86159 | [] | no_license | https://github.com/huangchao20/python_test | b25ab9f3ecbf389df86fd8e142257271aca3a585 | 756fb77ce746c2f9d68c1cafc7f69577ca13e87b | refs/heads/master | 2020-04-27T15:21:58.238908 | 2019-03-08T01:16:07 | 2019-03-08T01:16:07 | 174,443,323 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from obj import Test1
| UTF-8 | Python | false | false | 23 | py | 99 | 面向对象3.py | 88 | 0.782609 | 0.73913 | 0 | 1 | 21 | 21 |
tuantle/simple_nn_with_numpy | 10,565,619,596,170 | 59e0066490a7f516e81238f4cbd687d1e77edc47 | 23ec7089b5b18f8c2808296bdc45819fd5f08180 | /modules/npcore/optimizers.py | 0679ab9efc9dbc48a270542b119c2b3422d076c0 | [
"MIT"
] | permissive | https://github.com/tuantle/simple_nn_with_numpy | 3b5ace743e7372a0fe9844d15cdae754f39aff30 | 4bf5ba23e2df7879030de85eb22b8e30ad9708de | refs/heads/master | 2020-04-16T16:45:52.880599 | 2019-08-13T23:06:00 | 2019-08-13T23:06:00 | 165,748,521 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
#
# Copyright 2016-present Tuan Le.
#
# Licensed under the MIT License.
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://opensource.org/licenses/mit-license.html
#
# Unless required by applicable law or agreed to in writing, so... | UTF-8 | Python | false | false | 9,656 | py | 39 | optimizers.py | 28 | 0.518538 | 0.513049 | 0 | 306 | 30.555556 | 139 |
Francinaldo-Silva/Uri-Online-Judge | 4,896,262,739,904 | 088f0524cf8a9e4cc8a300ca2d2fcc242bdc4f21 | 674b53609cf9e56f7313574bd62ea7df8792274d | /1042.py | 6456fcea60ab26261dbf5864a8adb8785ead5c5c | [] | no_license | https://github.com/Francinaldo-Silva/Uri-Online-Judge | 706bc66b97beaf6b59fbdff14852c33e1eede26f | 09807d4c0d325e1e5afa7a8220539f4c501af44a | refs/heads/master | 2022-03-29T19:08:14.066466 | 2020-01-19T03:29:44 | 2020-01-19T03:29:44 | 234,834,075 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | numeros = input().split()
numeros = list(map(int, numeros))
for i in sorted(numeros):
print(i)
print('')
for i in numeros:
print(i) | UTF-8 | Python | false | false | 139 | py | 31 | 1042.py | 9 | 0.647482 | 0.647482 | 0 | 7 | 19 | 33 |
MzXuan/FER_JueAndXuan | 18,047,452,592,422 | 339989422089c0a6452695f2c40cc6d038153e40 | b5dbc999ee4592b5d7d339674c2bd27f10cb74c6 | /test.py | 7dd802543015f0ae5e9c72db888653c2934b6178 | [] | no_license | https://github.com/MzXuan/FER_JueAndXuan | 39a6355399fb7a6662b4eab8ad67d306ac6801e8 | e3a9a3ef2806848c53a1e17ca6086c63f8bb246f | refs/heads/master | 2020-03-12T01:07:11.856300 | 2018-04-20T13:45:33 | 2018-04-20T13:45:33 | 130,367,767 | 0 | 0 | null | true | 2018-04-20T13:44:43 | 2018-04-20T13:44:42 | 2018-04-20T13:42:48 | 2018-04-20T13:42:46 | 0 | 0 | 0 | 0 | null | false | null | from seq_fer_datasets import *
from seq_fer import SFER_LSTM
if __name__ == '__main__':
video_root_dir = r'/home/young/cv_project/cohn-kanade-images'
label_root_dir = r'/home/young/cv_project/Emotion'
video_dir_paths, label_dir_paths = get_ck_data(video_root_dir, label_root_dir)
img_size = (320, 24... | UTF-8 | Python | false | false | 1,167 | py | 4 | test.py | 3 | 0.656384 | 0.646958 | 0 | 32 | 35.5 | 114 |
bueaux/mri | 6,691,559,051,452 | 3459d84980a7248b09858a4be10ac0e57d9ebe2a | fdf23fa82dc5d8b08f3c0f6aac8016890edd85ea | /mri/util.py | 3a5434e0063c07f0ce642f9c61192afa08e787da | [
"MIT"
] | permissive | https://github.com/bueaux/mri | 830ae1a1450ac4ba4b058922e59c57632ad4923e | 5ebe151656c7b7033a1d9a6b421c3392d41e5a20 | refs/heads/master | 2020-04-24T06:43:39.848446 | 2014-06-24T02:57:56 | 2014-06-24T02:57:56 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from itertools import ifilter, izip
from operator import add
from mri import _entropy
BLOCK_LEN = _entropy.BLOCK_LEN
def generate_hex_ticks(ticks, max):
mask = 0xfffffff
# Find the largest bit mask we can use without reducing the number
# of ticks by much less than a half.
# Worse case scenario is w... | UTF-8 | Python | false | false | 2,301 | py | 8 | util.py | 6 | 0.563668 | 0.551499 | 0 | 82 | 27.073171 | 85 |
pg-irc/IRC-Services-Legacy | 18,940,805,805,366 | 4f0c059a28eda14f21ab8b0bdf4d1b2efb51f82a | 2c529ae8190c6a97f13f61b81e2c85b3d2fe0948 | /admin_panel/urls.py | ae431633b2212d063f97be96add7463d94b00854 | [
"BSD-3-Clause"
] | permissive | https://github.com/pg-irc/IRC-Services-Legacy | ec6c3b32769f6b7c433610d736e120fe199a7ee0 | 818ffd13fecb8a7f1c29c341d427d0a339809f8b | refs/heads/master | 2021-05-01T23:19:11.592256 | 2019-08-20T00:04:03 | 2019-08-20T00:04:03 | 120,933,399 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.conf.urls import url, include
from django.views.generic import TemplateView
from django.contrib.auth.decorators import login_required
from .views import LandingPageView
from django.contrib.auth import views as auth_views
urlpatterns = [
url(r'^login/$', auth_views.login, {'template_name': 'admin_panel/... | UTF-8 | Python | false | false | 525 | py | 177 | urls.py | 100 | 0.729524 | 0.729524 | 0 | 11 | 46.727273 | 103 |
YukioNiwa/lgtm | 6,021,544,154,662 | 65b91a608ca34df6a10b462434e496f7078c6366 | 1c493a7870b39d4171bd58cab81365981594d2b6 | /main.py | e158e4cb9b9f63571a3e45e6ff17ae6c209e8d12 | [] | no_license | https://github.com/YukioNiwa/lgtm | 2582757067ec9b0bcd8506596b00af6542c9b084 | 23ae89bfaf9ebecc6343b031dd930dab725b0cb9 | refs/heads/master | 2022-01-22T19:32:30.818764 | 2020-03-08T13:51:24 | 2020-03-08T13:51:24 | 243,684,357 | 0 | 0 | null | false | 2022-01-13T02:16:51 | 2020-02-28T05:18:04 | 2020-03-08T13:51:31 | 2022-01-13T02:16:48 | 7 | 0 | 0 | 2 | Python | false | false | from lgtm import core
if __name__ == '__main__':
# コマンド追加時はここにも追加
core.cli()
core.cli_niwa()
| UTF-8 | Python | false | false | 134 | py | 3 | main.py | 3 | 0.566038 | 0.566038 | 0 | 6 | 16.666667 | 26 |
Sandy4321/CMSC516-SE-T8 | 9,517,647,578,804 | f668e85053af3762ade70f587d7e82768aadd415 | 79c2f47da0c0409510de071d588970c75dac5393 | /SemEvalEight/config.py | 8340d8a444dafc6de1baa9c51e0e869b23b41775 | [] | no_license | https://github.com/Sandy4321/CMSC516-SE-T8 | fe6cda1f53bd73168ff8e7aaede04447225b2ddc | d06ccba459a6e79576f6492b8524db7331594202 | refs/heads/master | 2020-07-08T12:52:04.922038 | 2017-12-09T12:13:44 | 2017-12-09T12:13:44 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import os
# Todo: setup a real plaintext config?
###----
# Hardcode data dirs if wanting to avoid use of env vars
#semeval8_data_dir = '/home/morgan/ownCloud/Classes/NLP/semeval_task_8/data/'
semeval8_data_dir = '/home/morgan/ownCloud/Classes/NLP/semeval_task_8/data/training_material/data'
ext_data_dir = '/home/morga... | UTF-8 | Python | false | false | 1,780 | py | 19 | config.py | 18 | 0.742135 | 0.734831 | 0 | 39 | 44.641026 | 115 |
milezer0/appdev | 15,066,745,283,751 | bac64ce5030d857bef42e65f2e545f919c2cad05 | 081bc26ac75f5e72b3c65e777c2a767181b5f56f | /production/migrations/0003_auto_20170728_0453.py | 03c05c8ab9801210acca5694754bb524c09bac34 | [] | no_license | https://github.com/milezer0/appdev | b3d00c9769347672cf884306a82ef113f4414699 | 311a002c8e569a5d40d8bf8792ae4a207c7c5af2 | refs/heads/master | 2018-02-09T01:27:26.684882 | 2017-11-08T22:58:09 | 2017-11-08T22:58:09 | 96,613,145 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-28 04:53
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('productdevelopment', '0002_auto_20170727_0925'),
('... | UTF-8 | Python | false | false | 1,063 | py | 63 | 0003_auto_20170728_0453.py | 28 | 0.619944 | 0.584196 | 0 | 33 | 31.212121 | 116 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.