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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
vaneoooo/SailYX | 3,779,571,263,563 | 0afcde46ed3d630b66fcf1d06dfe0eb23d89b85f | f2cbcdfec6a279c4bf7c5efedefb9dcc045ae81e | /sailyx/apps/weixin/tohtml.py | 76f73f74acc60af0415ff17780ffc908904c9938 | [] | no_license | https://github.com/vaneoooo/SailYX | 2723d5727cf86dcca756bd0643d5185873420b48 | 5ae23654a2ee0a6097742d0406be15edbd4e16c4 | refs/heads/master | 2020-05-17T21:48:20.663270 | 2015-06-06T10:30:01 | 2015-06-06T10:30:01 | 8,630,452 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from uliweb import settings
def menu(path):
menu_head = '<div id="sidebar-nav" class="hidden-phone"><ul id="dashboard-menu">'
menu_end = '</ul></div>'
menu_li = '<li%s <a href="%s"> <i class="%s"></i> <span>%s</span> </a> </li>'
active = ' class="active"><div class="pointer"><div class="arrow"></div><d... | UTF-8 | Python | false | false | 653 | py | 18 | tohtml.py | 4 | 0.557427 | 0.557427 | 0 | 17 | 37.470588 | 115 |
pythonfixer/PyQtPractice | 10,050,223,484,455 | 055aecd7209fd037354a7975a85945bcc2e2b64f | 93038502fe00ea31b48eef0d42c06ac6294f4864 | /04/connections.pyw | 8fffed878ffa212ff44184e8a02e902f536ed7ff | [] | no_license | https://github.com/pythonfixer/PyQtPractice | 8f4ecf95b5e298a69d44030ab2ae4f3d3e2163b0 | 9f61b4d91473cb16e95346715082655b172f3b4e | refs/heads/master | 2021-07-07T16:08:52.998043 | 2020-07-21T08:07:02 | 2020-07-21T08:07:02 | 143,581,393 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import functools
import sys
from PyQt4.QtCore import *
from PyQt4.QtGui import *
class Form(QDialog):
def __init__(self, parent=None):
super().__init__(parent)
button1 = QPushButton("One")
button2 = QPushButton("Two")
button3 = QPushButton("Three")
button4 = QPushButton("F... | UTF-8 | Python | false | false | 1,691 | pyw | 30 | connections.pyw | 27 | 0.632762 | 0.620343 | 0 | 53 | 30.924528 | 75 |
vlipinska/Shared_with_Fibip | 16,862,041,625,068 | 38daeaf5b9f670549fdae184415818770063d376 | f69cc5a11ab6b3a5552220725f7a15f31bc52edb | /test_laptop_2.py | 5ab1bdff588b24aa1c14453cce81bdf5e32684ec | [] | no_license | https://github.com/vlipinska/Shared_with_Fibip | c27f57f08042773aab1ac3df840bdcd145c254f7 | 993ede48c2f3648241edc9b348dc73ce5bf10041 | refs/heads/master | 2021-03-16T10:13:23.129073 | 2017-11-09T13:35:02 | 2017-11-09T13:35:02 | 110,111,868 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | Tu powinno byc to.
A moze tez tamto.
I'm adding stuff -V
Chrzescijanin tanczy, tanczy tanczy tanczy
| UTF-8 | Python | false | false | 103 | py | 2 | test_laptop_2.py | 2 | 0.757282 | 0.757282 | 0 | 7 | 13.714286 | 42 |
jegooCN/hlsyw | 18,279,380,816,361 | 4d0d9dcd6c70c2cde722634ec2aa6c90c975fc43 | c269860da40a9229381b2e8db8404368c3169326 | /app/wechat/model/__init__.py | ead2f47c96ecd788e746ce6725237ccbab682a75 | [] | no_license | https://github.com/jegooCN/hlsyw | 7f4facb89f5142ed52dbdad404ed24da0852d6de | 950e24a6d97977624751119e2e216950de4e5734 | refs/heads/master | 2021-06-14T11:28:41.196621 | 2019-02-14T07:48:10 | 2019-02-14T07:48:10 | 170,268,683 | 2 | 0 | null | false | 2021-03-20T00:44:13 | 2019-02-12T06:58:32 | 2019-03-21T01:53:34 | 2021-03-20T00:44:13 | 316 | 1 | 0 | 2 | Python | false | false | # coding=utf-8
"""
Created by Jegoo on 2019-02-12 13:25
"""
from app import db
class BaseModel(db.Model):
__abstract__ = True
from .exercise import *
from .grade import *
from .record import *
from .user import *
| UTF-8 | Python | false | false | 225 | py | 22 | __init__.py | 13 | 0.662222 | 0.604444 | 0 | 15 | 14 | 40 |
lornajane/nexmo-messages-handler | 14,851,996,939,197 | 9ab9f6c2a3fda1369c9c955dedaae0d83f85a09c | fd169d9123f28611aeafb246a22720019c56a249 | /worker.py | a9632c2362d4c317e9bb1be8c803fbde4c5ea48f | [] | no_license | https://github.com/lornajane/nexmo-messages-handler | 48d4e7bcc0aced757cd80aecee7b3dd9d9e7ef8f | af2ba9478e6a1799b98c8941be2aa34d0bc7f4af | refs/heads/master | 2023-03-05T10:11:48.336260 | 2020-10-28T08:39:59 | 2020-10-28T08:39:59 | 258,488,862 | 1 | 0 | null | false | 2021-02-10T02:06:26 | 2020-04-24T11:07:59 | 2020-10-28T08:40:02 | 2021-02-10T02:06:26 | 4 | 1 | 0 | 1 | Python | false | false | import os
import json
from nexmo_jwt import JWTokenGenerator
import redis
import requests
import time
from pprint import pprint
from dotenv import load_dotenv
load_dotenv()
r = redis.Redis.from_url(os.getenv("REDIS_URL"))
gen = JWTokenGenerator(os.getenv('NEXMO_APP_ID'),os.getenv('PRIVATE_KEY_PATH'))
while True:
... | UTF-8 | Python | false | false | 1,847 | py | 6 | worker.py | 3 | 0.501895 | 0.499729 | 0 | 54 | 33.166667 | 127 |
JeschkeLab/DeerLab | 3,040,836,859,682 | e62e34749f8768b5d791ba9eca686780bdb40884 | 1fbf0447294a34d577ef8b7b2f5a5b5bf8c44481 | /deerlab/bg_models.py | 037f61dcdcc33d00b74c85ad1a784affa78d5337 | [
"MIT"
] | permissive | https://github.com/JeschkeLab/DeerLab | 48f0607edd56defad7abb9ee69565e108758d3f7 | f7e0340d259cb2c2f5a237ffb0d27b1a7657de25 | refs/heads/main | 2023-08-29T13:29:44.916384 | 2023-08-27T18:36:14 | 2023-08-27T18:36:14 | 276,993,835 | 19 | 13 | MIT | false | 2023-09-06T07:20:18 | 2020-07-03T21:58:20 | 2022-09-29T07:12:34 | 2023-09-06T07:20:17 | 91,981 | 13 | 10 | 7 | Python | false | false | # bg_models.py - Background parametric models
# ---------------------------------------------------------------------------
# This file is a part of DeerLab. License is MIT (see LICENSE.md).
# Copyright(c) 2019-2023: Luis Fabregas, Stefan Stoll and other contributors.
import numpy as np
import math as m
from numpy i... | UTF-8 | Python | false | false | 21,310 | py | 146 | bg_models.py | 88 | 0.547213 | 0.509791 | 0 | 515 | 40.250485 | 191 |
Pang17/CISC367-Homework7 | 7,086,696,079,537 | 66558397f2c17da2e24dd5821089f19aef18c6f4 | a7d9e0c9b2909659eccc8acec26bcdf650d0b552 | /driver.py | 8f8164aa9c947cfafbe2ae08a8693e324645147a | [] | no_license | https://github.com/Pang17/CISC367-Homework7 | bdc6e79e43cd624d1647ab43e61755e1cbeaf50f | 134245773c95e7e7be1928842cdbdad1b3b669b3 | refs/heads/main | 2023-08-12T20:31:30.841821 | 2021-09-28T16:53:42 | 2021-09-28T16:53:42 | 411,367,052 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import csv
from analysis import thread_characteristic
header = ['Conversation ID', 'Characteristic Value']
f = open('results.csv', 'w')
writer = csv.writer(f)
writer.writerow(header)
for row in thread_characteristic:
writer.writerow(row)
f.close | UTF-8 | Python | false | false | 253 | py | 5 | driver.py | 3 | 0.747036 | 0.747036 | 0 | 13 | 18.538462 | 52 |
routerhan/thesis-ner-co-tri-training | 8,211,977,506,188 | 7454486d6e0e3f952943be297c30aa40ebf62231 | d0f83f60fd08f571f7396e75c402b2f7ee45ebe1 | /run_cotrain.py | 409e59ada686a2535fe2f9edabe9d0bf5a14e03e | [] | no_license | https://github.com/routerhan/thesis-ner-co-tri-training | 3ceca16465cb4cdab5f17c3a30673533933cc18b | bbc80447b25743b4f5891fe6c065ff9c58defea4 | refs/heads/dev | 2021-01-06T16:20:38.055391 | 2020-09-15T09:34:12 | 2020-09-15T09:34:12 | 241,394,467 | 0 | 1 | null | false | 2020-09-15T09:34:14 | 2020-02-18T15:19:10 | 2020-08-22T20:00:49 | 2020-09-15T09:34:13 | 9,224 | 0 | 1 | 0 | Jupyter Notebook | false | false | import os
import logging
import argparse
from co_training import CoTraining
logging.basicConfig(format = '%(asctime)s - %(levelname)s - %(name)s - %(message)s',
datefmt = '%m/%d/%Y %H:%M:%S',
level = logging.INFO)
logger = logging.getLogger(__name__)
def main():
# python... | UTF-8 | Python | false | false | 4,659 | py | 17 | run_cotrain.py | 13 | 0.577592 | 0.564713 | 0 | 82 | 55.817073 | 274 |
Di0niz/praktikum_contest | 16,956,530,905,129 | 262be5cb5ece471281053de460f46c5fbdd224da | 915979cc3e51d49bb480e6cbcc591ba67f231233 | /18337_12_2_Базовые_структуры_данных/case_k.py | 9f147785f88dd7848114c5855a8c4493830a5c0b | [] | no_license | https://github.com/Di0niz/praktikum_contest | 65d7829a3376f633161f5f2b9c01c63816b226a1 | 5dcfc36fa8080e74ff0c12078a73dbc05684df6c | refs/heads/master | 2022-12-02T21:20:21.303433 | 2020-07-30T20:48:44 | 2020-07-30T20:48:44 | 277,244,061 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | class UniqStack:
def __init__(self):
self.stack = []
self.uniq = set()
self.count = 0
def push(self, val):
if not (val in self.uniq):
self.uniq.add(val)
self.stack.append(val)
self.count += 1
def peek(self):
if self.count > 0... | UTF-8 | Python | false | false | 1,196 | py | 40 | case_k.py | 37 | 0.411371 | 0.405518 | 0 | 55 | 20.745455 | 39 |
Saikat2019/Python3 | 14,439,680,095,561 | a73181e0653f8f7f3ab181209c7adc0f9a13917c | 9a62d8436ebdf16e8f00453fc45bb9274f9119ef | /learning/files/writingToFile.py | b3c4eb60f6afb45b194e8194928e7594fe33f8b6 | [] | no_license | https://github.com/Saikat2019/Python3 | 895b3398eae93709e976e040d2bca19cefc62c77 | 2125765385e38a960e4da95c29a9656e6dc0ab41 | refs/heads/master | 2020-03-23T15:24:56.739681 | 2018-09-02T05:11:44 | 2018-09-02T05:11:44 | 141,746,663 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | myfile=open("employee.txt","a")
myfile.write("\narnab")
myfile.close()
| UTF-8 | Python | false | false | 71 | py | 32 | writingToFile.py | 20 | 0.704225 | 0.704225 | 0 | 3 | 22.666667 | 31 |
brunotakazono/sistema | 3,401,614,109,721 | ae97f11451b07010710c20c51dde6218d3aa4f43 | 0241ffc756d8848fe9a38c174fcca324cd09f480 | /source/produtoscad.py | 7277492577cb8bedcebffa70a0d91358e2b34810 | [] | no_license | https://github.com/brunotakazono/sistema | 07efde2488cf67689d956b3f82393a69db48af7d | f5ebb60cd96962f3798f28268456e7256ea410f7 | refs/heads/main | 2023-04-01T22:12:27.843743 | 2021-04-10T19:29:29 | 2021-04-10T19:29:29 | 344,581,348 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sqlite3
from time import sleep
conn = sqlite3.connect('sistemas.db')
cursor = conn.cursor()
produto = input('produto:')
categoria = input('categoria:')
marca = input('marca:')
estoqueMinimo = input('estoqueMinimo:')
estoqueMaximo = input('estoqueMaximo:')
qtdeProduto = input('qtdeProduto:')
valorCo... | UTF-8 | Python | false | false | 1,221 | py | 12 | produtoscad.py | 11 | 0.655201 | 0.651106 | 0 | 34 | 33.911765 | 108 |
eblade/radiant | 4,329,327,048,541 | 8374f41365518898835ff80056ea467a382d6a9c | b7dfea3f8c2580454940ee3fb736001ce688acac | /radiant/grid/backend/definition.py | f022eefa853223c4b3851158819ad090cb49ca57 | [
"MIT"
] | permissive | https://github.com/eblade/radiant | 068e63eebc0341ff592ff4f79c03626d4347f775 | a222c456a37e39ec2ce93fb08a19991cb8b9aba8 | refs/heads/master | 2021-01-20T10:46:19.140878 | 2015-04-07T21:23:58 | 2015-04-07T21:23:58 | 32,219,796 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
"""
The *Definition* module contains object wrappers of the various
*data-types* found in Radiant Grids. Those are:
- :class:`ViewDefinition`
- :class:`ItemDefinition`
- :class:`DocumentDefinition`
- :class:`ColumnDefinition`
- :class:`VariableDefinition`
- :class:`DataDefinition`
- :class:`Feed... | UTF-8 | Python | false | false | 9,671 | py | 21 | definition.py | 18 | 0.57357 | 0.572536 | 0 | 311 | 30.096463 | 103 |
judoshka/metro | 1,760,936,600,354 | 486682d9690731f114fa87512a751eef57435ff3 | adaae0119bfb79f4349bc8bb4c61706d0fe90936 | /scrape.py | 25c418e57159a92b22a8a8c03c49ca75adb3b01d | [] | no_license | https://github.com/judoshka/metro | 9ba7984e4de2d65af0e9a864e83ed06afa526132 | f2f5c38cf3577bb3593a28d8b00f8efbc15a2fe3 | refs/heads/master | 2023-07-15T13:39:18.219166 | 2021-08-31T10:35:20 | 2021-08-31T10:35:20 | 401,407,898 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import requests
from bs4 import BeautifulSoup
from datetime import date
from models import DB, Post
BASE_URL = "https://mosmetro.ru"
def get_html(url):
response = requests.get(url)
if response.status_code == 200:
return response.content
return None
def get_date(url):
content = get_html(url)... | UTF-8 | Python | false | false | 2,409 | py | 5 | scrape.py | 3 | 0.57622 | 0.565331 | 0 | 84 | 26.333333 | 95 |
undp/open.undp.org | 12,180,527,287,272 | 69f1bdda288d7408674a78976977b03a10b2edd4 | 7e438c6dd44cfdb75790865ab3af871bf2180b20 | /scripts/generators/generator.py | 98ec3adb2c56c8eab8aacf25041d7b132c918732 | [] | no_license | https://github.com/undp/open.undp.org | d723b6679cef448b8bea74169a9d8e934a302743 | 8bdfc38dbe982ae417132b08f71c6a50ff564073 | refs/heads/gh-pages | 2020-04-05T21:20:05.264315 | 2018-06-20T18:15:33 | 2018-06-20T18:15:33 | 6,912,534 | 6 | 11 | null | false | 2018-06-04T17:15:34 | 2012-11-29T00:20:15 | 2018-05-30T09:43:19 | 2018-06-04T17:15:34 | 856,982 | 20 | 20 | 0 | JavaScript | false | null | from __future__ import print_function
import urllib2
from collections import defaultdict
from lxml import etree
import copy
import json
import mimetypes
import zipfile
from controller import Controller
import config as settings
from models import (Project, Output, Subnational, Unit, UnitProject, Crs, Donor, CountryDo... | UTF-8 | Python | false | false | 38,659 | py | 8,402 | generator.py | 72 | 0.508368 | 0.500142 | 0 | 878 | 43.030752 | 192 |
Penqor/HOMEGROWNGILL | 13,718,125,567,901 | 389d9fdcc0e45885f1e9640f1d547408540de11c | 9bb7a8327a594d388f0f934c1b7a78e337d3f7dc | /HGG_loopfunction.py | 8e166b6fa9c9b17cb1f452feae01276a5842aaa8 | [] | no_license | https://github.com/Penqor/HOMEGROWNGILL | 1ee1c1ec3c4a9ac6ff20b8ce316476c85325ae46 | f8238c98258a2cc2d6f6b04471a880d1938a473d | refs/heads/master | 2020-07-17T03:50:20.785211 | 2019-09-02T21:03:03 | 2019-09-02T21:03:03 | 205,935,970 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
Do:
make a loop function
"""
# old code commented out
'''
def loopFunction(function, question):
Loop = 'y'
# loop when answer is yes
while Loop == 'y' or Loop == 'yes':
# call the function you want to loop
function
Loop2 = True
# validation loop
... | UTF-8 | Python | false | false | 3,975 | py | 12 | HGG_loopfunction.py | 12 | 0.473711 | 0.468428 | 0 | 142 | 26.007042 | 100 |
scasasso/pl_tools | 11,020,886,091,492 | efafe63ca2aa546246aad02ce856b708234884ca | 312c0d2f4aff9fa02b91eae033c571d8616afedc | /ml_clf/skmodel.py | 734203d332966c1a9ae6a1980a40c2e85f524eed | [] | no_license | https://github.com/scasasso/pl_tools | 5dcfcf6ca1021ae3d8879d846ab50f01a789649e | 3e5e24282442433c3d99a0ae065503aec7cde327 | refs/heads/master | 2021-04-12T04:29:27.614274 | 2019-05-13T08:31:02 | 2019-05-13T08:31:02 | 125,884,803 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
################################################################################
#
# File: skmodel.py
#
# Product: Predictive Layer Genius Classif Library
# Author: Momo
# Date: 03 April 2015
#
# Scope: The file contains the representation of scikit learn model.
#
# Copyright (c)... | UTF-8 | Python | false | false | 2,357 | py | 24 | skmodel.py | 24 | 0.5944 | 0.587187 | 0 | 67 | 34.149254 | 134 |
nxyexiong/Outernet-windows | 790,274,018,707 | 8cba46d71bb268c4810defaa0dd467ff9b6c0a71 | 6ca932e06cb93518e64c09767b6ffc594780593c | /tap_control.py | c8a3f5ce040c07d8ebee84c40f2597887dbfc15b | [] | no_license | https://github.com/nxyexiong/Outernet-windows | 169ed8f3157084be39b231bd9a34d5bbc3158fb6 | b7b4d3168abb9ef2651ccc85ccb8ed4df5aea95c | refs/heads/master | 2021-06-21T09:38:07.189579 | 2021-06-20T18:24:51 | 2021-06-20T18:31:31 | 211,439,474 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import winreg as reg
import win32file
import win32event
import winerror
import pywintypes
import threading
import time
from queue import Queue
from constants import REG_CONTROL_CLASS, TAP_COMPONENT_ID
from logger import LOGGER
def get_tuntap_ComponentId():
with reg.OpenKey(reg.HKEY_LOCAL_MACHINE, REG_CONTROL_CLA... | UTF-8 | Python | false | false | 6,809 | py | 19 | tap_control.py | 15 | 0.588486 | 0.567484 | 0.000587 | 203 | 32.541872 | 120 |
franksotogithub/ArcPy | 4,741,643,914,775 | cb0503026e35a52a3a8da4540398ebddcbda7562 | f6d772bb63850fd38a2154cdb0a2d6020a3be778 | /CalculoFuncionObjetivo.py | 218d374f4373a62ea587c03198688b4db3398ffc | [] | no_license | https://github.com/franksotogithub/ArcPy | b98857e1a82fc61891117de435d2972086754feb | e3b7864affbd144588f4fc54127aa7d627adefa7 | refs/heads/master | 2020-04-06T03:37:05.894579 | 2016-11-11T18:52:49 | 2016-11-11T18:52:49 | 61,165,191 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import arcpy
arcpy.env.workspace ="D:/ArcGisShapesPruebas"
# First, make a layer from the feature class
def Calculo(zona,circulos):
arcpy.env.overwriteOutput = True
arcpy.MakeFeatureLayer_management(zona, "temporal")
arcpy.MakeFeatureLayer_management(circulos,"temporal_circulos")
arcpy.MakeFeatureLay... | UTF-8 | Python | false | false | 3,353 | py | 122 | CalculoFuncionObjetivo.py | 122 | 0.619445 | 0.593797 | 0 | 105 | 30.942857 | 136 |
HoratiusTang/oslo.messaging | 1,821,066,179,526 | d0e7e5a2d9d052d6cbfb174404fc90b0783670dc | 9ec5fd5dd7d91df752576fdf231f87de442fa72e | /oslo_messaging/_cmd/zmq_proxy.py | bb75f8c9ae8d93bbd01b683950dd01db434c7f1f | [
"Apache-2.0",
"BSD-2-Clause"
] | permissive | https://github.com/HoratiusTang/oslo.messaging | dc0589d02898596e839d7ca20dfc47299e40f09b | 5708d751039df4595d737c2211ed46dd93de2ba4 | refs/heads/master | 2021-01-18T01:30:40.347413 | 2016-04-23T09:48:16 | 2016-04-23T09:48:16 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Copyright 2015 Mirantis, 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 ... | UTF-8 | Python | false | false | 2,313 | py | 10 | zmq_proxy.py | 10 | 0.664937 | 0.661479 | 0 | 76 | 29.434211 | 78 |
Tomas-Lawton/fullproof | 3,281,355,029,631 | 2c92b24d29b2d47d16ef0451ea179f393d99ec66 | 4003be38a55d76334db8a6069f1d3ec3dbab7229 | /experimental_scrapers/tineye_scraper.py | 1b7345ebfe7105408c118cf6e116b9ae7decb66a | [] | no_license | https://github.com/Tomas-Lawton/fullproof | 76e2e8dd0fb1f4ec7e74783e13768c19c92ce944 | fb72094d02028beb2d3d5ba76618d5103e3cfb76 | refs/heads/master | 2022-11-16T00:26:54.254246 | 2020-07-06T04:43:42 | 2020-07-06T04:43:42 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Navid-S-B
# 3-07-2020
# Webscraping script to access TinEye
# UPDATE: Same problem, cannot download whole HTML script to scrape webpage.
# Must have some kind of protective measure so people use their API instead.
# Import webscraping libraries
from bs4 import BeautifulSoup
import requests
import re
class scraper:
... | UTF-8 | Python | false | false | 919 | py | 6 | tineye_scraper.py | 6 | 0.660501 | 0.644178 | 0 | 31 | 28.677419 | 92 |
lmokto/mltrading | 11,948,599,025,252 | 9b494557fc57e3e902c38c6f64de2dbf02906327 | b5ce195d6ea0d93e080db4844b979c7ae67eec06 | /get_max_column.py | f177a86acd6ba5d299e958d8a083684eb995ba5c | [] | no_license | https://github.com/lmokto/mltrading | b28daa87b1747e667d78bee87516260dbb962bf3 | f991285d8d94767ff4e1434c009ff041d0615077 | refs/heads/master | 2021-05-08T11:42:58.146659 | 2018-02-01T23:54:54 | 2018-02-01T23:54:54 | 119,908,066 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import pandas as pd
def get_max_column(symbol, column):
"""
:param symbol:
:param column:
:return:
"""
df = pd.read_csv('data/{name}.csv'.format(name=symbol))
return df[column].max()
def test_run():
column = 'Close'
symbol = 'HCP'
print(30 * '--')
print('Max column {cl... | UTF-8 | Python | false | false | 481 | py | 20 | get_max_column.py | 16 | 0.577963 | 0.573805 | 0 | 23 | 19.913043 | 99 |
bonevb/Cisco-and-Python | 10,883,447,169,009 | 5c1954f8f5e797ba4092a7a006543dfc5ad803c4 | 93eeaf8f08cbd663381384e14644208f1872d278 | /dns_apple.py | f63ee43c799c153e8e4eadd93abaaa40ba67b2bb | [] | no_license | https://github.com/bonevb/Cisco-and-Python | 239892f14ac56f42f4f9f760aefb950b63a24664 | 8fb4806aefb49b6399ec5f54e14454a074b70490 | refs/heads/master | 2023-05-05T15:11:15.276874 | 2021-05-28T19:26:49 | 2021-05-28T19:26:49 | 371,796,255 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #The script will check if ip address behind b2bftp.apple.com is changed and
#if it is it will add the new address in cisco asa objec-group
import socket
import filecmp
import os
import sqlite3
DB_NAME = 'ip.db'
db = sqlite3.connect(DB_NAME)
c = db.cursor()
def check_dns():
host = 'b2bftp.apple.com'
result ... | UTF-8 | Python | false | false | 961 | py | 3 | dns_apple.py | 1 | 0.619147 | 0.614984 | 0 | 48 | 18.979167 | 75 |
mch/python-ant | 17,025,250,362,229 | 0fe912c363cbf634ce6c96143df764f36327ec90 | 7ebd6061a5152f537b9d1838ecfd3a326089ee70 | /demos/ant.core/10-weight.py | 919da64ceff33f5fbca8e983839fecd68f1678a4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | https://github.com/mch/python-ant | 13e629de185ecd5bb4f6ffd5520d5034a37d0ef7 | 02e045825434a17ffe113a82cc8191683223ea5f | refs/heads/master | 2022-02-17T07:00:35.360513 | 2022-02-01T04:02:16 | 2022-02-01T04:02:16 | 89,795,395 | 21 | 14 | MIT | true | 2022-02-01T04:02:17 | 2017-04-29T15:46:59 | 2022-01-24T17:09:58 | 2022-02-01T04:02:16 | 339 | 15 | 8 | 0 | Python | false | false | """
Extending on demo-03, implements an event callback we can use to process the
incoming data.
"""
from __future__ import print_function
import sys
import time
from ant.core import driver
from ant.core import node
from ant.core import event
from ant.core import message
from ant.core.constants import *
from config... | UTF-8 | Python | false | false | 3,088 | py | 24 | 10-weight.py | 23 | 0.656088 | 0.626295 | 0.002591 | 120 | 24.733333 | 83 |
SamuelIvan99/Python-exercises | 9,672,266,363,834 | d3935ae124bd1a04399ae39952ce2f518c4a4556 | 08086a474b662db4bf7ad24e979368944ea189a8 | /KSI_18-19/Uloha - 10B/binary_search_4.0.py | e3e9b5b2ae127ace0445373c2cc0aa9c40c0fa90 | [] | no_license | https://github.com/SamuelIvan99/Python-exercises | a81f208776b78a5b4c19af419fd9ecf185160279 | 210c6543caf43ad74f319e056a6e81cc7ee887c7 | refs/heads/master | 2020-05-30T05:31:44.617812 | 2019-10-18T09:53:21 | 2019-10-18T09:53:21 | 189,562,496 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def find(a, v):
c = len(a) - 1
r = 0
while c > -1 and r < len(a):
value = a[r][c]
if value == v:
return (r, c)
elif value > v:
c -= 1
elif value < v:
r += 1
return None
A = [[19, 30, 31, 45, 57], [25, 32, 32, 51, 69], [33,... | UTF-8 | Python | false | false | 577 | py | 150 | binary_search_4.0.py | 108 | 0.426343 | 0.284229 | 0 | 22 | 25.227273 | 116 |
bgtron/nxtoolkit | 3,298,534,907,446 | 2a16eda8fcb74ca5cc79b9953f99faaf92d0b661 | 6a33091266e24d18628e91913f37ecb6ef9e7f11 | /samples/nx-copy-running-startup.py | 35d78af1619504b88a04e6040256655c6ef5bba1 | [
"Apache-2.0"
] | permissive | https://github.com/bgtron/nxtoolkit | 095b1d498d2ee33b66ad7de8b71a52f4bbf3bcde | b24f613eb427a1df924bb28d295b96916124739f | refs/heads/master | 2021-04-27T22:22:22.209659 | 2019-06-27T15:28:00 | 2019-06-27T15:28:00 | 122,418,627 | 0 | 0 | null | true | 2018-02-22T02:03:21 | 2018-02-22T02:03:21 | 2018-02-22T02:00:53 | 2018-02-22T01:54:41 | 238 | 0 | 0 | 0 | null | false | null | #!/usr/bin/env python
################################################################################
# #
# Copyright (c) 2015 Cisco Systems #
# All Rights Reserved. ... | UTF-8 | Python | false | false | 2,903 | py | 43 | nx-copy-running-startup.py | 40 | 0.471926 | 0.467447 | 0 | 75 | 37.706667 | 80 |
yuliashishko/PyQtViselitsa | 2,723,009,272,333 | af8fed3559e385b0391f979428ba43604d1f8637 | 63b3b6d53924e04256acad95bcd7df0e6b738222 | /Utils.py | 25718f5a1cf8165ad1ee6b3c44c9a001c074a0e7 | [] | no_license | https://github.com/yuliashishko/PyQtViselitsa | 48e0d7d65fe93cd24b9996bbe94c7b4d3bf8df51 | 2117ab8b6b74faf018413794a2e2cec900b7e174 | refs/heads/master | 2023-07-17T16:15:23.108273 | 2021-09-04T18:10:46 | 2021-09-04T18:10:46 | 403,125,730 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import random
import sqlite3
con = sqlite3.connect("users.sqlite")
cur = con.cursor()
class UserNotFoundError(Exception):
pass
class WordNotFoundError(Exception):
pass
class EmptyWordListError(Exception):
pass
def get_user(login):
user = cur.execute(
f"""SELECT * FROM users WHERE login ... | UTF-8 | Python | false | false | 3,534 | py | 14 | Utils.py | 8 | 0.590348 | 0.571675 | 0 | 128 | 26.195313 | 113 |
awagner83/doctools | 15,272,903,736,302 | 017849705959aa2e299dc534dc952f8ad97bba42 | d88d5beff275a2e9ffdf457ca446a319471c0d14 | /doctools.py | b6bcb91f28251e283dee25731604b16b3f037ca4 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | https://github.com/awagner83/doctools | fae30ccd6b86ec8fbc1204ea9da5d0206c4eff29 | e2133f5674e5089b9cb2634a89e6fd55ae618bf4 | refs/heads/master | 2022-02-23T09:33:49.586949 | 2022-02-13T01:58:08 | 2022-02-13T01:58:08 | 2,308,583 | 0 | 1 | NOASSERTION | false | 2022-02-13T01:58:09 | 2011-09-01T15:56:00 | 2013-10-03T12:51:57 | 2022-02-13T01:58:08 | 99 | 2 | 2 | 0 | Python | false | false | """Docblock manipulation utilities."""
from pprint import pformat
def append_to_docs(fn, text):
"""Append text to a functions existing docblock."""
if not text:
return
if fn.__doc__:
min_indent = _getindent(fn.__doc__)
fn.__doc__ = '%s\n\n%s' % (fn.__doc__, _indent(text, min_inden... | UTF-8 | Python | false | false | 1,692 | py | 5 | doctools.py | 3 | 0.575059 | 0.56974 | 0 | 62 | 26.274194 | 73 |
enigmawxy/TensorGraph | 10,539,849,750,576 | 2fdf9c6b0156ea254590cef2177c93945453041a | ab659d02c4daaf0f3794d927ee2c6015e2352e23 | /tensorgraph/__init__.py | a9dd1361c4052e3af257257aca02a49a318feee6 | [
"MIT"
] | permissive | https://github.com/enigmawxy/TensorGraph | 1456cfa237f4e2f94653aa04c6f15a5ad2661239 | 6ba18d5fe4ac6004062f805f9457b0fdc5c42cfd | refs/heads/master | 2020-05-16T01:37:15.814395 | 2019-05-03T03:28:35 | 2019-05-03T03:28:35 | 182,606,886 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from tensorgraph.graph import *
from tensorgraph.operations import *
from tensorgraph.gradients import RegisterGradient
from tensorgraph.session import Session
import tensorgraph.train
# Create a default graph.
# import builtins
# DEFAULT_GRAPH = builtins.DEFAULT_GRAPH = ... | UTF-8 | Python | false | false | 328 | py | 15 | __init__.py | 12 | 0.777439 | 0.77439 | 0 | 12 | 26.333333 | 50 |
isabella232/pygate-gRPC | 6,511,170,465,063 | 3c3d18b2f5b48169a3bf119152fc420ee6537a41 | 64b90d33916cdff62ea3116dd306717c9abc8fa4 | /pygate_grpc/health.py | 2629685cbeca07753654a01bbc3a4ecbb20a4a2f | [
"MIT"
] | permissive | https://github.com/isabella232/pygate-gRPC | 336347d866d791b69b3cd0ac69853118491fb07f | 429967fd3c6f56c5f787e54a1d02e0b377640d6f | refs/heads/main | 2023-01-09T21:16:38.373922 | 2020-10-30T11:03:07 | 2020-10-30T11:03:07 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import logging
from proto import health_rpc_pb2, health_rpc_pb2_grpc
from pygate_grpc.errors import ErrorHandlerMeta
logger = logging.getLogger(__name__)
class HealthClient(object, metaclass=ErrorHandlerMeta):
def __init__(self, channel):
self.client = health_rpc_pb2_grpc.RPCServiceStub(channel)
de... | UTF-8 | Python | false | false | 417 | py | 35 | health.py | 32 | 0.719424 | 0.709832 | 0 | 15 | 26.8 | 65 |
vald-phoenix/psga | 15,616,501,108,097 | 8df7398d49fb7b8777decb794b68a9e39cc54555 | 90cf1710b57194cae9956ced0199f12e97c7b996 | /app/api/tests.py | 2100b0953240ea553a3cf6a0ff83e1a5bcbc35c3 | [] | no_license | https://github.com/vald-phoenix/psga | 215ba268e4f6f7e0cd83e99413ce913dfe3a5a02 | 785e018f2ed10a3cb8a47ce8e01f036d2561f19e | refs/heads/master | 2022-04-28T08:41:54.439391 | 2019-10-15T12:44:21 | 2019-10-15T12:44:21 | 215,274,507 | 0 | 0 | null | false | 2022-04-22T22:32:58 | 2019-10-15T10:48:24 | 2019-10-15T12:45:20 | 2022-04-22T22:32:56 | 689 | 0 | 0 | 4 | Python | false | false | import pytest
from app.models import Position, Ship
@pytest.fixture
def ship():
"""A dummy ship fixture."""
ship = Ship(imo=9595321, name='MSC Preziosa')
ship.save()
return ship
@pytest.fixture
def position(ship):
"""A dummy position fixture."""
position = Position(
latitude='17.... | UTF-8 | Python | false | false | 1,329 | py | 18 | tests.py | 10 | 0.662904 | 0.617758 | 0 | 52 | 24.557692 | 78 |
koverman47/EGEN_310 | 5,325,759,490,173 | 8cf9d345ca972cecbd9874090e2871325a639c5e | dbb0a4d452ac0faf00411a09b7e32f13ffdb31e8 | /tests/key_test.py | 6f714b366fad9253140ad18bfc109a1a6adc5247 | [] | no_license | https://github.com/koverman47/EGEN_310 | 3ef66b7fb773b4e5fb833c250c87c7cf4fc84d49 | f69e292baa48bca441dd0f7d9ba7789db417d42a | refs/heads/master | 2020-04-18T00:39:47.999960 | 2019-04-24T20:14:44 | 2019-04-24T20:14:44 | 167,086,003 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python3
import sys
import tty
import termios
tty.setcbreak(sys.stdin)
key = ord(sys.stdin.read(1))
print(key)
fd = sys.stdin.fileno()
old = termios.tcgetattr(fd)
old[3] = old[3] | termios.ECHO
termios.tcsetattr(fd, termios.TCSADRAIN, old)
sys.exit(0)
| UTF-8 | Python | false | false | 270 | py | 23 | key_test.py | 22 | 0.722222 | 0.703704 | 0 | 16 | 15.875 | 45 |
Nik618/DjangoProject_v02 | 19,516,331,419,712 | 2b24ba38d65a995ebe00b8fdfe53b100248bf5dd | 0932de21a8d5d3d6002b6f4fdd0f19b5689d7454 | /main/views.py | fcd1a9e9687d44097bf5f297efaa776731b4f0d4 | [] | no_license | https://github.com/Nik618/DjangoProject_v02 | 08d7f9d48e2207154e98fdc8cfb47d599613b422 | 749c4fac0788f6ce17a110bf145eb7a57b43ef2d | refs/heads/master | 2023-05-13T01:27:31.940581 | 2021-06-03T19:00:23 | 2021-06-03T19:00:23 | 373,611,644 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.contrib.gis.geos import MultiPolygon, Polygon
from rest_framework.decorators import api_view, permission_classes
from rest_framework.pagination import PageNumberPagination
from django.core.paginator import Paginator
from django.shortcuts import render, get_object_or_404
from rest_framework.permissions impor... | UTF-8 | Python | false | false | 5,780 | py | 9 | views.py | 6 | 0.692638 | 0.679056 | 0 | 157 | 34.624204 | 92 |
mostafaelhoushi/tensor-decompositions | 1,563,368,111,088 | 1c0fbf04842e876c4d9975747fc357923437a369 | 82dafd9b89abdf334420e50f9d7562984aed8a7d | /reconstructions.py | d635aef8302f713f5c9f238feb50110411a1d280 | [] | no_license | https://github.com/mostafaelhoushi/tensor-decompositions | 844aaed58abeb1e17923860a5e9aebed64465030 | 8c3186dfc4d5d2eb22b0a673e3eaf1bcaa872feb | refs/heads/master | 2020-07-09T03:51:30.214582 | 2020-05-02T12:46:00 | 2020-05-02T12:46:00 | 203,867,675 | 3 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | import tensorly as tl
from tensorly.decomposition import parafac, partial_tucker
import numpy as np
import torch
import torch.nn as nn
def reconstruct_model(model, cp=False):
# TODO: Find a better way to avoid having to convert model from CPU to CUDA and back
model.cpu()
iterator = iter(model._mod... | UTF-8 | Python | false | false | 5,940 | py | 7 | reconstructions.py | 5 | 0.505724 | 0.50202 | 0 | 122 | 46.688525 | 176 |
dzmitrybutar/test_drawing | 19,189,913,885,143 | 8ec11d24d7166d5a8707a7fe0e413a59ca301c8a | a1961acfbcd0cdc0c8c225499f94c69ae4c700c7 | /config.py | 05dd5bd21f15fad04545b5458818fa0f5437da08 | [] | no_license | https://github.com/dzmitrybutar/test_drawing | 01469bf333333faede77e0eb56569c2067e02af0 | 01cac1a3b609fb75230273ac43a376a891a843ae | refs/heads/master | 2020-07-08T05:51:18.860984 | 2019-08-21T13:17:19 | 2019-08-21T13:17:19 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import argparse
import os
BASEDIR = os.path.abspath(os.path.dirname(__file__))
parser = argparse.ArgumentParser(description='Drawing')
parser.add_argument('infile', type=str, help='Input filename and dir for initial conditions')
parser.add_argument('outfile', type=str, help='Output filename and dir for the result')
a... | UTF-8 | Python | false | false | 433 | py | 13 | config.py | 8 | 0.73903 | 0.73903 | 0 | 12 | 35.083333 | 93 |
simon-andrews/hat-appraiser | 16,200,616,649,414 | 2a79571274535a7c965d1b85e753a3f8fe381c30 | 0a0dd15977f701b36462cf10ae1b7a15c1b464b9 | /server.py | ef55b11c1cf501431d11967d3c73dcbdab703915 | [
"MIT"
] | permissive | https://github.com/simon-andrews/hat-appraiser | 2bbbbca74d80bc76bfae5cbd93c23c204e20c104 | f42d4a4ece005a345faebcd4140472586e6c47ab | refs/heads/master | 2021-01-01T03:34:32.112764 | 2016-04-24T16:37:49 | 2016-04-24T16:37:49 | 56,982,274 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from flask import Flask, render_template, request
from appraisal import get_effect_averages, get_price
app = Flask(__name__)
app.debug = True
@app.route('/', methods=('GET', 'POST'))
def index():
if request.method == "GET":
return render_template("index.html")
elif request.method == "POST":
r... | UTF-8 | Python | false | false | 631 | py | 4 | server.py | 2 | 0.648177 | 0.648177 | 0 | 24 | 25.291667 | 91 |
dilanfd/dynamics-of-springs | 2,740,189,179,099 | b9b3786c63357fa51a5e89dca34ed576d91f4f3a | b4159e7c2e569498db8a8e37efb952609622aeb1 | /elastica-problem/thesis3/lib/python3.6/random.py | 08b35f88155282a3d4c367cf623383f2a3d4bf0c | [
"MIT"
] | permissive | https://github.com/dilanfd/dynamics-of-springs | 0433f8fe003f63e5b9d877bed48e223754a96bec | 99ae5ea20437f5e43ecc8b54bf27d468afea6a23 | refs/heads/master | 2020-03-23T15:56:55.058023 | 2018-12-06T02:15:46 | 2018-12-06T02:15:46 | 141,542,750 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | /Users/Dilan/anaconda/lib/python3.6/random.py | UTF-8 | Python | false | false | 45 | py | 102 | random.py | 66 | 0.822222 | 0.777778 | 0 | 1 | 45 | 45 |
DavidBaug/AA | 16,217,796,541,486 | ae60a163aef1e4edb141e6cf195669fc426eefb0 | a101c155cade8437cfb84dafce7cdde38b1f1f5d | /Practicas/practica0/Ejercicio_clase.py | 8d7e33e147093ce937f6b95d420d4f3cb5f36491 | [] | no_license | https://github.com/DavidBaug/AA | 02a1c366bbb9947cde823c2b691612160adfb355 | 889236fbfad88840e691e8b812ea531ca4137958 | refs/heads/master | 2020-03-23T07:34:57.955712 | 2019-10-01T08:41:42 | 2019-10-01T08:41:42 | 141,280,624 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Ejercicio de clase. En este ejercicio se nos pide que:
Leamos la base de datos de iris que hay en scikit-learn.
Obtengamos de ella las características (datos de entrada X) y la clase (y).
Nos quedemos con las dos primeras características (2 primeras columna... | UTF-8 | Python | false | false | 2,210 | py | 34 | Ejercicio_clase.py | 20 | 0.711757 | 0.699955 | 0 | 78 | 27.217949 | 80 |
midas-research/calling-out-bluff | 6,493,990,589,612 | 89e7d30ae24a8e6442a1a8cde97eaf1b35d782f0 | 5ffdef59c244f719c43ee24d23de7201bf42eab5 | /Model2-EASE/src/nltk/emacs/pycomplete.py | 09b40d85df12f92534ca1b6f87a4ecf98f483275 | [
"AGPL-3.0-only",
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-proprietary-license",
"CC-BY-NC-ND-3.0"
] | permissive | https://github.com/midas-research/calling-out-bluff | 8db408efe1c211a8685bfc1b2553117770689639 | 4de3c56b64edeeef9968288679c4e5b261e9949c | refs/heads/models_test | 2022-12-13T02:36:24.054646 | 2020-08-19T07:05:55 | 2020-08-19T07:05:55 | 280,080,456 | 10 | 9 | MIT | false | 2020-08-09T18:57:22 | 2020-07-16T07:07:19 | 2020-07-20T08:17:43 | 2020-08-09T18:57:21 | 565,670 | 0 | 2 | 0 | null | false | false |
"""
Python dot expression completion using Pymacs.
This almost certainly needs work, but if you add
(require 'pycomplete)
to your .xemacs/init.el file (untried w/ GNU Emacs so far) and have Pymacs
installed, when you hit M-TAB it will try to complete the dot expression
before point. For example, given this imp... | UTF-8 | Python | false | false | 2,728 | py | 296 | pycomplete.py | 80 | 0.592742 | 0.591276 | 0 | 95 | 27.705263 | 76 |
Lawrr/mal-utilities | 2,843,268,381,138 | 9445586e4da895770e64ebb4c7e5a884155e28b5 | 79dca79d559ddf6a8f22aa0dd2dfaea6bb897f33 | /listsorter/migrations/0001_initial.py | 978a59a429bd795d9da3459c79373dd4221a2998 | [] | no_license | https://github.com/Lawrr/mal-utilities | 88450b657699b14ae2a7d65432ffc0f0e5222543 | 1996d6f77666c860738b5467ba1169dd97270c48 | refs/heads/master | 2018-01-08T02:30:48.001924 | 2016-04-10T03:07:52 | 2016-04-10T03:07:52 | 50,173,373 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Anime',
fields=[
('title_id', models.IntegerFie... | UTF-8 | Python | false | false | 771 | py | 16 | 0001_initial.py | 9 | 0.503243 | 0.501946 | 0 | 29 | 25.586207 | 85 |
lly123999/Transport-Mode-GPS-CNN | 17,368,847,776,867 | b0e107b17b145549ad841c33060feafe2ee47c4e | 933dca697a09e0f6ee3f34d9cebe0194a8053ef1 | /Instance_Creation.py | 83ade972fb496b65fb46cf54deb2724cb810abc6 | [
"MIT"
] | permissive | https://github.com/lly123999/Transport-Mode-GPS-CNN | 0017630ebaa6c18fbf337f276f2050504f630422 | 8db5f83f593a004a7af280bfd6668cc6032e8338 | refs/heads/master | 2020-04-26T22:45:10.619674 | 2018-08-28T13:13:51 | 2018-08-28T13:13:51 | 173,882,113 | 1 | 0 | MIT | true | 2019-03-05T05:45:13 | 2019-03-05T05:45:12 | 2019-02-21T15:04:18 | 2018-08-28T13:13:51 | 41 | 0 | 0 | 0 | null | false | null | import numpy as np
import pickle
from geopy.distance import vincenty
import os
import math
A = math.degrees(-math.pi)
# Change the current working directory to the location of 'Combined Trajectory_Label_Geolife' folder.
filename = '../Combined Trajectory_Label_Geolife/Revised_Trajectory_Label_Array.pickle'
wi... | UTF-8 | Python | false | false | 15,186 | py | 9 | Instance_Creation.py | 8 | 0.58172 | 0.560582 | 0 | 318 | 45.754717 | 119 |
mohamed-aziz/cryptopals | 884,763,310,640 | 4c943d3116286bbe1e114b5da43a054fa5c60c7d | 4b653379f3d9a3493004605df2ccf05df188c6c2 | /set4/__init__.py | b63e1c589e435a53cb63efe4759c48c8bab0fe28 | [] | no_license | https://github.com/mohamed-aziz/cryptopals | 076755cc75afbe61ade9b76e98dc47b923ebf4ce | 71a340c1645a1a3466391fb997982f9cfd7437bf | refs/heads/master | 2021-05-07T08:56:18.964338 | 2019-12-07T20:09:59 | 2019-12-07T20:09:59 | 109,444,673 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
from .ch25 import edit_ciphertext, break_edit_ciphertext
from .ch26 import aes_ctr_break_bitflipping, aes_ctr_encryption_oracle
from .ch27 import encryption_oracle, Not7BitAscii, decryption_oracle, break_cbc_oracle
from .ch28 import sha1, sha1_mac | UTF-8 | Python | false | false | 248 | py | 39 | __init__.py | 37 | 0.814516 | 0.770161 | 0 | 4 | 61 | 86 |
muhammed-salman/dynamicdropdown-scrapper | 13,322,988,555,203 | d35c166b2702fd17d6121250316aaf9d4faaa8af | cd873e072e2418050205e637d92562411cebc12f | /scrapper2.py | b94769e60818930bdc7a69e2b77b4d4c0382fd28 | [] | no_license | https://github.com/muhammed-salman/dynamicdropdown-scrapper | a5ca8abbcb082ac5ff256f062fde8f427c098360 | ec3f29ce7880ea37ee5abd482342c64ad67bffdd | refs/heads/master | 2020-03-25T00:34:52.436334 | 2018-08-02T18:13:30 | 2018-08-02T18:13:30 | 143,193,445 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
import sys
import signal
from selenium import webdriver
from selenium.webdriver.support.ui import Select
from selenium.webdriver.support.ui import WebDriverWait
from selenium.common.exceptions import StaleElementReferenceException
def sigint(signal, frame):
sys.exit(0)
def make_waitfor_elem_updated_predicate(dr... | UTF-8 | Python | false | false | 3,514 | py | 2 | scrapper2.py | 2 | 0.608993 | 0.601024 | 0 | 108 | 31.527778 | 88 |
jsphweid/fialkaFlicker | 8,744,553,453,417 | cd33330c9b138124fe08b132d8aa16da1ad4449f | 9991a55b947ae9fe4011c3320e8963d94bcc34f3 | /python/noise.py | c8d61521dd6c3b62e557e17cb2648a7bb98530f7 | [
"MIT"
] | permissive | https://github.com/jsphweid/fialkaFlicker | dcb463a88c9019c41ee9a0d95ea6b2951dced51e | b8623120e945588d36dffb334d7bf74b1e4fbd38 | refs/heads/master | 2020-07-02T09:51:12.637397 | 2018-12-11T23:53:25 | 2018-12-11T23:53:25 | 74,312,488 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
from cv2 import VideoWriter, VideoWriter_fourcc
width = 1280
height = 720
FPS = 24
seconds = 10
# self._cap = VideoCapture(0)
# self._out = VideoWriter(self._name, self._fourcc, 20.0, (640, 480))
def make_colored_image(color):
img = np.zeros((height, width, 3), np.uint8)
img[:] = color
... | UTF-8 | Python | false | false | 908 | py | 26 | noise.py | 10 | 0.647577 | 0.584802 | 0 | 40 | 21.7 | 71 |
raspibo/Livello1 | 5,471,788,343,352 | e806190243a1a0c43a6ff71b1e5c8062403e8b3e | 5b01e4e8133012333a62ebb0e1a18490d62ed819 | /var/www/cgi-bin/setsVals2csv_search_date.py | 18cb72719955836bae5bc7aec13eaa02bcab5d96 | [
"MIT"
] | permissive | https://github.com/raspibo/Livello1 | cf33c68c3b8d5496b78d562a57d84ab2745656a5 | 9f1ba10f2496eb0d4c40685336cc7b8768f4a767 | refs/heads/master | 2022-03-16T01:52:46.588937 | 2022-02-27T14:48:12 | 2022-02-27T14:48:12 | 56,574,092 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python3
"""
The MIT License (MIT)
Copyright (c) 2018 davide
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, co... | UTF-8 | Python | false | false | 3,780 | py | 31 | setsVals2csv_search_date.py | 28 | 0.689418 | 0.683333 | 0 | 80 | 46.25 | 153 |
tanay0nSpark/evolveML | 9,543,417,364,179 | 3643acd350596222294319d721e09464afa0da65 | 08c251243a166da41cf91f198bc744ee25f96352 | /kaggle/facebookrecruit/facebookAnalysis.py | bf797b7df317dc34198dc58ddc047ca7cad48954 | [] | no_license | https://github.com/tanay0nSpark/evolveML | afe22e09ecf2668a42c68e3947c72c81f48a30eb | d7b7f0e13f4d1ba95148af94461cb180d8a10043 | refs/heads/master | 2021-06-01T14:39:16.116459 | 2016-06-19T18:16:14 | 2016-06-19T18:16:14 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import graphlab
import threading
__author__ = 'abhishekchoudhary'
graphlab.canvas.set_target('browser')
sf = graphlab.SFrame.read_csv('/Users/abhishekchoudhary/Work/python/facebook/trainingset.csv', header=True)
sf.show()
| UTF-8 | Python | false | false | 223 | py | 66 | facebookAnalysis.py | 50 | 0.784753 | 0.784753 | 0 | 7 | 30.857143 | 107 |
bhamburg/CIS_626 | 17,609,365,941,752 | f381e3f9529c6ab52f9640ab5b3dcc2be251dc03 | d31b951902843af0a719fe291c70ec3a5741a96b | /Week2/exercise5_14.py | 22f5aca95c65db22530e6cbab51e8049a750f916 | [] | no_license | https://github.com/bhamburg/CIS_626 | ff3298dabb46fc13bb0fbad831c8b3a6f2644208 | b4d84a664a2228d07036c3d119fa94cd894bb241 | refs/heads/master | 2020-03-29T20:07:01.143791 | 2014-03-06T01:36:29 | 2014-03-06T01:36:29 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Find the smallest n such that n^2 > 12,000
# Author: Brian Hamburg
#define variables
n = 0
result = 0
# loop!
while result <= 12000:
result = n ** 2
n += 1
# print result
print("n = " + str(n - 1))
| UTF-8 | Python | false | false | 225 | py | 29 | exercise5_14.py | 29 | 0.555556 | 0.484444 | 0 | 14 | 14.071429 | 44 |
snigdha-rao/Competitive-Programming | 15,264,313,796,415 | 867527d2376c8672383ad42141db24dd4744f9e5 | 5907605a52a770783d1bdbe836c93d2bbf8649a5 | /week 3/Day-5/urlshortner.py | 196e41fef9c960fc3cdda8354765d4f2140fc4a7 | [] | no_license | https://github.com/snigdha-rao/Competitive-Programming | 23e2bd99712029f526d11f6b65a95e01d190a895 | 4dc4ea8c83626b913ac17d61736b04b58b67ed44 | refs/heads/master | 2020-03-21T19:47:04.928513 | 2018-07-21T09:28:17 | 2018-07-21T09:28:17 | 138,969,704 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def shortlink(request):
if request['method'] is not 'POST':
return Response(501) # HTTP 501 NOT IMPLEMENTED
destination = request['data']['destination']
if 'slug' in request['data']:
# If they included a slug, use that
slug = request['data']['slug']
else:
# Els... | UTF-8 | Python | false | false | 882 | py | 7 | urlshortner.py | 7 | 0.636054 | 0.606576 | 0 | 25 | 33.36 | 79 |
stepik/SimplePyScripts | 6,141,803,280,997 | 0f8938f44b39e90051e5f915c00a92ca5dd0c323 | 8997a0bf1e3b6efe5dd9d5f307e1459f15501f5a | /telegram_bot_examples/reminder/main.py | 843b4abdd1cd53fc4203ee3835f2e37f62b36294 | [
"CC-BY-4.0"
] | permissive | https://github.com/stepik/SimplePyScripts | 01092eb1b2c1c33756427abb2debbd0c0abf533f | 3259d88cb58b650549080d6f63b15910ae7e4779 | refs/heads/master | 2023-05-15T17:35:55.743164 | 2021-06-11T22:59:07 | 2021-06-11T22:59:07 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
import datetime as DT
from logging import Logger
import os
from threading import Thread
import time
import sys
import re
# pip install python-telegram-bot
from telegram import Update, Bot
from telegram.ext import Updater, MessageHandler, Command... | UTF-8 | Python | false | false | 4,717 | py | 276 | main.py | 269 | 0.606813 | 0.605275 | 0 | 178 | 24.561798 | 90 |
steindevos/project-final-django | 13,383,118,116,613 | 27a3802877ea32c442cb623fd1905e011aa45cc8 | e4fbb8940e145924ebb1f9b3412ff278c6c85968 | /checkout/migrations/0005_auto_20180829_1251.py | efe73404bd62af84d48fdcb66df2d34d8df23a66 | [] | no_license | https://github.com/steindevos/project-final-django | 72ecf8df58606e45b4251a949c9b7a572d263851 | 9b2f93b28284e10b654fc9cc07c49213b040921f | refs/heads/master | 2018-11-14T11:55:20.390707 | 2018-09-18T18:52:47 | 2018-09-18T18:52:47 | 145,727,075 | 0 | 2 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Generated by Django 2.0.6 on 2018-08-29 12:51
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('checkout', '0004_auto_20180829_0731'),
]
operations = [
migrations.RemoveField(
model_name='order',
name='country',
... | UTF-8 | Python | false | false | 1,080 | py | 46 | 0005_auto_20180829_1251.py | 31 | 0.49537 | 0.464815 | 0 | 45 | 23 | 48 |
kevinjcliao/clubslist | 9,251,359,566,914 | 404921c813279170752734a810c6d02a3c4663d3 | 2357b6d564b9c6f0ed02d9140f01ff85f5f65037 | /clubs/views.py | f5f286d2b69575b209425d528ecbfc3fe5a1da49 | [] | no_license | https://github.com/kevinjcliao/clubslist | db5e3d4a0b66a3ac5f68571d4330d673d3512cab | 0188b192105062cd32683cc7c9d73477f844cec0 | refs/heads/master | 2021-01-10T08:22:53.948566 | 2016-03-10T18:16:04 | 2016-03-10T18:16:04 | 52,030,086 | 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
from django.template import loader
from .models import Club
def club_detail(request, club_name, club_id):
try:
club = Club.objects.get(pk=club_id)
except Club.DoesNotExist:
raise Http404("Club does not exist.")
return... | UTF-8 | Python | false | false | 1,202 | py | 9 | views.py | 7 | 0.673877 | 0.667221 | 0 | 36 | 32.388889 | 92 |
nikitastasik/test | 4,372,276,751,152 | e0db11da9cf9ef606b25cd83800eb0de45b2784a | cbf4bdff3f9522e7aa4a8f95c0cdc6675e8cc531 | /NOD.py | f3c2a07bed8d6f8f31708fe084a6344a459042e5 | [] | no_license | https://github.com/nikitastasik/test | a4fa8b71262ce988b2d30e0e3001cfce1b4b27b3 | 7bdbd7d1d5232ff2f360e0cc69649bb52d4c5075 | refs/heads/main | 2023-07-13T02:16:50.083801 | 2021-08-25T09:48:40 | 2021-08-25T09:48:40 | 399,754,032 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # def fib():
# n, m = int(input()), int(input())
# if n == 1:
# return 1
# for i in range(2, n+1):
# a, b = 0, 1
# a, b = b, (a+b)
# if i == m:
# f_m = b
# f_n = b
#
# if f_n // f_m == 1:
# return 1
# elif f_n // f_m > 1:
# ost = f_n /... | UTF-8 | Python | false | false | 1,433 | py | 22 | NOD.py | 22 | 0.38381 | 0.344033 | 0 | 75 | 18.12 | 47 |
phreak1990/dom_xss | 12,000,138,636,747 | f7c126479b8380e9cdd31984740add10552e756f | de6ca0daa302569f464b0a7897f15c8b8516d32b | /lib/file_functions.py | 4efb79ae8d9f12005c7a04d821bd57b5b68d6f80 | [] | no_license | https://github.com/phreak1990/dom_xss | 93f58fe277cff790e92e0a0164ab0adefe7a9709 | 86980c15832c51ad8ce15616db27d46f5cf9c57b | refs/heads/master | 2021-01-10T06:17:45.079680 | 2015-11-17T06:28:22 | 2015-11-17T06:28:22 | 46,326,544 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
from os import path
from sys import argv
import sys
class FileFunctions:
def __init__(self):
pass
####################################################################################
def readFile(self, file_path):
if path.exists (file_path):
fo = open(file_p... | UTF-8 | Python | false | false | 3,320 | py | 9 | file_functions.py | 9 | 0.35753 | 0.356928 | 0 | 99 | 32.535354 | 96 |
ianramzy/old-code | 9,448,928,091,223 | 9e09e23310ae3036609b4580da64d3479a2ee6d0 | 610069be6dff8a673c1352771477197c3a2a998e | /Snakes/snakes.py | 4a07fd2f78127bd0611e9743ba8faf99fc2955db | [
"MIT"
] | permissive | https://github.com/ianramzy/old-code | e4d638d8880e6ab379c3c9dbbe8bda2e732ec5ba | 6d3ca52de5c6b80a1f0678ca73b78a3024e95f05 | refs/heads/master | 2020-06-11T15:23:20.829779 | 2019-06-30T14:00:28 | 2019-06-30T14:00:28 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import pygame, sys, random
# pygame 1.9.4
pygame.init()
size = width, height = 1320, 720
screen = pygame.display.set_mode(size)
# pygame.mixer.pre_init()
# white = [0, 0, 0]
white = [255, 255, 255]
orange = [255, 140, 0]
red = [255, 0, 0]
gray = [35, 35, 35]
# white = [0, 0, 255]
font = pygame.font.SysF... | UTF-8 | Python | false | false | 14,107 | py | 80 | snakes.py | 60 | 0.503934 | 0.460481 | 0 | 405 | 32.832099 | 118 |
tjafs/ESP32_Node | 824,633,725,211 | afca7627e94c9c16011e9f9293aaaca6b90ea18b | d540a8d7e345a22e6ba299f94ec0a1c31ad16759 | /lora.py | ec2df8418b2131bc704bfcab61eadfdbfddc3f9a | [] | no_license | https://github.com/tjafs/ESP32_Node | b7703252da6e709fcb780d7903d7f64f64ac63ae | 1e146fe9e30b1ccdac8f5aa0d04d05b2aa03ae24 | refs/heads/master | 2020-03-08T20:13:19.559011 | 2018-04-09T18:42:43 | 2018-04-09T18:42:43 | 128,376,535 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #Denne filen inneholder metoder/funksjoner tilknyttet lora
#Funksjon for å skrive data til lora
lora_write = lambda data: print(data+"\r\n")
#Funksjon for å lese data fra lora uten \r\n bak og foran
def lora_read():
inndata = str(lora.readln())
utdata = inndata.replace("\r\n", "")
return utdata
| UTF-8 | Python | false | false | 315 | py | 8 | lora.py | 6 | 0.696486 | 0.696486 | 0 | 12 | 25.083333 | 59 |
CognitiveComputationLab/cogmods | 7,533,372,652,897 | 42365aa6e3727db8e8bd24dd580f13a76fe8400d | 77c471124fb4ac4a7fe0a19cf47b666ed0eccb79 | /wason_analyse/quantitative_optimal_data_selection.py | 9809b4ebf4d1a355a028c5281b8f2ebd633f50e3 | [
"MIT"
] | permissive | https://github.com/CognitiveComputationLab/cogmods | f8286d7aa7917a87fd4df27d0c6db666aec88c92 | ac73fb60387aad37d3b3fb823f9b2c205c6cb458 | refs/heads/master | 2023-07-26T10:15:48.647877 | 2023-07-14T08:38:23 | 2023-07-14T08:38:23 | 178,379,369 | 1 | 12 | MIT | false | 2021-09-27T10:30:47 | 2019-03-29T09:55:02 | 2021-08-23T14:18:06 | 2021-09-27T10:30:46 | 11,633 | 0 | 11 | 2 | Python | false | false | import matplotlib.pyplot as plt
import matplotlib.ticker as ticker
import numpy as np
import pandas as pd
from matplotlib import cm
from scipy.optimize import minimize
def qods(x=0.15, y=0.16, r=0.5, eps=0.1):
# x = 0.15
# y = 0.26
# r = 0.5
not_x = 1 - x
not_y = 1 - y
not_r = 1 - r
# eps ... | UTF-8 | Python | false | false | 11,667 | py | 377 | quantitative_optimal_data_selection.py | 203 | 0.554213 | 0.524214 | 0 | 333 | 34.036036 | 149 |
polatbilek/Turkce-cinsiyet-tahminlemesi | 12,498,354,831,791 | 3a34a91b35c3618a67852809a4f62e9eb868c6f7 | f3af6f601ec443ec2674a4f1fc8a30292755a779 | /model.py | 8c521aec4639c4f6c47cbb055c358efa50ffdc40 | [
"MIT"
] | permissive | https://github.com/polatbilek/Turkce-cinsiyet-tahminlemesi | d22a6507612c59ced5f6fd397509ad7109d59a38 | c58a8161a228c37026291c88e7fdb1d33092ee05 | refs/heads/master | 2020-04-19T09:10:57.189418 | 2019-01-28T07:30:08 | 2019-01-28T07:30:08 | 168,102,457 | 2 | 0 | MIT | true | 2019-01-29T06:31:41 | 2019-01-29T06:31:41 | 2019-01-28T07:31:26 | 2019-01-28T07:30:09 | 776 | 0 | 0 | 0 | null | false | null | import tensorflow as tf
from parameters import FLAGS
import numpy as np
class network(object):
############################################################################################################################
def __init__(self, embeddings):
with tf.device('/device:GPU:0'):
self.pred... | UTF-8 | Python | false | false | 8,612 | py | 10 | model.py | 9 | 0.59301 | 0.580237 | 0 | 223 | 36.591928 | 168 |
EasyToy11/8Queen | 8,787,503,117,541 | db83d735a3799e7e9e1444e3a2e6ff969560c317 | ae451567c5ebcf11e1d696bf7dd8fc40c7615469 | /Queen.py | 54ea9c9a9c3bd66132a0b269d62f9d5f7c1520ca | [] | no_license | https://github.com/EasyToy11/8Queen | cd0667b1663e3e22a39ba9af35c11b3f3f6646f0 | 03f346e2f1102c6494e576ac5d75450c3d0a123c | refs/heads/master | 2020-06-24T09:48:38.688082 | 2019-07-26T02:28:53 | 2019-07-26T02:28:53 | 198,932,206 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
二次元配列を作る
クイーンの数の変数
最初はすべてTrue
8回繰り返す
クイーンの射程に入ったらFalse
検索を短くするために、配列を書き換える
x,y,斜めの順に処理
結果を表示
"""
queen = 0
field = []
for i in range(8):
for j in range(8):
field.append([i, j, True])
field[0][2] = False
is_queen = []
for i in range(8):
# クイーンが置ける状態なら入力を受け付ける
while True:
pla... | UTF-8 | Python | false | false | 1,675 | py | 3 | Queen.py | 3 | 0.443268 | 0.428896 | 0 | 67 | 18.567164 | 45 |
aliyesilli/codesignal | 10,058,813,419,681 | dab89c3dacdd25b1fe809de1c5dde5cb78c3c18e | 49635f4841b71dbc2754b58afe923d273dd85d9f | /Arcade/Intro/4_adjacentElementsProduct.py | fcbeefa32f03f705816735e69bcc2c6902cf26f5 | [] | no_license | https://github.com/aliyesilli/codesignal | b52d0cee28461f4c4ddc50ed12845ec7392e5264 | 87a72cd06989aac157d89429f889cbf90cfdac01 | refs/heads/master | 2020-03-23T17:56:49.589981 | 2018-07-23T14:38:54 | 2018-07-23T14:38:54 | 141,882,391 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def adjacentElementsProduct(inputArray):
if len(inputArray) == 0: return 0
if len(inputArray) == 1: inputArray[0]
b = inputArray[0]*inputArray[1]
for i in range(0,len(inputArray)-1):
if inputArray[i]*inputArray[i+1] > b: b=inputArray[i]*inputArray[i+1]
return b; | UTF-8 | Python | false | false | 270 | py | 33 | 4_adjacentElementsProduct.py | 33 | 0.711111 | 0.674074 | 0 | 7 | 37.714286 | 71 |
uvsq22005562/PROJET_TAPATAN_BITD02 | 9,328,668,981,134 | 85de6dd71ce232b115c2616b8f85ee21261a4687 | e63eda2edd018d903fdc8cdc05b3f5b06734fada | /TAPATAN.py | 45a82de477dc2aef6e135d4ae98a03855d65c3d0 | [] | no_license | https://github.com/uvsq22005562/PROJET_TAPATAN_BITD02 | e81ce02bba5f9fa29b30dc345269809a7d08819a | 11e16f838784ad84920f251c47dcc28221af319c | refs/heads/main | 2023-05-04T03:39:56.813220 | 2021-05-24T12:29:56 | 2021-05-24T12:29:56 | 359,737,901 | 0 | 2 | null | false | 2021-05-24T09:55:21 | 2021-04-20T08:18:30 | 2021-05-23T18:20:29 | 2021-05-24T09:55:21 | 7 | 0 | 2 | 1 | Python | false | false | ###########################
# PROJET TAPATAN
# Jules Marty
# jihad Djiar
# Sophie Wu
# Adam Bouchaour
# Thibault Astier
###########################
# IMPORTS
import tkinter as tk
from tkinter import messagebox
###########################
# GLOBALS VAR
MAP = [
[0, 0, 0],
[0, 0, 0],
[0, 0, 0]
] # 0 = vide,... | UTF-8 | Python | false | false | 17,045 | py | 2 | TAPATAN.py | 1 | 0.551134 | 0.474668 | 0 | 531 | 31.041431 | 79 |
Aasthaengg/IBMdataset | 12,300,786,351,958 | a8d8059352b170b6d158eeca29301650ae608c19 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03221/s255221883.py | 7c371de9c4496c612c56bf71d1d38505c3449585 | [] | no_license | https://github.com/Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | n, m = map(int, input().split())
arr = [[] for _ in range(n)]
p = [0] * m
y = [0] * m
for i in range(m):
p[i], y[i] = map(int, input().split())
arr[p[i]-1].append(y[i])
for i in range(n):
arr[i].sort()
import bisect
for i in range(m):
num = bisect.bisect_left(arr[p[i]-1], y[i]) + 1
a = str... | UTF-8 | Python | false | false | 379 | py | 202,060 | s255221883.py | 202,055 | 0.496042 | 0.477573 | 0 | 20 | 17.95 | 51 |
naveenkambham/HiddenMarkovModel_FromScratch | 9,835,475,110,320 | fe7781d3c041f1cf2275b22ab801f72d571fed5f | 0410a2f21c3627e19446addf0319603e7ae4aa5e | /HMM.py | 8a85d8e9c7472af77b00951bb9348a93844c9a51 | [] | no_license | https://github.com/naveenkambham/HiddenMarkovModel_FromScratch | d329c8be7ee157b325ce9dcb81097284ad87fea2 | 27c671c84067877df0fcafdd634842176dad5f72 | refs/heads/master | 2021-05-02T17:55:26.861849 | 2020-02-06T20:43:02 | 2020-02-06T20:43:02 | 120,655,320 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
Title:Implement HMM run various work flows to understand the system.
Developer : Naveen Kambham
Description: This is a simple two state HMM model implemented using matrices. It has various workflows and methods to
Caliculate Transition, observation matrices.
"""
"""
Importing the required libraries.
... | UTF-8 | Python | false | false | 7,325 | py | 2 | HMM.py | 1 | 0.635358 | 0.626348 | 0 | 220 | 32.281818 | 154 |
idushie/Animation-school | 6,605,659,750,383 | 0e571adf285ce35a940532bbaa4a41c86ef0996b | dcef9b4da7ac67b210a14c17a565e7277c23e398 | /W_10/normal_vertex.py | 87095d23850d55620fb6037fb4ebeabd00d1c2b3 | [] | no_license | https://github.com/idushie/Animation-school | 6002ee3f79ee995ff712c09db04116f5053e28d0 | 20a9530b373aa1aaa8fc330dd59e09faedd3749f | refs/heads/master | 2020-12-01T19:37:56.400689 | 2020-02-11T16:03:58 | 2020-02-11T16:03:58 | 230,744,742 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import maya.cmds as cmds
import random
import maya.OpenMaya as OpenMaya
selected_mesh = cmds.ls(sl=1, l=1)[0]
sel_list = OpenMaya.MSelectionList()
sel_list.add(selected_mesh)
dp = OpenMaya.MDagPath()
sel_list.getDagPath(0, dp)
it = OpenMaya.MItMeshVertex(dp)
while not it.isDone(): #* idDone -> bool
normalVe... | UTF-8 | Python | false | false | 619 | py | 51 | normal_vertex.py | 50 | 0.696284 | 0.68336 | 0 | 31 | 18.935484 | 61 |
Ulan9304/djtest | 12,987,981,146,647 | f88675f080118ea44c2fb0e183b21793e86aa9aa | 873ea03199e127fc759b580115c442f8b517349e | /landing/views.py | ee3ca55f32b136b9c50db1736b61a2e2b08f288c | [] | no_license | https://github.com/Ulan9304/djtest | 09509377d6d311240ac5cb6547ed6006bbf87773 | 94e637c231736bb1da1164af67db37c264f25291 | refs/heads/master | 2021-07-17T13:26:30.659860 | 2017-10-25T10:09:25 | 2017-10-25T10:09:25 | 107,991,450 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.shortcuts import render
from products.models import *
from django.contrib.auth import (
authenticate,
get_user_model,
login,
logout,
)
# Create your views here.
def home(request):
products_images = ProductImage.objects.filter(is_active=True, is_main=True, product__is_active=True)
pr... | UTF-8 | Python | false | false | 596 | py | 15 | views.py | 7 | 0.736577 | 0.731544 | 0 | 16 | 36.3125 | 104 |
Sovianum/questions-answers | 17,806,934,428,714 | f41bfb28cc6a8d66db320b1667ad6f08e9e22b29 | d39d21aceb0e22f3cbe265c15654a3cecd89ccb4 | /ask-klyukvin/views.py | 2244142edb632ac64d948bf238edaff7e232ade6 | [] | no_license | https://github.com/Sovianum/questions-answers | eefa0ca4675af37ef68f148c4c8af6021014e3e3 | 01b6ce6ec175ec09194463ccf748c074877c4170 | refs/heads/master | 2017-05-27T12:02:33.113427 | 2016-12-16T11:27:36 | 2016-12-16T11:27:36 | 68,749,910 | 0 | 2 | null | null | null | null | null | null | null | null | null | null | null | null | null | import django.views.generic
class GetNewQuestions(django.views.generic.TemplateView):
template_name = 'pages/new_questions_page.html'
class GetNewQuestionList(django.views.generic.TemplateView):
template_name = 'pages/new_question_page.html'
class GetQuestionDetailList(django.views.generic.TemplateView):
... | UTF-8 | Python | false | false | 933 | py | 43 | views.py | 16 | 0.78135 | 0.78135 | 0 | 33 | 27.272727 | 63 |
sysdeep/fsys | 5,961,414,642,976 | 7913dd64f28a867d7498eb816b95a3a00764d185 | d9804258f176b3e8f84d811cf0c388c295e16693 | /blog/models.py | 7a9875f9db8a875a2acae0d13328e687bc48c69a | [] | no_license | https://github.com/sysdeep/fsys | 7a8800ee53bff502e98f4704f86b7d5ef9a77184 | 5a0b48ff2dd7bdb5698af8de3b52223758f9b013 | refs/heads/master | 2021-01-10T20:43:56.144536 | 2012-03-27T14:57:54 | 2012-03-27T14:57:54 | 996,571 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
#blog/models
from django.db import models
#-----------------------------------------------------------------------
#class Link(models.Model):
# """Ссылка"""
# url = models.URLField(unique=True)
# def __unicode__(self):
# return self.url
#-----------------------------------... | UTF-8 | Python | false | false | 2,045 | py | 53 | models.py | 11 | 0.413793 | 0.410136 | 0 | 54 | 34.166667 | 97 |
yunusemrex/Python-OOP | 11,304,353,944,600 | 9b6a28cc7dd8efa57135e8ff01c0c98e3de56689 | ad4fc4e21f630c634be718f3eab0955701bed183 | /Askerler.py | f6598b6f591d0456093dfe4ad64728c6f3457bd4 | [] | no_license | https://github.com/yunusemrex/Python-OOP | 9356f40ee185fda1049243d288cb449fd4db0c63 | 9b321da34033d0780f4c1cab24bbd02eb7806e3b | refs/heads/main | 2023-06-14T11:31:18.087355 | 2021-07-10T12:28:04 | 2021-07-10T12:28:04 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | class Asker:
def __init__(self,isim,guc,can,dayanlıklılık,hız,kudret):
self.isim = isim
self.guc = guc
self.can = can
self.dayanıklılık = dayanlıklılık
self.hız = hız
self.kudret = kudret
def __str__(self):
return(f"Asker Adı: {self.isim}")
def Ulti... | UTF-8 | Python | false | false | 3,048 | py | 4 | Askerler.py | 3 | 0.641203 | 0.613204 | 0 | 61 | 46.409836 | 164 |
arjun180/Kaggle-Titanic-Machine-Learning | 17,892,833,774,626 | 2ecf74ad65dedf2e115d8b36c30a54d72a63f565 | a5701eb2169db2dfac3bfa44af8a0f169885026e | /Models/titanic.py | cad48632fb24db5555a89c19eda165f2d1ec904f | [] | no_license | https://github.com/arjun180/Kaggle-Titanic-Machine-Learning | 0be7a75408d2d3749a307ef362808327326e3eec | 85fa7ca4931557daa1bfaf03eb9d578bb52e0843 | refs/heads/master | 2021-01-10T13:55:08.311476 | 2015-11-12T01:05:56 | 2015-11-12T01:05:56 | 46,019,917 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import matplotlib.pyplot as plt
# matplotlib inline
import numpy as np
import pandas as pd
# import statsmodels.api as sm
# from statsmodels.nonparametric.kde import KDEUnivariate
# from statsmodels.nonparametric import smoothers_lowess
from pandas import Series, DataFrame
# from patsy import dmatrices
from sklearn im... | UTF-8 | Python | false | false | 2,388 | py | 2 | titanic.py | 2 | 0.694724 | 0.677554 | 0 | 70 | 32.957143 | 137 |
anyuanay/MOFtextminer | 3,624,952,403,526 | 6a2a05b92687d7bd770c8d2addfb008cedb1c1ff | f92a9a6a271b69c65ffa1b8fb4c2e178c9816260 | /doc/storage/abbreviation_storage.py | bf64755ad1c788a4d3ddcae22b0596313bb04c73 | [] | no_license | https://github.com/anyuanay/MOFtextminer | cf6c34928fbcc34fa211e69ed445564c4a718872 | 2f056e2ac0e41f5fc927cadd67b14679b95f03d1 | refs/heads/main | 2023-07-11T15:21:26.173701 | 2021-08-24T17:07:21 | 2021-08-24T17:07:21 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from functools import reduce
import numpy as np
import regex
from pathlib import Path
import json
from chemdataextractor.doc import Paragraph
from fuzzywuzzy import fuzz
from doc.utils import _change_to_regex_string
from error import DatabaseError
class CounterABB(object):
def __init__(self, abb_type=None, trai... | UTF-8 | Python | false | false | 8,142 | py | 39 | abbreviation_storage.py | 27 | 0.571604 | 0.568411 | 0 | 268 | 29.380597 | 97 |
suhanree/tweet-hashtag-graph-analysis | 13,932,873,921,556 | e658a1cd5b8e08588551d14701719a9a9f7bcbce | 52e9b103f5e6fca4cb1a39c64828d06ddfe2cdc1 | /src/average_degree.py | d984ecc03f7825c37f5aee9e24cc530713311700 | [] | no_license | https://github.com/suhanree/tweet-hashtag-graph-analysis | 28bf04478792e2345396dcb3512cc0eb0c618316 | b0200e746be0ec0efd1a53fc0436ce07be844383 | refs/heads/master | 2021-01-10T03:08:24.972861 | 2016-04-14T16:46:42 | 2016-04-14T16:46:42 | 55,037,612 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Python codes to run this average degree problem.
import sys
import json
import time
from graph import TimeWindowGraph
def extract_data(json_data):
"""
To extract timestamp (from 'created_at') and a list of hashtags for each tweet.
Input:
json_data (dict): name of the file
Output:
ti... | UTF-8 | Python | false | false | 4,267 | py | 6 | average_degree.py | 3 | 0.544411 | 0.538786 | 0 | 103 | 40.427184 | 84 |
mumichae/drop | 10,823,317,590,062 | 880df7376c3a6a6a434f8f1b7ae7c7f58ba507ed | b9d94a109d2f42fd2f9d02eeb387615e8af963ce | /tests/pipeline/test_AS.py | f26dcea414730bc6ee4a318771ed17c9774907be | [
"MIT"
] | permissive | https://github.com/mumichae/drop | 2701c642691140a44a36ca63ee8b1e2ec10bbf42 | 394f0e28e8b49a9be55ab0e46c4b75552babd4a0 | refs/heads/master | 2021-07-13T23:11:37.285898 | 2020-10-21T06:59:44 | 2020-10-21T06:59:44 | 230,656,194 | 1 | 1 | MIT | true | 2020-09-30T19:06:34 | 2019-12-28T19:34:23 | 2020-09-27T06:40:44 | 2020-09-30T19:06:33 | 100,574 | 1 | 1 | 0 | R | false | false | from tests.common import *
class Test_AS_Pipeline:
@pytest.fixture(scope="class")
def pipeline_run(self, demo_dir):
LOGGER.info("run aberrant splicing pipeline")
pipeline_run = run(["snakemake", "aberrantSplicing", "-j", CORES], demo_dir)
assert "Finished job 0." in pipeline_run.stder... | UTF-8 | Python | false | false | 1,268 | py | 49 | test_AS.py | 41 | 0.618297 | 0.611199 | 0 | 32 | 38.625 | 108 |
araghukas/nwlattice | 11,441,792,885,222 | 4c5e413ae85045217032767d70db02cccd514e6b | 4ed0c60aa1df2877df9c2ae3a829fea65f8706e8 | /nwlattice/sizes.py | 4e0f0a8c9002570abff0e4b5f30264357e1267c3 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | https://github.com/araghukas/nwlattice | 2c5554153b32061c9090b99f8c3a24d7709140da | 443d0a000c2b68cd99070245eede032e912c1a40 | refs/heads/master | 2023-08-22T05:49:43.920452 | 2021-10-25T05:21:56 | 2021-10-25T05:21:56 | 314,936,613 | 1 | 0 | null | false | 2020-11-22T02:33:23 | 2020-11-22T01:26:48 | 2020-11-22T02:26:56 | 2020-11-22T02:33:22 | 6,868 | 0 | 0 | 0 | Python | false | false | SIZE_PROPERTIES = [
"scale",
"width",
"length",
"unit_dz",
"period",
"fraction",
"area",
"n_xy",
"nz",
"q",
"indexer"
]
class NanowireSizeCompound:
"""
A size container that combines one or more NanowireSize objects
"""
def __init__(self, **kwargs):
... | UTF-8 | Python | false | false | 6,910 | py | 16 | sizes.py | 14 | 0.52026 | 0.514616 | 0 | 245 | 27.204082 | 80 |
LaurentMT/pybargain_protocol | 13,314,398,652,281 | 232583caa9c483c4ecff9354638e7e6f60d97c43 | 15b7a21cabcde179622a7fdbdbe2f5a8c9e9bf43 | /pybargain_protocol/helpers/build_check_tx.py | 7616715fe7866d450bd4d52626a5fee353b50d0c | [
"MIT"
] | permissive | https://github.com/LaurentMT/pybargain_protocol | da1ac5f1cf70260b3a91f96aa70610de7c751ba8 | 3b4c6040ec3562ce6921f917c97a9931d5c6e5de | refs/heads/master | 2020-05-17T18:00:35.674117 | 2015-04-26T03:54:43 | 2015-04-26T03:54:43 | 23,262,899 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
'''
Version: 0.0.1
Python library for the bargaining protocol
'''
import math
from bitcoin.transaction import *
from pybargain_protocol.constants import MAINNET, MAGIC_BYTES_TESTNET, TESTNET, MAGIC_BYTES_MAINNET
# BITCOIN CONSTANTS
MIN_TX_SIZE = 100
MAX_BLOCK_SIZE = 1048576
MAX_MONEY_RANGE = 2100... | UTF-8 | Python | false | false | 7,880 | py | 24 | build_check_tx.py | 23 | 0.554949 | 0.54099 | 0 | 217 | 35.271889 | 105 |
natefoo/galaxy-beta2 | 8,830,452,769,066 | 8deb358c38f12785f013154ab9cbbc9ac9438063 | 7aafdda6794652ddb86ee777950b0a717b673c4b | /lib/galaxy/model/migrate/versions/0069_rename_sequencer_form_type.py | 337b3cd17426cc7372dd3bbbf30f5c40ab294ee1 | [
"CC-BY-2.5",
"AFL-2.1",
"AFL-3.0",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | https://github.com/natefoo/galaxy-beta2 | 1cd15219abbf7418301a74820a0c7b5257a3fc78 | 3af3bf5742fbf0f7d301a2a8c548a3e153544448 | refs/heads/dev | 2021-07-07T10:32:42.823976 | 2015-02-19T22:53:12 | 2015-02-21T18:29:58 | 31,084,940 | 0 | 3 | NOASSERTION | false | 2020-10-01T01:43:16 | 2015-02-20T20:58:32 | 2015-02-23T15:43:23 | 2015-02-21T18:32:44 | 56,633 | 0 | 2 | 1 | Python | false | false | """
Migration script to rename the sequencer information form type to external service information form
"""
from sqlalchemy import *
from sqlalchemy.orm import *
from migrate import *
from migrate.changeset import *
from sqlalchemy.exc import *
from galaxy.model.custom_types import *
import datetime
now = datetime.d... | UTF-8 | Python | false | false | 1,102 | py | 296 | 0069_rename_sequencer_form_type.py | 198 | 0.720508 | 0.720508 | 0 | 38 | 28 | 103 |
markafarrell/ran-load-generator | 1,649,267,457,089 | aa9eb3df083ebc33f222cca8f49f38b7274bebea | 32cf8120ccea8eb36bdb724747ddb8ceff871cf1 | /session/sessionManagement.py | 47bb1251d709c414b3ba85ce4ca8bf3cbf127540 | [] | no_license | https://github.com/markafarrell/ran-load-generator | 7a5aae824aa7d114ee814816f4f7399bdf5e34d1 | 4d48903ead094a9ff1b263c247ee118dafb2768d | refs/heads/master | 2021-01-12T01:23:13.461845 | 2018-04-30T05:21:38 | 2018-04-30T05:21:38 | 78,379,265 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/bin/python
import sys
import getopt
import time
from subprocess import Popen, PIPE, check_output, STDOUT
import json
import random
import os
import signal
from datetime import datetime
import sqlite3
iperf_process=None
filteredcsv_process=None
csv2sqlite_process=None
session = -1
enviornment = ""
with open('conf... | UTF-8 | Python | false | false | 10,297 | py | 41 | sessionManagement.py | 19 | 0.665534 | 0.659415 | 0 | 309 | 32.323625 | 268 |
vktemel/CarND-capstone | 8,890,582,348,108 | e8f23658fb2ae389644edd7e611f04fa24e03ffb | 15d9d0b7a5c2011759a8c6192b57038dd89d686a | /ros/src/twist_controller/twist_controller.py | 2dbf7f4d72edb566463529cf2bb92d493c3a23ec | [
"MIT"
] | permissive | https://github.com/vktemel/CarND-capstone | fd972585d984c9bb55b35c42f930a76d77d57dc9 | d44fb76b059e8fd5700bcf8fd97d390810232d13 | refs/heads/master | 2023-03-14T20:33:36.403078 | 2021-03-15T03:42:12 | 2021-03-15T03:42:12 | 335,111,813 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
GAS_DENSITY = 2.858
ONE_MPH = 0.44704
from pid import PID
from yaw_controller import YawController
import rospy
class Controller(object):
def __init__(self, wheel_base, steer_ratio, min_speed, max_lat_accel, max_steer_angle, decel_limit, wheel_radius, vehicle_mass):
self.throttle = 0
self.pid_... | UTF-8 | Python | false | false | 1,856 | py | 3 | twist_controller.py | 2 | 0.592672 | 0.570582 | 0 | 59 | 30.440678 | 132 |
GeorgeZ1917/Python | 3,822,520,920,905 | 437d0a589583b6c822a7750f29f681e6fe0e3200 | 1f58673da4698ac6458a593550c82f8754d11792 | /MainDictionary.py | 166e9428e4765e5ea904dad7964f6e31643dce09 | [] | no_license | https://github.com/GeorgeZ1917/Python | c2904e757e58c61b312e994345cbfb9263e615ee | 391c3a27f3950bd1f1661a39356d90f097905293 | refs/heads/main | 2023-03-26T15:55:27.065085 | 2021-03-25T14:52:55 | 2021-03-25T14:52:55 | 333,175,600 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #MainDictionary.py
from Dictionary import LinkedList, BinarySearchTree, insertList, insertTree, deleteList, middleNode
from Dictionary import printList, printTree, searchList, searchTree, deleteLeaf, identicalTrees, convert, root
from random import randint
from time import time
insertList( 30, "Hello hello" )
... | UTF-8 | Python | false | false | 1,521 | py | 13 | MainDictionary.py | 10 | 0.64361 | 0.597497 | 0 | 46 | 31 | 110 |
shanqing-cai/MRI_analysis | 8,589,938,851 | 9ec8f12752d4d1343a0c0e0e1937e8237149c858 | d16b5cafcfd18ceb6a24f5c30b247fb2f31509a9 | /aparc12_surface_stats.py | 880f00e67c01938aba9cd6a614f51a6920722b66 | [
"BSD-2-Clause"
] | permissive | https://github.com/shanqing-cai/MRI_analysis | 669eb77bb16efd506cf06f2bf40abecd80b2b2d6 | 39b3d48e2158623ffd9a8a6ea47d16a4a7b83cd9 | refs/heads/master | 2021-01-10T22:11:51.175311 | 2014-02-19T04:32:57 | 2014-02-19T04:32:57 | 7,264,919 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/python
import os
import sys
import glob
import argparse
import tempfile
import numpy as np
import matplotlib.pyplot as plt
import pickle
import scipy.stats as stats
from copy import deepcopy
from subprocess import Popen, PIPE
from get_qdec_info import get_qdec_info
from fs_load_stats import fs_load_stats
f... | UTF-8 | Python | false | false | 11,734 | py | 70 | aparc12_surface_stats.py | 39 | 0.476138 | 0.461735 | 0 | 333 | 34.231231 | 118 |
CoLRev-Ecosystem/colrev | 3,444,563,800,387 | 0ef650fd2a6c5e81f21e4d52168e5060b6d6a10a | c7b00162595001b5fca76d63ab84143ab776b52e | /colrev/ops/built_in/data/github_pages.py | a46369e539a83214f849c7ff4c9b310983c835df | [
"MIT",
"CC0-1.0"
] | permissive | https://github.com/CoLRev-Ecosystem/colrev | 9756398b6cdf46eeffabebf38e880455eb15d402 | 19fb6883fa2445e1119aa11cb1a011997f285e4f | refs/heads/main | 2023-03-23T13:37:09.298982 | 2023-03-23T10:06:57 | 2023-03-23T10:06:57 | 363,073,613 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #! /usr/bin/env python
"""Creation of a github-page for the review as part of the data operations"""
from __future__ import annotations
from dataclasses import dataclass
from pathlib import Path
import zope.interface
from dataclasses_jsonschema import JsonSchemaMixin
import colrev.env.package_manager
import colrev.e... | UTF-8 | Python | false | false | 8,823 | py | 170 | github_pages.py | 81 | 0.584042 | 0.583248 | 0 | 252 | 34.011905 | 87 |
tkj5008/Luminar_Python_Programs | 8,950,711,881,205 | 3fc7efc28a82c585b476fb805d192f2df991fc3d | 86f860eab66ce0681cda293ee063e225747d113c | /Object_Oriented_Programming/Demo9.py | eaaf7fbd9866c9a63b8e92c211f7987326375c47 | [] | no_license | https://github.com/tkj5008/Luminar_Python_Programs | a1e7b85ad2b7537081bdedad3a5a4a2d9f6c1f07 | d47ef0c44d5811e7039e62938a90a1de0fe7977b | refs/heads/master | 2023-08-03T05:15:04.963129 | 2021-09-23T14:33:21 | 2021-09-23T14:33:21 | 403,316,476 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | class Employee:
company="AT&T"
def __init__(self,name,empid,salary):
self.name=name
self.empid=empid
self.salary=salary
def printvalue(self):
print(Employee.company,self.name,self.empid,self.salary,)
obj=Employee("Thomas","TJ618N",25000)
obj.printvalue()
| UTF-8 | Python | false | false | 299 | py | 135 | Demo9.py | 118 | 0.655518 | 0.628763 | 0 | 10 | 28.9 | 65 |
dopexxx/FacePeeper | 18,769,007,085,937 | 6521e93ba2ae5d87284eb3fd384c6e9a6225d4c2 | 5b4afa1364dbec5c154be8fb3fe8fa382c3039b5 | /MNIST_Classifier/mnistTester.py | 30783263c2254e9ba6fcf5ae0e8d0bd428487c30 | [] | no_license | https://github.com/dopexxx/FacePeeper | 3957ea1155a7a93752117cc036587c053d14a372 | ff3d1a8e735b0318eaee47066c264e87afc8c111 | refs/heads/master | 2021-01-09T06:07:52.813261 | 2017-11-22T09:48:11 | 2017-11-22T09:48:11 | 80,897,773 | 3 | 1 | null | false | 2017-02-28T22:31:06 | 2017-02-04T06:05:19 | 2017-02-27T21:55:21 | 2017-02-28T22:31:05 | 493,332 | 0 | 1 | 0 | Python | null | null | # Test MNIST task
# We used this file to test our network on the MNIST task
# Execute this file while being in the MNIST directory (not from parent directory e.g.)
# Import modules
import tensorflow as tf
from tensorflow.core.protobuf import saver_pb2
import numpy as np
# Import data
from tensorflow.examples.tutori... | UTF-8 | Python | false | false | 2,493 | py | 28 | mnistTester.py | 14 | 0.671881 | 0.646209 | 0 | 73 | 33.013699 | 122 |
ShashwatMishra/Mini-Facebook | 19,636,590,508,862 | 573213ce2e895bb0d7501214b8b150a8d8bbca0f | 8583a7e7a7179f6160e56fa6c856cee87098bac4 | /Mini Facebook/app/routes.py | 14bf46218a05861a49f2c630aabed041f9b5a04c | [
"MIT"
] | permissive | https://github.com/ShashwatMishra/Mini-Facebook | 1a8604d27a6290d95ae232f544192aee2aa9f191 | b78b0e23be31529b5026c7db3329320be93b7f53 | refs/heads/master | 2020-05-20T07:00:45.344275 | 2019-05-07T16:49:38 | 2019-05-07T16:49:38 | 185,441,920 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from flask import render_template, flash, redirect, url_for, request
from flask_login import login_user, logout_user, current_user, login_required
from werkzeug.urls import url_parse
from app import app, db
from app.forms import LoginForm, RegistrationForm, EditProfileForm, StatusUpdate, MessageForm
from app.models imp... | UTF-8 | Python | false | false | 6,651 | py | 9 | routes.py | 8 | 0.661705 | 0.660051 | 0 | 164 | 39.560976 | 126 |
andrely/sublexical-features | 10,952,166,607,494 | 98cf45b26e377bd937efe64ea95acbca5b18d75b | 785e6e41b16ab7c702987d0dcd01793668da6f98 | /SublexicalSemantics/bin/sublexicalize.py | 685f990ede3faa7d15dad7c9ef3d25d5d3a84c2c | [] | no_license | https://github.com/andrely/sublexical-features | 748c18419405a8184c81253a16ed0bd4445a6ffd | 4191ec5ea3f95dfa1741c441da90cbbd1a1c2a02 | refs/heads/master | 2021-01-17T15:09:53.766421 | 2017-05-03T18:05:08 | 2017-05-03T18:05:08 | 16,731,407 | 1 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | from optparse import OptionParser
import os
import re
import sys
cur_path, _ = os.path.split(__file__)
sys.path.append(os.path.join(cur_path, '..', 'Experiments'))
from experiment_support.preprocessing import sublexicalize
BUF_SIZE = 8192
if __name__ == '__main__':
parser = OptionParser()
parser.add_option(... | UTF-8 | Python | false | false | 730 | py | 70 | sublexicalize.py | 67 | 0.616438 | 0.606849 | 0 | 29 | 24.172414 | 76 |
Aasthaengg/IBMdataset | 13,872,744,414,992 | 094468854be5a8e52e2fb3afeae7566e1daa1c74 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03407/s755755148.py | de96295b9fb6e9f0a46cf4632a66617331a13e8f | [] | no_license | https://github.com/Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | A, B, C = list(map(int, input().split()))
ans = "Yes"
if ((A + B) < C):
ans = "No"
print(ans) | UTF-8 | Python | false | false | 100 | py | 202,060 | s755755148.py | 202,055 | 0.47 | 0.47 | 0 | 8 | 11.625 | 41 |
gurudurairaj/gp | 5,111,011,115,872 | 0a1d8d61fc8433cee347aead45f53071aa1dbfd2 | c117f7064b7132778bead5a8b77b67e2429a2b7a | /zermat.py | eb726a3c64adba60293b5e5ba07be16f22ebd87f | [] | no_license | https://github.com/gurudurairaj/gp | 664306f41f73f8b620ba74b048372e1c94e59bc7 | 2fce98f7428103b54b9edd075d4a83dc434c2926 | refs/heads/master | 2020-04-15T05:00:45.934019 | 2019-05-26T17:54:54 | 2019-05-26T17:54:54 | 164,405,807 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | n=int(input())
m=list(map(int,input().split()))
c=0
for i in range(len(m)):
for j in range(i,len(m)):
if m[i]+m[j]==0 or m[i]+m[j]==1:
print(m[i],m[j])
c=c+1
break
if c==1:
break
| UTF-8 | Python | false | false | 239 | py | 165 | zermat.py | 165 | 0.430962 | 0.410042 | 0 | 11 | 20.727273 | 40 |
AlbertaSat/cube_sat_comm | 15,358,803,087,540 | 9c4acdfa00b47d4a12d2480e0242958d986b55fe | 3c2f73cdd489cf44e7a1a844b6cf449f6d8c58fe | /cube_sat_comm/drawing.py | f07c6a79b552fe88a2223e4b33a9a3e49cf8f2ab | [] | no_license | https://github.com/AlbertaSat/cube_sat_comm | a55f7a6694ae792dae7df8d5e9e9e56f2c528596 | b842a71c835710b873d0d8f5cabc0014dfd1f07b | refs/heads/master | 2020-04-14T14:07:11.747736 | 2019-01-02T21:17:35 | 2019-01-02T21:21:03 | 163,887,345 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from queue import Queue
from threading import Thread, Event
from cube_sat_comm.curses_state import curses_print
_MAX_QUEUE_WAIT = 1.0
_queued_tasks = Queue()
_should_exit = Event()
_new_tasks_event = Event()
def init_drawing_thread():
handle = Thread(target=_draw_thread_loop)
handle.start()
return hand... | UTF-8 | Python | false | false | 929 | py | 11 | drawing.py | 8 | 0.654467 | 0.652314 | 0 | 44 | 20.113636 | 76 |
ArthurKVasque07/PythonGEEK | 7,052,336,305,895 | 878ef561fe34b2fad03184bd65c8d5e0190f0f6b | dbdc002660adf3f633c4d5d4eb890ff43ba229a7 | /estruturas_logicas_and_or_not_is.py | cd82a28f9c640bd3f75b5ff5224291395d7b1bb5 | [] | no_license | https://github.com/ArthurKVasque07/PythonGEEK | df1f184435a863ce872df1e366463b4fec9a6c64 | bd8b86608fd854643d3f81f02b48db88f4e6f832 | refs/heads/master | 2022-10-06T18:49:04.441047 | 2020-06-10T20:54:18 | 2020-06-10T20:54:18 | 271,382,829 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
Operadores unarios:
- not, is
Operadores binários:
-and, or
Para 'and' , ambos valores precisam ser True
Para 'or' , um dos valores precisam ser True
Para o 'not', o valor do booleano é invertido, ou seja se for True vira False
"""
ativo = True
logado = False
if ativo and logado:
print('Bem vindo')
e... | UTF-8 | Python | false | false | 722 | py | 22 | estruturas_logicas_and_or_not_is.py | 19 | 0.619777 | 0.619777 | 0 | 39 | 17.358974 | 77 |
pf4d/issm_python | 10,067,403,358,550 | dbef9245519371df05c8bed045b30afef76db972 | 93022749a35320a0c5d6dad4db476b1e1795e318 | /issm/cyclone.py | 7f07dbe4c48e787920c81df1e7151386a3e24aa8 | [
"BSD-3-Clause"
] | permissive | https://github.com/pf4d/issm_python | 78cd88e9ef525bc74e040c1484aaf02e46c97a5b | 6bf36016cb0c55aee9bf3f7cf59694cc5ce77091 | refs/heads/master | 2022-01-17T16:20:20.257966 | 2019-07-10T17:46:31 | 2019-07-10T17:46:31 | 105,887,661 | 2 | 3 | null | null | null | null | null | null | null | null | null | null | null | null | null | import subprocess
from issm.fielddisplay import fielddisplay
from issm.pairoptions import pairoptions
from issm.issmssh import issmssh
from issm.issmscpin import issmscpin
from issm.issmscpout import issmscpout
from issm.QueueRequirements import QueueRequirements
import datetime
try:
from issm.cyclone_settings import ... | UTF-8 | Python | false | false | 4,597 | py | 335 | cyclone.py | 214 | 0.690885 | 0.681749 | 0 | 124 | 36.072581 | 225 |
ddc899/cmpt145 | 17,523,466,587,998 | ff9078cfb333e718f654dfe78194d1f4368ca166 | 043d91547df1c9824cdff5386c74083b234803c2 | /assignments/assignment6/a6q1_testing.py | ab48e7ae3126c901ba742d7ba85671aa77056993 | [] | no_license | https://github.com/ddc899/cmpt145 | 9824b7caad98f78075dd42c5ecb1c1617f4628cf | 2a8c2f36d42082dffdc6e79a9822aa2d4ad925a9 | refs/heads/master | 2022-01-26T22:44:02.647310 | 2018-07-27T22:51:07 | 2018-07-27T22:51:07 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import LList as llist
import node as node
chain = llist.create()
twochain = llist.create()
emptychain = llist.create()
llist.add_to_front(chain, 5)
llist.add_to_back(chain, 7)
llist.add_to_back(chain, 12)
llist.add_to_back(chain, 3)
llist.add_to_back(chain, 6)
llist.add_to_back(chain, 2)
llist.add_to_back(chain, 11... | UTF-8 | Python | false | false | 1,000 | py | 120 | a6q1_testing.py | 98 | 0.698 | 0.687 | 0 | 42 | 22.809524 | 45 |
junecong/bond | 14,972,256,042,908 | 7e689e5c4af2eadd6cdc11ff008131a4e8d44f85 | 9af6e89143358a50b62445adf4716ff34fdb2bc8 | /pybond/build/lib/bond/bond.py | 7a942f7ea10cab83fb6c4e571987ab31ae9ad400 | [] | no_license | https://github.com/junecong/bond | 9eab194b922793698f9017f452039ebc405d8bc0 | c88030faa5ff4b75fa92f3a7558fa905a5c4661a | refs/heads/master | 2021-01-15T19:35:37.585392 | 2015-10-29T16:55:49 | 2015-10-29T16:56:35 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
Hello
"""
class Bond:
"""
Bond class
"""
pass
| UTF-8 | Python | false | false | 67 | py | 34 | bond.py | 8 | 0.402985 | 0.402985 | 0 | 9 | 6.444444 | 14 |
figueiredorodrigo/Exercicios-Guanabara | 6,665,789,268,833 | ff99c985b36208bc4c74d8a1c5231b2ebf0ea99d | 6eb097cccbc0e040eb940663f85ce7eacb2be95b | /Desafio004.py | 6f41c6ba91c936b05b412f85b49aaba4d2ac55db | [] | no_license | https://github.com/figueiredorodrigo/Exercicios-Guanabara | c7cdb534b3f7c2db0e2bffc2b4376af035213b3a | 621000882ab3aa080415bb04336fd1713ab85b5d | refs/heads/main | 2023-06-02T07:10:22.555624 | 2021-06-15T16:33:26 | 2021-06-15T16:33:26 | 376,381,603 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | n1 = int(input('Digite um número: '))
pt = 1
ant = n1 - pt
suc = n1 + pt
print(f'O número é: {n1}, o seu antecessor é: {ant} e o seu sucessor é: {suc}') | UTF-8 | Python | false | false | 161 | py | 68 | Desafio004.py | 67 | 0.589744 | 0.557692 | 0 | 5 | 29.6 | 79 |
CristianWulfing/PySCHC | 7,705,171,370,497 | ed6c82436b92ade94f54fe592723177f8d808bbe | 4ec675a77327d98b93c1c1c1be00ca99d8afdcaf | /fragmentation_layer/tests/test_base/test_bitmap.py | ac8305c4d182c6d8a3cbe4ab7d2f7fe98ae807dd | [
"LicenseRef-scancode-ietf-trust",
"BSD-2-Clause",
"MIT"
] | permissive | https://github.com/CristianWulfing/PySCHC | 7d4cf02b155cc4b92711a52faf893ed99b92852e | 2b1d9ed7d7c9857cbb362bdee5c77f7234838ddd | refs/heads/master | 2023-07-09T07:22:57.665826 | 2021-07-02T04:25:13 | 2021-07-02T04:25:13 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """ test_bitmap: Unit test for Bitmap class """
from unittest import TestCase, main
from schc_base import Bitmap
from schc_protocols import LoRaWAN
class TestBitmap(TestCase):
def test_constructor(self):
bitmap = Bitmap(LoRaWAN(rule_id=LoRaWAN.ACK_ON_ERROR))
self.assertEqual([False] *... | UTF-8 | Python | false | false | 3,859 | py | 79 | test_bitmap.py | 73 | 0.608448 | 0.600415 | 0 | 77 | 48.116883 | 125 |
kokkondaspandana/sample_project | 4,131,758,581,242 | 24d1912fbe4894ade24c48eac552c24afe98f76b | 99567393ed78b97dc14f29e947b8a2d92495a1a6 | /Hackerrank/collections/orded_dic.py | 2bddc3656301cb6089ea1fab2d3a6fe3b41ab12e | [] | no_license | https://github.com/kokkondaspandana/sample_project | 9b926bc99db89d4aa09478d01752292a0a19fba5 | 0ad29a7971ff03c2a7e715c0516108731648b6bf | refs/heads/master | 2021-01-22T17:58:14.773114 | 2017-03-24T13:04:50 | 2017-03-24T13:04:50 | 85,049,019 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from collections import OrderedDict
d = OrderedDict()
for i in range(int(raw_input())):
item, space, quantity = raw_input().rpartition(' ')
d[item] = d.get(item, 0) + int(quantity)
for item, quantity in d.items():
print item, quantity
Sample Input
9
BANANA FRIES 12
POTATO CHIPS 30
APPLE JUICE 10
CANDY 5
... | UTF-8 | Python | false | false | 447 | py | 50 | orded_dic.py | 50 | 0.720358 | 0.666667 | 0 | 27 | 15.518519 | 55 |
anuragkumarbioinfo/MaeParser | 3,925,600,114,562 | 8323de8e1e3089eb7047903ae20edcda003bd276 | ba4ace278e839500fc7a5abbb57b9fe96d49391c | /dev3.py | e9b0cab2b244ab89dce3f6820b17079bcac295e8 | [] | no_license | https://github.com/anuragkumarbioinfo/MaeParser | 4027457a0d855d3118859ec9905f9f1c670cd9c0 | e2a8843217eba0aca6dbd25c0da7d372a669efb7 | refs/heads/master | 2020-03-22T08:45:21.751163 | 2018-07-05T03:06:25 | 2018-07-05T03:06:25 | 139,788,577 | 0 | 0 | null | true | 2018-07-05T03:07:51 | 2018-07-05T03:07:51 | 2018-07-05T03:06:27 | 2018-07-05T03:06:25 | 0 | 0 | 0 | 0 | null | false | null | import sys
mae=sys.argv[1]
atom=sys.argv[2]
from StringIO import StringIO
import csv
class MAEPARSER:
def __init__(self, mae):
self.mae = mae
self.read = ['atom_index','i_m_mmod_type', 'r_m_x_coord', 'r_m_y_coord', 'r_m_z_coord', 'i_m_residue_number', 's_m_mmod_res', 's_m_chain_name', 'i_m_colo... | UTF-8 | Python | false | false | 5,337 | py | 1 | dev3.py | 1 | 0.465805 | 0.441259 | 0 | 154 | 33.649351 | 192 |
intelivix/pyne-workshop-scraping-web | 2,078,764,189,936 | d15064bee9f2c42818f92ccddef1f007740bb25a | e21c2049e8a0d1ed34eb0850be4dd5d50759b15e | /nordestao/apps/campeonatos/admin.py | 55d5b05f74a006347d2bec3ea4bc229cc6406196 | [
"MIT"
] | permissive | https://github.com/intelivix/pyne-workshop-scraping-web | 26a8f399307a746fda82ed3494d7a6720b950176 | c0696b669934eef2dbda81da3b7c058810041fa5 | refs/heads/master | 2020-04-28T12:26:11.113112 | 2019-05-10T23:18:28 | 2019-05-10T23:18:28 | 175,276,006 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.contrib import admin
from campeonatos.models import Team
from campeonatos.models import Championship
from campeonatos.models import Game
from campeonatos.models import Player
from campeonatos.models import Event
@admin.register(Team)
class TeamAdmin(admin.ModelAdmin):
pass
@admin.register(Championsh... | UTF-8 | Python | false | false | 586 | py | 39 | admin.py | 14 | 0.795222 | 0.795222 | 0 | 31 | 17.903226 | 43 |
chaeonee/Programmers | 137,438,960,351 | 570e271be05d9f629d1115750d222812cdc38722 | b204cddc90c19ad8d4587581b4d7ec0b0fed0f45 | /level4/[카카오인턴]동굴탐험.py | d556c233c9e8c1057f306dd6182fb33053fe7eff | [] | no_license | https://github.com/chaeonee/Programmers | db741c7c17b933ff2a42521d5bc1077532375021 | f582ca16ec351f1f4678847949cb66e7544b9162 | refs/heads/main | 2023-04-20T13:50:46.722283 | 2021-05-06T09:44:16 | 2021-05-06T09:44:16 | 348,239,956 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from collections import deque
def solution(n, path_list, order_list):
path = {}
for s, e in path_list:
if s not in path.keys():
path[s] = [e]
else:
path[s].append(e)
if e not in path.keys():
path[e] = [s]
else:
path[e].app... | UTF-8 | Python | false | false | 1,043 | py | 184 | [카카오인턴]동굴탐험.py | 184 | 0.41419 | 0.411314 | 0 | 46 | 21.673913 | 60 |
bweems23/airqo-monitoring | 3,959,959,882,342 | dfaeaa526aaa10b0e6f8a43db0b948075e2118f7 | a763161a33def4a2024182da6361416338f64610 | /airqo_monitor/external/thingspeak.py | 67eb92adb0310d41ee0d85a83350edf0bc85c4d1 | [] | no_license | https://github.com/bweems23/airqo-monitoring | cdab9ab9c498ef70e805b5880ecc402c7eedc8f0 | e18ab3a96cfb201174aba600434f21d5071e2504 | refs/heads/master | 2022-12-12T21:10:31.241135 | 2019-02-05T01:45:50 | 2019-02-05T01:45:50 | 154,288,408 | 0 | 1 | null | false | 2021-06-10T20:56:00 | 2018-10-23T08:09:36 | 2019-02-05T01:45:53 | 2021-06-10T20:55:58 | 279 | 0 | 1 | 4 | Python | false | false | import json, requests
import os
from collections import defaultdict
from datetime import datetime, timedelta
from werkzeug.contrib.cache import SimpleCache
from airqo_monitor.constants import (
AIR_QUALITY_MONITOR_KEYWORD,
API_KEY_CONFIG_VAR_NAME,
DEFAULT_THINGSPEAK_FEEDS_INTERVAL_DAYS,
INACTIVE_MONIT... | UTF-8 | Python | true | false | 4,668 | py | 47 | thingspeak.py | 37 | 0.664953 | 0.660668 | 0 | 142 | 31.873239 | 119 |
silvarogerioeduardo/PIM | 17,695,265,281,876 | 9c02a7720d601373e6ea703ebec29c2c5a794a93 | 74d7f58ff079daa7cc069afa0ae90b9b577cd9ce | /Python/RGB_grayscale.py | 0ed8e55d21ebbe91212c248ed8820f4f2565068c | [] | no_license | https://github.com/silvarogerioeduardo/PIM | c9b04dde3bcd8bdf375552d8113099ee201af2f4 | 4a63f80cf84e629de17823cea4cf354fd0f30a1c | refs/heads/master | 2021-01-01T20:44:10.031642 | 2017-10-31T02:02:04 | 2017-10-31T02:02:04 | 98,922,340 | 3 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | from PIL import Image
path = "Imagens/"
img = Image.open(path+'nature.jpg').convert('L')
img.save(path+'nature-PB.jpg') | UTF-8 | Python | false | false | 119 | py | 24 | RGB_grayscale.py | 24 | 0.705882 | 0.705882 | 0 | 4 | 29 | 48 |
TissueMAPS/gc3pie | 15,582,141,368,358 | 1fdf1c79f9569ed1a4dd371ef4835f76b1a000f2 | 7de47aee3c33562dbc2154bd71b7ca37ea68ffd0 | /gc3apps/lacal.epfl.ch/gcrypto.py | 849719327d59da8617cd2489c744dff1ebad3ac8 | [] | no_license | https://github.com/TissueMAPS/gc3pie | c20af8080076a4200856ccd43281353cfd612b34 | 8d2bc69aa8f2b2dd8e4dc0b306cf484551a20caf | refs/heads/master | 2021-01-17T09:04:03.118013 | 2017-04-04T17:35:14 | 2017-04-04T17:35:14 | 59,831,862 | 1 | 2 | null | true | 2016-05-27T12:09:50 | 2016-05-27T12:09:50 | 2016-04-30T23:23:14 | 2016-05-27T11:20:35 | 161,424 | 0 | 0 | 0 | null | null | null | #! /usr/bin/env python
#
# gcrypto.py -- Front-end script for submitting multiple Crypto jobs to SMSCG.
"""
Front-end script for submitting multiple ``gnfs-cmd`` jobs to SMSCG.
It uses the generic `gc3libs.cmdline.SessionBasedScript` framework.
See the output of ``gcrypto --help`` for program usage instructions.
"""... | UTF-8 | Python | false | false | 12,748 | py | 274 | gcrypto.py | 242 | 0.62802 | 0.614214 | 0 | 328 | 37.865854 | 157 |
ashutoshvt/autogen | 4,982,162,071,799 | dc6b61c126c97730efa443de02c69ef33c6ae2f8 | 3e5f47d87d4baa4eaeec588abbcb35f3db5e9761 | /backup/special_conditions.py | 59abfa128e63c275d46ed1a32eab53f7eb2c9c80 | [] | no_license | https://github.com/ashutoshvt/autogen | 187f8fe416344c9dcfc6bcb214153129ee4b4bf2 | 47ff3010ead822e207f61b28382d72d5b3149808 | refs/heads/master | 2023-03-19T16:39:55.188003 | 2020-05-28T20:59:52 | 2020-05-28T20:59:52 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def startequiv_cond(list_terms):
for term in list_terms:
print term.map_org
d1=0
t1=0
d2=0
t2=0
#check if there are equivalent operators
for op in term.large_op_list:
if op.name[0]=='T' and op.name[1]=='1':
t1+=1
if o... | UTF-8 | Python | false | false | 4,738 | py | 58 | special_conditions.py | 46 | 0.454411 | 0.436682 | 0 | 116 | 39.844828 | 94 |
pphowakande/bakround-applicant | 13,855,564,548,097 | 83815b9ad628da42f19616bd88c9cacf26af7663 | 964d79bf9b2ab5b5389514f8cd730f1fefe1ffc8 | /bakround_applicant/forms.py | 8a2b539f4eff0ac4630241f19e50f4c2ad495c45 | [] | no_license | https://github.com/pphowakande/bakround-applicant | d216368231d3a998ba12a3c4210d5508e3eb9beb | 6cf5081fe4fd7b4ee7a9b458043ad2513a90560e | refs/heads/master | 2022-01-18T23:03:37.240329 | 2020-02-13T18:24:05 | 2020-02-13T18:24:05 | 240,319,316 | 0 | 0 | null | false | 2022-01-05T08:14:38 | 2020-02-13T17:23:57 | 2020-02-13T18:25:02 | 2022-01-05T08:14:35 | 58,233 | 0 | 0 | 22 | JavaScript | false | false | __author__ = "tplick"
__date__ = "December 22, 2016"
from collections import OrderedDict, defaultdict
from django.forms import Form, FileField, ValidationError, ModelChoiceField, CharField, FileField
from django.forms.fields import ChoiceField
from django.db.models import Q
from django.template.defaultfilters import ... | UTF-8 | Python | false | false | 7,143 | py | 422 | forms.py | 261 | 0.625087 | 0.621448 | 0 | 215 | 32.223256 | 169 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.