seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
public void onTokenRefresh() {
Intent intent = new Intent(this, GCMRegistrationIntentService.class);
startService(intent);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
geckopy_model.add_reactions(ex_reactions)
# Genes
if model_fbc:
for (
gp
) in model_fbc.getListOfGeneProducts(): # noqa: E501 type: libsbml.GeneProduct
gid = _check_required(gp, gp.getIdAttribute(), "id")
if f_replace and F_GENE in f_replace:
gid = f_replace[F_GENE](gid)
cobra_gene = Gene(gid)
cobra_gene.name = gp.getName()
if cobra_gene.name is None:
cobra_gene.name = gid
| ise-uiuc/Magicoder-OSS-Instruct-75K |
remote::SayHello("SUUDAI");
remote::RuntimeCapture runtimeCapture;
int width = 400, height = 400;
std::uint8_t* buffer = new std::uint8_t[width * height * 4];
auto send_image = [&](int offset) {
int index = 0;
for (int y = 0; y < height; ++y) {
for (int x = 0; x < width; ++x) {
index = 4 * (y * width + x);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
</div>
</div>
</div>
</div>
</div>
</div>
@endsection
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@Override
protected void configure() {
super.configure();
bind(ValqueriesRepositoryFactory.class).to(ValqueriesTestDoubleRepositoryFactory.class);
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public static readonly GUIContent TEXT_GENERAL_HEADER = new GUIContent("General settings", "General settings.");
public static readonly GUIContent TEXT_LIMITS_HEADER = new GUIContent("Limits", "Properties that limit the gesture.");
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public ShareLinkHandler(
IRepository<ShareLinkPartRecord> repository,
IOrchardServices orchardServices,
IShareLinkService sharelinkService,
IEnumerable<IShareLinkPriorityProvider> priorityProviders) {
Filters.Add(StorageFilter.For(repository));
_orchardServices = orchardServices;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from flaskr import app
app.run(debug=True)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
override func didReceiveMemoryWarning() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
' with reading Binary Data')
counter = 1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
private get mustRoundUpCoordinates();
}
//# sourceMappingURL=OmvDataAdapter.d.ts.map | ise-uiuc/Magicoder-OSS-Instruct-75K |
}
/// Weight functions for `upfront_pool`.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: System Number (r:1 w:0)
// Storage: System ExecutionPhase (r:1 w:0)
// Storage: System EventCount (r:1 w:1)
// Storage: System Events (r:1 w:1)
// Storage: UpfrontPool MaxPlayer (r:0 w:1)
fn set_max_player(_s: u32, ) -> Weight {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo "[0] compilation has warnings"
exit 1
fi
exit 0
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return \DB::transaction(
function () use ($data) {
parent::create($data);
$paginate = $data['paginate'] ?? BaseAppEnum::DEFAULT_PAGINATION;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def handle_preload_options(f):
"""Extract preload options and return a wrapped callable."""
def caller(ctx, *args, **kwargs):
app = ctx.obj.app
preload_options = [o.name for o in app.user_options.get('preload', [])]
if preload_options:
user_options = {
preload_option: kwargs[preload_option]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Script_Attribute_String(pValue, bSetting, eAttribute);
}
void CJX_Area::x(CFXJSE_Value* pValue,
bool bSetting,
XFA_Attribute eAttribute) {
Script_Attribute_String(pValue, bSetting, eAttribute);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
wd_normalized = wd * K.cast(
K.sqrt(self.batch_size / self.total_iterations), 'float32')
p_t = p_t - self.eta_t * wd_normalized * p
if self.init_verbose:
print('{} weight decay set for {}'.format(
K.get_value(wd_normalized), p.name))
self.updates.append(K.update(m, m_t))
self.updates.append(K.update(v, v_t))
new_p = p_t
# Apply constraints.
if getattr(p, 'constraint', None) is not None:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cv2.destroyAllWindows() | ise-uiuc/Magicoder-OSS-Instruct-75K |
File::delete('public/images/slider/'.$slider->image);
$slider->delete();
session()->flash('success','Slider Deleted Successfully');
return back();
}
public function testimonialHeading()
{
$data['page_title'] = "Testimonial Heading";
return view('admin.testimonial.heading', $data);
}
public function chargeControlUpdate(Request $request){
| ise-uiuc/Magicoder-OSS-Instruct-75K |
humanReadableName?: string; // Human readable name of the task. Does not need to be unique. Falls back to name if not specified.
experience: number; // Experience the task gives
unlockLevel: number; // Level at which the task is available
resourcesGained: Resource[]; // Resources gained from completing the task
resourcesNeeded: Resource[]; // Resources needed to gain the task
};
export type Task = {
timeCostFunction: (level: number) => number; //Function that gives amount of time to accomplish the task at the given level
bank: boolean; // Whether this task will take into account banking the resource or not
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
--image_dir='/Users/lokhande/images'\
--output_graph=retrain_summaries/graph.pb\
--summaries_dir=retrain_summaries\
--how_many_training_steps=500\
--learning_rate=0.01\
--train_batch_size=1\
--architecture='mobilenet_1.0_224'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.bsl_txt = local_bsl
def format_func(self):
re.IGNORECASE = True
re.UNICODE = True
re.MULTILINE = True
funcs = re.findall(r'((\&НА\w+\s*\n|\n)(?=ФУНКЦИЯ|ПРОЦЕДУРА)(ФУНКЦИЯ|ПРОЦЕДУРА)\s+([\w\dА-Яа-я\_]+)(\(.*\));*(ЭКСПОРТ)*([^ꡏ]*?)(?=КОНЕЦФУНКЦИИ|КОНЕЦПРОЦЕДУРЫ)(КОНЕЦФУНКЦИИ|КОНЕЦПРОЦЕДУРЫ))'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def get_number_occurence(self):
return self.execute("select chosen_number, count(chosen_number) as occurences, sum(case when outcome < 1 then 1 else 0 end) as negative_outcomes, sum(case when outcome > 1 then 1 else 0 end) as successful_outcomes from wager_history group by chosen_number")
def get_multiplier_occurence(self):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#include "register_types.h"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if actor_type is not ActorBase and isinstance(actor_type, type) and \
issubclass(actor_type, ActorBase):
yield actor_type
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for d in core extra base wayland game; do
kiss ou $d
| ise-uiuc/Magicoder-OSS-Instruct-75K |
use Zrcms\CorePage\Api\CmsResource\FindPageCmsResourcesPublished;
use Zrcms\CorePage\Api\CmsResource\FindPageDraftCmsResource;
use Zrcms\CorePage\Api\CmsResource\FindPageDraftCmsResourcesBy;
use Zrcms\CorePage\Api\CmsResource\FindPageTemplateCmsResource;
use Zrcms\CorePage\Api\CmsResource\FindPageTemplateCmsResourcesBy;
use Zrcms\CorePage\Api\CmsResource\UpdatePageCmsResource;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
s = init.create_single_particle_state(imsize=64, radius=1, sigma=0.05)
blocks = s.blocks_particle(0)
for rad in rads:
print "Radius", rad
s.update(blocks[-1], np.array([rad]))
crb = []
for block in blocks:
crb.append( s.fisher_information([block])[0,0] )
crbs.append(crb)
crbs = 1.0 / np.sqrt(np.array(crbs))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
run_test -i -c -a committer
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/**
* Class InstagramController
* @package App\Http\Controllers\Instagram
*/
class InstagramController extends Controller
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Column,
CreateDateColumn,
UpdateDateColumn,
OneToMany,
} from 'typeorm';
import { TripClass } from '../trip/trip_class.entity';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if not isinstance(plugin[pair[0]], list):
new_list = [plugin[pair[0]]]
plugin[pair[0]] = new_list
plugin[pair[0]].append(pair[1])
else:
plugin[pair[0]] = pair[1]
try:
plugins.append(plugin)
except AttributeError:
print(
"mixing commandline plugins and configfile "
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class ProductListCreateView(ListCreateAPIView):
"""
ListCreateAPIView executes both 'GET' and 'POST' requests. i.e listing a queryset or creating a model instance.
"""
serializer_class = ProductSerializer
queryset = Product.objects.all()
class ProductRetrieveUpdateDestroyView(RetrieveUpdateDestroyAPIView):
"""
RetrieveUpdateDestroyAPIView executes 'GET', 'PUT', 'PATCH', & 'DELETE' requests.
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
color: var(--subhead-color);
}
table { width:100%; border-collapse: collapse;}
table, th, td {
border: 1px solid var(--tableframe-color);}
</style></header> <body>
"""
}
let htmlEnd = "</body></html>"
let parser = MarkdownParser()
let htmlCore = parser.html(from:content)
let html = htmlStart + htmlCore + htmlEnd
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
int categoryId,
string from,
string to,
string title,
int artisId = 0,
int styleId = 0,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .cache import CacheCommand
| ise-uiuc/Magicoder-OSS-Instruct-75K |
///
/// The `FcObjectSet` must not be null. This method assumes ownership of the `FcObjectSet`.
pub fn from_raw(_: &Fontconfig, raw_set: *mut sys::FcObjectSet) -> ObjectSet {
assert!(!raw_set.is_null());
| ise-uiuc/Magicoder-OSS-Instruct-75K |
setTimeout(redirection,1);
</script>
<?php } else { echo 'failed'; }?> | ise-uiuc/Magicoder-OSS-Instruct-75K |
return $this->retrieve($sql);
}
public function getAllDescriptionValues($group_desc_id)
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"stopword_path": "s3://suching-dev/stopwords/snowball_stopwords.txt",
"glove": "s3://suching-dev/pretrained-models/glove/imdb/vectors.txt",
"elmo": {
"frozen": "s3://allennlp/models/transformer-elmo-2019.01.10.tar.gz",
"fine-tuned": "s3://suching-dev/pretrained-models/elmo/imdb/model.tar.gz",
"in-domain": "s3://suching-dev/pretrained-models/in-domain-elmo/imdb/model.tar.gz"
},
"bert": {
"weights": "s3://suching-dev/pretrained-models/bert/imdb/model.tar.gz",
"vocab": "s3://suching-dev/pretrained-models/bert/imdb/vocab.txt"
},
"vae": {
"model_archive": "s3://suching-dev/pretrained-models/vae_best_npmi/imdb/model.tar.gz",
"vocab": "s3://suching-dev/pretrained-models/vae_best_npmi/imdb/vae.txt",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<filename>build/classes/visao/jasperreports-6.15.0/src/net/sf/jasperreports/view/save/JRMultipleSheetsXlsSaveContributor.rs
net.sf.jasperreports.view.save.JRMultipleSheetsXlsSaveContributor
| ise-uiuc/Magicoder-OSS-Instruct-75K |
side_effect=exception.InstanceNotReady(
instance_id=uuids.instance))
def test_stop_not_ready(self, stop_mock):
body = dict(stop="")
self.assertRaises(webob.exc.HTTPConflict,
self.controller._stop_server, self.req, uuids.instance, body)
@mock.patch.object(compute_api.API, 'stop',
side_effect=exception.InstanceIsLocked(
instance_uuid=uuids.instance))
def test_stop_locked_server(self, stop_mock):
body = dict(stop="")
ex = self.assertRaises(webob.exc.HTTPConflict,
self.controller._stop_server, self.req, uuids.instance, body)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
n_curs.execute(query)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# def test_process_pictures():
# result = proccess_picture() | ise-uiuc/Magicoder-OSS-Instruct-75K |
print(route.to_str()) | ise-uiuc/Magicoder-OSS-Instruct-75K |
except FileNotFoundError:
if args.v:
print(f'[XEPro {version}] File not found')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
num = 48
batch_size = 4
tileList = []
tileListList = [[] for j in range(len(nameList))]
for idx, f in enumerate(nameList):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
## Helper Methods
################################################################################################################################
def _dumpVarNames(self) -> list:
return [
"bRightTrimLines",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
plt.ylim(0, np.shape(img)[0])
plt.colorbar(im2)
plt.show()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from django.shortcuts import render
# Create your views here.
def ai_coin_identifier_home_page(request):
return render(request, 'ai_coin_identifier/index.html') | ise-uiuc/Magicoder-OSS-Instruct-75K |
$params = ['content' => $content, 'contentType' => $contentType];
if ($description) $params['description'] = $description;
if ($countryType) $params['countryType'] = $countryType;
if ($signatureFileBase64) $params['signatureFileBase64'] = $signatureFileBase64;
if ($signatureFileFormat) $params['signatureFileFormat'] = $signatureFileFormat;
return $this->postJSON('/sms/v3/signatureApply?clientToken=' . Str::random(), $params);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
candidate = n < 2 ? 2 : n;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
]
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public interface RsUserdynamiclikeDAO extends JpaRepository<RsUserdynamiclike, String> {
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
classdocs
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class NotAuthenticatedError(Exception):
pass
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public static void main(String [] args) throws Exception
{
for(int i = 0; i < 10; i++) {
if (i % 5 == 0 )
System.out.print("Mr Dickleton is cool. \r");
else if (i % 5 == 1)
System.out.println("...o0o...\r");
else if (i % 5 == 2)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
export HOST_ALIAS_IP2=$(kubectl get nodes test-gslb1-${NODE_ROLE} -o custom-columns='IP:status.addresses[0].address' --no-headers)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
CONFIG_FILE.getParentFile().mkdirs();
CONFIG_FILE.createNewFile();
} catch (IOException e) {
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
TEST_HOST = '127.0.0.1'
TEST_PORT = (os.getpid() % 31000) + 1024
TEST_PORT2 = (os.getpid() % 31000) + 1023
| ise-uiuc/Magicoder-OSS-Instruct-75K |
except IndexError as ex:
ex.args = ('DEPQ is empty',)
raise
def high(self):
"""Gets highest priority. Performance: O(1)"""
with self.lock:
try:
return self.data[0][1]
except IndexError as ex:
ex.args = ('DEPQ is empty',)
raise
def low(self):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ALLOW_ERROR(error, CUPTI_ERROR_INVALID_EVENT_NAME);
LOG_AND_DISABLE_IF_ERROR(error);
return error;
}
CUptiResult CuptiErrorManager::EventGroupDisable(CUpti_EventGroup event_group) {
IGNORE_CALL_IF_DISABLED;
CUptiResult error = interface_->EventGroupDisable(event_group);
LOG_AND_DISABLE_IF_ERROR(error);
return error;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return FAILED;
}
public function truncate($userId) {
$result = $this->db->query('CALL admTruncateNotes(?)', $userId);
if($result) {
return SUCCESS;
}
return FAILED;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
webbrowser.open_new_tab(event)
def Resume(): #resume page. needs some work. shouldn't take long.
for widget in root.winfo_children(): #eliminates all widgets. clears the window.
widget.destroy()
BuildMenu()
tk.Message(root,text="Resume",width=3000).grid(row=1,column=1)
def CoverLetter(): #coverletter page. needs some work. shouldn't take long.
for widget in root.winfo_children(): #eliminates all widgets. clears the window.
widget.destroy()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
additional_info = {}
if 'dashboardId' in raw_data:
additional_info.update({'dashboard_id': str(raw_data.get('dashboardId', ''))})
if 'panelId' in raw_data:
additional_info.update({'panel_id': str(raw_data.get('panelId'))})
if 'orgId' in raw_data:
additional_info.update({'org_id': str(raw_data.get('orgId', ''))})
| ise-uiuc/Magicoder-OSS-Instruct-75K |
portForward.protocol = this.props.model.useHttps ? "https" : "http";
if (currentPort) {
const wasRunning = portForward.status === "Active";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub enum I {}
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
rm packages/*/*/tslint.json
rm packages/*/*/yarn.lock
rm packages/*/*/ember-cli-build.js
rm packages/*/*/.travis.yml
rm packages/*/*/CODE_OF_CONDUCT.md
rm packages/*/*/LICENSE
rm -rf packages/*/*/tmp
rm -rf packages/*/*/dist
| ise-uiuc/Magicoder-OSS-Instruct-75K |
static std::unordered_map< std::string, BlockData > blockDatas;
AssetManager(void) = default;
AssetManager(const AssetManager &) = delete;
virtual ~AssetManager(void) = default;
static void LoadAssets();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
POD_LOGS=$(oc logs $POD_NAME -n $T_SCALE_PROJECT)
echo "$POD_LOGS"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
else
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return view('finca', ['registros' => $registros ] );
}
public function guardar(Request $request)
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
cd ../data/v7_01.2
../../../nnftool-1.3/bin/nnftool -ffbpx -is1-3 57.29577951308232 -n -b -o case2.nnf 25x20x15x10x5_4018.3.net 15x20_365.5.net 1.2 processCase2Net
../../../nnftool-1.3/bin/nnftool -o case2.nna case2.nnf
../../bin/case2 case2.nnf case2_gkss.inp case2_nnf.out
cd ../../bin
| ise-uiuc/Magicoder-OSS-Instruct-75K |
rclpy_signal_handler_implementation = import_c_library('._rclpy_signal_handler', package)
rclpy_handle_implementation = import_c_library('._rclpy_handle', package)
rclpy_pycapsule_implementation = import_c_library('._rclpy_pycapsule', package)
# Temporary code for converting giant _rclpy module to pybind11
def _combine_split_modules():
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* @return whether this format should be used to export/import the given file.
*/
boolean applies(String filename);
/**
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.experience_for_level[(cur_level - 1) as usize]
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return result
def __contains__(self, item):
try:
self.__getattr__(item)
return True
except AttributeError:
return False
def get(self, item, default=_NONE):
try:
return self.__getattr__(item)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"public_certificate": public_certificate1,
},
| ise-uiuc/Magicoder-OSS-Instruct-75K |
create_snapshot("Start of year")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return __import__(module_path, fromlist=[module]) | ise-uiuc/Magicoder-OSS-Instruct-75K |
class Solution {
public:
set<int> ss;
int smallestRepunitDivByK(int K) {
if (0 == K % 2)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
.portrait,
.landscapeRight,
.landscapeLeft,
.portraitUpsideDown(.when(deviceFamilies: [.pad]))
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
...
Exception: An error occured
| ise-uiuc/Magicoder-OSS-Instruct-75K |
foreach ($files as $file) {
if ($file === 'public/' . $folder . '/' . $fileName) {
Storage::disk('public')->delete($folder . '/' . $fileName);
return true;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
h: jnp.ndarray,
mask: Optional[jnp.ndarray],
| ise-uiuc/Magicoder-OSS-Instruct-75K |
lazy var persistentContainer: NSPersistentContainer = {
/*
The persistent container for the application. This implementation
creates and returns a container, having loaded the store for the
application to it. This property is optional since there are legitimate
error conditions that could cause the creation of the store to fail.
*/
let container = NSPersistentContainer(name: "Model")
container.loadPersistentStores(completionHandler: { (storeDescription, error) in
if let error = error as NSError? {
// Replace this implementation with code to handle the error appropriately.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
func testDecodingPushView() throws {
let action: Navigate = try actionFromJsonFile(fileName: "pushview")
assertSnapshot(matching: action, as: .dump)
}
func testDecodingPushViewWithContext() throws {
let action: Navigate = try actionFromString("""
{
"_beagleAction_": "beagle:pushView",
"route": {
"url": "@{test}"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (!button) return null;
return (
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"test_maxpool_2d_pads",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
bot.answer_callback_query(call.id, text="")
bot.polling()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
.await
.expect("init failed");
let (_tx2, mut rx2) = init(config2, keys2, network_id, shutdown(10))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
struct SharedOpts {
#[structopt(subcommand)]
cmd: Command,
}
#[derive(StructOpt)]
enum Command {
Escape,
Unescape,
}
fn main() -> Result<(), Box<dyn Error>> {
let shared_opts = SharedOpts::from_args();
let mut input_string = String::new();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
get_login_url(),
{"login": "TestUser", "password": "<PASSWORD>"},
content_type="application/json",
)
assert response.status_code == 404
@pytest.mark.django_db
def test_login_wrong_login(client):
create_user(login="TestUser")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert len(result["documents"]) == len(documents) - 1
for document_type, document in documents.items():
if (
document.seller["user_id"] == seller.id
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if not self.api_key:
self.api_key = self.get_api_key()
if self.api_key:
self.api_interface = webapi.WebAPI(self.api_key)
self.limited = False
else:
self.limited = True
me = self.load_me_full()
games = self.load_all_games()
return (me, games)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def get_dgbs(self):
"""
Scan a list of equities for potential diagonal butterfly spreads.
For the type of equity to examine cf. McMillan, p. 344:
'one would like the underlying stock to be somewhat volatile,
since there is the possibility that long-term options will
be owned for free'.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for ttype, pos, val in zip(top_token_type_start, top_token_type_ind_start, top_words_val_start)
],
"Position(Index), Attribution": [
"{} ({}), {}".format(position, pos, round(val.item(), 2))
for position, pos, val in zip(top_pos_start, pos_ind_start, top_pos_val_start)
],
}
)
df_start.style.apply(["cell_ids: False"])
df_end = pd.DataFrame(
{
"Word(Index), Attribution": [
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.