repo_name stringlengths 5 92 | path stringlengths 4 232 | copies stringclasses 19
values | size stringlengths 4 7 | content stringlengths 721 1.04M | license stringclasses 15
values | hash int64 -9,223,277,421,539,062,000 9,223,102,107B | line_mean float64 6.51 99.9 | line_max int64 15 997 | alpha_frac float64 0.25 0.97 | autogenerated bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|
google-research/language | language/conpono/evals/discriminative_eval.py | 1 | 11487 | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | apache-2.0 | 4,117,359,180,001,501,700 | 31.176471 | 80 | 0.65387 | false |
mattsmart/biomodels | oncogenesis_dynamics/firstpassage.py | 1 | 15435 | import matplotlib.pyplot as plt
import numpy as np
import time
from os import sep
from multiprocessing import Pool, cpu_count
from constants import OUTPUT_DIR, PARAMS_ID, PARAMS_ID_INV, COLOURS_DARK_BLUE
from data_io import read_varying_mean_sd_fpt_and_params, collect_fpt_mean_stats_and_params, read_fpt_and_params,\
... | mit | -5,525,200,517,402,506,000 | 43.226361 | 156 | 0.626239 | false |
its-lab/MoniTutor-Tunnel | start_resultwriter.py | 1 | 2246 | import argparse
import logging
import signal
import time
from server.icinga2_resultwriter import IcingaResultWriter as ResultWriter
import sys
import os
from utils import daemonize
from utils import configure_logging
from utils import get_logger
parser = argparse.ArgumentParser(description="MoniTunnel server")
parser.... | gpl-3.0 | -5,419,072,840,770,085,000 | 39.836364 | 146 | 0.68878 | false |
RobinQuetin/CAIRIS-web | cairis/cairis/RiskScatterDialog.py | 1 | 1238 | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may... | apache-2.0 | -888,632,418,936,693,900 | 41.689655 | 151 | 0.756058 | false |
datacommonsorg/website | server/routes/api/browser.py | 1 | 6125 | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | apache-2.0 | 7,515,950,195,523,418,000 | 36.127273 | 81 | 0.655184 | false |
simgunz/anki | pylib/anki/importing/anki2.py | 1 | 17394 | # Copyright: Ankitects Pty Ltd and contributors
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
import os
import unicodedata
from typing import Any, Dict, List, Optional, Tuple
from anki.collection import Collection
from anki.consts import *
from anki.decks import DeckManager
from anki.... | agpl-3.0 | 5,463,884,255,709,971,000 | 35.851695 | 88 | 0.504772 | false |
kurli/blink-crosswalk | Tools/Scripts/webkitpy/layout_tests/port/mac.py | 1 | 4978 | # Copyright (C) 2010 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the ... | bsd-3-clause | 7,432,131,316,079,868,000 | 40.831933 | 135 | 0.688027 | false |
OnroerendErfgoed/atramhasis | atramhasis/scripts/initializedb.py | 1 | 3979 | import os
import sys
from pyramid.paster import get_appsettings
from pyramid.paster import setup_logging
from pyramid.scripts.common import parse_vars
from skosprovider_sqlalchemy.models import ConceptScheme
from skosprovider_sqlalchemy.models import Label
from skosprovider_sqlalchemy.utils import import_provider
from... | gpl-3.0 | 8,104,558,423,592,800,000 | 28.474074 | 74 | 0.547122 | false |
conejoninja/xbmc-seriesly | servers/ovfile.py | 1 | 3968 | # -*- coding: iso-8859-1 -*-
#------------------------------------------------------------
# seriesly - XBMC Plugin
# Conector para ovfile
# http://blog.tvalacarta.info/plugin-xbmc/seriesly/
#------------------------------------------------------------
import urlparse,urllib2,urllib,re
import os
from core import scra... | gpl-3.0 | 6,179,388,091,801,861,000 | 31.268293 | 91 | 0.579889 | false |
setsulla/owanimo | script/battle_20BP.py | 1 | 1260 | import os
import sys
import time
from owanimo.app.error import ERROR as e
from owanimo.script import allegory_normal
from owanimo.util import define
from owanimo.util.log import LOG as L
class Allegory(allegory_normal.Allegory):
def __init__(self, runner, profile, player):
allegory_normal.Allegory.__init_... | mit | 9,205,991,610,774,472,000 | 29 | 81 | 0.600794 | false |
nesl/mercury | Services/Elevation/ElevationService.py | 1 | 9994 |
# --- IMPORTS ---
import simplejson
import numpy as np
import os
import sys
import traceback
import time
try:
import urllib.parse as urllibParse
except ImportError:
import urllib as urllibParse
try:
import urllib.request as urllibRequest
except ImportError:
import urllib as urllibRequest
# Before using th... | gpl-2.0 | -7,728,116,637,641,564,000 | 36.856061 | 138 | 0.641585 | false |
rjschwei/azure-sdk-for-python | azure-mgmt-compute/azure/mgmt/compute/models/virtual_machine_scale_set_vm.py | 1 | 5933 | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | mit | -1,395,306,024,699,100,400 | 45.351563 | 207 | 0.64116 | false |
topix-hackademy/contact-tools | contacts/urls.py | 1 | 1408 | from django.conf.urls import url
from rest_framework.urlpatterns import format_suffix_patterns
from . import views_company, view_contact, view_role, view_company_type
urlpatterns = [
url(r'^company-type/$', view_company_type.all_company_types),
url(r'^company-type/(?P<id>[0-9]+)/$', view_company_type.single_c... | mit | -4,642,303,236,915,017,000 | 43 | 118 | 0.645597 | false |
nansencenter/DAPPER | dapper/mods/Lorenz63/sakov2012.py | 1 | 1726 | """Reproduce results from Table 1 `bib.sakov2012iterative`."""
import numpy as np
import dapper.mods as modelling
from dapper.mods.Lorenz63 import LPs, Tplot, dstep_dx, step, x0
t = modelling.Chronology(0.01, dkObs=25, KObs=1000, Tplot=Tplot, BurnIn=4*Tplot)
Nx = len(x0)
Dyn = {
'M': Nx,
'model': step,
... | mit | 7,837,536,931,039,850,000 | 34.958333 | 80 | 0.473928 | false |
OpenNFT/OpenNFT | opennft/config.py | 1 | 3927 | # -*- coding: utf-8 -*-
"""
__________________________________________________________________________
Copyright (C) 2016-2021 OpenNFT.org
"""
import os
import pyqtgraph as pg
LOG_LEVEL = 'DEBUG'
ROOT_PATH = os.path.abspath(os.path.dirname(__file__))
UI_PATH = os.path.join(ROOT_PATH, 'ui')
PLUGIN_PATH = os.path.... | gpl-3.0 | 4,657,368,545,170,993,000 | 25.533784 | 81 | 0.644512 | false |
soylentdeen/Graffity | src/Vibrations/VibrationExplorer.py | 1 | 5531 | import sys
sys.path.append('../')
import numpy
import Graffity
import CIAO_DatabaseTools
import astropy.time as aptime
from matplotlib import pyplot
import colorsys
def getFreqs():
while True:
retval = []
enteredText = raw_input("Enter a comma separated list of frequencies: ")
try:
... | mit | -2,884,065,082,758,088,000 | 32.72561 | 111 | 0.578557 | false |
rbreitenmoser/snapcraft | snapcraft/plugins/catkin.py | 1 | 19520 | # -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
#
# Copyright © 2015 Canonical Ltd
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3 as
# published by the Free Software Foundation.
#
# This program is distributed in the hop... | gpl-3.0 | -2,229,454,867,091,539,000 | 39.412008 | 79 | 0.587223 | false |
kgblll/libresoft-gymkhana | social/layers/InternalLayer.py | 2 | 7302 | #!/usr/bin/env python
# Copyright (C) 2009-2010 GSyC/LibreSoft, Universidad Rey Juan Carlos
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your... | gpl-2.0 | -6,436,497,854,317,555,000 | 28.808163 | 132 | 0.667351 | false |
BayanGroup/sentry | tests/sentry/api/endpoints/test_team_details.py | 1 | 3125 | from __future__ import absolute_import
from django.core.urlresolvers import reverse
from mock import patch
from sentry.models import (
OrganizationMemberType, Team, TeamStatus
)
from sentry.testutils import APITestCase
class TeamDetailsTest(APITestCase):
def test_simple(self):
team = self.team # fo... | bsd-3-clause | 692,691,084,294,545,800 | 29.637255 | 76 | 0.60032 | false |
ntt-sic/heat | heat/tests/test_clients.py | 1 | 2473 | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# 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... | apache-2.0 | -1,109,119,839,326,850,200 | 40.915254 | 78 | 0.66761 | false |
irfancharania/plugin.video.paktvforum | resources/lib/sites/desironak.py | 1 | 4266 | from resources.lib.abc_base import BaseForum
from BeautifulSoup import BeautifulSoup
import resources.lib.util as util
import HTMLParser
import resources.lib.structure as s
import resources.lib.hosts as hosts
class DesiRonakApi(BaseForum):
short_name = 'desironak'
long_name = 'Desi Ronak Forum'
local_thum... | mit | 3,961,953,202,654,678,000 | 34.256198 | 79 | 0.537271 | false |
liosha2007/temporary-groupdocs-python-sdk | examples/api-samples/inc_samples/sample11.py | 1 | 5359 | ### This sample will show how programmatically create and post an annotation into document. How to delete the annotation
# Import of classes from libraries
from pyramid.renderers import render_to_response
from groupdocs.ApiClient import ApiClient
from groupdocs.AntApi import AntApi
from groupdocs.GroupDocsRequestSign... | apache-2.0 | 6,570,965,989,482,067,000 | 37.561151 | 183 | 0.564284 | false |
Krozark/Kraggne | Kraggne/forms.py | 1 | 4491 | from django import forms
from django.forms import ValidationError
from django.core.validators import URLValidator
from django.template.defaultfilters import slugify
from django.utils.translation import ugettext_lazy as _
import re
from Kraggne.utils import MakePattern, clean_url
from Kraggne.models import MenuItem, F... | bsd-2-clause | -4,365,600,810,974,340,000 | 30.851064 | 113 | 0.513471 | false |
D4wN/brickv | src/brickv/plugin_system/plugins/red/program_page_files.py | 1 | 6157 | # -*- coding: utf-8 -*-
"""
RED Plugin
Copyright (C) 2014-2015 Matthias Bolte <matthias@tinkerforge.com>
program_page_files.py: Program Wizard Files Page
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundati... | gpl-2.0 | 6,638,070,216,197,529,000 | 33.205556 | 110 | 0.655189 | false |
agx/git-buildpackage | gbp/rpm/policy.py | 1 | 8077 | # vim: set fileencoding=utf-8 :
#
# (C) 2012 Intel Corporation <markus.lehtonen@linux.intel.com>
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# ... | gpl-2.0 | 2,347,570,612,950,948,400 | 39.37 | 101 | 0.544216 | false |
gkonstantyno/construct | tests/test_lib.py | 1 | 1840 | import unittest
from construct.lib.binary import int_to_bin, bin_to_int, swap_bytes, encode_bin, decode_bin
from construct.lib.expr import Path
class TestBinary(unittest.TestCase):
def test_int_to_bin(self):
self.assertEqual(int_to_bin(19, 5), b"\x01\x00\x00\x01\x01")
self.assertEqual(int_to_bin(... | mit | 7,427,508,359,325,239,000 | 36.55102 | 91 | 0.620652 | false |
bootchk/pensool | source/gui/manager/drop.py | 1 | 3475 | '''
Coordinates drag and drop, which crosses controls.
!!! Note that all event coords are in the device coord system.
TODO not a class, just a singleton module
'''
'''
Copyright 2010, 2011 Lloyd Konneker
This file is part of Pensool.
Pensool is free software: you can redistribute it and/or modify
it under the terms... | gpl-3.0 | -2,821,194,204,128,033,300 | 25.730769 | 81 | 0.675396 | false |
jeremiahyan/odoo | odoo/addons/base/models/res_partner.py | 1 | 50395 | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import base64
import collections
import datetime
import hashlib
import pytz
import threading
import re
import requests
from lxml import etree
from random import randint
from werkzeug import urls
from odoo import api, f... | gpl-3.0 | 7,864,971,327,338,684,000 | 47.13085 | 221 | 0.600857 | false |
jquacinella/IS607_Project | PyDTA/StataTools.py | 2 | 6749 | from struct import unpack, calcsize
from StataTypes import MissingValue, Variable
class Reader(object):
""".dta file reader"""
_header = {}
_data_location = 0
_col_sizes = ()
_has_string_data = False
_missing_values = False
TYPE_MAP = range(251)+list('bhlfd')
MISSING_VALUES = { 'b': (... | gpl-2.0 | 2,711,416,267,411,400,700 | 38.467836 | 158 | 0.56275 | false |
EducationalTestingService/discourse-parsing | tests/test_discourseparsing.py | 1 | 3613 | import json
from pathlib import Path
from nltk.tree import ParentedTree
from nose import SkipTest
from nose.tools import eq_
from rstfinder.discourse_parsing import Parser
from rstfinder.extract_actions_from_trees import extract_parse_actions
MY_DIR = Path(__file__).parent
def test_extract_parse_actions():
"""C... | mit | 8,537,003,433,347,433,000 | 39.144444 | 83 | 0.56961 | false |
abramhindle/UnnaturalCodeFork | python/testdata/launchpad/lib/lp/services/longpoll/adapters/tests/test_storm.py | 1 | 5979 | # Copyright 2011 Canonical Ltd. This software is licensed under the
# GNU Affero General Public License version 3 (see the file LICENSE).
"""Long-poll event adapter tests."""
__metaclass__ = type
from lazr.lifecycle.event import (
ObjectCreatedEvent,
ObjectDeletedEvent,
ObjectModifiedEvent,
)
from s... | agpl-3.0 | -9,022,551,272,684,099,000 | 34.170588 | 77 | 0.627697 | false |
google/eclipse2017 | scripts/update_user_role.py | 1 | 2497 | #
# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | apache-2.0 | -4,154,341,491,981,669,400 | 34.169014 | 99 | 0.603925 | false |
eoinmurray/icarus | Experiments/power_dep.py | 1 | 1341 |
import os,sys
parentdir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0,parentdir)
import numpy as np
import matplotlib.pyplot as plt
from constants import Constants
import Icarus.Experiment as Experiment
if __name__ == "__main__":
"""
Runs power dependance.
"""
constants = ... | mit | -3,434,278,483,010,190,000 | 26.387755 | 100 | 0.682327 | false |
masterkeywikz/seq2graph | src/theanets-0.6.1/theanets/recurrent.py | 1 | 21139 | # -*- coding: utf-8 -*-
'''This module contains recurrent network structures.'''
import collections
import numpy as np
import re
import sys
import theano.tensor as TT
import theano
import pdb
from . import feedforward
def batches(samples, labels=None, steps=100, batch_size=64, rng=None):
'''Return a callable t... | mit | -8,494,256,225,794,350,000 | 38.364991 | 146 | 0.587492 | false |
bremoran/repo_reorg | repo_reorg.py | 1 | 14503 | #!/usr/bin/python
# PackageLicenseDeclared: Apache-2.0
# Copyright 2015 ARM Holdings PLC
import argparse as ap
import sys
import os.path
import subprocess
import shutil
import stat
import re
#Inputs:
#Source remote
#Destination remote
#Repo name
#List of paths in form: source-path:destination-path
moduleJsonTemplate =... | apache-2.0 | -68,900,385,916,421,530 | 35.531486 | 160 | 0.596015 | false |
plone/plone.server | src/plone.server/plone/server/exceptions.py | 1 | 1405 |
class NoPermissionToAdd(Exception):
def __init__(self, container, content_type):
self.container = container
self.content_type = content_type
def __repr__(self):
return "Not permission to add {content_type} on {path}".format(
content_type=self.content_type,
path... | bsd-2-clause | 1,564,123,247,242,981,400 | 26.038462 | 75 | 0.629893 | false |
interrogator/topic-grammar | bus.py | 1 | 18839 | #!/usr/bin/python
def nextbus(where = 'guess', nbus = 5, walking_time = 3):
"""
tells you when the next bus is from home or to uni
where: 'h'/'u'/'guess': home, uni, or try to guess based on wifi connection name
walking_time: don't show buses less than n mins from now
nbus: show next n buses
... | mit | 1,010,715,270,895,609,900 | 38.494759 | 137 | 0.373374 | false |
ccxt/ccxt | python/ccxt/async_support/coinfalcon.py | 1 | 15969 | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.async_support.base.exchange import Exchange
import math
from ccxt.base.errors import ExchangeError
from ccxt.base.errors import A... | mit | 6,839,061,574,668,875,000 | 37.203349 | 126 | 0.49953 | false |
openai/baselines | baselines/results_plotter.py | 1 | 3455 | import numpy as np
import matplotlib
matplotlib.use('TkAgg') # Can change to 'Agg' for non-interactive mode
import matplotlib.pyplot as plt
plt.rcParams['svg.fonttype'] = 'none'
from baselines.common import plot_util
X_TIMESTEPS = 'timesteps'
X_EPISODES = 'episodes'
X_WALLTIME = 'walltime_hrs'
Y_REWARD = 'reward'
Y_... | mit | -5,790,897,076,308,182,000 | 35.755319 | 144 | 0.649204 | false |
cpsaltis/pythogram-core | src/gramcore/features/descriptors.py | 1 | 3013 | """Feature descriptors usefull in bag of features approaches.
These are applied to numpy.arrays representing images.
"""
import numpy
from skimage import feature
def hog(parameters):
"""Extracts histograms of oriented gradients.
It wraps `skimage.feature.hog`. The `visualise` and `normalise` options
ar... | mit | 1,468,025,092,347,783,700 | 38.12987 | 78 | 0.659476 | false |
aaugustin/myks-gallery | gallery/test_storages.py | 1 | 2603 | import io
from django.core.exceptions import ImproperlyConfigured
from django.core.files.storage import FileSystemStorage, Storage
from django.test import TestCase
from django.test.utils import override_settings
from .storages import get_storage
class MemoryStorage(Storage):
"""
Limited implementation of an... | bsd-3-clause | 5,380,063,921,916,714,000 | 27.293478 | 81 | 0.638878 | false |
dpressel/baseline | api-examples/transformer_seq2seq_response.py | 1 | 6773 | import numpy as np
import torch
import logging
from eight_mile.utils import listify
import os
import glob
from argparse import ArgumentParser
import baseline
from transformer_utils import TiedEmbeddingsSeq2SeqModel, find_latest_checkpoint
from eight_mile.pytorch.serialize import load_transformer_seq2seq_npz
from eight_... | apache-2.0 | -3,984,396,563,534,891,500 | 45.390411 | 138 | 0.636498 | false |
CaHudson94/data-structures | src/working/test_radix.py | 1 | 1181 | """Testing for inesrt sort."""
from radix_sort import radix
import pytest
from random import randint
TEST_PARAMS = [
([i for i in range(50)]),
([randint(1, 500) for i in range(50)]),
([5, 9, 1, 2, 6])
]
PARAMS_TABLE = [
([234, 23, 52, 66], [23, 52, 66, 234]),
([4, 3, 2, 1], [1, 2, 3, 4]),
([... | mit | -2,423,498,731,985,828,400 | 26.465116 | 76 | 0.611346 | false |
ronie/script.cu.lrclyrics | resources/lib/scrapertest.py | 1 | 7586 | #-*- coding: UTF-8 -*-
import time
from utilities import *
from culrcscrapers.alsong import lyricsScraper as lyricsScraper_alsong
from culrcscrapers.azlyrics import lyricsScraper as lyricsScraper_azlyrics
from culrcscrapers.baidu import lyricsScraper as lyricsScraper_baidu
from culrcscrapers.darklyrics import lyricsScr... | gpl-2.0 | 4,329,862,956,119,163,000 | 31.004219 | 112 | 0.577983 | false |
emgirardin/compassion-modules | sbc_compassion/tests/test_tools.py | 1 | 5172 | # -*- encoding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2015 Compassion CH (http://www.compassion.ch)
# Releasing children from poverty in Jesus' name
# @author: Emanuel Cino <ecino@compassion.ch>
#
# The licence is in the file __openerp__.p... | agpl-3.0 | 6,621,372,930,373,092,000 | 33.945946 | 79 | 0.593001 | false |
psiegl/seismic-rtm | tools/bench.py | 1 | 1887 | # Copyright 2017 - , Dr.-Ing. Patrick Siegl
# SPDX-License-Identifier: BSD-2-Clause
#!/usr/bin/python
import subprocess
import sys
import operator
import multiprocessing
import re
kernel = "seismic-rtm.elf"
def bench( kernel, iterations, variants ):
res = {}
g_cmd = "./%s --timesteps=4000 --width=2000 --height=... | bsd-2-clause | -7,103,263,442,894,822,000 | 25.957143 | 137 | 0.591415 | false |
iglocska/PyMISP | tests/test_offline.py | 1 | 11333 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import unittest
import requests_mock
import json
import os
import pymisp as pm
from pymisp import PyMISP
# from pymisp import NewEventError
from pymisp import MISPEvent
from pymisp import EncodeUpdate
from pymisp import EncodeFull
@requests_mock.Mocker()
class TestOffli... | bsd-2-clause | -8,545,548,315,642,192,000 | 49.368889 | 190 | 0.613606 | false |
sparbz/nba-stats | nba_stats/nba_stats/settings/base.py | 1 | 2016 | """
Django settings for nba_stats project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
from unipath import Path
import dj_database_url
PROJECT_DIR = Path(__fi... | mit | 3,593,085,295,024,866,000 | 23 | 98 | 0.724702 | false |
abhaystoic/barati | barati/customers/views_cluster/save_card_preferences.py | 1 | 3997 | from django.shortcuts import render
from django.template import RequestContext
from django.views.generic import View
from django.http import HttpResponse
from customers import models as m
import sys, json
from datetime import datetime,timedelta
class Save_Card_Preferences(View):
try:
def __init__(self):
... | apache-2.0 | 6,663,730,055,890,609,000 | 49.594937 | 112 | 0.590693 | false |
Burus/fats | fats/test/test_service.py | 1 | 1710 | # Copyright (c) 2006-2008 Alexander Burtsev
# See LICENSE for details
"""FATS service tests.
@author: U{Alexander Burtsev<mailto:eburus@gmail.com>}
$Id: test_service.py 24 2008-02-18 12:22:42Z burus $
"""
#from twisted.fats.errors import AGICommandFailure, UndefinedTimeFormat, \
# AGICommandTimeout, FailureOnOp... | mit | -3,783,386,168,755,750,400 | 27.032787 | 74 | 0.71345 | false |
cvandeplas/plaso | plaso/formatters/xchatlog.py | 1 | 1057 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2014 The Plaso Project Authors.
# Please see the AUTHORS file for details on individual authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the L... | apache-2.0 | -8,322,076,643,865,417,000 | 32.03125 | 74 | 0.735099 | false |
cacraig/grib-inventory | gribinventory/base.py | 1 | 9103 | from __future__ import absolute_import
import sys
if (sys.version_info > (3, 0)):
# Python 3 code in this block
import urllib.request as urllib2
else:
# Python 2 code in this block
import urllib2
import socket, threading, os
'''''
Handles downloading subsets of grib2 files.
With this class you can do a once ... | mit | -324,250,794,879,843,800 | 32.466912 | 125 | 0.660222 | false |
thecocce/crypto-un-locker | CryptoUnLocker.py | 2 | 10737 | #!/usr/bin/env python
import struct
import os
import argparse
import shutil
import sys
from collections import namedtuple
from datetime import datetime
import csv
import re
from Crypto.Cipher import AES
from Crypto.PublicKey import RSA
from Crypto.Cipher import PKCS1_v1_5
from Crypto.Hash import SHA
from Crypto.Util.... | mit | -2,201,770,648,502,426,400 | 35.151515 | 151 | 0.606501 | false |
google-research/dads | lib/py_uniform_replay_buffer.py | 1 | 8796 | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | apache-2.0 | 2,854,155,421,442,714,000 | 35.65 | 79 | 0.632106 | false |
BIGBALLON/cifar-10-cnn | 1_Lecun_Network/LeNet_dp_da_keras.py | 1 | 2768 | import keras
import numpy as np
from keras import optimizers
from keras.datasets import cifar10
from keras.models import Sequential
from keras.layers import Conv2D, Dense, Flatten, MaxPooling2D
from keras.callbacks import LearningRateScheduler, TensorBoard
from keras.preprocessing.image import ImageDataGenerator
batch... | mit | 3,954,853,176,698,592,000 | 34.948052 | 125 | 0.629697 | false |
dvitme/odoo-addons | account_journal_active/__openerp__.py | 1 | 1665 | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2015 ADHOC SA (http://www.adhoc.com.ar)
# All Rights Reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Pu... | agpl-3.0 | 4,938,042,566,009,594,000 | 36 | 78 | 0.582583 | false |
shoopio/shoop | shuup_tests/core/test_staff_only_behavior.py | 2 | 1384 | # -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2019, Shoop Commerce Ltd. All rights reserved.
#
# This source code is licensed under the OSL-3.0 license found in the
# LICENSE file in the root directory of this source tree.
import pytest
from shuup.core.models import StaffOnlyBehaviorComp... | agpl-3.0 | 402,841,234,374,912,600 | 34.487179 | 84 | 0.757225 | false |
jurcicek/extended-hidden-vector-state-parser | semantics-4/src/extractSmntcs.py | 1 | 5995 | #!//usr/bin/python
# -*- coding: UTF-8 -*-
import sys
import getopt
import os
from os.path import *
import glob
from xml.dom import minidom
import re
import struct
import codecs
from StringIO import StringIO
import toolkit
from lexMap import *
from observation import *
from semantics import *
######################... | gpl-2.0 | 7,174,789,359,113,882,000 | 29.431472 | 134 | 0.541618 | false |
averainy/averainy | catsup/catsup/cli.py | 1 | 6122 | import sys
import os
major = sys.version_info[0]
if major < 3:
reload(sys)
sys.setdefaultencoding('utf-8')
from catsup.options import g
from catsup.logger import logger, enable_pretty_logging
enable_pretty_logging()
import catsup
doc = """Catsup v%s
Usage:
catsup init [<path>]
catsup build [-s <fi... | gpl-2.0 | 3,809,753,535,467,919,400 | 25.387931 | 78 | 0.605684 | false |
xArm-Developer/xArm-Python-SDK | example/wrapper/common/6002-set_fense_mode.py | 1 | 1032 | #!/usr/bin/env python3
# Software License Agreement (BSD License)
#
# Copyright (c) 2019, UFACTORY, Inc.
# All rights reserved.
#
# Author: Vinman <vinman.wen@ufactory.cc> <vinman.cub@gmail.com>
"""
Example: Set reduced mode
"""
import os
import sys
import time
sys.path.append(os.path.join(os.path.dirname(__file__), ... | bsd-3-clause | 4,424,884,146,129,369,000 | 24.170732 | 79 | 0.659884 | false |
Dob3r/python_training | test/test_add_contact.py | 1 | 1462 | # -*- coding: utf-8 -*-
from model.contact import *
import re
import pytest
# фикстуры теста
def test_add_contact(app, db, json_contacts_personinfo, json_contacts_contactinfo, check_ui):
personinfo = json_contacts_personinfo
contactinfo = json_contacts_contactinfo
with pytest.a... | apache-2.0 | 1,430,926,938,501,349,000 | 54.730769 | 134 | 0.655625 | false |
ahtn/keyplus | host-software/keyplus_flasher.py | 1 | 55673 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2017 jem@seethis.link
# Licensed under the MIT license (http://opensource.org/licenses/MIT)
if 1:
# PyQt <-> PySide signal compatability
from PyQt5.QtCore import pyqtSlot, pyqtSignal
Signal = pyqtSignal
Slot = pyqtSlot
# TODO: narrow down... | mit | -2,441,344,759,572,484,000 | 35.650428 | 113 | 0.566425 | false |
jwheare/digest | digestfetch.py | 1 | 8721 | #!/usr/bin/env python
# encoding: utf-8
"""
digestfetch.py
Fetch bitesize content from the world of the web for use in a daily digest pocketmod
"""
import sitecustomize
# Builtin modules
from copy import copy
from operator import itemgetter
import re
import time, datetime
import urllib, urllib2, httplib
# 3rd party ... | bsd-3-clause | 129,340,220,176,838,940 | 35.333333 | 134 | 0.586076 | false |
nathandaddio/puzzle_app | puzzle_app/puzzle_app/tests/views/test_hitori_views.py | 1 | 2961 | import pytest
from pyramid.exceptions import HTTPNotFound
from puzzle_app.views.hitori import hitori_boards_get, hitori_board_get
from factories import (
HitoriGameBoardFactory,
HitoriGameBoardCellFactory
)
class TestHitoriGameBoardsGet:
@pytest.fixture
def board(self, db_session):
board ... | mit | -679,452,647,291,838,200 | 31.538462 | 112 | 0.572442 | false |
hamptus/mftpy | mftpy/mft.2.7/tools/extract.py | 1 | 2716 | """
This tool is used to extract MFT entries
"""
from mft.meta.boot import BootFile
# FIXME pass an argument to function so it knows if you are extracting from disk or partition
def extract_meta(partition=None):
"""
Extract the system meta files from a partition
"""
bootdata = open(partition, 'rb').... | gpl-3.0 | -3,401,636,057,831,053,300 | 28.532609 | 93 | 0.592415 | false |
iblis17/ultisnips | pythonx/UltiSnips/snippet_manager.py | 1 | 31801 | #!/usr/bin/env python
# encoding: utf-8
"""Contains the SnippetManager facade used by all Vim Functions."""
from collections import defaultdict
from functools import wraps
import os
import platform
import traceback
import sys
import vim
import re
from contextlib import contextmanager
from UltiSnips import _vim
from ... | gpl-3.0 | -1,496,026,489,278,379,300 | 37.876528 | 102 | 0.550612 | false |
squirrelo/qiita | qiita_db/support_files/patches/python_patches/36.py | 1 | 4367 | from random import SystemRandom
from string import ascii_letters, digits
from os.path import exists, join, basename
from tarfile import open as taropen
from qiita_db.sql_connection import TRN
from qiita_db.artifact import Artifact
from qiita_db.util import (insert_filepaths, convert_to_id, get_mountpoint,
... | bsd-3-clause | 80,426,027,892,343,820 | 37.646018 | 79 | 0.553927 | false |
jbrt/Array-XRay | arrays/vmax/vmax_filters.py | 1 | 8430 | #!/usr/bin/env python3
# coding: utf-8
"""
These objects are going to filter the input data and only keep the interesting
attributes. Convert of capacity units may be occur to stay more consistent
between arrays.
"""
import abc
from collections import OrderedDict
class VMAXFilter(object, metaclass=abc.ABCMeta):
... | lgpl-3.0 | 7,532,903,142,512,456,000 | 28.683099 | 84 | 0.514472 | false |
rodo/django-perf | foo/loader/management/commands/delete_all.py | 1 | 1510 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2013,2014 Rodolphe Quiédeville <rodolphe@quiedeville.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either ver... | gpl-3.0 | 7,131,998,719,166,199,000 | 31.804348 | 75 | 0.644135 | false |
Snesi/spindl | spindl_lib/charter.py | 1 | 14820 | #!/usr/bin/python
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
### BEGIN LICENSE
# Copyright (C) 2013 <Zane Swafford> <zane@zaneswafford.com>
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtai... | apache-2.0 | 3,887,523,004,389,163,500 | 36.616751 | 122 | 0.661673 | false |
Dexus/ubuntu-trusty-postfix | debian/tests/test-postfix.py | 1 | 21854 | #!/usr/bin/python
#
# test-postfix.py quality assurance test script for postfix
# Copyright (C) 2008-2012 Canonical Ltd.
# Author: Kees Cook <kees@ubuntu.com>
# Author: Marc Deslauriers <marc.deslauriers@canonical.com>
# Author: Jamie Strandboge <jamie@canonical.com>
#
# This program is free software:... | epl-1.0 | 822,943,960,984,813,200 | 39.848598 | 152 | 0.609911 | false |
alphageek-xyz/site | landing/models.py | 1 | 1448 | import re
from django.db import models
from django.utils.functional import cached_property
from landing.utils import markup_markdown
class ServiceManager(models.Manager):
def last_modified(self):
return self.latest('modified').modified
class Service(models.Model):
objects = ServiceManager()
class... | bsd-3-clause | 4,994,768,989,417,415,000 | 21.984127 | 62 | 0.561464 | false |
Brazelton-Lab/bio_utils | bio_utils/blast_tools/retrieve_query_sequences.py | 1 | 6139 | #! /usr/bin/env python3
"""Returns query sequence from BLAST hits below a specified E-Value
Usage:
retrieve_query_sequences.py --fastqq <FASTA or FASTQ file>
--b6 <B6 or M8 file> --e_value <max E-Value>
--output <output file> [--fastq]
Copyright:
... | gpl-3.0 | -6,015,530,829,959,466,000 | 37.85443 | 78 | 0.567356 | false |
Juanlu001/pfc | demo/plot_h.py | 1 | 6084 | #******************************************************************************
# *
# * ** * * * * *
# * * * * * * * * * *
... | gpl-3.0 | -2,502,239,996,282,733,000 | 40.671233 | 84 | 0.404832 | false |
mpdehaan/interfacer | lib/interfacer/base_module.py | 1 | 4701 | #
# Copyright (c) rPath, Inc.
#
# 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, copy, modify, merge, publish, distribute... | mit | -5,573,441,767,861,178,000 | 29.72549 | 79 | 0.610508 | false |
pf4d/dolfin-adjoint | dolfin_adjoint/functionassigner.py | 1 | 8559 | import backend
import utils
import adjglobals
import solving
import libadjoint
import adjlinalg
if hasattr(backend, 'FunctionAssigner'):
class FunctionAssigner(backend.FunctionAssigner):
def __init__(self, *args, **kwargs):
super(FunctionAssigner, self).__init__(*args, **kwargs)
#... | lgpl-3.0 | 4,858,557,293,485,351,000 | 44.047368 | 132 | 0.570043 | false |
adrpar/incubator-airflow | tests/core.py | 1 | 101537 | # -*- coding: utf-8 -*-
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
... | apache-2.0 | -3,166,444,331,708,234,000 | 39.260508 | 137 | 0.598137 | false |
pythonegrove/django-paypal-advanced | paypal_advanced/simple/satchmo_store/shop/urls.py | 1 | 2010 | from django.conf.urls import patterns, include
from django.views.generic.base import TemplateView
from product.urls import urlpatterns as productpatterns
from satchmo_store import shop
from satchmo_store.shop.views.sitemaps import sitemaps
from signals_ahoy.signals import collect_urls
urlpatterns = shop.get_satchmo_se... | gpl-2.0 | -1,171,201,966,016,347,000 | 45.744186 | 94 | 0.649254 | false |
ftomassetti/polito_information_systems_python | forms/example_2.py | 1 | 1451 | from flask import Flask,request
app = Flask("My app with forms")
app.debug = True
@app.route('/register')
def show_registration_form():
# VIEW
response = '<html>'
response += ' <h1>Registration form</h1>'
response += ' <form name="registration" action="submit_registration_form" method="post">'
response += ' ... | mit | -4,677,855,903,865,515,000 | 32 | 91 | 0.651275 | false |
adhoc-dev/odoo-support | database_tools/controllers/db.py | 1 | 3497 | # -*- coding: utf-8 -*-
##############################################################################
# For copyright and license notices, see __openerp__.py file in module root
# directory
##############################################################################
import openerp.http as http
import base64
from ope... | lgpl-3.0 | 1,212,645,063,182,023,400 | 38.292135 | 78 | 0.519302 | false |
orione7/Italorione | channels/italiafilm.py | 1 | 10226 | # -*- coding: iso-8859-1 -*-
# ------------------------------------------------------------
# streamondemand.- XBMC Plugin
# Canal para italiafilm
# http://blog.tvalacarta.info/plugin-xbmc/streamondemand.
# ------------------------------------------------------------
import re
import sys
import urlparse
from core impo... | gpl-3.0 | -563,026,776,734,839,230 | 36.043478 | 167 | 0.523181 | false |
joshbohde/xbmc-notify-mqtt | script.service.notify-mqtt/resources/lib/mosquitto.py | 1 | 80746 | # Copyright (c) 2012,2013 Roger Light <roger@atchoo.org>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this lis... | gpl-3.0 | -2,793,891,788,604,565,500 | 37.838865 | 177 | 0.576487 | false |
rowinggolfer/openmolar2 | src/lib_openmolar/admin/db_orm/admin_treatment_fills.py | 1 | 2596 |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
###############################################################################
## ##
## Copyright 2010-2012, Neil Wallace <neil@openmolar.com> ##
## ... | gpl-3.0 | -5,667,056,196,690,912,000 | 40.206349 | 79 | 0.485747 | false |
sparcs-kaist/otlplus | apps/timetable/models.py | 1 | 2296 | # -*- coding: utf-8
from django.db import models
from apps.subject.models import *
from apps.session.models import *
class Timetable(models.Model):
lectures = models.ManyToManyField(Lecture)
user = models.ForeignKey(UserProfile, related_name="timetables", on_delete=models.CASCADE, db_index=True)
year = mo... | mit | -2,339,086,303,903,504,400 | 35.290323 | 109 | 0.647111 | false |
mattzjack/zumazuma | ball.py | 1 | 3069 | import pygame, math
class Ball(pygame.sprite.Sprite):
SPEED = 50
@staticmethod
def load_images():
Ball.images = list()
for filename in ['red', 'blue', 'green', 'purple']:
img = pygame.image.load('./imgs/%s.png' % filename).convert_alpha()
w = h = 50
scal... | mit | 7,356,096,171,524,575,000 | 32.725275 | 109 | 0.521994 | false |
GuLinux/PySpectrum | object_properties_dialog.py | 1 | 4596 | from astroquery.simbad import Simbad
from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QMessageBox
from pyui.object_properties_dialog import Ui_ObjectPropertiesDialog
import re
from PyQt5.QtCore import Qt, QObject, pyqtSignal, QDateTime
from astropy.coordinates import SkyCoord
from astropy import units as u
from o... | gpl-3.0 | -3,974,008,705,083,228,000 | 51.83908 | 170 | 0.665144 | false |
awlange/brainsparks | src/calrissian/layers/octree/octree.py | 1 | 10430 | from .box import Box
import numpy as np
from numba import jit
class Octree(object):
"""
Octree implementation to be used in particle dipole networks
"""
def __init__(self, max_level=3, p=0, n_particle_min=20, mac=0.0, cut=1000.0):
self.max_level = max_level
self.p = p
self.n_... | mit | -6,466,002,918,379,131,000 | 32.322684 | 163 | 0.501055 | false |
SitiBanc/1061_NCTU_IOMDS | 1025/Homework 5/HW5_5.py | 1 | 5472 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Oct 26 21:05:37 2017
@author: sitibanc
"""
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
# =============================================================================
# Read CSV
# =============================================... | apache-2.0 | -2,130,665,955,972,406,000 | 46.831579 | 114 | 0.382923 | false |
chiara-paci/baskerville | baskervilleweb/classification/migrations/0001_initial.py | 1 | 9739 | # Generated by Django 3.0.2 on 2020-02-21 10:11
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('contenttypes', '0002_remove_content_type_name'),
]
operations = [
migrations.CreateMode... | gpl-3.0 | -3,961,106,978,185,213,400 | 46.740196 | 147 | 0.557039 | false |
mattseymour/django | tests/forms_tests/tests/test_forms.py | 1 | 169808 | import copy
import datetime
import json
import uuid
from django.core.exceptions import NON_FIELD_ERRORS
from django.core.files.uploadedfile import SimpleUploadedFile
from django.core.validators import MaxValueValidator, RegexValidator
from django.forms import (
BooleanField, CharField, CheckboxSelectMultiple, Choi... | bsd-3-clause | 5,698,543,628,900,907,000 | 45.664009 | 131 | 0.589664 | false |
verleihtool/verleihtool | rental/models.py | 1 | 4155 | import uuid
from datetime import datetime
from django.db import models
from django.core.exceptions import ValidationError
from django.contrib.auth.models import User
from django.utils.translation import ugettext_lazy as _
from depot.models import Depot, Item
class Rental(models.Model):
"""
A rental defines th... | agpl-3.0 | -2,842,070,960,775,333,000 | 37.119266 | 87 | 0.637545 | false |
franklingu/leetcode-solutions | questions/k-diff-pairs-in-an-array/Solution.py | 1 | 1244 | """
Given an array of integers nums and an integer k, return the number of unique k-diff pairs in the array.
A k-diff pair is an integer pair (nums[i], nums[j]), where the following are true:
0 <= i, j < nums.length
i != j
a <= b
b - a == k
Example 1:
Input: nums = [3,1,4,1,5], k = 2
Output: 2
Explanation: There ... | mit | 3,579,186,487,501,100,500 | 20.824561 | 104 | 0.550643 | false |
Cinntax/home-assistant | homeassistant/components/template/switch.py | 1 | 9058 | """Support for switches which integrates with other components."""
import logging
import voluptuous as vol
from homeassistant.core import callback
from homeassistant.components.switch import (
ENTITY_ID_FORMAT,
SwitchDevice,
PLATFORM_SCHEMA,
)
from homeassistant.const import (
ATTR_FRIENDLY_NAME,
... | apache-2.0 | 2,739,202,115,458,190,000 | 32.058394 | 86 | 0.565467 | false |
WillianPaiva/1flow | oneflow/core/tasks/reprocess.py | 1 | 4470 | # -*- coding: utf-8 -*-
u"""
Copyright 2013-2014 Olivier Cortès <oc@1flow.io>.
This file is part of the 1flow project.
1flow is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of
the License... | agpl-3.0 | -9,070,102,631,910,603,000 | 33.099237 | 79 | 0.650996 | false |
Linutux/Gourmet | gourmet/plugins/unit_converter/convertGui.py | 1 | 7209 | import gourmet.convert as convert
import gtk
from gourmet.gglobals import *
from gourmet.gdebug import *
from gourmet.gtk_extras.cb_extras import *
import gourmet.GourmetRecipeManager
from gettext import gettext as _
import os
try:
current_path = os.path.split(os.path.join(os.getcwd(),__file__))[0]
except:
cur... | gpl-2.0 | -7,973,357,861,095,710,000 | 38.179348 | 120 | 0.588292 | false |
tbonza/GatherNews | build/lib/gathernews/parse.py | 1 | 2192 | """ Handle parsing the RSS feed. """
from datetime import datetime
import logging
import re
import feedparser
from gathernews.template import ITEM
logger = logging.getLogger(__name__)
def get_source(fp: feedparser.FeedParserDict()) -> str:
try:
return fp['feed']['title_detail']['base']
except Exce... | mit | -8,883,725,729,761,146,000 | 23.355556 | 71 | 0.595347 | false |
rajashreer7/autotest-client-tests | linux-tools/nscd/nscd.py | 3 | 1545 | #!/bin/python
import os, subprocess
import logging
from autotest.client import test
from autotest.client.shared import error, software_manager
sm = software_manager.SoftwareManager()
class nscd(test.test):
"""
Autotest module for testing basic functionality
of nscd
@author
"""
version = 1
... | gpl-2.0 | -6,694,936,527,481,759,000 | 26.589286 | 81 | 0.552104 | false |
tensorflow/models | official/vision/beta/projects/deepmac_maskrcnn/configs/deep_mask_head_rcnn_config_test.py | 1 | 1045 | # Copyright 2021 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 | -2,065,850,450,992,557,800 | 33.833333 | 86 | 0.756938 | false |
raqqun/tweetcommander | packages/oauthlib/oauth2/ext/django.py | 1 | 5068 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
from django.http import HttpResponseRedirect, HttpResponse, HttpResponseForbidden
from django.views.decorators.csrf import csrf_exempt
import functools
import logging
from oauthlib.common import urlencode
from oauthlib.oauth2.draft25 impor... | gpl-3.0 | 8,168,492,034,231,814,000 | 44.25 | 104 | 0.598066 | false |
SEMAFORInformatik/femagtools | examples/model-creation/stator1-magnetIronV.py | 1 | 1583 | import femagtools
def create_fsl():
machine = dict(
name="PM 130 L4",
lfe=0.1,
poles=4,
outer_diam=0.13,
bore_diam=0.07,
inner_diam=0.015,
airgap=0.001,
stator=dict(
num_slots=12,
stator1=dict(
slot_rf1=0.057,... | bsd-2-clause | 5,439,394,220,098,400,000 | 24.532258 | 65 | 0.460518 | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.